Skip to content

Releases: RobDWaller/psr-jwt

3.0.0 Alpha

12 Jul 10:54
Compare
Choose a tag to compare
3.0.0 Alpha Pre-release
Pre-release

The alpha release begins a significant restructure and implementation of the package which should improve quality and reliability. For instance, the HTTP response codes and messages have been fixed so they better align with the correct error responses. There have also been improvements made to the tests and static analysis.

In terms of the code restructure, the Handler namespace has been rewritten and a new Config class has been added. Also, the Auth namespace has been rewritten, and the Parser namespace has been replaced with a simpler Location namespace. Despite these significant changes the core interface and implementation should remain the same.

Additional Work

  • Upgrade the package to support PHP 8 and above.
  • Upgrade the package to work with ReallySimpleJWT 5.0
  • Upgraded PHP Stan to level 8.
  • Added PHP CS Fixer to CI pipeline.
  • Removed unnecessary use statements.
  • Replaced Mockery with PHP Unit mocks.
  • Removed doc blocks which have been replaced by types.
  • Rewrote Auth namespace.
  • Replaced Auth value object with Status value object.
  • Edited validation namespace and class.
  • Added validation interface so other validators can be used.
  • Created additional factory classes to make instantiation easier.
  • No longer imposing strict coverage statements due to maintenance complexity.
  • Removed unnecessary @uses statements from tests.
  • Rewrote Request helper class.

To Do

  • Tidy up file structure.
  • Raise code coverage to 100%.
  • Remove unnecessary @uses statements from tests.
  • Run integration tests.
  • Remove code duplication from handlers.
  • Update documentation, comments and README.

2.0.1 Release

11 Jun 13:46
c32c7ee
Compare
Choose a tag to compare

This release applies a number of minor fixes to configuration and documentation.

  • StyleCI checks upgraded to PSR-12.
  • PHP Infection Composer configuration fixed.
  • Composer dependency installation fixed in CI.
  • README: typo fixed; PHP support badge fixed; added downloads badge.

Thanks to @szepeviktor for bug fixes!

2.0.0 Release

03 May 21:59
95d982f
Compare
Choose a tag to compare

This release does two simple things, upgrades the package to run on supported versions of PHP (7.4 and 8.0) and upgrades its integration with ReallySimpleJWT to version 4.0. It makes no major implementation changes.

Additional Work:

  • Upgraded dependent libraries to support PHP 7.4
  • Applied fixes to work with ReallySimpleJWT version 4.0.
  • Made use of the Tokens factory class available in ReallySimpleJWT version 4.0.
  • Applied type fixes to Tests and resolved other issues highlighted by PHPStan.

To Do:

  • Upgrade to PHP 8.1
  • Upgrade to ReallySimpleJWT 5.0

1.0.1 GitHub Actions

19 Oct 09:44
a1b4fcd
Compare
Choose a tag to compare

This minor release moves the library from Travis CI to GitHub Actions for the CI Pipeline checks.

Also adds some minor README documentation improvements.

Version 1.0 Release

10 Mar 11:57
09ca492
Compare
Choose a tag to compare

This release makes no significant functional changes since version 0.3, it mainly exists as a marker of stability.

This release drops support for PHP 7.1 and sets minimal support at PHP 7.2 and above. It upgrades its integration with ReallySimpleJWT to version 3.0.

The main piece of work has been the creation of an integration library to help with testing to ensure the quality of the library.

Other minor changes include:

  • Updates to dependencies.
  • Updates to unit tests.
  • Improvements to documentation.

Version 1.0 Release Candidate

03 Mar 07:27
Compare
Choose a tag to compare
Pre-release

Release Candidate for version 1.0.0.

  • Updates PHP support to 7.2 and above.
  • Integrates with ReallySimpleJWT version 3.0.0
  • Updates dependencies.
  • Updates unit tests.
  • Improves documentation.
  • Integration testing tool complete.

Request Helper and Authorisation

13 Jan 07:06
5f6f6c7
Compare
Choose a tag to compare

This is a 0.* breaking change release which prepares the way for the 1.0 release which should ensure project stability.

This release introduces two significant changes:

  • A helper class is added to make it possible to access and read a JSON web token stored in a request without the need to go through the authorisation process.
  • All references to the term authentication are replaced with authorisation as this is more accurate, and better reflect what this library does.

Other changes include improvements to the test suite and documentation.

Request Helper Extension and Authorise Update

04 Dec 07:34
Compare
Choose a tag to compare

This updated Release Candidate for 0.3.0 adds some further functionality which became obvious when running integration tests.

Added two methods to the new Request Helper class getTokenHeader() and getTokenPayload() which make it easier to work with tokens stored in the request object.

Also renamed the core Authenticate class to Authorise as this is far more accurate in regards to the domain. Apologies for the English spelling. ;)

Added some comments, extra tests and general tidy up.

Request Helper Release Candidate

25 Nov 06:56
Compare
Choose a tag to compare
Pre-release

Release candidate for version 0.3.0.

Adds a new request parsing helper class so tokens can be easily retrieved outside of the token authentication process.

This makes some significant amends to the Parser namespace, along with some tidy up to other classes so they make a little more sense.

ToDo:

  • Complete testing in a production environment.
  • See if any improvements can be made to the unit tests.
  • Add adequate comments to new code.

Bug and Style Fixes

12 Nov 07:20
62743bb
Compare
Choose a tag to compare

@szepeviktor noticed a bug raised by PHP Stan which was previously missed.

Edits were made to declare(strict_types=1); in the Parse and Validate classes.

Further style and implementation improvements were made to the Travis and Composer config files.