5.0.0 Beta Release
Pre-release
Pre-release
This is the first release for version 5.0 of ReallySimpleJWT and introduces a number of significant architectural changes. It is a Beta release rather than an Alpha as it should work without any significant issues.
Version 5.0 further simplifies the code design and architecture, this should result in a more flexible library. And it should enable the introduction of Public-Private Keys for signature and token security.
The release will also upgrade the library to support PHP 8.1 and drop support for PHP 7.4. This needs to be done to enable the use of all the new features in PHP 8.0.
Additional Work:
- Upgraded most dependencies.
- Couldn’t upgrade PHP Infection due to a bug in a recent version.
- Added new PHP 8 mixed and union types where necessary.
- Added PHP CS Fixer Checks to CI.
- Fixed missing strict types and unused import statements.
- Improved property names.
- JWT Class now validates itself and ensures the token structure is correct on construction.
- Encode classes now consume the secret on construction for signature generation, rather than the Build class.
- Added EncodeHS256Strong class which enforces strong secrets.
- Deleted Secrets Validator class as this is no longer needed due to the introduction of EncodeHS256Strong class.
- Reconfigured Parse and Parsed classes. Parse class only parses the token, it no longer provides access to token data. This is now taken care of solely by the Parsed class.
- Validate class now consumes Parsed class, not Parse class.
To Do:
- Update documentation.
- Update code comments.
- Update exception codes.