Repository navigation
Update dependency json to v2.21.2 - #230
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
February 3, 2026 07:32
306b582 to
23253d3
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
February 4, 2026 04:09
23253d3 to
c434693
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
February 12, 2026 21:43
c434693 to
2936d7b
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
March 6, 2026 21:45
2936d7b to
a41c9be
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
March 8, 2026 10:56
a41c9be to
92183cc
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
March 18, 2026 19:31
92183cc to
31ae977
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
March 31, 2026 09:52
31ae977 to
2efc101
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
April 19, 2026 03:40
2efc101 to
3cf90dd
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
May 5, 2026 04:02
3cf90dd to
0cb5cd9
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
May 21, 2026 08:10
0cb5cd9 to
a049dbf
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
May 30, 2026 11:25
a049dbf to
0b025df
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
June 6, 2026 11:36
0b025df to
58d1044
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
June 11, 2026 20:06
58d1044 to
06c6633
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
June 24, 2026 07:40
06c6633 to
27642c5
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
2 times, most recently
from
July 21, 2026 17:57
73e2c9a to
104ef2a
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
July 31, 2026 23:54
104ef2a to
493e253
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
August 16, 2026 07:42
493e253 to
6a8248f
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
2 times, most recently
from
September 3, 2026 03:15
88f70c1 to
fb03e81
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
September 6, 2026 03:46
fb03e81 to
f411d31
Compare
renovate
Bot
force-pushed
the
renovate/json-2.x
branch
from
October 3, 2026 03:08
f411d31 to
fbefdf4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
'= 2.6.3'→'= 2.21.2''= 2.6.1'→'= 2.21.2''= 2.5.1'→'= 2.21.2''= 2.3.0'→'= 2.21.2''= 2.1.0'→'= 2.21.2'Release Notes
ruby/json (json)
v2.21.2Compare Source
JSON::ResumableParser. [GHSA-9hj4-r449-hfvc][CVE-2026-71847].v2.21.1Compare Source
v2.21.0Compare Source
JSON.generatenow accept asort_keysoption, which takes either a boolean or a block.#empty?and#partial_value?methods onJSON::ResumableParser.JSON::ResumableParser.float out of rangewarning when parsing out of range numbers.RUBY_TYPED_THREAD_SAFE_FREE.v2.20.0Compare Source
max_nesting: falsewill no longerresult in
SystemStackError stack level too deeperrors.:max_nestingoption still defaults to100.JSON::ResumableParserto parse streams of JSON documents. Not yet available on JRuby.allow_comments: trueparsing option.ruby_sized_xfree.v2.19.9Compare Source
with
JSON.generate(object, io). [CVE-2026-54696].v2.19.8Compare Source
max_nestingoption.v2.19.7Compare Source
JSON.parsecan't be mutated during parsing.State#dup.depthconfig.v2.19.6Compare Source
depthgenerator argument.ParserConfig.v2.19.5Compare Source
v2.19.4Compare Source
0.0orInf).v2.19.3Compare Source
v2.19.2Compare Source
JSON.parse(doc, allow_duplicate_key: false).CVE-2026-33210.v2.19.1Compare Source
2.18.0.v2.19.0Compare Source
allow_blankparsing option to no longer allow invalid types (e.g.load([], allow_blank: true)now raise a type error).allow_invalid_escapeparsing option to ignore backslashes that aren't followed by one of the valid escape characters.v2.18.5Compare Source
JSON.generate(object, io)).CVE-2026-54696. Backported from 2.19.9.
v2.18.4Compare Source
v2.18.3Compare Source
CVE-2026-33210/ GHSA-3m6g-2423-7cp3.v2.18.2Compare Source
GHSA-cjpr-jw2g-fw99.
v2.18.1Compare Source
to_jsonwithout first invoking a user defined
#to_jsonmethod.v2.18.0Compare Source
:allow_control_charactersparser options, to allow JSON strings containing unescaped ASCII control characters (e.g. newlines).v2.17.1.2Compare Source
JSON.parse(doc, allow_duplicate_key: false).CVE-2026-33210.v2.17.1Compare Source
JSON.parse(doc, allow_duplicate_key: false).CVE-2026-33210.v2.17.0Compare Source
JSON.loadandJSON.unsafe_loadto allow passing options as second argument.Only
\",\\,\b,\f,\n,\r,\tand\uare valid JSON escapes.JSON::Coderto use the depth it was initialized with.to_jsonon the return value ofas_jsonforFloat::NAN.state.depth: whento_jsonchangesstate.depthbut does not restore it, it is resetautomatically to its initial value.
In particular, when a
NestingErroris raised,depthis no longer equal tomax_nestingafter the call togenerate, and is reset to its initial value. Similarly when
to_jsonraises an exception.v2.16.0Compare Source
JSON::State#[]andJSON::State#[]=. Consider usingJSON::Coderinstead.JSON::Codernow also yields to the block when encountering strings with invalid encoding.Exceptionis raised, orthrowis used during JSON generation.v2.15.2.1Compare Source
JSON.parse(doc, allow_duplicate_key: false).CVE-2026-33210.v2.15.2Compare Source
JSON.parse(doc, allow_duplicate_key: false).CVE-2026-33210.v2.15.1Compare Source
v2.15.0Compare Source
JSON::Codercallback now receive a second argument to convey whether the object is a hash key.v2.14.1Compare Source
IndexOutOfBoundsExceptionin the JRuby extension when encoding shared strings.v2.14.0Compare Source
allow_duplicate_keygenerator options. By default a warning is now emitted when a duplicated key is encountered.In
json 3.0an error will be raised.JSON.generatestrict: truemode to also restrict hash keys.JSON::Coderto also invoke block for hash keys that aren't strings nor symbols.JSON.unsafe_loadusage with procString.json_create,String#to_json_raw,String#to_json_raw_objectwhenjson/addisn't loaded.v2.13.2Compare Source
v2.13.1Compare Source
__builtin_cpu_supports.v2.13.0Compare Source
allow_duplicate_keyparsing options. By default a warning is now emitted when a duplicated key is encountered.In
json 3.0an error will be raised.v2.12.2Compare Source
v2.12.1Compare Source
v2.12.0Compare Source
to_simplementations.JSON.generatenow uses SSE2 (x86) or NEON (arm64) instructions when available to escape strings.v2.11.3Compare Source
JSON.pretty_generatethat could cause indentation to be off once some#to_jsonhas been called.v2.11.2Compare Source
JSON::PRETTY_STATE_PROTOTYPE. This constant was private API but is used by popular gems likemulti_json.It now emits a deprecation warning.
v2.11.1Compare Source
JSON.restore,JSON.unparse,JSON.fast_unparseandJSON.pretty_unparse.These were deprecated 16 years ago, but never emitted warnings, only undocumented, so are
still used by a few gems.
v2.11.0Compare Source
JSON.loadproc argument to substitute the parsed object with the return value.This better match
Marshal.loadbehavior.JSON.fast_generate(it's not any faster, so pointless).JSON.load_default_options.JSON.unsafe_load_default_options.JSON.dump_default_options.Kernel#jKernel#jjJSON.iconv.Class#json_creatable?monkey patch.JSON.restoremethod.JSON.unparsemethod.JSON.fast_unparsemethod.JSON.pretty_unparsemethod.JSON::UnparserErrorconstant.JSON::MissingUnicodeSupportconstant.v2.10.2Compare Source
2.10.0inadvertently changed it.JSON::GeneratorError#detailed_messageon Ruby < 3.2v2.10.1Compare Source
MultiJson.dump(obj, pretty: true):no implicit conversion of false into Proc (TypeError).v2.10.0Compare Source
strict: truenow accept symbols as values. Previously they'd only be accepted as hash keys.JSON::Coderas a new API allowing to customize how non native types are serialized in a non-global way.JSON::Fragmentto allow assembling cached fragments in a safe way.v2.9.1Compare Source
v2.9.0Compare Source
script_safeescaping to not confuse some other 3 wide characters with\u2028and\u2029.e.g.
JSON.generate(["倩", "瀨"], script_safe: true)would generate the wrong JSON.JSON.dump(object, some_io)now write into the IO in chunks while previously it would buffer the entire JSON before writing.JSON::GeneratorErrornow has a#invalid_objectattribute, making it easier to understand why an object tree cannot be serialized.v2.8.2Compare Source
JSON.load_fileexplicitly read the file as UTF-8.v2.8.1Compare Source
v2.8.0Compare Source
JSON.loadcreate custom types without thecreate_additionsoption being explicitly enabled.JSON.unsafe_load(string)orJSON.load(string, create_additions: true).ASCII_8BITakaBINARY.allow_trailing_comma: true, which in cunjunction with thepre-existing support for comments, make it suitable to parse
jsoncdocuments.JSON.parseandJSON.load, up to1.7xfaster on real world documents.JSON.dumpandJSON.generate.JSON.pretty_generateno longer includes newlines inside empty object and arrays.v2.7.6Compare Source
to_jsonon them.v2.7.5Compare Source
#to_jsonmethods raise an exception.nilinstead of"".json_pureandjsonbeing loaded.v2.7.4Compare Source
This bug would cause some gems with native extension to fail during compilation.
jsonandjson_purebeing loaded (not officially supported).json_pureRactor compatible.v2.7.3Compare Source
JSON.generateandJSON.dump(up to 2 times faster).Object#to_jsonto accept non-state arguments.json-pure.JSON.parseto no longer mutate the argument encoding when passed an ASCII-8BIT string.String#to_jsonto raise on invalid encoding injson-pure.strictmode injson-pureto not break on Integer.v2.7.2Compare Source
v2.7.1Compare Source
v2.7.0Compare Source
escape_slashoption was renamed asscript_safeand now also escape U+2028 and U+2029.escape_slashis now an alias ofscript_safe#525Configuration
📅 Schedule: (UTC)
🚦 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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.