Skip to content

chore: remove stale json 3.x pin comment - #3054

Merged
mroderick merged 1 commit into
masterfrom
chore/remove-stale-json-pin-comment
Oct 24, 2026
Merged

mroderick merged 1 commit into
masterfrom
chore/remove-stale-json-pin-comment

Conversation

@mroderick

Copy link
Copy Markdown
Collaborator

Removes the four-line Gemfile comment that explained the json 2.x pin from #2864. Rails 8.1.4 fixed the ActiveSupport::JSON.decode break with json 3.x, and #3051 bumped json to ~> 3.1, so the comment no longer describes the constraint above which it sits.

Changes

  • Delete the stale pin comment above gem 'json', '~> 3.1' in the Gemfile.
  • No behaviour change: the Gemfile and lockfile contents are otherwise untouched.

Review notes

  • Look at first: confirm the removed rationale is genuinely obsolete — the diff is four deleted comment lines.
  • Deliberately not done: no replacement note was added. The constraint carries no pin story now that json 3.x is the baseline.

The comment explained why json was pinned to 2.x (json 3.0 made
JSON.parse keyword-only, breaking ActiveSupport::JSON.decode). Rails
8.1.4 fixed the positional call and #3051 bumped json to ~> 3.1, so
the pin rationale no longer applies.
@mroderick
mroderick marked this pull request as ready for review October 24, 2026 06:06
@mroderick
mroderick merged commit 8db9981 into master Oct 24, 2026
11 checks passed
@mroderick
mroderick deleted the chore/remove-stale-json-pin-comment branch October 24, 2026 06:06
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