Skip to content

build(deps): bump lz_string from 0.3.0 to 1.0.0 - #399

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/lz_string-1.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/lz_string-1.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Bumps lz_string from 0.3.0 to 1.0.0.

Release notes

Sourced from lz_string's releases.

v1.0.0

Now it gives the same results as JavaScript lz-string for every input, emoji too (#3), and it passes the test suite of lz-string itself.

Fixed

  • Emoji and all other characters. Like JS, compress and decompress now work on UTF-16 code units. Before, emoji gave wrong results, nil or a RangeError.
  • decompress always returns UTF-8. Before, it could return a binary string ("\xF6" for "ö").
  • Text with __proto__ in it compresses like in JS.
  • compress("") gives what JS gives ("Q===" in Base64), not "".
  • LZString.decompress("") returns nil, like JS.
  • UriSafe.decompress no longer changes the string you give it, and works with frozen strings.
  • Faster: on 100 KB of text, Base64 compress takes 0.03 s instead of 0.10 s, and decompress 0.008 s instead of 0.12 s.

Added

  • LZString::Uint8Array: compress to bytes and back (compressToUint8Array in JS).
  • LZString::Custom: compress with your own alphabet (compressToCustom, new in lz-string 2).
  • The JS function names: LZString.compress_to_base64, LZString.decompress_from_base64 and all the others.
  • decompress_to_utf16le for every format: the exact JS result, which can hold a lone surrogate.
  • The lz_string command line tool, with the same options as the one of lz-string 2.

Changed (this can break your code)

  • LZString.compress (raw) returns a UTF-16LE string. Like in JS, its result often has lone surrogates, and UTF-8 can't hold them. Before, it returned UTF-8 with "�" in it, which could not be decompressed. The Base64, URI-safe and UTF-16 results are UTF-8, as before.
  • Data that starts with code 3 (lz-string never writes that) raises ArgumentError, like lz-string 2.
  • A binary (ASCII-8BIT) string with bytes above 127 raises Encoding::UndefinedConversionError. Before, its bytes were read as Latin-1. Use force_encoding to say what the bytes are.
  • It needs Ruby 2.7 or newer.
Changelog

Sourced from lz_string's changelog.

1.0.0 (2026-10-16)

Now it gives the same results as JavaScript lz-string for every input, emoji too (#3), and it passes the test suite of lz-string itself.

Fixed

  • Emoji and all other characters. Like JS, compress and decompress now work on UTF-16 code units. Before, emoji gave wrong results, nil or a RangeError.
  • decompress always returns UTF-8. Before, it could return a binary string ("\xF6" for "ö").
  • Text with __proto__ in it compresses like in JS.
  • compress("") gives what JS gives ("Q===" in Base64), not "".
  • LZString.decompress("") returns nil, like JS.
  • UriSafe.decompress no longer changes the string you give it, and works with frozen strings.
  • Faster: on 100 KB of text, Base64 compress takes 0.03 s instead of 0.10 s, and decompress 0.008 s instead of 0.12 s.

Added

  • LZString::Uint8Array: compress to bytes and back (compressToUint8Array in JS).
  • LZString::Custom: compress with your own alphabet (compressToCustom, new in lz-string 2).
  • The JS function names: LZString.compress_to_base64, LZString.decompress_from_base64 and all the others.
  • decompress_to_utf16le for every format: the exact JS result, which can hold a lone surrogate.
  • The lz_string command line tool, with the same options as the one of lz-string 2.

Changed (this can break your code)

  • LZString.compress (raw) returns a UTF-16LE string. Like in JS, its result often has lone surrogates, and UTF-8 can't hold them. Before, it returned UTF-8 with "�" in it, which could not be decompressed. The Base64, URI-safe and UTF-16 results are UTF-8, as before.
  • Data that starts with code 3 (lz-string never writes that) raises ArgumentError, like lz-string 2.
  • A binary (ASCII-8BIT) string with bytes above 127 raises Encoding::UndefinedConversionError. Before, its bytes were read as Latin-1. Use force_encoding to say what the bytes are.
  • It needs Ruby 2.7 or newer.
Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Nov 20, 2026
@socket-security

socket-security Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgem/​lz_string@​0.3.0 ⏵ 1.0.0100100100100100

View full report

Bumps [lz_string](https://github.com/altivi/lz_string) from 0.3.0 to 1.0.0.
- [Release notes](https://github.com/altivi/lz_string/releases)
- [Changelog](https://github.com/altivi/lz_string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/altivi/lz_string/commits/v1.0.0)

---
updated-dependencies:
- dependency-name: lz_string
  dependency-version: 1.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/bundler/lz_string-1.0.0 branch from e1549a9 to a80f766 Compare November 21, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants