Skip to content

4.0.0

Choose a tag to compare

@Spomky Spomky released this 01 Jul 15:37
· 336 commits to 4.3.x since this release
4a382fc

What's Changed

This is a major release with breaking changes. Please read the Migration Guide from v3.x to v4.0 before upgrading.

Breaking Changes

  • PHP 8.2+ required
  • PSR-20 Clock is now mandatory: ExpirationTimeChecker, IssuedAtChecker, and NotBeforeChecker now require a ClockInterface as the first constructor argument (previously optional and last). The internal InternalClock class has been removed.
  • Simplified JWE constructors: JWEBuilder and JWEDecrypter now accept a single AlgorithmManager instead of separate key encryption, content encryption, and compression managers. The same applies to JWEBuilderFactory and JWEDecrypterFactory.
  • Compression support removed: All compression classes (CompressionMethodManager, Deflate, etc.) have been removed following RFC 8725 Section 3.6.
  • Dependency changes: fgrosse/phpasn1 replaced by spomky-labs/pki-framework, paragonie/constant_time_encoding removed, psr/http-client and psr/http-factory replaced by symfony/http-client-contracts.
  • Package consolidation: Individual packages (web-token/jwt-core, web-token/jwt-signature, etc.) are deprecated. Use web-token/jwt-library or web-token/jwt-experimental instead.

New Features

  • ECDH-SS (Static-Static) key agreement algorithms: ECDH-SS, ECDH-SS+A128KW, ECDH-SS+A192KW, ECDH-SS+A256KW
  • New generic checkers: CallableChecker and IsEqualChecker
  • Code modernization: readonly classes, constructor promotion, #[Override] attributes

Pull Requests