Skip to content

Support JWTs 1.0 (keep 0.3 compatibility) - #29

Merged
tanmaykm merged 1 commit into
tanmaykm:masterfrom
krynju:jwts-1.0-compat
Jul 1, 2026
Merged

Support JWTs 1.0 (keep 0.3 compatibility)#29
tanmaykm merged 1 commit into
tanmaykm:masterfrom
krynju:jwts-1.0-compat

Conversation

@krynju

@krynju krynju commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

What

Adds support for JWTs 1.0 while keeping backward compatibility with 0.3.

Why

JWTs 1.0 intentionally exports no names — the public API is declared with public instead of export. As a result, using JWTs no longer brings JWKSet, JWT, JWK, issigned, claims, refresh!, validate! into scope, and OpenIDConnect fails to load against JWTs 1.0.

Change

  • Replace using JWTs with a selective using JWTs: JWKSet, JWT, JWK, issigned, claims, refresh!, validate!. A selective import resolves the bindings directly regardless of export/public status, so it works unchanged on both 0.3 and 1.0.
  • All names used here exist with compatible signatures in both versions — no logic changes required.
  • Widen [compat] JWTs to "0.1, 0.2, 0.3, 1".
  • Bump version 0.2.00.2.1.

Testing

Full test suite passes against both JWTs 0.3.2 and 1.0.0 (34/34).

🤖 Generated with Claude Code

JWTs 1.0 intentionally exports no names (they are declared `public`
instead of exported), so the previous `using JWTs` no longer brings
`JWKSet`, `JWT`, `JWK`, `issigned`, `claims`, `refresh!`, `validate!`
into scope. Switch to a selective `using JWTs: ...` import, which
resolves the bindings directly and works unchanged on both 0.3 and 1.0.

All of the names used here exist with compatible signatures in both
versions, so no logic changes are required. Widen the JWTs compat bound
to include 1 and bump the patch version to 0.2.1.

Test suite passes against both JWTs 0.3.2 and 1.0.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@krynju
krynju marked this pull request as ready for review July 1, 2026 08:59
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.86%. Comparing base (017806e) to head (d9fe2ba).
⚠️ Report is 7 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
- Coverage   50.45%   45.86%   -4.60%     
==========================================
  Files           1        1              
  Lines         109      133      +24     
==========================================
+ Hits           55       61       +6     
- Misses         54       72      +18     

☔ 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.

@tanmaykm
tanmaykm merged commit cad7788 into tanmaykm:master Jul 1, 2026
5 checks passed
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.

3 participants