Skip to content

Releases: Firehed/jwt

3.4.0 - Updates for current PHP versions

Choose a tag to compare

@Firehed Firehed released this 19 Jul 23:02
a07020e

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

Choose a tag to compare

@Firehed Firehed released this 05 Apr 22:55
0f49c56

This adds a new utility class, Codec, for improving the overall API around encoding and decoding JWTs.

What's Changed

Full Changelog: 3.2.0...3.3.0

3.2.0 - new constants for headers and claims

Choose a tag to compare

@Firehed Firehed released this 26 Jan 22:56
67d7436

What's Changed

  • Add interfaces for predefined headers and claims by @Firehed in #9

Full Changelog: 3.1.0...3.2.0

3.1.0 - PHP 8.1 support

Choose a tag to compare

@Firehed Firehed released this 02 Dec 19:00
1bf5f23

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

Choose a tag to compare

@Firehed Firehed released this 10 Jul 00:03

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

2.0.2

Choose a tag to compare

@Firehed Firehed released this 22 Mar 18:10
65f689b

This release is almost entirely internal cleanup. It also drops a legacy dependency.

2.0.1

Choose a tag to compare

@Firehed Firehed released this 21 Feb 20:16
283c6fa

This release adds annotations to the Algorithm enum to help out static analysis tools and IDEs.