Back to Explore

pieroxy/lz-string

GitHub
1 watchersOpen source

Last release: 2023-06-20

LZ-string is an LZ-based compression algorithm implemented for JavaScript, useful for compressing and decompressing text data in web or Node.js applications. It also provides a command line tool (if installed globally) to compress or decompress files, with options for different character encodings.

Project status

  • The source does not appear actively maintained in terms of published library updates, with the newest shown update being 2.0.0-rc.0 on 2023-06-20, and no later update information provided up to today (2026-06-11). While the upstream repo shows a push on 2025-08-11, there are no corresponding update/release notes in the provided data.
  • The apparent update cadence is very low recently, with the last known update in 2023 and an extended gap of well over a year relative to today, indicating a quiet or in-maintenance style trajectory rather than ongoing rapid development.

AI summary generated 2026-06-11

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 2.0.0-rc.0

    2023-06-20

    This release migrates the library implementation from JavaScript to TypeScript and switches the published package to a bundler-friendly setup with build outputs under dist. It also updates the package entrypoints so consumers should install the package normally (instead of importing from source repositories).

    BreakingFeatures
  • 1.5.0

    2023-06-20

    This release appears to be a packaging update that bumps the library version and refreshes the prebuilt minified bundle. The release notes only state that the minified version was updated, without describing any behavioral or API changes.

  • 1.4.5

    2023-06-20

    Version 1.4.5 switches the project licensing to MIT and adds explicit Angular integration to the built JavaScript bundle. It also updates TypeScript typings, and refreshes README/package metadata accordingly.

    BreakingFeatures
  • 1.4.4

    2015-05-25

    Version 1.4.4 focuses on improving compatibility with older Internet Explorer versions (IE6&7) by changing how characters are accessed on strings during compression/decompression. It also includes minor repository and package metadata updates (version strings, package.json fields) and a README warning label change.

  • 1.4.3

    2015-04-26

    Release 1.4.3 adds TypeScript declaration files and improves module-loader support (AMD/CommonJS). The code refactors internal implementation details into a closure and slightly changes how the library registers itself when AMD is present.

    Features
  • 1.4.2

    2015-03-25

    Release 1.4.2 is a bugfix for LZ-string URL decoding, specifically decompressFromEncodedURIComponent. The issue is that when encoded data has plus characters replaced with spaces (commonly by servers or query parsing), decompression fails; the fix normalizes spaces back into plus before decoding.

  • 1.4.1

    2015-03-23

    Version 1.4.1 focuses on reducing memory usage during compression/decompression by changing how intermediate output strings are built. The release notes warn it may be slightly slower on some OS/browser combinations, but it should significantly lower memory consumption.

  • 1.4.0-beta

    2015-02-19

    Version 1.4.0-beta rewrites the LZString wrapper functions (compressToUTF16, compressToBase64, compressToEncodedURIComponent, and their matching decompress functions) to avoid calling compress and then re-encoding the result. The release notes claim this reduces extra transformations (notably UTF-16, base64, and URI encoding hops) and may slightly slow raw compress while speeding up the wrapper formats.

    Breaking
  • 1.3.9

    2015-02-18

    Version 1.3.9 of lz-string primarily changes the implementation of decompressFromUint8Array, as indicated by the release title, and bumps the package metadata version from 1.3.8 to 1.3.9. The change affects how byte arrays are converted back into a string prior to calling decompress, and the release also adds binary compatibility tests.

  • 1.3.8

    2015-02-15

    Version 1.3.8 of lz-string is presented as a performance optimization release, with changes concentrated in libs/lz-string.js. The only documented release information is the generic label “Performance optimizations”, and no detailed change log was provided by the publisher.