Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Update dependency json_pure to '<= 2.8.1'#21

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/json_pure-2.x
Open

Update dependency json_pure to '<= 2.8.1'#21
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/json_pure-2.x

Conversation

@renovate

@renovate renovate Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
json_pure (source, changelog) '<= 2.0.1''<= 2.8.1' age adoption passing confidence

Release Notes

ruby/json (json_pure)

v2.8.1

Compare Source

  • Fix the java packages to include the extension.

v2.8.0

Compare Source

  • Emit a deprecation warning when JSON.load create custom types without the create_additions option being explicitly enabled.
    • Prefer to use JSON.unsafe_load(string) or JSON.load(string, create_additions: true).
  • Emit a deprecation warning when serializing valid UTF-8 strings encoded in ASCII_8BIT aka BINARY.
  • Bump required Ruby version to 2.7.
  • Add support for optionally parsing trailing commas, via allow_trailing_comma: true, which in cunjunction with the
    pre-existing support for comments, make it suitable to parse jsonc documents.
  • Many performance improvements to JSON.parse and JSON.load, up to 1.7x faster on real world documents.
  • Some minor performance improvements to JSON.dump and JSON.generate.
  • JSON.pretty_generate no longer includes newlines inside empty object and arrays.

v2.7.6

Compare Source

  • Fix a regression in JSON.generate when dealing with Hash keys that are string subclasses, call to_json on them.

v2.7.5

Compare Source

  • Fix a memory leak when #to_json methods raise an exception.
  • Gracefully handle formatting configs being set to nil instead of "".
  • Workaround another issue caused by conflicting versions of both json_pure and json being loaded.

v2.7.4

Compare Source

  • Workaround a bug in 3.4.8 and older rubygems/rubygems#6490.
    This bug would cause some gems with native extension to fail during compilation.
  • Workaround different versions of json and json_pure being loaded (not officially supported).
  • Make json_pure Ractor compatible.

v2.7.3

Compare Source

  • Numerous performance optimizations in JSON.generate and JSON.dump (up to 2 times faster).
  • Limit the size of ParserError exception messages, only include up to 32 bytes of the unparsable source.
  • Fix json-pure's Object#to_json to accept non-state arguments.
  • Fix multiline comment support in json-pure.
  • Fix JSON.parse to no longer mutate the argument encoding when passed an ASCII-8BIT string.
  • Fix String#to_json to raise on invalid encoding in json-pure.
  • Delete code that was based on CVTUTF.
  • Use the pure-Ruby generator on TruffleRuby.
  • Fix strict mode in json-pure to not break on Integer.

v2.7.2

Compare Source

  • Use rb_sym2str instead of SYM2ID #​561
  • Fix memory leak when exception is raised during JSON generation #​574
  • Remove references to "19" methods in JRuby #​576
  • Make OpenStruct support as optional by @​hsbt in #​565
  • Autoload JSON::GenericObject to avoid require ostruct warning in Ruby 3.4 #​577
  • Warn to install ostruct if json couldn't load it by @​hsbt #​578

v2.7.1

Compare Source

  • JSON.dump: handle unenclosed hashes regression #​554
  • Overload kwargs in JSON.dump #​556
  • [DOC] RDoc for additions #​557
  • Fix JSON.dump overload combination #​558

v2.7.0

Compare Source

  • Add a strict option to Generator #​519
  • escape_slash option was renamed as script_safe and now also escape U+2028 and U+2029. escape_slash is now an alias of script_safe #​525
  • Remove unnecessary initialization of create_id in JSON.parse() #​454
  • Improvements to Hash#to_json in pure implementation generator #​203
  • Use ruby_xfree to free buffers #​518
  • Fix "unexpected token" offset for Infinity #​507
  • Avoid using deprecated BigDecimal.new on JRuby #​546
  • Removed code for Ruby 1.8 #​540
  • Rename JSON::ParseError to JSON:ParserError #​530
  • Call super in included hook #​486
  • JRuby requires a minimum of Java 8 #​516
  • Always indent even if empty #​517

v2.6.3

Compare Source

  • bugfix json/pure mixing escaped with literal unicode raises Encoding::CompatibilityError #​483
  • Stop including the parser source LINE in exceptions #​470

v2.6.2

Compare Source

  • Remove unknown keyword arg from DateTime.parse #​488
  • Ignore java artifacts by @​hsbt #​489
  • Fix parser bug for empty string allocation #​496

v2.6.1

Compare Source

  • Restore version.rb with 2.6.1

v2.6.0

Compare Source

  • Use rb_enc_interned_str if available to reduce allocations in freeze: true mode. #​451.
  • Bump required_ruby_version to 2.3.
  • Fix compatibility with GC.compact.
  • Fix some compilation warnings. #​469

v2.5.1

Compare Source

  • Restore the compatibility for constants of JSON class.

v2.5.0

Compare Source

  • Ready to Ractor-safe at Ruby 3.0.

v2.4.1

Compare Source

  • Restore version.rb with 2.4.1

v2.4.0

Compare Source

v2.3.1

Compare Source

  • Spelling and grammar fixes for comments. Pull request #​191 by Josh
    Kline.
  • Enhance generic JSON and #generate docs. Pull request #​347 by Victor
    Shepelev.
  • Add :nodoc: for GeneratorMethods. Pull request #​349 by Victor Shepelev.
  • Baseline changes to help (JRuby) development. Pull request #​371 by Karol
    Bucek.
  • Add metadata for rubygems.org. Pull request #​379 by Alexandre ZANNI.
  • Remove invalid JSON.generate description from JSON module rdoc. Pull
    request #​384 by Jeremy Evans.
  • Test with TruffleRuby in CI. Pull request #​402 by Benoit Daloze.
  • Rdoc enhancements. Pull request #​413 by Burdette Lamar.
  • Fixtures/ are not being tested... Pull request #​416 by Marc-André
    Lafortune.
  • Use frozen string for hash key. Pull request #​420 by Marc-André
    Lafortune.
  • Added :call-seq: to RDoc for some methods. Pull request #​422 by Burdette
    Lamar.
  • Small typo fix. Pull request #​423 by Marc-André Lafortune.

v2.3.0

Compare Source

  • Fix default of create_additions to always be false for JSON(user_input)
    and JSON.parse(user_input, nil).
    Note that JSON.load remains with default true and is meant for internal
    serialization of trusted data. [CVE-2020-10663]
  • Fix passing args all #to_json in json/add/*.
  • Fix encoding issues
  • Fix issues of keyword vs positional parameter
  • Fix JSON::Parser against bigdecimal updates
  • Bug fixes to JRuby port

v2.2.0

Compare Source

  • Adds support for 2.6 BigDecimal and ruby standard library Set datetype.

v2.1.0

Compare Source

  • Allow passing of decimal_class option to specify a class as which to parse
    JSON float numbers.

v2.0.4

Compare Source

  • Raise exception for incomplete unicode surrogates/character escape
    sequences. This problem was reported by Daniel Gollahon (dgollahon).
  • Fix arbitrary heap exposure problem. This problem was reported by Ahmad
    Sherif (ahmadsherif).

v2.0.3

Compare Source

  • Set required_ruby_version to 1.9
  • Some small fixes

v2.0.2

Compare Source

  • Specify required_ruby_version for json_pure.
    • Fix issue #​295 failure when parsing frozen strings.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants