Skip to content

Releases: psr7-sessions/storageless

8.0.0

01 Feb 12:17
8.0.0
0129644
Compare
Choose a tag to compare

Release 8.0.0

This is a major release and breaks backwards compatibility.

Specifically, following changes are relevant:

[BC] REMOVED: Constant PSR7Sessions\Storageless\Http\SessionMiddleware::ISSUED_AT_CLAIM was removed
[BC] REMOVED: Method PSR7Sessions\Storageless\Http\SessionMiddleware::fromAsymmetricKeyDefaults() was removed
[BC] CHANGED: The parameter $signer of PSR7Sessions\Storageless\Http\SessionMiddleware#__construct() changed from Lcobucci\JWT\Signer to a non-contravariant Lcobucci\JWT\Configuration
[BC] CHANGED: The parameter $signatureKey of PSR7Sessions\Storageless\Http\SessionMiddleware#__construct() changed from string to a non-contravariant Dflydev\FigCookies\SetCookie
[BC] CHANGED: The parameter $verificationKey of PSR7Sessions\Storageless\Http\SessionMiddleware#__construct() changed from string to a non-contravariant int
[BC] CHANGED: The parameter $defaultCookie of PSR7Sessions\Storageless\Http\SessionMiddleware#__construct() changed from Dflydev\FigCookies\SetCookie to a non-contravariant Lcobucci\Clock\Clock
[BC] CHANGED: The parameter $tokenParser of PSR7Sessions\Storageless\Http\SessionMiddleware#__construct() changed from Lcobucci\JWT\Parser to a non-contravariant int
[BC] CHANGED: The parameter $symmetricKey of PSR7Sessions\Storageless\Http\SessionMiddleware::fromSymmetricKeyDefaults() changed from string to a non-contravariant Lcobucci\JWT\Signer\Key

8.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 2

dependencies

BC break,dependencies,enhancement

7.3.0

01 Feb 10:42
7.3.0
23a95d0
Compare
Choose a tag to compare

Release 7.3.0

7.3.0

  • Total issues resolved: 0
  • Total pull requests resolved: 2
  • Total contributors: 2

bug,enhancement

documentation,enhancement

7.2.0

29 Sep 22:28
7.2.0
0b6a5f5
Compare
Choose a tag to compare

Release 7.2.0

7.2.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

dependencies,enhancement

7.1.0

01 Aug 23:17
7.1.0
9ff0c88
Compare
Choose a tag to compare

7.0.0

10 Apr 10:45
7.0.0
c22a5d2
Compare
Choose a tag to compare

Build Status

This release renames the default session cookie to add a __Secure- prefix, which, in compliant user agents, means that the cookie will be rejected when used in insecure contexts (such as HTTPS to HTTP downgrade).

This change is a major BC break, since upgrading the library will now lead to active sessions being dropped when deploying an application with this new version.

References:

Total issues resolved: 3

6.0.0

02 Mar 22:51
6.0.0
168db6b
Compare
Choose a tag to compare

Build Status

This release migrates the library from zendframework/* components
to mezzio/* and laminas/* components.

Since the inherited symbols changed namespace completely, this had
to be done in a new major release.

Total issues resolved: 24

5.1.0

11 Aug 00:19
5.1.0
Compare
Choose a tag to compare

5.0.0

06 Aug 08:17
5.0.0
7959dca
Compare
Choose a tag to compare

Build Status

This release improves the security of the library by preventing most session-related
CSRF attacks on unsafe HTTP methods (such as POST, PUT, etc.) by introducing a
SameSite=Lax cookie policy when using the PSR7Sessions\Storageless\Http\SessionMiddleware
defaults.

The addition of SameSite=Lax counts as a BC break, since cross-domain POST requests will no
longer transmit the session cookie: if you rely on that, be sure to customise the
SessionMiddleware constructor parameters with your own cookie blueprint.

In addition to these changes, following has been introduced:

  • The minimum supported PHP version is now 7.2.0
  • Static analysis was added to the build pipeline
  • Test suite and mutation test suite were upgraded

4.0.0

27 Jan 16:06
4.0.0
fccbe77
Compare
Choose a tag to compare

Build Status

This release aligns the PSR7Sessions\Storageless\Http\SessionMiddleware to
the PSR-15 php-fig/http-server-middleware
specification.

This means that the signature of PSR7Sessions\Storageless\Http\SessionMiddleware
changed, and therefore you need to look for usages of this class and verify
if the new signature is compatible with your API

Specifically, PSR7Sessions\Storageless\Http\SessionMiddleware#__invoke()
was removed.

3.0.1

08 May 09:50
3.0.1
Compare
Choose a tag to compare

This release fixes an issue that prevented effective lazy-loading of the
session object. Specifically, crypto functionality was being started at
each request dispatch, while it is not needed every time.

Total issues resolved: 2