chore(deps): update dependency json to v2#36
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
Author
|
34f0056 to
bcac1b5
Compare
bcac1b5 to
8906376
Compare
8906376 to
293079f
Compare
293079f to
1504ff2
Compare
1504ff2 to
27d7ea1
Compare
27d7ea1 to
3ca751e
Compare
3ca751e to
bdfda3c
Compare
bdfda3c to
4a9bc8f
Compare
4a9bc8f to
cb8e81c
Compare
46a0cdf to
5f268eb
Compare
5f268eb to
837a98e
Compare
837a98e to
b651ba0
Compare
b651ba0 to
ce77322
Compare
8a69d10 to
3633d87
Compare
3633d87 to
2d63725
Compare
2d63725 to
3a3c6f2
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:
v1.8→v2.18.1Release Notes
flori/json (json)
v2.18.1Compare Source
What's Changed
to_jsonwithout first invoking a user defined
#to_jsonmethod.Full Changelog: ruby/json@v2.18.0...v2.18.1
v2.18.0Compare Source
What's Changed
:allow_control_charactersparser options, to allow JSON strings containing unescaped ASCII control characters (e.g. newlines).Full Changelog: ruby/json@v2.17.1...v2.18.0
v2.17.1Compare Source
What's Changed
\uXX\uXX) that could cause an invalid string to be returned.Full Changelog: ruby/json@v2.17.0...v2.17.1
v2.17.0Compare Source
What's Changed
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.Full Changelog: ruby/json@v2.16.0...v2.17.0
v2.16.0Compare Source
What's Changed
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.Full Changelog: ruby/json@v2.15.2...v2.16.0
v2.15.2Compare Source
What's Changed
JSON::Coderto have one dedicated depth counter per invocation.After encountering a circular reference in
JSON::Coder#dump, any further#dumpcall would raiseJSON::NestingError.Full Changelog: ruby/json@v2.15.1...v2.15.2
v2.15.1Compare Source
What's Changed
Full Changelog: ruby/json@v2.15.0...v2.15.1
v2.15.0Compare Source
What's Changed
JSON::Codercallback now receive a second argument to convey whether the object is a hash key.Full Changelog: ruby/json@v2.14.1...v2.15.0
v2.14.1Compare Source
What's Changed
IndexOutOfBoundsExceptionin the JRuby extension when encoding shared strings.Full Changelog: ruby/json@v2.14.0...v2.14.1
v2.14.0Compare Source
What's Changed
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.Full Changelog: ruby/json@v2.13.2...v2.14.0
v2.13.2Compare Source
What's Changed
Full Changelog: ruby/json@v2.13.1...v2.13.2
v2.13.1Compare Source
What's Changed
__builtin_cpu_supports.Full Changelog: ruby/json@v2.13.0...v2.13.1
v2.13.0Compare Source
What's Changed
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.Full Changelog: ruby/json@v2.12.2...v2.13.0
v2.12.2Compare Source
Full Changelog: ruby/json@v2.12.1...v2.12.2
v2.12.1Compare Source
What's Changed
Full Changelog: ruby/json@v2.12.0...v2.12.1
v2.12.0Compare Source
What's Changed
to_simplementations.JSON.generatenow uses SSE2 (x86) or NEON (arm64) instructions when available to escape strings.Full Changelog: ruby/json@v2.11.3...v2.12.0
v2.11.3Compare Source
What's Changed
Full Changelog: ruby/json@v2.11.2...v2.11.3
v2.11.2Compare Source
What's Changed
Full Changelog: ruby/json@v2.11.1...v2.11.2
v2.11.1Compare Source
What's Changed
JSON.restore,JSON.unparse,JSON.fast_unparseandJSON.pretty_unparse.These were deprecated 16 years ago, but never emited warnings, only undocumented, so are
still used by a few gems.
Full Changelog: ruby/json@v2.11.0...v2.11.1
v2.11.0Compare Source
What's Changed
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.Full Changelog: ruby/json@v2.10.2...v2.11.0
v2.10.2Compare Source
What's Changed
2.10.0unadvertently changed it.JSON::GeneratorError#detailed_messageon Ruby < 3.2Full Changelog: ruby/json@v2.10.1...v2.10.2
v2.10.1Compare Source
What's Changed
MultiJson.dump(obj, pretty: true)by @byroot in ruby#749Full Changelog: ruby/json@v2.10.0...v2.10.1
v2.10.0Compare Source
What's Changed
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.Full Changelog: ruby/json@v2.9.1...v2.10.0
v2.9.1Compare Source
What's Changed
v2.9.0Compare Source
What's Changed
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.Full Changelog: ruby/json@v2.8.2...v2.9.0
v2.8.2Compare Source
What's Changed
Full Changelog: ruby/json@v2.8.1...v2.8.2
v2.8.1Compare Source
javaversion of the package to include the extension implementation. Only concerns JRuby.Full Changelog: ruby/json@v2.8.0...v2.8.1
v2.8.0Compare Source
What's Changed
JSON.loadcreate custom types without thecreate_additionsoption being explictly 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 include newline inside empty object and arrays.Parsing performance
Parsing performance is improved by 50-70% on realistic benchmarks, and even more on micro-benchmarks: https://gist.github.com/casperisfine/cf4b3a0594fae24b7d0eb93daaf3841a
Full Changelog: ruby/json@v2.7.3...v2.8.0
v2.7.6Compare Source
to_jsonon them.Full Changelog: ruby/json@v2.7.5...v2.7.6
v2.7.5Compare Source
What's Changed
#to_jsonmethods raise an exception.nilinstead of"".json_pureandjsonbeing loaded.Full Changelog: ruby/json@v2.7.4...v2.7.5
v2.7.4Compare Source
What's Changed
This bug would cause some gems with native extension to fail during compilation.
jsonandjson_purebeing loaded (not officially supported).json_pureRactor compatible.Full Changelog: ruby/json@v2.7.3...v2.7.4
v2.7.3Compare Source
What's Changed
JSON.generateandJSON.dump(up to 2 times faster).Object#to_jsonto accept non state argumentsjson-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.JSON.dumpPerformanceJSON.dumpis now much faster, and on par or faster than alternative implementations:Full Changelog: ruby/json@v2.7.2...v2.7.3
v2.7.2Compare Source
What's Changed
New Contributors
Full Changelog: ruby/json@v2.7.1...v2.7.2
v2.7.1Compare Source
What's Changed
Improved
Fixed
Misc
New Contributors
Full Changelog: ruby/json@v2.7.0...v2.7.1
v2.7.0Compare Source
What's Changed
Improved
Added
superinincludedhook by @paracycle in #486strictoption to Generator by @casperisfine in #519Fixed
Compatibility changes
Misc
New Contributors
Full Changelog: ruby/json@v2.6.3...v2.7.0
v2.6.3Compare Source
What's Changed
New Contributors
Full Changelog: ruby/json@v2.6.2...v2.6.3
v2.6.2Compare Source
What's Changed
New Contributors
Full Changelog: ruby/json@v2.6.1...v2.6.2
v2.6.1Compare Source
What's Changed
New Contributors
Full Changelog: ruby/json@v2.6.0...v2.6.1
v2.6.0Compare Source
What's Changed
rb_enc_interned_strif available by @casperisfine in #451#position in API doc by @ybiquitous in #461New Contributors
Full Changelog: ruby/json@v2.5.1...v2.6.0
v2.5.1Compare Source
What's Changed
Full Changelog: ruby/json@v2.5.0...v2.5.1
v2.5.0Compare Source
What's Changed
Full Changelog: ruby/json@v2.4.1...v2.5.0
v2.4.1Compare Source
What's Changed
New Contributors
Full Changelog: ruby/json@v2.3.1...v2.4.1
v2.4.0Compare Source
What's Changed
New Contributors
Full Changelog: ruby/json@v2.3.1...v2.4.0
v2.3.1Compare Source
What's Changed
load_fileandload_file!methods, with tests. Fixes issue #386. by @keithrbennett in #387New Contributors
Full Changelog: ruby/json@v2.3.0...v2.3.1
v2.3.0Compare Source
What's Changed
New Contributors
Full Changelog: ruby/json@v2.2.0...v2.3.0
v2.2.0Compare Source
What's Changed
New Contributors
Full Changelog: ruby/json@v2.1.0...v2.2.0
v2.1.0Compare Source
What's Changed
New Contributors
Configuration
📅 Schedule: 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.
This PR was generated by Mend Renovate. View the repository job log.