Skip to content

Fix compatibility with json gem 2.11.0#98

Merged
nglx merged 1 commit intobreamware:masterfrom
Earlopain:json-compat
Jun 11, 2025
Merged

Fix compatibility with json gem 2.11.0#98
nglx merged 1 commit intobreamware:masterfrom
Earlopain:json-compat

Conversation

@Earlopain
Copy link
Contributor

JSON.unparse has been nodoc/deprecated for 16 years and now it was removed in the latest release.

JSON.generate has been around since forever, so it can just be used in all cases (especially considering it's Ruby 3.2 only)

Ref: ruby/json#775. It might be added back, but it will at least be deprecated.

Apparently, `JSON.unparse` has been nodoc/deprecated for 16 years and
now it was removed in the latest release.

JSON.generate has been around since forever, so it can just be used in all cases (especially considering it's Ruby 3.2# only)
@Earlopain
Copy link
Contributor Author

json 2.11.1 was released already with these old aliases added back so for now it just emits a deprecation warning instead of breaking

@nglx nglx merged commit 3ae5230 into breamware:master Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants