Skip to content

Commit

Permalink
Release 2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Dec 3, 2024
1 parent 20b501a commit e1f6456
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changes

### 2024-12-03 (2.9.0)

* Fix C implementation of `script_safe` escaping to not confuse some other 3 wide characters with `\u2028` and `\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::GeneratorError` now has a `#invalid_object` attribute, making it easier to understand why an object tree cannot be serialized.
* Numerous improvements to the JRuby extension.

### 2024-11-14 (2.8.2)

* `JSON.load_file` explictly read the file as UTF-8.
Expand Down
2 changes: 1 addition & 1 deletion lib/json/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module JSON
VERSION = '2.8.2'
VERSION = '2.9.0'
end

0 comments on commit e1f6456

Please sign in to comment.