mercure

The Mercure Component allows to easily push updates to web browsers and other HTTP clients using the Mercure protocol.

MIT License

Downloads
8.8M
Stars
407
Committers
21

Bot releases are hidden (Show)

mercure - Version 0.6.5 Latest Release

Published by dunglas 6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/symfony/mercure/compare/v0.6.4...v0.6.5

mercure - Version 0.6.4

Published by dunglas 11 months ago

  • Allow symfony/deprecation-contracts v4
mercure - Version 0.6.3

Published by dunglas over 1 year ago

  • Compatibility with lcobucci/jwt 5.0
mercure - Version 0.6.2

Published by dunglas almost 2 years ago

  • 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
mercure - Version 0.6.1

Published by dunglas almost 3 years ago

  • 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"
mercure - Version 0.6.0

Published by dunglas about 3 years ago

  • 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
mercure - Version 0.5.3

Published by dunglas over 3 years ago

  • Full compatibility with PHP 7.1+
mercure - Version 0.5.2

Published by dunglas over 3 years ago

  • Set a default expiration for the JWT and the cookie when using the Authorization class
mercure - Version 0.5.1

Published by dunglas over 3 years ago

  • fix MockHub::__construct() signature
mercure - Version 0.5.0

Published by dunglas over 3 years ago

  • 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.
mercure - Version 0.4.1

Published by dunglas almost 4 years ago

  • Compatibility with PHP 8
mercure - Version 0.4.0

Published by dunglas almost 4 years ago

  • Compatibility with Mercure 0.10
mercure - Version 0.3.0

Published by dunglas almost 5 years ago

  • Compatibility with Symfony 5
  • Add TraceablePublisher to collect debug information
  • Add PublisherInterface
  • Fix an error when using the retry parameter
mercure - Version 0.2.0

Published by dunglas over 5 years ago

  • Use the Symfony HttpClient component
mercure - Version 0.1.0

Published by dunglas over 5 years ago

Initial release