refactor(realtime)!: hide the Binding registration primitives - #1708
Merged
Conversation
BREAKING CHANGE: Binding and BindingCallback are internal and no longer exported. Their only consumers, RealtimeChannel.onEvents and RealtimeChannel.off, were already internal; use the typed channel streams instead.
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Tr00d
approved these changes
Aug 13, 2026
…3-stop-leaking-internal-realtime-types-from-the-public-api
spydon
deleted the
lukasklingsbo/sdk-1478-v3-stop-leaking-internal-realtime-types-from-the-public-api
branch
August 14, 2026 10:59
spydon
added a commit
that referenced
this pull request
Aug 17, 2026
## What Marks `Binding` and `BindingCallback` as `@internal` and removes them from the barrel export of `realtime_client`. ## Why They are the raw registration primitives underneath the channel listeners, and their only consumers, `RealtimeChannel.onEvents` and `RealtimeChannel.off`, have always been `@internal`. The raw-callback escape hatch underneath the v3 stream API should not be public. This also removed a stray import of the package barrel from `lib/src/message.dart`. The ticket also covered `RealtimeChannel.joinPush` leaking the internal `Push` type, but that field is already annotated `@internal`, so no change was needed there. ## Notes - Stacked on #1706; based on `feat/realtime-streams-v3`. Independent of #1707. - Deregisters the `Binding` symbols from `sdk-compliance.yaml`; local symbol and drift checks pass. - Adds a migration entry. ## Tests All realtime unit tests (195) and the integration suite (both protocol versions, run locally against a real Realtime server) pass, plus `supabase` (134) and analyzer/DCM across the workspace. Resolves SDK-1478
spydon
added a commit
that referenced
this pull request
Aug 17, 2026
Marks `Binding` and `BindingCallback` as `@internal` and removes them from the barrel export of `realtime_client`. They are the raw registration primitives underneath the channel listeners, and their only consumers, `RealtimeChannel.onEvents` and `RealtimeChannel.off`, have always been `@internal`. The raw-callback escape hatch underneath the v3 stream API should not be public. This also removed a stray import of the package barrel from `lib/src/message.dart`. The ticket also covered `RealtimeChannel.joinPush` leaking the internal `Push` type, but that field is already annotated `@internal`, so no change was needed there. - Stacked on #1706; based on `feat/realtime-streams-v3`. Independent of - Deregisters the `Binding` symbols from `sdk-compliance.yaml`; local symbol and drift checks pass. - Adds a migration entry. All realtime unit tests (195) and the integration suite (both protocol versions, run locally against a real Realtime server) pass, plus `supabase` (134) and analyzer/DCM across the workspace. Resolves SDK-1478
spydon
added a commit
that referenced
this pull request
Aug 17, 2026
Marks `Binding` and `BindingCallback` as `@internal` and removes them from the barrel export of `realtime_client`. They are the raw registration primitives underneath the channel listeners, and their only consumers, `RealtimeChannel.onEvents` and `RealtimeChannel.off`, have always been `@internal`. The raw-callback escape hatch underneath the v3 stream API should not be public. This also removed a stray import of the package barrel from `lib/src/message.dart`. The ticket also covered `RealtimeChannel.joinPush` leaking the internal `Push` type, but that field is already annotated `@internal`, so no change was needed there. - Stacked on #1706; based on `feat/realtime-streams-v3`. Independent of - Deregisters the `Binding` symbols from `sdk-compliance.yaml`; local symbol and drift checks pass. - Adds a migration entry. All realtime unit tests (195) and the integration suite (both protocol versions, run locally against a real Realtime server) pass, plus `supabase` (134) and analyzer/DCM across the workspace. Resolves SDK-1478
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
Marks
BindingandBindingCallbackas@internaland removes them from the barrel export ofrealtime_client.Why
They are the raw registration primitives underneath the channel listeners, and their only consumers,
RealtimeChannel.onEventsandRealtimeChannel.off, have always been@internal. The raw-callback escape hatch underneath the v3 stream API should not be public. This also removed a stray import of the package barrel fromlib/src/message.dart.The ticket also covered
RealtimeChannel.joinPushleaking the internalPushtype, but that field is already annotated@internal, so no change was needed there.Notes
feat/realtime-streams-v3. Independent of refactor(realtime)!: internalize RealtimePresence #1707.Bindingsymbols fromsdk-compliance.yaml; local symbol and drift checks pass.Tests
All realtime unit tests (195) and the integration suite (both protocol versions, run locally against a real Realtime server) pass, plus
supabase(134) and analyzer/DCM across the workspace.Resolves SDK-1478