Skip to content

Default to the Mercure protocol 1.0 - #143

Merged
dunglas merged 1 commit into
mainfrom
protocol-1.0-default
Oct 7, 2026
Merged

dunglas merged 1 commit into
mainfrom
protocol-1.0-default

Conversation

@dunglas

@dunglas dunglas commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Mercure hub 1.0 is stable, so Hub, FrankenPhpHub, MockHub and Jwt\LcobucciFactory now default to ProtocolVersion::V1. Pass ProtocolVersion::Legacy to keep talking to a 0.x hub.

BC break: the default cookie name becomes __Secure-mercure_access_token, the Twig mercure() function emits match instead of topic, and LcobucciFactory mints authorization_details tokens, which require the iss, aud, sub and client_id claims.

Part of the Mercure 1.0 rollout, along with symfony/mercure-bundle#130, symfony/recipes#1589 and dunglas/symfony-docker#969.

Mercure hub 1.0 is now stable, so Hub, FrankenPhpHub, MockHub and
LcobucciFactory default to ProtocolVersion::V1. Pass
ProtocolVersion::Legacy to keep talking to a 0.x hub.
@dunglas
dunglas force-pushed the protocol-1.0-default branch from 77f15e6 to 391885c Compare October 7, 2026 09:43
@dunglas
dunglas merged commit 881ee47 into main Oct 7, 2026
9 checks passed
@dunglas
dunglas deleted the protocol-1.0-default branch October 7, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant