Skip to content

Version 0.9.0

Latest

Choose a tag to compare

@dunglas dunglas released this 07 Oct 21:20
Immutable release. Only release title and notes can be modified.
v0.9.0
d0dca3c
  • Default to the Mercure protocol 1.0 now that Mercure hub 1.0 is stable: Hub, FrankenPhpHub, MockHub and Jwt\LcobucciFactory use ProtocolVersion::V1 unless $protocolVersion is set; pass ProtocolVersion::Legacy to keep talking to a 0.x hub. This also changes the default cookie name to __Secure-mercure_access_token, the Twig mercure() query parameter to match, and the LcobucciFactory claims to authorization_details (which requires the iss, aud, sub and client_id claims)
  • FrankenPhpHub::publish() now throws a Symfony\Component\Mercure\Exception\RuntimeException explaining what is missing when FrankenPHP's mercure_publish() function is not defined (e.g. under the CLI), instead of failing with a "Call to undefined function" error
  • Add the fully-specified Ed25519 algorithm to Symfony\Component\Mercure\Jwt\WebTokenFactory (requires web-token/jwt-library 4.3, which deprecates signing with the polymorphic EdDSA algorithm)
  • Fix the exception message thrown by Debug\TraceableHub::getProvider() when the decorated hub does not implement it