Releases: symfony/mercure
Releases · symfony/mercure
Version 0.6.5
Version 0.6.4
- Allow
symfony/deprecation-contracts
v4
Version 0.6.3
- Compatibility with
lcobucci/jwt
5.0
Version 0.6.2
- Always set the
Content-Type
HTTP header toapplication/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 inSymfony\Component\Mercure\Jwt\TokenFactoryInterface
- Add a new optional parameter in
Symfony\Component\Mercure\Authorization::__construct()
to set theSameSite
cookie attribute
Version 0.6.1
- Allow passing additional data to the
mercure
JWT claim when usingSymfony\Component\Mercure\Token\LcobucciFactory
- Add a new
passphrase
argument toSymfony\Component\Mercure\Token\LcobucciFactory
allowing the use of encrypted keys - Add a new
lastEventId
option to themercure()
Twig function to set theLast-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
- 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 themercureAuthorization
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
- Full compatibility with PHP 7.1+
Version 0.5.2
- Set a default expiration for the JWT and the cookie when using the
Authorization
class
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\StaticTokenProvider
instead. - deprecated
PublisherInterface
interface in favor ofHubInterface
. - deprecated
Publisher
class in favor ofHub
. - deprecated
Debug\TraceablePublisher
class in favor ofDebug\TraceableHub
.