feat(realtime_client): support new postgres changes filter operators, multi-filter, column selection, and replication-ready events#1526
Merged
Conversation
84140f6 to
e9c162f
Compare
* support new system message to information replication connection is ready * support new filters * support select
e9c162f to
a914411
Compare
spydon
approved these changes
Jul 3, 2026
spydon
left a comment
Contributor
There was a problem hiding this comment.
Fixed a few things that broke due to my previous PR, but LGTM!
Member
Author
|
thank you 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Brings the realtime client to parity with the new Realtime server features:
postgres_changesfilter operators:like,ilike,is,match,imatch, andisdistinct, exposed viaPostgresChangeFilterType.PostgresChangeFilter(negate: true)prefixes any operator withnot.(e.g.status=not.in.(draft,archived)).onPostgresChanges(filters: [...])combines severalPostgresChangeFilters with anAND.onPostgresChanges(select: [...])restricts the change payload to a subset of columns.RealtimeChannelConfig(replicationReady: true)asks the server to emit asystemevent once the Postgres replication connection is ready. The newRealtimeSystemPayloadtype parses that payload.PostgREST-style value quoting is applied to scalar and
infilter values so reserved characters (,()"\) and surrounding whitespace don't break the server's filter parser.https://linear.app/supabase/issue/SDK-1170/parityrealtime-add-postgres-changes-filter-builder-new-operators-and
https://linear.app/supabase/issue/SDK-1179/parityrealtime-add-replication-ready-broadcast-option-and-system-event