Skip to content

Support Parsers 3 - #93

Merged
quinnj merged 2 commits into
mainfrom
jq/parsers-3-compat
Sep 4, 2026
Merged

quinnj merged 2 commits into
mainfrom
jq/parsers-3-compat

Conversation

@quinnj

@quinnj quinnj commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Allow Parsers 2 and Parsers 3.
  • Keep the existing xparse extension only when Parsers provides that API.
  • Run xparse-specific tests only with Parsers 2.
  • Test both supported Parsers majors explicitly in CI.

Why

Parsers 3 removed the old xparse custom-string API. InlineStrings does not need a replacement parser method. The package that reads the input owns string storage and conversion.

The existing Parsers 2 behavior stays unchanged. With Parsers 3, the extension loads as a no-op.

Validation

  • Julia 1.10.11 with Parsers 2.8.7: 5,181 / 5,181 checks passed.
  • Julia 1.10.11 with Parsers 3.0.0: 5,102 / 5,102 checks passed.
  • Julia 1.6.7 with Parsers 2.8.7 passed.
  • Julia 1.9.4 default resolution selected Parsers 2.8.7 and passed.
  • Julia 1.12.7 with Parsers 3.0.0 passed.
  • Arrow.jl interop passed in both Parsers-major lanes.

Co-authored by Codex

Keep the Parsers 2 xparse extension when that API exists. Allow Parsers 3 to load the extension as a no-op and skip only the Parsers 2-specific tests.
@codecov

codecov Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.40%. Comparing base (15cd44b) to head (a520e7f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #93      +/-   ##
==========================================
+ Coverage   93.23%   93.40%   +0.16%     
==========================================
  Files           3        3              
  Lines         636      622      -14     
==========================================
- Hits          593      581      -12     
+ Misses         43       41       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add explicit Parsers 2 and Parsers 3 test lanes on Julia 1.10. Verify that the package extension loads on both native extensions and the Julia 1.6 fallback path.
@quinnj
quinnj merged commit 748857b into main Sep 4, 2026
13 checks passed
@quinnj
quinnj deleted the jq/parsers-3-compat branch September 4, 2026 05:27
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