Releases: Firehed/jwt
3.4.0 - Updates for current PHP versions
This release drops support for EOL'ed versions of PHP, and makes some internal upgrades supported by the newer versions.
Client code should have no BC breaks, as long as your Composer install process is checking the PHP version (which is the default behavior). However, clients are encouraged to move to the Algorithm
native enumeration values at their earliest convenience - the existing constants will continue to work until at least 4.0.
What's Changed
- Drop support for EOL PHP versions by @Firehed in #19
- Use more native types where possible by @Firehed in #20
- Update to more current PHPUnit by @Firehed in #21
- Use SensitiveParameter attribute on JWT parameters by @Firehed in #18
- Convert Algorithm to native enum by @Firehed in #22
Full Changelog: 3.3.0...3.4.0
3.3.0 - Add codec wrapper for improved API
3.2.0 - new constants for headers and claims
What's Changed
Full Changelog: 3.1.0...3.2.0
3.1.0 - PHP 8.1 support
This release adds support for PHP 8.1, by addressing some new return types on internal interfaces. This does not adopt any 8.1 features and remains compatible with older versions.
What's Changed
Full Changelog: 3.0.0...3.1.0
3.0.0
Version 3 drops support for older PHP versions, and lays the groundwork for upcoming ones.
Upgrading
The only necessary change is to replace static method calls to Algorithm
to constant names; e.g. Algorithm::HMAC_SHA_256()
becomes Algorithm::HMAC_SHA_256
.
See UPGRADING.md
BC Breaks
- Algorithm is no longer a fake-enum. This should allow an easier upgrade path to supporting native enums in PHP 8.1
- PHP < 7.4 is no longer supported
Other Changes
- A lot of type information has been cleaned up
- Tests and other non-core files should no longer ship with installed version