You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dbdfb28
Browse filesBrowse the repository at this point in the historyBrowse files
feat(rules)!: create channel rules as match expressions
Channel rules now come in two modes. A `matcher` rule's id is a match
expression, with the same syntax as a capability resource ("chat:*",
"*:presence", "foo:*:baz"); a `namespace` rule's id is a single segment
that matches that channel plus everything beneath it. New rules should
be matchers - the dashboard only creates matchers - so `rules create`
now always does. `rules update` sends no mode, so a rule keeps the one
it was created with. `create`, `update` and `list` show each rule's
mode, since the same-looking id means different things in each.
BREAKING CHANGE: `ably apps rules create "chat"` used to create a rule
applying to `chat` and every channel beneath it (`chat:room1`, ...). It
now applies to the channel `chat` alone. To select the channels beneath
it, use `ably apps rules create "chat:*"`. Existing rules are unaffected
and keep matching as before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments