Releases: symfony/mercure
Releases · symfony/mercure
Version 0.6.5
Version 0.6.4
- Allow
symfony/deprecation-contractsv4
Version 0.6.3
- Compatibility with
lcobucci/jwt5.0
Version 0.6.2
- Always set the
Content-TypeHTTP header toapplication/x-www-form-urlencodedwhen sending an update to the hub Symfony\Component\Mercure\Messenger\UpdateHandlernow returns the ID of the published update- Allow passing
nullas$subscribeand$publishparameters inSymfony\Component\Mercure\Jwt\TokenFactoryInterface - Add a new optional parameter in
Symfony\Component\Mercure\Authorization::__construct()to set theSameSitecookie attribute
Version 0.6.1
- Allow passing additional data to the
mercureJWT claim when usingSymfony\Component\Mercure\Token\LcobucciFactory - Add a new
passphraseargument toSymfony\Component\Mercure\Token\LcobucciFactoryallowing the use of encrypted keys - Add a new
lastEventIdoption to themercure()Twig function to set theLast-Event-IDquery parameter - Fix a bug preventing setting cookies for legit subdomains when using
Symfony\Component\Mercure\Authorization::createCookie() - Fix bug in
Symfony\Component\Mercure\Token\LcobucciFactorythat results in a runtime error when using "ecdsa" algorithms, alongside "lcobucci/jwt:^4.0"
Version 0.6.0
- 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 themercureAuthorizationcookie 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
- Full compatibility with PHP 7.1+
Version 0.5.2
- Set a default expiration for the JWT and the cookie when using the
Authorizationclass
Version 0.5.1
- fix
MockHub::__construct()signature
Version 0.5.0
- 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, useJwt\StaticTokenProviderinstead. - deprecated
PublisherInterfaceinterface in favor ofHubInterface. - deprecated
Publisherclass in favor ofHub. - deprecated
Debug\TraceablePublisherclass in favor ofDebug\TraceableHub.