Skip to content

Releases: hansott/psr7-cookies

Support psr/http-message 2.0 and drop support PHP 7.0, 7.1

08 Jan 11:08
fdd4790
Compare
Choose a tag to compare

⚡️ Remove unneeded files from git export (and run tests on PHP 8.0)

19 Jul 10:21
Compare
Choose a tag to compare

✨ Allow SameSite=none

14 May 20:14
3c41c6f
Compare
Choose a tag to compare

✨ Version 3

20 Apr 10:25
e128fc0
Compare
Choose a tag to compare

See #5 (comment)

Adding a cookie to a PSR-7 message is the only thing that this library should do, the other functionality is removed.

How to upgrade?

  • RequestCookies -> $request->getCookieParams() gives you all request cookies in the format you're used to.
  • Signer -> I'm not sure what I should recommend at this point, I'm not an expert at security. That's part of the reason why I'm dropping the sign cookie functionality.
  • ResponseCookies -> Just use SetCookie->addToResponse

Thanks for understanding.

Hans

Add SameSite cookie attribute

23 Mar 15:19
2c43fc7
Compare
Choose a tag to compare

2.0.1: 🐛 Cast cookie name to string

05 Feb 21:46
Compare
Choose a tag to compare

Breaking change for security improvement

11 Mar 21:48
Compare
Choose a tag to compare

Although it's not an API change, users should be prepared to see exceptions for signed cookies.

Signed cookies are now signed using the name AND value (previously only the value). This makes sure that a signed cookie cannot be renamed without changing the signature.

Bug fixes

10 Jul 15:10
Compare
Choose a tag to compare
  • Make sure cookie names are case insensitive in collections to prevent duplicates (c6b0001)
  • Improved exception messages (cd830d5)
  • Improved test coverage (3bccfee)
  • RequestCookies & ResponseCookies now directly implement Iterator (before through CookieCollection interface), since only 2 downloads, no major/minor change. (c44b4ce)

1.0.0

02 Jul 20:36
Compare
Choose a tag to compare
Unnecessary final modifier in final class