spec!: add support for several topic matcher types, including URL Pattern#959
spec!: add support for several topic matcher types, including URL Pattern#959
Conversation
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This is still ongoing work |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
1f2bab5 to
13de6ad
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the Mercure protocol specification to support multiple topic matcher types (Exact, Regexp, URLPattern, CEL, optional URI Template), introduces match* subscription query parameters, and extends the JWT/subscription formats to support per-matcher payloads.
Changes:
- Reworks subscription semantics around
match+match{Type}query parameters with case-insensitive parameter names and 501 handling for unsupported matcher types. - Defines matcher types (Exact/Regexp/URLPattern/CEL/URITemplate) and updates authorization (JWT) semantics to use typed matcher objects.
- Updates Active Subscriptions (events + API) and examples to include matcher type + matcher value, plus per-matcher payloads.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Replaces #831 with a more flexible and future-proof approach.
Summary
topicquery parameter becomesmatchand now only supports exact matchingmatch{MatchType}are introducedmatchRegexp,matchURLPattern,matchCEL, andmatchURITemplateare definedThe official hub will be able to support both the current and new protocols simultaneously (no hard BC break).
TODO: