submitty.github.io
submitty.github.io copied to clipboard
[Dependency] Bump json from 2.13.2 to 2.16.0
Bumps json from 2.13.2 to 2.16.0.
Release notes
Sourced from json's releases.
v2.16.0
What's Changed
- Deprecate
JSON::State#[]andJSON::State#[]=. Consider usingJSON::Coderinstead.JSON::Codernow also yields to the block when encountering strings with invalid encoding.- Fix GeneratorError messages to be UTF-8 encoded.
- Fix memory leak when
Exceptionis raised, orthrowis used during JSON generation.- Optimized floating point number parsing by integrating the ryu algorithm (thanks to Josef Šimánek).
- Optimized numbers parsing using SWAR (thanks to Scott Myron).
- Optimized parsing of pretty printed documents using SWAR (thanks to Scott Myron).
Full Changelog: https://github.com/ruby/json/compare/v2.15.2...v2.16.0
v2.15.2
What's Changed
- Fix
JSON::Coderto have one dedicated depth counter per invocation. After encountering a circular reference inJSON::Coder#dump, any further#dumpcall would raiseJSON::NestingError.Full Changelog: https://github.com/ruby/json/compare/v2.15.1...v2.15.2
v2.15.1
What's Changed
- Fix incorrect escaping in the JRuby extension when encoding shared strings.
Full Changelog: https://github.com/ruby/json/compare/v2.15.0...v2.15.1
v2.15.0
What's Changed
JSON::Codercallback now receive a second argument to convey whether the object is a hash key.- Tuned the floating point number generator to not use scientific notation as aggressively.
Full Changelog: https://github.com/ruby/json/compare/v2.14.1...v2.15.0
v2.14.1
What's Changed
- Fix
IndexOutOfBoundsExceptionin the JRuby extension when encoding shared strings.Full Changelog: https://github.com/ruby/json/compare/v2.14.0...v2.14.1
v2.14.0
What's Changed
- Add new
allow_duplicate_keygenerator options. By default a warning is now emitted when a duplicated key is encountered. Injson 3.0an error will be raised.
... (truncated)
Changelog
Sourced from json's changelog.
2025-11-07 (2.16.0)
- Deprecate
JSON::State#[]andJSON::State#[]=. Consider usingJSON::Coderinstead.JSON::Codernow also yields to the block when encountering strings with invalid encoding.- Fix GeneratorError messages to be UTF-8 encoded.
- Fix memory leak when
Exceptionis raised, orthrowis used during JSON generation.- Optimized floating point number parsing by integrating the ryu algorithm (thanks to Josef Šimánek).
- Optimized numbers parsing using SWAR (thanks to Scott Myron).
- Optimized parsing of pretty printed documents using SWAR (thanks to Scott Myron).
2025-10-25 (2.15.2)
- Fix
JSON::Coderto have one dedicated depth counter per invocation. After encountering a circular reference inJSON::Coder#dump, any further#dumpcall would raiseJSON::NestingError.2025-10-07 (2.15.1)
- Fix incorrect escaping in the JRuby extension when encoding shared strings.
2025-09-22 (2.15.0)
JSON::Codercallback now receive a second argument to convey whether the object is a hash key.- Tuned the floating point number generator to not use scientific notation as aggressively.
2025-09-18 (2.14.1)
- Fix
IndexOutOfBoundsExceptionin the JRuby extension when encoding shared strings.2025-09-18 (2.14.0)
- Add new
allow_duplicate_keygenerator options. By default a warning is now emitted when a duplicated key is encountered. Injson 3.0an error will be raised.>> Warning[:deprecated] = true >> puts JSON.generate({ foo: 1, "foo" => 2 }) (irb):2: warning: detected duplicate key "foo" in {foo: 1, "foo" => 2}. This will raise an error in json 3.0 unless enabled via `allow_duplicate_key: true` {"foo":1,"foo":2} >> JSON.generate({ foo: 1, "foo" => 2 }, allow_duplicate_key: false) detected duplicate key "foo" in {foo: 1, "foo" => 2} (JSON::GeneratorError)- Fix
JSON.generatestrict: truemode to also restrict hash keys.- Fix
JSON::Coderto also invoke block for hash keys that aren't strings nor symbols.- Fix
JSON.unsafe_loadusage with proc- Fix the parser to more consistently reject invalid UTF-16 surogate pairs.
- Stop defining
String.json_create,String#to_json_raw,String#to_json_raw_objectwhenjson/addisn't loaded.
Commits
5a12067Release 2.16.0e9fbc89DeprecateJSON::State#[]andJSON::State#[]=826cb2aGet rid of JSON.deep_const_get (private API)fce1c7eTentative fix for RHEL8 compilera67d1a1Micro-optimizerstring_cache_fetchddad00bExtractJSON_CPU_LITTLE_ENDIAN_64BITSdefinition3bc1787ext/json/ext/json.h: Add missing newline at end of file5915103Fix duplicate 'inline' declaration specifier043880fparser.c: Always inlinejson_eat_whitespace21284eaparser.c: userb_str_to_interned_stroverrb_funcall- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)