Skip to content

Commit e1f6456

Browse files
committed
Release 2.9.0
1 parent 20b501a commit e1f6456

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changes
22

3+
### 2024-12-03 (2.9.0)
4+
5+
* Fix C implementation of `script_safe` escaping to not confuse some other 3 wide characters with `\u2028` and `\u2029`.
6+
e.g. `JSON.generate(["倩", "瀨"], script_safe: true)` would generate the wrong JSON.
7+
* `JSON.dump(object, some_io)` now write into the IO in chunks while previously it would buffer the entire JSON before writing.
8+
* `JSON::GeneratorError` now has a `#invalid_object` attribute, making it easier to understand why an object tree cannot be serialized.
9+
* Numerous improvements to the JRuby extension.
10+
311
### 2024-11-14 (2.8.2)
412

513
* `JSON.load_file` explictly read the file as UTF-8.

lib/json/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module JSON
4-
VERSION = '2.8.2'
4+
VERSION = '2.9.0'
55
end

0 commit comments

Comments
 (0)