Skip to content

Commit e180765

Browse files
committed
Deprecation warnings and documentation
1 parent 7205651 commit e180765

26 files changed

+377
-88
lines changed

.github/workflows/deploy_docs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: GitHub Pages
3+
4+
on:
5+
push:
6+
branches:
7+
- "main"
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Set up Ruby
17+
uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: ruby
20+
bundler-cache: true
21+
- name: Install yard
22+
run: gem install yard
23+
- name: Build docs
24+
run: yard
25+
- name: Deploy
26+
uses: peaceiris/actions-gh-pages@v4
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
publish_dir: ./doc

CHANGELOG.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
11
# Changelog
22

3-
## Upcoming breaking changes
4-
5-
Notable changes in the upcoming **version 3.0**:
6-
7-
- The indirect dependency to [rbnacl](https://github.com/RubyCrypto/rbnacl) will be removed:
8-
- Support for the nonstandard SHA512256 algorithm will be removed.
9-
- Support for Ed25519 will be moved to a [separate gem](https://github.com/anakinj/jwt-eddsa) for better dependency handling.
10-
11-
- Base64 decoding will no longer fallback on the looser RFC 2045.
12-
13-
- Claim verification has been [split into separate classes](https://github.com/jwt/ruby-jwt/pull/605) and has [a new api](https://github.com/jwt/ruby-jwt/pull/626) and lead to the following deprecations:
14-
- The `::JWT::ClaimsValidator` class will be removed in favor of the functionality provided by `::JWT::Claims`.
15-
- The `::JWT::Claims::verify!` method will be removed in favor of `::JWT::Claims::verify_payload!`.
16-
- The `::JWT::JWA.create` method will be removed. No recommended alternatives.
17-
- The `::JWT::Verify` class will be removed in favor of the functionality provided by `::JWT::Claims`.
18-
- Calling `::JWT::Claims::Numeric.new` with a payload will be removed in favor of `::JWT::Claims::verify_payload!(payload, :numeric)`.
19-
- Calling `::JWT::Claims::Numeric.verify!` with a payload will be removed in favor of `::JWT::Claims::verify_payload!(payload, :numeric)`.
20-
21-
- The internal algorithms were [restructured](https://github.com/jwt/ruby-jwt/pull/607) to support extensions from separate libraries. The changes lead to a few deprecations and new requirements:
22-
- The `sign` and `verify` static methods on all the algorithms (`::JWT::JWA`) will be removed.
23-
- Custom algorithms are expected to include the `JWT::JWA::SigningAlgorithm` module.
24-
253
## [v2.9.4](https://github.com/jwt/ruby-jwt/tree/v2.9.4) (NEXT)
264

275
[Full Changelog](https://github.com/jwt/ruby-jwt/compare/v2.9.3...main)
@@ -33,6 +11,8 @@ Notable changes in the upcoming **version 3.0**:
3311

3412
**Fixes and enhancements:**
3513

14+
- Deprecation warnings for deprecated methods and classes [#629](https://github.com/jwt/ruby-jwt/pull/629) ([@anakinj](https://github.com/anakinj))
15+
- Improved documentation for public apis [#629](https://github.com/jwt/ruby-jwt/pull/629) ([@anakinj](https://github.com/anakinj))
3616
- Your contribution here
3717

3818
## [v2.9.3](https://github.com/jwt/ruby-jwt/tree/v2.9.3) (2024-10-03)

0 commit comments

Comments
 (0)