Skip to content

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

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

Closed
wants to merge 12 commits into 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

Co-authored-by: Antoine Bluchet <[email protected]>
Copy link

stale bot commented Feb 25, 2025

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.

@stale stale bot added the wontfix This will not be worked on label Feb 25, 2025
@soyuka
Copy link
Contributor

soyuka commented Mar 6, 2025

This is still ongoing work

@stale stale bot removed the wontfix This will not be worked on label Mar 6, 2025
Copy link

stale bot commented May 6, 2025

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.

@stale stale bot added the wontfix This will not be worked on label May 6, 2025
@stale stale bot removed the wontfix This will not be worked on label May 13, 2025
Copy link

stale bot commented Jul 18, 2025

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.

@stale stale bot added the wontfix This will not be worked on label Jul 18, 2025
@stale stale bot closed this Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants