Skip to content

CompatHelper: bump compat for JSON to 1, (keep existing compat)#15

Merged
s-celles merged 1 commit into
mainfrom
compathelper/new_version/2026-05-17-04-01-07-055-01455744853
May 17, 2026
Merged

CompatHelper: bump compat for JSON to 1, (keep existing compat)#15
s-celles merged 1 commit into
mainfrom
compathelper/new_version/2026-05-17-04-01-07-055-01455744853

Conversation

@github-actions
Copy link
Copy Markdown

This pull request changes the compat entry for the JSON package from 0.21 to 0.21, 1.
This keeps the compat entries for earlier versions.

Note: I have not tested your package with this new compat entry.
It is your responsibility to make sure that your package tests pass before you merge this pull request.

@s-celles s-celles force-pushed the compathelper/new_version/2026-05-17-04-01-07-055-01455744853 branch from 7c6fcdf to efd1c81 Compare May 17, 2026 04:01
s-celles added a commit that referenced this pull request May 17, 2026
The Format Check workflow runs only on pull_request and was added recently,
so the v1->v2 style drift on main had never been validated. Three CompatHelper
PRs (#13, #14, #15) tripped the check, failing on pre-existing formatting
rather than their own (TOML-only) diff. Reformat 44 files (~940 ins / 653 del,
whitespace only) to clear the backlog so CompatHelper PRs can land.
@s-celles s-celles force-pushed the compathelper/new_version/2026-05-17-04-01-07-055-01455744853 branch from efd1c81 to b83bd10 Compare May 17, 2026 04:14
s-celles added a commit that referenced this pull request May 17, 2026
JSON.jl v1 returns JSON.Object{String,Any} from parsefile, which is
AbstractDict but not Dict. The previous `::Dict` signature dispatched
fine on JSON 0.21 (which returned Dict) but failed with MethodError on
v1. Relaxing to AbstractDict keeps the function working on both — the
inner `attrs isa Dict` guard is widened to `isa AbstractDict` for the
same reason.

Required to land #15 (CompatHelper: bump compat for JSON to 1).
Validated locally: 982/982 tests pass on both JSON 0.21 and 1.6.
@s-celles s-celles force-pushed the compathelper/new_version/2026-05-17-04-01-07-055-01455744853 branch from b83bd10 to d17bf46 Compare May 17, 2026 04:42
@codecov
Copy link
Copy Markdown

codecov Bot commented May 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@s-celles s-celles merged commit 0ba3166 into main May 17, 2026
13 checks passed
@s-celles s-celles deleted the compathelper/new_version/2026-05-17-04-01-07-055-01455744853 branch May 17, 2026 04:46
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