Skip to content

Releases: symfony/mercure

Version 0.6.5

08 Apr 12:52
Compare
Choose a tag to compare

What's Changed

  • Fix compatibility of last event ID with the latest version of the spec by @dunglas in #114
  • Explicitly mark nullable parameters as nullable by @xabbuh in #113

New Contributors

Full Changelog: v0.6.4...v0.6.5

Version 0.6.4

03 Dec 22:10
v0.6.4
Compare
Choose a tag to compare
  • Allow symfony/deprecation-contracts v4

Version 0.6.3

06 Mar 22:44
af2953a
Compare
Choose a tag to compare
  • Compatibility with lcobucci/jwt 5.0

Version 0.6.2

23 Nov 22:00
v0.6.2
2bc97aa
Compare
Choose a tag to compare
  • Always set the Content-Type HTTP header to application/x-www-form-urlencoded when sending an update to the hub
  • Symfony\Component\Mercure\Messenger\UpdateHandler now returns the ID of the published update
  • Allow passing null as $subscribe and $publish parameters in Symfony\Component\Mercure\Jwt\TokenFactoryInterface
  • Add a new optional parameter in Symfony\Component\Mercure\Authorization::__construct() to set the SameSite cookie attribute

Version 0.6.1

16 Dec 15:28
v0.6.1
7546092
Compare
Choose a tag to compare
  • Allow passing additional data to the mercure JWT claim when using Symfony\Component\Mercure\Token\LcobucciFactory
  • Add a new passphrase argument to Symfony\Component\Mercure\Token\LcobucciFactory allowing the use of encrypted keys
  • Add a new lastEventId option to the mercure() Twig function to set the Last-Event-ID query parameter
  • Fix a bug preventing setting cookies for legit subdomains when using Symfony\Component\Mercure\Authorization::createCookie()
  • Fix bug in Symfony\Component\Mercure\Token\LcobucciFactory that results in a runtime error when using "ecdsa" algorithms, alongside "lcobucci/jwt:^4.0"

Version 0.6.0

13 Oct 19:48
v0.6.0
d714c50
Compare
Choose a tag to compare
  • Add mercure() Twig function to generate URLs of the hubs and set the authorization cookies
  • Add Authorization::setCookie() to ease setting authorization cookies
  • Add Authorization::clearCookie() to remove the mercureAuthorization cookie from the browser
  • Fix the domain check in Authorization::createCookie() to allow subdomains
  • Compatibility with Symfony 6 and Symfony Contracts 3

Version 0.5.3

04 Apr 13:21
v0.5.3
52b074d
Compare
Choose a tag to compare
  • Full compatibility with PHP 7.1+

Version 0.5.2

03 Apr 09:12
v0.5.2
49693bf
Compare
Choose a tag to compare
  • Set a default expiration for the JWT and the cookie when using the Authorization class

Version 0.5.1

31 Mar 12:51
v0.5.1
bbdd1e1
Compare
Choose a tag to compare
  • fix MockHub::__construct() signature

Version 0.5.0

31 Mar 12:50
v0.5.0
a9ffed8
Compare
Choose a tag to compare
  • added Symfony\Component\Mercure\Jwt\TokenProviderInterface
  • added Symfony\Component\Mercure\Jwt\TokenFactoryInterface
  • added Symfony\Component\Mercure\Jwt\StaticTokenProvider
  • added Symfony\Component\Mercure\Jwt\CallabkeTokenProvider
  • added Symfony\Component\Mercure\Jwt\LcobucciTokenFactory
  • added Symfony\Component\Mercure\Jwt\FactoryTokenProvider
  • added Symfony\Component\Mercure\Messenger\UpdateHandler
  • added Symfony\Component\Mercure\Hub
  • added Symfony\Component\Mercure\HubInterface
  • added Symfony\Component\Mercure\HubRegistry
  • added Symfony\Component\Mercure\Discovery
  • added Symfony\Component\Mercure\Authorization
  • deprecated Jwt\StaticJwtProvider, use Jwt\StaticTokenProvider instead.
  • deprecated PublisherInterface interface in favor of HubInterface.
  • deprecated Publisher class in favor of Hub.
  • deprecated Debug\TraceablePublisher class in favor of Debug\TraceableHub.