Supabase Flutter v3 adds end-to-end types in a breaking upgrade
Brief
Supabase Flutter v3 brings type safety across the Dart client and changes several APIs and defaults. The 3.0.0-dev prereleases are available now, with the stable release planned for November 11, 2026.
What changes
- Generated Dart types cover database rows, inserts, and updates; queries, filters, writes, streams, RPC methods, realtime state, auth state, and service exceptions are typed.
- The new table() API is additive, so teams can migrate queries a table at a time while continuing to use from().
- Timestamps, URLs, and durations use DateTime, Uri, and Duration; realtime listeners use Streams. In v3, order() defaults to ascending, unlike v2, which defaults to descending.
Who needs to plan an upgrade
- The breaking changes affect Dart and Flutter projects upgrading from supabase_flutter or supabase v2. Projects using third-party packages built on v2 must wait for compatible releases.
- Direct dependencies on gotrue, realtime_client, storage_client, and functions_client are renamed to supabase_auth, supabase_realtime, supabase_storage, and supabase_functions.
- Self-hosted projects running GoTrue older than API version 2024-01-01 are affected. A ^2.x version constraint will not install v3; v2 gets security and critical fixes for six months after stable 3.0.0.
Timeline and migration
- Try 3.0.0-dev prereleases now; stable 3.0.0 is planned for November 11, 2026.
- Before upgrading, check changes the compiler will not catch, including sort direction and realtime broadcast compatibility; while still on v2, add ascending: false to order() calls that rely on descending order.
- The migration guide covers compile errors, including changing anonKey to publishableKey. Optionally add supabase_typegen, generate types with Supabase CLI 2.122.0 or newer, and move queries to table().
Generated by AI from the original article. Check the source for full details.