Skip to content

Support json 3 - #16

Merged
hogelog merged 3 commits into
mainfrom
support-json-3
Oct 24, 2026
Merged

hogelog merged 3 commits into
mainfrom
support-json-3

Conversation

@hogelog

@hogelog hogelog commented Oct 24, 2026

Copy link
Copy Markdown
Member

Summary

json 3.x で動くようにする。

  • JSON.parse から create_additions: false を外す
    • json 3.x はこのキーワードを受け付けず ArgumentError になる。JSRuntimeHandle#evaluate がそれをリトライし続けるため、JS の評価がハングする
    • JSON.parse は既定で additions を作らないので、json 2.x での挙動は変わらない
  • テストの JSON.generate / JSON.parse から quirks_mode: true を外す
    • json 3.x では ArgumentError になる。json 2.x はトップレベルのスカラー値をオプション無しで扱える
  • gemspec に json >= 2.0 の依存を書く
    • 対応範囲は json 2.x と 3.x。CI は最新の json (現在 3.1.0) で検証する

🤖 Generated with Claude Code

hogelog and others added 3 commits October 24, 2026 16:06
json 3.x no longer accepts the quirks_mode keyword, and json 2.x already
handles top-level scalars without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
json 3.x removed the create_additions keyword, and the resulting
ArgumentError was retried forever by JSRuntimeHandle#evaluate, hanging CI.
JSON.parse never creates additions by default, so the option is redundant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The runtime requires json to decode responses from the Node.js process.
It works with json 2.x and 3.x.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hogelog
hogelog merged commit 6af7cbb into main Oct 24, 2026
1 of 17 checks passed
@hogelog
hogelog deleted the support-json-3 branch October 24, 2026 08:13
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.

1 participant