Supabase announced the next major version of its Flutter and Dart client on November 6, 2026. The stable 3.0.0 is planned for November 11. Prereleases are already on pub.dev; the newest one, 3.0.0-dev.16, came out the same day as the announcement.
It is a big release. Most of it will show up as compile errors, which is the friendly kind of breaking change: the analyzer tells you where to look. This post is about the other kind, the changes that compile cleanly and then behave differently, and the one fix you can make on v2 before you upgrade.
Everything here comes from the Supabase changelog entry and the official migration guide. The guide still says v3 “has not been released yet” and is updated as changes land, so check it again on release day.
The short version
- Nothing changes until you upgrade. A
^2.xconstraint inpubspec.yamlnever resolves to 3.0.0. order()now sorts ascending by default, as SQL does. On v2 it sorted descending. Your “newest first” lists flip to “oldest first”, with no error.- v2 and v3 apps cannot read each other’s realtime broadcasts. If a mobile app and a web app share a channel, release them together.
- Four packages are renamed:
gotrue,realtime_client,storage_clientandfunctions_clientbecomesupabase_auth,supabase_realtime,supabase_storageandsupabase_functions. anonKeybecomespublishableKeyinSupabase.initialize. Your existing anon key is still a valid value.- A typed table API arrives:
supabase.table(Books.table)with generated row types, next to the oldfrom('books'). It is marked experimental. - v2 gets security and critical fixes for six months after 3.0.0 ships, so until about May 2027.
Why v3 breaks so much at once
The Dart client was originally ported from supabase-js. It carried JavaScript habits into Dart: timestamps and URLs as strings, realtime built on callbacks, and an order() that sorted descending unless told otherwise. v3 turns these into normal Dart: DateTime, Uri, Duration, Stream, a sealed AuthState and one SupabaseException base class. Supabase chose to make all of those changes in one major version instead of spreading them out.
The packages now version together. supabase_flutter re-exports everything, so if that is your only dependency, you change one line in pubspec.yaml.
Do this on v2, today: make every sort explicit
This is the change most likely to reach your users. On v2, this query returns the newest messages first. On v3 it returns the oldest first:
await supabase.from('messages').select().order('created_at');
The fix also works on v2, which is why it is worth doing now. ascending: false already means descending there, so adding it changes nothing today and protects you after the upgrade:
// Newest first on v2 and v3.
await supabase.from('messages').select().order('created_at', ascending: false);
The same applies to stream(). To find the calls that rely on the old default, list every order() call without an ascending argument:
grep -rn "\.order(" lib | grep -v "ascending"
A second, smaller change: when you leave out nullsFirst, v3 lets PostgreSQL decide where NULL values go, which puts them first on a descending sort. v2 always put them last. If you sort a nullable column descending, add nullsFirst: false to keep the old order:
await supabase
.from('books')
.select()
.order('price', ascending: false, nullsFirst: false);
Ship that as a normal v2 release. When you later move to v3, your sort order is already settled.
The other changes the compiler will not catch
The migration guide keeps a list of these. It is long; these are the ones most apps will meet.
Realtime broadcasts. Broadcast data now arrives under payload. A v3 listener finds nothing in a message from a v2 app, and the reverse. If your app talks to a web dashboard, an admin app or a second platform over a broadcast channel, plan one release for all of them. Broadcasts also no longer fall back to the REST API, so sendBroadcastMessage() on a channel you never subscribed to now throws.
Auth events. initialSession is now sent to every new subscriber as its first event. Confirming an email or phone change emits userUpdated instead of signedIn. Switching to another user’s session emits signedIn instead of tokenRefreshed. If your navigation listens for specific events, test sign-in, sign-out and account changes by hand.
Sign-out. A failed global sign-out now keeps the user signed in on the device, and signOut() with no session emits no event.
Dates in filters. A DateTime passed to a filter is sent as ISO 8601 with its offset from UTC. v2 sent a local time without an offset. Queries like “created before now” can return different rows near midnight, or for users in other time zones.
Error handling. Realtime throws exceptions instead of strings, and a request that gets no response throws Supabase’s own transport exception. A catch for String, ClientException or TimeoutException stops matching, so the error goes somewhere else.
Writes without select(). insert(), upsert(), update() and delete() without a select() now resolve to void.
Storage. Uploads return an UploadResponse, not the object key. exists() returns false only for a missing file; a missing bucket or an invalid token now throws.
Changes the compiler will catch
These are mostly mechanical. A few examples from the guide:
// v2
await Supabase.initialize(
url: 'https://your-project.supabase.co',
anonKey: 'your-anon-key',
);
// v3: same key, new name
await Supabase.initialize(
url: 'https://your-project.supabase.co',
publishableKey: 'your-anon-key',
);
Sign-in methods that always create a session now return the Session directly:
// v2
final response = await supabase.auth.signInWithPassword(email: email, password: password);
final user = response.user!;
// v3
final session = await supabase.auth.signInWithPassword(email: email, password: password);
final user = session.user;
When there is no session, those methods now throw AuthSessionMissingException, where some used to return null. signUp() and verifyOTP() still return an AuthResponse.
Other renames you will see: realtimeClientOptions becomes realtimeOptions, debug leaves Supabase.initialize (logging goes through package:logging), GoTrueClient becomes AuthClient, and abbreviations are spelled out, such as queryParams becoming queryParameters.
AuthState is now a sealed class with one subtype per event, so you can switch over it and the compiler checks you handled every case. Existing code that compares state.event keeps compiling.
The new typed table API
This is the part worth looking forward to. The Supabase CLI generates Dart types from your database schema:
dart pub add dev:supabase_typegen
supabase gen types --lang dart > lib/supabase_schema.g.dart
Then queries return real types instead of Map<String, dynamic>:
// v2
final books = await supabase.from('books').select();
final title = books.first['title'] as String;
// v3, typed
final List<BooksRow> books = await supabase.table(Books.table).select();
final String title = books.first.title;
Filters become expressions the compiler checks. Books.price.eq('ten') does not compile, because price is a number:
await supabase
.table(Books.table)
.select()
.where(Books.inPrint.isTrue() & (Books.price.lt(10) | Books.publishedOn.isNull()))
.order(Books.createdAt.desc());
from() and table() work side by side on the same client, so you can move one table at a time. The typed API is marked @experimental, so expect some changes. The migration guide asks for Supabase CLI 3.0.0 or newer for Dart type generation, while the changelog mentions 2.122.0. Run supabase --version and update if you are behind.
Let your AI coding agent do the boring part
The v3 packages ship package skills: instructions for coding agents such as Claude Code, Cursor, Gemini and Copilot, including a skill for the v2 to v3 migration. We explained how package skills work in an earlier post. Once pubspec.yaml points at v3, install them from your project folder:
dart run skills@ get -p supabase_flutter
Without the skills, an agent writes the v2 code it was trained on. With them, it knows the new API. It still needs your review, especially for everything in the “compiler will not catch” list above.
A safe upgrade plan
- On v2: add
ascending: false(andnullsFirst: falsewhere needed) to everyorder()that relies on the old default. Release it. - Check your dependencies. Third-party packages built on supabase v2 must support v3 first. The prereleases need Dart 3.9 and Flutter 3.35 or newer.
- On a branch: set
supabase_flutter: ^3.0.0inpubspec.yamland replace any directgotrue,realtime_client,storage_clientorfunctions_clientdependency with its new name. - Fix the compile errors, with the migration guide open or with your agent and the package skills.
- Test what the compiler cannot: sorted lists, auth flows and sign-out, date filters, error messages, uploads and realtime.
- Release together every app that shares a broadcast channel.
- Later, if you like: move tables from
from()totable()one at a time.
If you self-host Supabase, check the guide for your auth server version too: v3 needs a GoTrue that supports API version 2024-01-01.
There is no rush. v2 keeps working, and it gets critical fixes for six months after the stable release. But step 1 takes an afternoon and removes the riskiest surprise, so it is worth doing this week.
Need help moving a production Flutter app to supabase-flutter v3? Feemag builds and maintains Flutter apps on Supabase.