Changelog for
ruby3.4-rubygem-json_pure-2.7.6-1.2.x86_64.rpm :
* Mon Nov 04 2024 Dan Čermák
- 2.7.6:
* Fix a regression in JSON.generate when dealing with Hash keys that are string subclasses, call `to_json` on them.
*
*Full Changelog
*
*: https://github.com/ruby/json/compare/v2.7.5...v2.7.6 2.7.5: [#]# What\'s Changed
* 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.
*
*Full Changelog
*
*: https://github.com/ruby/json/compare/v2.7.4...v2.7.5 2.7.4: [#]# What\'s Changed
* Workaround a bug in 3.4.8 and older https://github.com/rubygems/rubygems/pull/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.
*
*Full Changelog
*
*: https://github.com/ruby/json/compare/v2.7.3...v2.7.4 2.7.3: [#]# What\'s Changed
* 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 unparseable 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. [#]# `JSON.dump` Performance `JSON.dump` is now much faster, and on par or faster than alternative implementations: ``` == Encoding citm_catalog.json (500298 bytes) ruby 3.4.0preview2 (2024-10-07 master 32c733f57b) +YJIT +PRISM [arm64-darwin23] Warming up -------------------------------------- json (2.7.3) 123.000 i/100ms oj 124.000 i/100ms Calculating ------------------------------------- json (2.7.3) 1.312k (± 1.8%) i/s (761.91 μs/i) - 6.642k in 5.062192s oj 1.278k (± 2.0%) i/s (782.35 μs/i) - 6.448k in 5.046587s Comparison: json (2.7.2): 884.0 i/s json (2.7.3): 1312.5 i/s - 1.48x faster oj: 1278.2 i/s - 1.45x faster ``` ``` == Encoding twitter.json (466906 bytes) ruby 3.4.0preview2 (2024-10-07 master 32c733f57b) +YJIT +PRISM [arm64-darwin23] Warming up -------------------------------------- json (2.7.3) 213.000 i/100ms oj 222.000 i/100ms Calculating ------------------------------------- json (2.7.3) 2.140k (± 2.8%) i/s (467.19 μs/i) - 10.863k in 5.079099s oj 2.303k (± 3.2%) i/s (434.27 μs/i) - 11.544k in 5.018239s Comparison: json (2.7.2): 1250.5 i/s oj: 2302.7 i/s - 1.84x faster json (2.7.3): 2140.5 i/s - 1.71x faster ```
*
*Full Changelog
*
*: https://github.com/ruby/json/compare/v2.7.2...v2.7.3 2.7.3rc1:
* Numerous performance optimizations in `JSON.generate` and `JSON.dump`.
* Limit the size of ParserError exception messages, only include up to 32 bytes of the unparseable 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.
* Fri Jun 21 2024 Dan Čermák - 2.7.2: [#]# What\'s Changed
* Use rb_sym2str instead of SYM2ID by AATTjhawthorn in https://github.com/flori/json/pull/561
* Fix memory leak when exception is raised during JSON generation by AATTpeterzhu2118 in https://github.com/flori/json/pull/574
* Remove references to \"19\" methods in JRuby by AATTheadius in https://github.com/flori/json/pull/576
* Make OpenStruct support as optional by AATThsbt in https://github.com/flori/json/pull/565
* Autoload JSON::GenericObject to avoid require ostruct warning in Ruby 3.4 by AATTtompng in https://github.com/flori/json/pull/577
* Warn to install ostruct if json couldn\'t load it by AATThsbt in https://github.com/flori/json/pull/578 [#]# New Contributors
* AATTmperham made their first contribution in https://github.com/flori/json/pull/571
* AATTpeterzhu2118 made their first contribution in https://github.com/flori/json/pull/574
*
*Full Changelog
*
*: https://github.com/flori/json/compare/v2.7.1...v2.7.2
* Mon Jan 29 2024 Dan Čermák - 2.7.1: [#]# What\'s Changed [#]## Improved
* [DOC] RDoc for additions by AATTBurdetteLamar in https://github.com/flori/json/pull/557 [#]## Fixed
* JSON.dump: handle unenclosed hashes regression by AATTcasperisfine in https://github.com/flori/json/pull/554
* Overload kwargs in JSON.dump by AATTk0kubun in https://github.com/flori/json/pull/556
* Fix JSON.dump overload combination by AATTtompng in https://github.com/flori/json/pull/558 [#]## Misc
* Remove needless encodings by AATThsbt in https://github.com/flori/json/pull/559
* Unify versions by AATThsbt in https://github.com/flori/json/pull/560 [#]# New Contributors
* AATTk0kubun made their first contribution in https://github.com/flori/json/pull/556
* AATTtompng made their first contribution in https://github.com/flori/json/pull/558
*
*Full Changelog
*
*: https://github.com/flori/json/compare/v2.7.0...v2.7.1 2.7.0: [#]# What\'s Changed [#]## Improved
* Perf. improvements to Hash#to_json in pure implementation generator. by AATTvipulnsward in https://github.com/flori/json/pull/203
* Remove unnecessary initialization of create_id in JSON.parse() by AATTWatson1978 in https://github.com/flori/json/pull/454 [#]## Added
* Call `super` in `included` hook by AATTparacycle in https://github.com/flori/json/pull/486
* Rename escape_slash in script_safe and also escape E+2028 and E+2029 by AATTcasperisfine in https://github.com/flori/json/pull/525
* Add a `strict` option to Generator by AATTcasperisfine in https://github.com/flori/json/pull/519 [#]## Fixed
* Fix homepage url in gemspec by AATTunasuke in https://github.com/flori/json/pull/508
* Fix dead link to Ragel in README by AATTokuramasafumi in https://github.com/flori/json/pull/509
* [DOC] Fix yet another dead link to Ragel by AATTnobu in https://github.com/flori/json/pull/510
* Fix \"unexpected token\" offset for Infinity by AATTjhawthorn in https://github.com/flori/json/pull/507
* Use ruby_xfree to free buffers by AATTcasperisfine in https://github.com/flori/json/pull/518 [#]## Compatibility changes
* JRuby requires a minimum of Java 8 by AATTheadius in https://github.com/flori/json/pull/516
* Rename JSON::ParseError to JSON:ParserError by AATTdalizard in https://github.com/flori/json/pull/530
* Removed code for Ruby 1.8 by AATThsbt in https://github.com/flori/json/pull/540
* alias_method is private on Ruby 2.3 and 2.4 by AATThsbt in https://github.com/flori/json/pull/541
* remove_method of Module is private at Ruby 2.3 and 2.4 by AATThsbt in https://github.com/flori/json/pull/544
* [jruby] avoid using deprecated BigDecimal.new by AATTkares in https://github.com/flori/json/pull/546
* Always indent even if empty by AATTheadius in https://github.com/flori/json/pull/517 [#]## Misc
* Update CI matrix by AATThsbt in https://github.com/flori/json/pull/521
* Add missing changelog entries for 1.8.5 and 1.8.6 by AATTr7kamura in https://github.com/flori/json/pull/520
* Actions workflow - Add new OS\'s, Ruby 3.1, Ruby master, Windows by AATTMSP-Greg in https://github.com/flori/json/pull/491
* Skip unsupported test on JRuby by AATTnobu in https://github.com/flori/json/pull/532
* Skip BigDecimal tests when it\'s missing to load by AATThsbt in https://github.com/flori/json/pull/533
* Simplify by AATTnobu in https://github.com/flori/json/pull/531
* Load extension (\'json/ext\') consistently in test_ext by AATTaeroastro in https://github.com/flori/json/pull/536
* Use test-unit-ruby-core gem by AATThsbt in https://github.com/flori/json/pull/539
* [CI] Add Windows mswin job by AATTMSP-Greg in https://github.com/flori/json/pull/545
* Exclude truffleruby-head from Actions by AATThsbt in https://github.com/flori/json/pull/551
* tests/ractor_test.rb: make assert_separately available by AATTlucaskanashiro in https://github.com/flori/json/pull/506
* Added changes for 2.7.0 and restore entries to 2.6.3 and 2.6.2 by AATThsbt in https://github.com/flori/json/pull/552 [#]# New Contributors
* AATTunasuke made their first contribution in https://github.com/flori/json/pull/508
* AATTokuramasafumi made their first contribution in https://github.com/flori/json/pull/509
* AATTr7kamura made their first contribution in https://github.com/flori/json/pull/520
* AATTMSP-Greg made their first contribution in https://github.com/flori/json/pull/491
* AATTparacycle made their first contribution in https://github.com/flori/json/pull/486
* AATTdalizard made their first contribution in https://github.com/flori/json/pull/530
* AATTaeroastro made their first contribution in https://github.com/flori/json/pull/536
* AATTjhawthorn made their first contribution in https://github.com/flori/json/pull/507
* AATTlucaskanashiro made their first contribution in https://github.com/flori/json/pull/506
* AATTWatson1978 made their first contribution in https://github.com/flori/json/pull/454
*
*Full Changelog
*
*: https://github.com/flori/json/compare/v2.6.3...v2.7.0
* Wed Dec 07 2022 Stephan Kulow updated to version 2.6.3 see installed CHANGES.md
* Thu Aug 04 2022 Stephan Kulow updated to version 2.6.2 see installed CHANGES.md
* Tue Jan 25 2022 Stephan Kulow updated to version 2.6.1 see installed CHANGES.md [#]## 2021-10-24 (2.6.1)
* Restore version.rb with 2.6.1 [#]## 2021-10-14 (2.6.0)
* 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
* Wed Jan 20 2021 Stephan Kulow updated to version 2.5.1 see installed CHANGES.md [#]# 2020-12-22 (2.5.1)
* Restore the compatibility for constants of JSON class. [#]# 2020-12-22 (2.5.0)
* Ready to Ractor-safe at Ruby 3.0. [#]# 2020-12-17 (2.4.1)
* Restore version.rb with 2.4.1 [#]# 2020-12-15 (2.4.0)
* Implement a freeze: parser option #447
* Fix an issue with generate_pretty and empty objects in the Ruby and Java implementations #449
* Fix JSON.load_file doc #448
* Fix pure parser with unclosed arrays / objects #425
* bundle the LICENSE file in the gem #444
* Add an option to escape forward slash character #405
* RDoc for JSON #439 #446 #442 #434 #433 #430
* Fri Sep 25 2020 Stephan Kulow updated to version 2.3.1 see installed CHANGES.md [#]# 2020-06-30 (2.3.1)
* 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. [#]# 2019-12-11 (2.3.0)
* 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
* Thu May 07 2020 Stephan Kulow - updated to version 2.3.0 see installed CHANGES.md
* Sat Mar 02 2019 Stephan Kulow - updated to version 2.2.0 see installed CHANGES.md [#]# 2019-02-21 (2.2.0)
* Adds support for 2.6 BigDecimal and ruby standard library Set datetype.