• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-flutter / 43233176247
94%

Build:
DEFAULT BRANCH: main
Ran 12 Nov 2026 02:04PM UTC
Jobs 12
Files 194
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Nov 2026 02:02PM UTC coverage: 94.452% (+0.06%) from 94.393%
43233176247

push

github

web-flow
fix(realtime)!: throw when channel() reuses a topic with other options (#2159)

## Summary

`channel()` returned the channel already registered for a topic and
dropped the options of the new call. So `channel('room', options:
RealtimeChannelConfig(private: true))` could return a public channel
that was created earlier, or keep the presence key of a previous user,
for example after a sign-out and a sign-in as another user on the same
device.

`channel()` now throws a `StateError` when the topic is in use by a
channel that was created with other options. With equal options it still
returns the registered channel, with its listeners.

## Changes

- `RealtimeChannelConfig` and `ReplayOption` compare by value (`==` and
`hashCode`).
- `RealtimeChannel` keeps the options it was created with in an
`@internal` `config` field, which `RealtimeClient.channel()` compares
against. The channel reads `private` and `v2BroadcastCompatibility` from
it instead of keeping copies.
- Doc comments of `RealtimeClient.channel()`, `SupabaseClient.channel()`
and `RealtimeChannelConfig.private` describe the new behavior and that
channels are public by default.
- A "Channel security" section in the `supabase_realtime` README:
`private` defaults to `false`, `channel()` throws for other options, and
the `apikey` is a query parameter of the WebSocket URL.
- The existing MIGRATION.md section on reusing a channel name now
describes the throw, and the realtime skill mentions it.
- `unencodable_payload_test.dart` asked for `ack: true` on a topic that
was already registered without it, so it never tested an acknowledged
broadcast. It now uses its own topic.

## Breaking change

Code that calls `channel()` twice for one topic with different options
now gets a `StateError` instead of the first channel. Remove the channel
with `removeChannel()` before creating it again with new options.

Linear: SDK-2999



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coder... (continued)

37 of 37 new or added lines in 4 files covered. (100.0%)

62 existing lines in 5 files now uncovered.

13176 of 13950 relevant lines covered (94.45%)

6.87 hits per line

Coverage Regressions

Lines Coverage ∆ File
50
93.4
0.11% packages/supabase_auth/lib/src/auth_client.dart
5
95.65
0.12% packages/supabase_flutter/lib/src/supabase_auth.dart
3
98.5
0.0% packages/supabase/lib/src/supabase_client.dart
3
97.53
-0.5% packages/supabase_flutter/lib/src/supabase.dart
1
92.86
0.0% packages/supabase_flutter/lib/src/flutter_auth_client_options.dart
Jobs
ID Job ID Ran Files Coverage
4 postgrest - 43233176247.4 12 Nov 2026 02:06PM UTC 30
93.16
GitHub Action Run
5 supabase_auth - 43233176247.5 12 Nov 2026 02:06PM UTC 33
94.4
GitHub Action Run
6 supabase_storage - 43233176247.6 12 Nov 2026 02:06PM UTC 13
95.9
GitHub Action Run
7 iceberg - 43233176247.7 12 Nov 2026 02:04PM UTC 7
99.72
GitHub Action Run
8 supabase_flutter - 43233176247.8 12 Nov 2026 02:05PM UTC 16
89.16
GitHub Action Run
9 supabase_test - 43233176247.9 12 Nov 2026 02:04PM UTC 9
93.79
GitHub Action Run
10 supabase_realtime - 43233176247.10 12 Nov 2026 02:06PM UTC 15
92.91
GitHub Action Run
11 supabase_functions - 43233176247.11 12 Nov 2026 02:04PM UTC 4
94.15
GitHub Action Run
12 supabase_typegen - 43233176247.12 12 Nov 2026 02:06PM UTC 7
95.53
GitHub Action Run
2 supabase_common - 43222394842.2 12 Nov 2026 12:57PM UTC 37
94.39
GitHub Action Run
10 yet_another_json_isolate - 43222394842.10 12 Nov 2026 12:57PM UTC 2
98.65
GitHub Action Run
4 supabase - 43222394842.4 12 Nov 2026 12:58PM UTC 21
94.52
GitHub Action Run
Source Files on build 43233176247
  • Tree
  • List 194
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43233176247
  • d08ca074 on github
  • Prev Build on main (#43222394842)
  • Next Build on main (#43238318786)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc