Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec!: add support for several topic matcher types, including URL Pattern #959

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

dunglas
Copy link
Owner

@dunglas dunglas commented Oct 14, 2024

Replaces #831 with a more flexible and future-proof approach.

Summary

  • In addition to URI templates, regular expressions, URL patterns and CEL expressions are now supported
  • the topic query parameter becomes match and now only supports exact matching
  • new query parameters match{MatchType} are introduced
    • by default, matchRegexp, matchURLPattern, matchCEL, and matchURITemplate are defined
    • hub can implement custom matcher types
    • future updates may introduce new matcher types
  • it's now possible to include per-topic (or topic matcher) payloads (replaces feat: payload for a specific topic #945)
  • the JWT format has been updated to match these new capabilities
  • the subscription API format has been updated to match these new capabilities

The official hub will be able to support both the current and new protocols simultaneously (no hard BC break).

TODO:

  • update all examples

spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
spec/mercure.md Outdated Show resolved Hide resolved
Co-authored-by: Antoine Bluchet <[email protected]>
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.

2 participants