Skip to main content

supabase_flutter 3.0.0-dev.19 copy "supabase_flutter: ^3.0.0-dev.19" to clipboard
supabase_flutter: ^3.0.0-dev.19 copied to clipboard

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.

3.0.0-dev.19 #

Note: This release has breaking changes.

  • FIX(supabase_flutter): open only http and https OAuth URLs and match the callback against redirectTo (#2219). (b0eda306)
  • FIX(supabase_flutter): clear auth parameters from the web URL after a failed exchange (#2222). (2c0785f9)
  • FIX(auth): check a broadcast session against the storage before using it (#2220). (f3d7c8e0)
  • FEAT(realtime): add RealtimeClient.dispose (#2221). (a76a3e1d)
  • FEAT(realtime): wait for the server to confirm postgres changes before reporting subscribed (#2215). (a8312c92)
  • BREAKING FIX(realtime): reject presence listeners after subscribe when presence is off (#2201). (a6f51475)
  • BREAKING FEAT(supabase): originate a trace context when no trace is active (#1978). (dab9836c)

3.0.0-dev.18 #

Note: This release has breaking changes.

  • FIX(auth): move a session stored under supabasePersistSessionKey to the storage key (#2168). (b856e823)
  • FEAT(realtime): reconnect early when the network becomes reachable (#2181). (8f9a33ec)
  • FEAT(realtime): probe the connection when the app returns to the foreground (#2179). (5540cda8)
  • FEAT: follow the client_info spec in the X-Client-Info header (#2178). (bbed98cb)
  • BREAKING FIX(supabase): remove the channels and resumable uploads of a user on sign-out (#2162). (87dfe23d)
  • BREAKING FIX(realtime): make RealtimeChannel type safe, including its broadcast and Postgres change API (#2161). (9881a389)
  • BREAKING FIX(supabase): reject a supabaseUrl that does not use https (#2160). (33cce842)
  • BREAKING FIX(realtime): throw when channel() reuses a topic with other options (#2159). (d08ca074)
  • BREAKING FIX(supabase_flutter): reject a secret key in Supabase.initialize (#2158). (c6594036)
  • BREAKING FIX(auth): reject access_token links when the flow type is PKCE (#2156). (6b96f1ef)

3.0.0-dev.17 #

Note: This release has breaking changes.

  • FEAT(typegen): generate typed getters for partial rows (#2138). (48e0e47c)
  • FEAT(realtime): read v2 broadcasts and opt in to sending them to v2 clients (#2145). (d613866a)
  • FEAT(typegen): name the extensions a show import needs (#2139). (efe9e947)
  • FEAT(postgrest): construct a PostgrestPartialRow outside a query (#2132). (1fc7500c)
  • DOCS: say where the package skills install (#2133). (5d08e46d)
  • BREAKING FEAT(typegen): null writes SQL NULL in generated Insert/Update types and RPC arguments (#2147). (53e34797)

3.0.0-dev.16 #

Note: This release has breaking changes.

  • FIX(auth): sign out as asked when a global or others sign out finds the refresh token rejected (#2110). (f0844018)
  • DOCS(supabase_typegen): say when to regenerate the schema in the package skills (#2115). (8bf5f102)
  • BREAKING FIX(supabase_flutter): only take auth redirects from deep links by default (#2126). (1e1448ef)
  • BREAKING FIX(auth): align signOut with the sign-out spec (#2111). (de2ed636)
  • BREAKING FIX(postgrest): remove defaultToNull from the typed insert and upsert methods (#2106). (886f3d05)

3.0.0-dev.15 #

  • FIX: build per request log messages lazily and lower redundant log records to fine (#2101). (b7ccb177)
  • FIX: keep query strings, header values, payloads and user objects out of diagnostic logs (#2095). (75d21fdc)
  • DOCS: document SDK compatibility with Supabase services (#2074). (072eee45)

3.0.0-dev.14 #

  • FEAT(postgrest): filter inside an embed, add requiring and relation isNull on the typed surface (#2061). (a9537321)

3.0.0-dev.13 #

Note: This release has breaking changes.

  • REFACTOR(supabase): remove pause from the client interceptors (#2059). (4152d15d)
  • FIX(examples): make the setup SQL safe, keep realtime room messages and create auth streams once (#2040). (7bd1d4ce)
  • FIX(postgrest): buffer the untyped asStream result and correct dartdocs that disagree with behavior (#2042). (ed797335)
  • FIX(supabase_flutter): dispose Supabase inside testWidgets without hanging (#2012). (05184afb)
  • FEAT: ship agent skills with supabase_flutter, supabase, supabase_typegen and supabase_test (#2011). (3f415f4e)
  • DOCS: fix README, MIGRATION.md and skill content that disagrees with the v3 code (#2039). (26073d57)
  • DOCS: update every README to the v3 API (#2008). (9357d479)
  • BREAKING REFACTOR(supabase): client setup and options consistency before 3.0.0 (#2021). (1fc6cf16)
  • BREAKING REFACTOR(supabase_test): take HttpMethod for method matching and align names with supabase_flutter's testing helpers (#2025). (941320dd)
  • BREAKING PERF(yet_another_json_isolate,postgrest,functions): encode request bodies to UTF-8 bytes on the calling isolate in slices (#2057). (776b9f52)
  • BREAKING FIX(auth): signOut must not report success when the server revoke was skipped or lost (#2053). (62b923e6)
  • BREAKING FIX(realtime): reject invalid broadcast payloads in release builds and document that v2 and v3 broadcasts are incompatible (#2051). (9edc8083)
  • BREAKING FIX(supabase): make stream() survive reconnects without losing or corrupting rows (#2028). (bf951b88)
  • BREAKING FIX(supabase_test): fast failures, clock-aware sessions, a real signedIn event and stubs that match what the SDK sends (#2035). (9e74106e)
  • BREAKING FIX(supabase_flutter): keep cold-start auth links and make initialize safe against concurrent calls and dispose (#2034). (7d376e8e)
  • BREAKING FIX(realtime): rejoin after disconnect and keep one channel per name (#2030). (9a5e18ff)
  • BREAKING FIX(auth): refresh user-scoped tokens, keep restored sessions and announce user switches as signedIn (#2037). (3ff29e0d)
  • BREAKING FIX(realtime): send broadcast data under payload without mutating the caller's map (#2036). (31695439)
  • BREAKING FIX(postgrest): apply column defaults to keys missing from some rows in insertAll and upsertAll (#2032). (5a47e227)
  • BREAKING FEAT(supabase): run the typed table requests through client interceptors (#1940). (4efd670b)
  • BREAKING FEAT(functions): response headers, a region type, consistent naming and errors that stay in FunctionsException (#2031). (48bb86ad)

3.0.0-dev.12 #

  • Update a dependency to the latest release.

3.0.0-dev.11 #

  • FEAT(storage): resumable uploads with pause, resume and cancel (#1984). (23f25e2b)

3.0.0-dev.10 #

Note: This release has breaking changes.

  • REFACTOR(auth): use package:clock for session expiry checks (#1952). (e79ccbc5)
  • BREAKING REFACTOR: remove SupabaseClientPlugin and the public PostgrestTableExecutor (#1939). (d5da36c0)
  • BREAKING FEAT: make the request timeout an idle timeout and add it to auth, storage and functions (#1938). (e312f31a)

3.0.0-dev.9 #

  • REFACTOR: define shared HTTP header names in supabase_common (#1917). (625d7c7c)

3.0.0-dev.8 #

Note: This release has breaking changes.

  • FIX(supabase): drop trace headers when a redirect leaves the Supabase hosts (#1895). (d9c0827d)
  • FIX(supabase_flutter): don't throw on deep links with malformed percent-encoding (#1898). (ed23dea2)
  • FEAT(supabase_flutter): add RealtimeLifecycleOptions to delay or skip the realtime disconnect on pause (#1899). (52dcd2f4)
  • DOCS(supabase_flutter): document request ids and trace propagation (#1887). (818479e7)
  • BREAKING REFACTOR(supabase): require a traceContextProvider in TracePropagationOptions (#1882). (d69f644d)

3.0.0-dev.7 #

  • Update a dependency to the latest release.

3.0.0-dev.6 #

Note: This release has breaking changes.

  • REFACTOR: prune redundant comments that restate the code below them (#1852). (465b18ea)
  • BREAKING FEAT(postgrest): execute typed table builders through a PostgrestTableExecutor and add SupabaseClientPlugin (#1857). (3ecb09b1)
  • BREAKING FEAT(supabase): keep idle connections open for 60 seconds by default (#1855). (db7f5cc9)

3.0.0-dev.5 #

Note: This release has breaking changes.

  • BREAKING REFACTOR(auth): make AuthState a sealed class with per-event payloads (#1846). (66bc828d)
  • BREAKING REFACTOR(auth): return Session from the auth methods that always issue one (#1845). (b63898ea)

3.0.0-dev.4 #

  • FEAT(supabase_flutter): Android Restore Credentials on top of passkeys (#1824). (68293591)

3.0.0-dev.3 #

Note: This release has breaking changes.

  • REFACTOR: rename supabase_testing to supabase_test (#1812). (1e15663d)
  • FEAT(supabase_flutter): pluggable OAuth launcher + opt-in supabase_flutter_web_auth (#1807). (cdee3646)
  • FEAT(supabase_flutter): test initialization helper for widget tests (#1819). (4136f0e4)
  • BREAKING FIX(auth): only open the broadcast channel when the session is persisted (#1804). (f7b993a8)
  • BREAKING FEAT(auth): let AuthClient own session persistence through one storage (#1805). (a587f5af)

3.0.0-dev.2 #

  • FIX(auth): guard startAutoRefresh against use after dispose (#1760). (f0a61e8e)
  • DOCS(supabase_flutter): enable public_member_api_docs (#1774). (b88bd761)

3.0.0-dev.1 #

Note: This release has breaking changes.

  • REFACTOR: share the test helpers through supabase_common (#1745). (bcb41fa4)
  • REFACTOR: share the auth callback parameters and secure random helpers (#1744). (66ac4901)
  • FIX(supabase_lints): enable lines_longer_than_80_chars and fix all violations (#1655). (a08b6577)
  • FEAT: introduce the supabase_testing package (#1747). (5a3aa9b4)
  • FEAT(auth): store PKCE verifiers per flow to survive overlapping flows (#1662). (61bbbc5e)
  • DOCS: fix inaccurate dartdoc comments across all packages (#1659). (090ee978)
  • DOCS: add a v2 to v3 migration guide (#1660). (aa1c1497)
  • BREAKING REFACTOR: process JSON through the AsyncJsonCodec interface (#1751). (6969eb38)
  • BREAKING REFACTOR: rework logging to emit only through the supabase logger hierarchy (#1741). (d1642c80)
  • BREAKING REFACTOR: share one retry configuration across the clients (#1738). (3b2a4855)
  • BREAKING REFACTOR(realtime): replace listener callbacks with streams (#1706). (07345bf9)
  • BREAKING REFACTOR(auth): return a Uri from OAuthResponse.url instead of a String (#1729). (c8a66f10)
  • BREAKING REFACTOR: spell out abbreviations in the public API (#1712). (29286f43)
  • BREAKING REFACTOR: split every service exception into a client and an api base (#1644). (0202c332)
  • BREAKING REFACTOR: remove analyzer ignores by fixing the underlying code (#1675). (9f367d77)
  • BREAKING REFACTOR: remove all deprecated APIs and dead public surface for v3 (#1661). (1ffa0deb)
  • BREAKING REFACTOR(realtime): clean up connection naming on RealtimeClient (#1404). (4344c346)
  • BREAKING FIX(auth): return Uri from getSSOSignInUrl instead of String (#1722). (9aa2e767)
  • BREAKING FIX(supabase_flutter): persist the session with SharedPreferencesAsync (#1680). (41500b73)
  • BREAKING FIX: release retained resources on dispose (#1668). (d21d8c03)
  • BREAKING FIX(gotrue): emit userUpdated instead of signedIn when an email change is confirmed (#1664). (7a042416)
  • BREAKING FEAT: rename the storage_client package to supabase_storage (#1715). (6b0388f2)
  • BREAKING FEAT: rename the realtime_client package to supabase_realtime (#1714). (d37bed56)
  • BREAKING FEAT: rename the functions_client package to supabase_functions (#1713). (eb4f3773)
  • BREAKING FEAT: rename the gotrue package to supabase_auth (#1697). (563b502e)
  • BREAKING CHORE: give each package's Constants class a package-specific name (#1677). (40f6d89c)

2.17.1 #

  • Update a dependency to the latest release.

2.17.0 #

  • REFACTOR: extract shared code into supabase_common package (#1573). (46601bbb)
  • FIX(realtime_client): faster channel rejoin on web (#1471). (bc06a310)
  • FEAT(auth): support friendlyName and user.name fallback for WebAuthn passkey enrollment (#1603). (558b0346)
  • FEAT(client): add opt-in trace context propagation headers (#1564). (85780e60)
  • FEAT(client): add session-URL-detection predicate and persistSession flag (#1558). (c8b02ed0)
  • DOCS(auth): document getOAuthSignInUrl for URL-without-launch, mark oauth parity implemented (#1548). (1a1c95bf)

2.16.0 #

  • FIX(supabase_flutter): drop passkeys requireResidentKey workaround, bump dependency (#1521). (7907c6cb)
  • FEAT(supabase_flutter): default debug logging off under flutter test (#1530). (941ee804)

2.15.4 #

  • FIX(supabase_flutter): preserve hash routes and repeated query keys when clearing auth params (#1511). (4fca4126)

2.15.3 #

  • FIX(supabase_flutter): backfill requireResidentKey when omitted by the server (#1502). (cf382968)

2.15.2 #

  • FIX(supabase_flutter): full web and WASM support (#1497). (2f860f2c)

2.15.1 #

  • REFACTOR: dedupe bucket payload and OAuth launch logic (#1463). (c5f9b247)
  • REFACTOR: de-abbreviate cond* platform getters to conditional* (#1438). (9e71a240)
  • FIX(supabase_flutter): accept PasskeyAuthenticatorInterface instead of depending on passkeys (#1444). (f05d4c6c)
  • FIX(auth): recognize error query parameter in auth callback redirects (#1472). (cb7e7e62)
  • FIX(supabase_flutter): clear auth params from web URL after exchange (#1456). (8b1e1b22)
  • FIX: correctness fixes across gotrue, postgrest, storage, supabase and supabase_flutter (#1445). (bf31389d)
  • DOCS: add Supabase logo to supabase_flutter README so it renders on pub.dev (#1458). (7354d1c8)

2.15.0 #

  • FIX: raise min Dart SDK to 3.4.0 across all packages (#1409). (311f883f)
  • FIX(auth): update session on email change links in PKCE flow (#1395). (6b7871d9)
  • FEAT(supabase_flutter): add passkey ceremony helpers (#1408). (8c8ec84e)

2.14.2 #

  • DOCS(supabase_flutter): fix Facebook native login for iOS and Android (#1386). (8cbea828)
  • DOCS: update facebook native login docs (#1322). (213f6277)

2.14.1 #

  • Update a dependency to the latest release.

2.14.0 #

  • FIX: make defaultHeaders unmodifiable to prevent accidental mutation (#1370). (957d7507)
  • FEAT: update X-Client-Info to use structured semicolon-delimited metadata (#1362). (71653422)

2.13.0 #

  • FEAT: rename anon key → publishable key, service role key → secret key (#1360). (d4e23707)
  • DOCS(gotrue): require onError handler in onAuthStateChange (#1355). (74bb1725)

2.12.4 #

  • FIX(supabase_flutter): log instead of swallow auth state stream errors (#1346). (77ca5dbe)
  • FIX(postgrest): replace SCREAMING_SNAKE_CASE HTTP method constants with enum (#1347). (13e8b39e)
  • FIX(supabase_flutter): simplify lifecycle reconnection with serial Future chain (#1340). (7121ac2b)
  • FIX(realtime): prevent null check crash in connect() during rapid lifecycle transitions (#1321). (61f7cd1c)
  • DOCS(realtime,supabase_flutter): add class-level dartdoc to RealtimeClient and SupabaseAuth (#1344). (b662dfd5)

2.12.3 #

  • FIX(realtime): prevent null check crash in connect() during rapid lifecycle transitions (#1321). (61f7cd1c)

2.12.2 #

  • Update a dependency to the latest release.

2.12.1 #

  • Update a dependency to the latest release.

2.12.0 #

  • FEAT(postgrest): add missing PostgREST v12 operators (#1273). (f6270260)
  • DOCS: update signInWithIdToken provider documentation (#1264). (b10d0c88)

2.11.0 #

  • FEAT(gotrue): introduce getClaims method to verify and extract JWT claims (#1246). (615d687f)

2.10.3 #

2.10.2 #

  • Update a dependency to the latest release.

2.10.1 #

  • FIX: Prevent web incompatibility due to import of dart:io (#1220). (3c8d4db6)

2.10.0 #

  • FIX(supabase_flutter): Safely check if conn is not null to avoid null check operator (#1178). (6a5be512)
  • FEAT(supabase_flutter): Make Supabase.initialize() idempotent (#1194). (cc058e70)

2.9.1 #

  • Update a dependency to the latest release.
  • The auth.mfa.enroll() method return value now has a nullable totp property to support phone MFA enrollment.

2.9.0 #

  • Require Dart >=3.3.0 and flutter >=3.19.0
  • FIX: Dispose supabase client after flutter web hot-restart (#1142). (ce582e3e)
  • FEAT(gotrue,supabase,supabase_flutter,realtime_client): Use web package to access web APIs (#1135). (dfa71c9a)

2.8.4 #

  • FIX: Allow null to be returned from accessToken function when the user is not signed in (#1099). (d04d9e63)
  • DOCS: Fix typos (#1108). (46b483f8)

2.8.3 #

  • Update a dependency to the latest release.

2.8.2 #

  • Update a dependency to the latest release.

2.8.1 #

2.8.0 #

2.7.0 #

2.6.0 #

  • FIX: Upgrade web_socket_channel for supporting web: ^1.0.0 and therefore WASM compilation on web (#992). (7da68565)
  • FEAT: Add third-party auth support (#999). (c68d44d1)

2.5.11 #

  • Update a dependency to the latest release.

2.5.10 #

  • Update a dependency to the latest release.

2.5.9 #

  • FIX(gotrue): Ensure a single initialSession is emitted. (#975). (6323f9fd)

2.5.8 #

  • FIX: Fix duplicate initial deeplink handling when using AppLinks >= 6.0.0 (#965). (74747f0d)

2.5.7 #

  • Update a dependency to the latest release.

2.5.6 #

  • Update a dependency to the latest release.

2.5.5 #

  • Update a dependency to the latest release.

2.5.4 #

  • Update a dependency to the latest release.

2.5.3 #

  • FIX: Keep compatible with app_links 6.0.0 and 5.0.0 (#918). (04a59dca)

2.5.2 #

  • FIX: Update app_links dependency to accept v5.0.0 (#908). (7e9b9054)

2.5.1 #

  • Update a dependency to the latest release.

2.5.0 #

  • FEAT(gotrue,supabase_flutter): New auth token refresh algorithm (#879). (99931681)

2.4.0 #

  • FEAT: Add detectSessionInUri option to optionally disable deep link observer. (#848). (cb9aed80)
  • DOCS: Fixed imprecision in Custom Local Storage README.md (#853). (6655e576)

2.3.4 #

  • FIX(gotrue,supabase_flutter): Throw error when parsing auth URL that contains an error description. (#839). (afc4ce51)
  • FIX: Correct the class name used for custom storage (#825). (a7216626)

2.3.3 #

  • REFACTOR: Remove hive dependency and add instructinos to migration from v1 while persisting the auth state (#823). (26885c20)

2.3.2 #

  • FIX: Remove platform check to start deep link observer on every platform including Linux (#815). (9b05eeac)

2.3.1 #

  • Update a dependency to the latest release.

2.3.0 #

  • FIX(supabase_flutter): Add timeout to Hive.openBox to fix hanging issue (#799). (7fc3ed0b)
  • FEAT(gotrue,supabase_flutter): Add signInWithSSO method (#798). (87c16327)

2.2.0 #

  • FEAT(supabase_flutter): Update app_link to v3.5.0, to add Linux support for deep links (#792). (5ad7a674)

2.1.0 #

  • FIX: Update Provider to OAuthProvider in readme (#778). (0585ee96)
  • FEAT(gotrue,supabase_flutter): Add identity linking and unlinking methods. (#760). (6c0c922d)

2.0.2 #

  • Update a dependency to the latest release.

2.0.1 #

  • Update a dependency to the latest release.
  • FIX: fix(supabase_flutter): export signInWithOAuth() and generateRawNonce() (#763)

2.0.0 #

  • Graduate package to a stable release. See pre-releases prior to this version for changelog entries. Upgrade guide can be found here.

2.0.0-dev.4 #

  • FIX: PKCE flow not emitting password recovery event (#744). (65859bd2)
  • FIX: update sign in with Apple instruction on readme (#746). (a4897d06)
  • FIX: use SharedPreferences on web (#738). (d0cc2015)
  • FIX(supabase_flutter): session migration from hive to sharedPreferences now works properly (#731). (c81cf07f)

2.0.0-dev.3 #

  • Update a dependency to the latest release.

2.0.0-dev.2 #

  • FIX(supabase_flutter): The session is not restored when the application is started. (#702). (e1cc576c)

2.0.0-dev.1 #

  • Update a dependency to the latest release.

2.0.0-dev.0 #

Note: This release has breaking changes.

  • FEAT(supabase_flutter): use SharedPreferences for access token (#608). (9d72a59d)
  • DOCS: update readme to v2 (#647). (514cefb4)
  • BREAKING REFACTOR: remove signInWithApple method and make generateRawNonce public (#650). (2f9fe41f)
  • BREAKING REFACTOR: create package specific configs (#640). (53cd3e09)
  • BREAKING REFACTOR: many auth breaking changes (#636). (7782a587)
  • BREAKING REFACTOR: use Dart 3 (#598). (02c4071a)

1.10.25 #

  • Update native Google sign-in instructions on README

1.10.24 #

  • Update a dependency to the latest release.

1.10.23 #

  • Update a dependency to the latest release.

1.10.22 #

  • Update a dependency to the latest release.

1.10.21 #

  • Update a dependency to the latest release.

1.10.20 #

  • Update a dependency to the latest release.

1.10.19 #

  • Update a dependency to the latest release.

1.10.18 #

  • Update a dependency to the latest release.

1.10.17 #

  • Update a dependency to the latest release.

1.10.16 #

  • Update a dependency to the latest release.

1.10.15 #

  • Update a dependency to the latest release.

1.10.14 #

  • FIX(realtime_client,supabase): pass apikey as the initial access token for realtime client (#596). (af8e368b)

1.10.13 #

  • FIX(supabase_flutter): update readme.md on the notes about broadcast (#589). (d0f4e2dd)

1.10.12 #

  • Update a dependency to the latest release.

1.10.11 #

  • Update a dependency to the latest release.

1.10.10 #

  • Update a dependency to the latest release.

1.10.9 #

  • FIX(supabase_flutter): update sign_in_with_apple version constraints to allow v5.0.0 (#548). (bc977431)

1.10.8 #

  • FIX: update the google auth setup instruction to use reversed client ID (#542). (fa52378a)

1.10.7 #

  • FIX(supabase_flutter): update README.md with additional imports and code to enable Google sign in (#531). (de2628fa)

1.10.6 #

  • update README.md to include native auth instructions

1.10.5 #

  • Update a dependency to the latest release.

1.10.4 #

  • Update a dependency to the latest release.

1.10.3 #

  • Update a dependency to the latest release.

1.10.2 #

  • Update a dependency to the latest release.

1.10.1 #

  • FIX: Update http dependency constraints (#491). (825d0737)

1.10.0 #

  • FIX: Format the files to adjust to Flutter 3.10.1 (#475). (eb0bcd95)
  • FEAT: update dependency constraints to sdk < 4.0.0 (#474). (7894bc70)

1.9.2 #

  • FIX(supabase_flutter): prevent Platform.environment use on web (#468). (de5a6300)

1.9.1 #

  • chore: update the repo to be a monorepo for all sub-libraries

1.9.0 #

  • feat: add pkce support #432
    // Initialize Supabase with AuthFlowType.pkce to enable PKCE flow for deep link related auth
    await Supabase.initialize(
      url: supabaseUrl,
      anonKey: supabaseKey,
      authFlowType: AuthFlowType.pkce,
    );
    

1.8.1 #

  • fix: ensure that Google login on Android always opens in external browser #455

1.8.0 #

  • feat: allow signInWithOAuth with platformDefault option to open in app webview for iOS #431

1.7.0 #

  • feat: Add signInWithApple method #437
    final AuthResponse response = await supabase.auth.signInWithApple();
    
  • fix: upgrade webview_flutter to 4.0.0 #427

1.6.2 #

  • fix: persist session to local storage on onAuthStateChanged event with a session #422

1.6.1 #

  • fix: log errors from onAuthStateChange #416
  • fix: catch initial session #418

1.6.0 #

  • feat: Added custom WebView for OAuth (LaunchMode.inAppWebView) #355
  • fix: update supabase to v1.6.1
    • add setAuth() function to storage
    • fix: keep one storage and functions instance to persist auth

1.5.0 #

  • feat: update supabase-dart to 1.6.0 #381
    • add support for signInWithIdToken
  • fix: declare web support #392

1.4.2 #

  • fix: show web support on pub.dev #373
  • refactor: update example #374

1.4.1 #

  • fix: print stack trace on the console while in debug mode when auth error occurs

1.4.0 #

  • feat: add realtimeClientOptions to Supabase.initialize()
  • feat: update supabase to v1.5.0
    • add realtimeClientOptions to SupabaseClient
    • add missing options parameter to rpc
    • use single isolate for functions and postgrest and add isolate parameter to SupabaseClient
    • update postgrest to v1.2.2
      • improve comment docs
      • deprecate returning parameter of .delete()
    • update storage to v1.2.2
      • properly parse content type
      • correct path parameter documentation
    • update gotrue to v1.4.1
      • onAuthStateChanged now emits the latest AuthState
      • downgrade minimum collection version to support wider range of Flutter SDK versions

1.3.1 #

  • chore: update readme.md file #335

1.3.0 #

  • feat: add authScreenLaunchMode to auth.signInWithOAuth() to change OAuth sign-in screen behavior #323
    await supabase.auth.signInWithOAuth(
      Provider.goodle,
      authScreenLaunchMode: LaunchMode.inAppWebView,
    );
    
  • fix: only start deep link observer on supported platforms #333
  • feat: update supabase to v1.3.0
    • fix: handle update and delete on record that wasn't found properly using stream #167
    • feat: update gotrue to v1.4.0
      • add support for MFA
        // Start the enrollment process for a new Multi-Factor Authentication (MFA) factor
        final res = await client.mfa
          .enroll(issuer: 'MyFriend', friendlyName: 'MyFriendName');
        
        // Prepares a challenge used to verify that a user has access to a MFA factor.
        final res = await client.mfa.challenge(factorId: factorId1);
        
        // Verifies a code against a challenge.
        final res = await client.mfa
                .verify(factorId: factorId1, challengeId: challengeId, code: getTOTP());
        
        Read more about MFA with Supabase here
      • paginate admin.listUsers()
        auth.admin.listUsers(page: 2, perPage: 10);
        
    • feat: update postgrest to v1.2.1
    • fix: update realtime to v1.0.2
      • export realtime presence
    • feat: update storage to v1.2.0
      • add transform option to createSignedUrl(), getPublicUrl(), and .download() to transform images on the fly
        final signedUrl = await storage.from(newBucketName).createSignedUrl(uploadPath, 2000,
                    transform: TransformOptions(
                      width: 100,
                      height: 100,
                    ));
        final publicUrl = storage.from(bucket).getPublicUrl(path,
                transform: TransformOptions(width: 200, height: 300));
        final file = await storage.from(newBucketName).download(uploadPath,
                transform: TransformOptions(
                  width: 200,
                  height: 200,
                ));
        

1.2.2 #

  • fix: bug where auth callback URL is not correctly parsed #292

1.2.1 #

  • fix: Only parse deep links if it contains access_token #284
  • chore: update and add some links in Readme.md #286

1.2.0 #

  • feat: update supabase to v1.2.0
    • add createUser(), deleteUser(), and listUsers() to admin methods.
  • feat: add storage retry option to enable storage to auto retry failed upload attempts #280
    // The following will initialize Supabase that will retry failed uploads up to 25 times,
    // which is about 10 minutes of retrying.
    await Supabase.initialize(
      supabaseUrl,
      supabaseAnonKey,
      storageRetryAttempts: 25,
    );
    

1.1.0 #

  • fix: await for the initial deeplink to be handled during auth initialize #262
  • feat: update supabase to v1.1.0
    • fix: stream filter other than eq is not properly applied.
    • fail to getSessionFromUrl throws error on onAuthStateChange
      supabase.onAuthStateChange.listen((data) {
        // handle auth state change here
      }, onError: (error) {
        // handle error here
      });
      
    • feat: add generic types to .select()
      // data is `List<Map<String, dynamic>>`
      final data = await supabase.from('users').select<List<Map<String, dynamic>>>();
      
      // data is `Map<String, dynamic>`
      final data = await supabase.from('users').select<Map<String, dynamic>>().eq('id', myId).single();
      

1.0.1 #

  • fix: update sample code on readme.md

1.0.0 #

  • chore: v1.0.0 release 🚀
  • BREAKING: update supabase to v1.0.0
    • BREAKING: .stream() now takes a named parameter primaryKey instead of a positional argument.
      supabase.from('my_table').stream(primaryKey: ['id']);
      
    • feat: .stream() has 5 additional filters: neq, gt, gte, lt, lte (148
    • auth.signUp() now uses named parameters
      // Before
      final res = await supabase.auth.signUp('example@email.com', 'password');
      // After
      final res = await supabase.auth.signUp(email: 'example@email.com', password: 'password');
    
    • auth.signIn() is split into different methods
      // Magic link sign-in
      // Before
      final res = await supabase.auth.signIn(email: 'example@email.com');
      // After
      final res = await supabase.auth.signInWithOtp(email: 'example@email.com');
    
      // Email and password sign-in
      // Before
      final res = await supabase.auth.signIn(email: 'example@email.com', password: 'password');
      // After
      final res = await supabase.auth.signInWithPassword(email: 'example@email.com', password: 'password');
    
    • auth.onAuthStateChange is now a stream
      // Before
      supabase.auth.onAuthStateChange((event, session) {
        // ...
      });
      // After
      final subscription = supabase.auth.onAuthStateChange.listen((data) {
        final AuthChangeEvent event = data.event;
        final Session? session = data.session;
      });
      // Don't forget to cancel the subscription when you're done
      subscription.cancel();
    
    • auth.update() is renamed to auth.updateUser()
      // Before
      final res = await supabase.auth.update(
          UserAttributes(
            email: 'new@email.com',
            data: {
              'username': 'new_username',
            },
          ),
      );
      // After
      final res = await supabase.auth.updateUser(
          UserAttributes(
            email: 'new@email.com',
            data: {
              'username': 'new_username',
            },
          ),
      );
    
    • SupabaseAuth.instance.onAuthChange() is now removed and supabase.auth.onAuthStateChange() should be used instead
  • BREAKING: set minimum required Flutter version to 2.8.0

1.0.0-dev.9 #

  • fix: update supabase to v1.0.0-dev.9
    • fix: recreate a PostgrestClient with proper auth headers when calling .rpc() (#143)
    • fix: allow custom headers to be set for SupabaseClient (#144)
    • fix: stream error will emit the entire exception and the stack trace (#145)
    • fix: update realtime to v1.0.0-dev.5
      • fix: bug where it throws exception when listening to postgres changes on old version of realtime server
      • fix: sends null for access_token when not signed in (#53)

1.0.0-dev.8 #

  • BREAKING: update supabase to v1.0.0-dev.7
    • update payload shape on old version of realtime server to match the new version in realtime v1.0.0-dev.3
    • fix: encoding issue with some languages in gotrue v1.0.0-dev.4
    • fix: update insert documentation to reflect new returning behavior in postgrest v1.0.0-dev.4

1.0.0-dev.7 #

1.0.0-dev.6 #

  • BREAKING: update supabase package v1.0.0-dev.5
    • deprecated: .stream() no longer needs .execute()
    • BREAKING: eq filter on .stream() is a separate method now
    // before
    Supabase.instance.client.from('my_table:title=eq.Supabase')
      .stream(['id'])
      .order('created_at')
      .limit(10)
      .execute()
      .listen((payload) {
        // do something with payload here
      });
    
    // now
    Supabase.instance.client.from('my_table')
      .stream(['id'])
      .eq('title', 'Supabase')
      .order('created_at')
      .limit(10)
      .listen((payload) {
        // do something with payload here
      });
    
    • BREAKING: listening to database changes has a new API
    • feat: added support for broadcast and presence
    final channel = Supabase.instance.client.channel('can_be_any_string');
    
    // listen to insert events on public.messages table
    channel.on(
        RealtimeListenTypes.postgresChanges,
        ChannelFilter(
          event: 'INSERT',
          schema: 'public',
          table: 'messages',
        ), (payload, [ref]) {
      print('database insert payload: $payload');
    });
    
    // listen to `location` broadcast events
    channel.on(
        RealtimeListenTypes.broadcast,
        ChannelFilter(
          event: 'location',
        ), (payload, [ref]) {
      print(payload);
    });
    
    // send `location` broadcast events
    channel.send(
      type: RealtimeListenTypes.broadcast,
      event: 'location',
      payload: {'lat': 1.3521, 'lng': 103.8198},
    );
    
    // listen to presence states
    channel.on(RealtimeListenTypes.presence, ChannelFilter(event: 'sync'),
        (payload, [ref]) {
      print(payload);
      print(channel.presenceState());
    });
    
    // subscribe to the above changes
    channel.subscribe((status) async {
      if (status == 'SUBSCRIBED') {
        // if subscribed successfully, send presence event
        final status = await channel.track({'user_id': myUserId});
      }
    });
    

1.0.0-dev.5 #

  • chore: add example app in example directory
  • fix: WidgetsBinding warning

1.0.0-dev.4 #

  • BREAKING: update supabase package v1.0.0-dev.4
  • feat: accept custom headers
  • feat: add add X-Client-Info header

1.0.0-dev.3 #

1.0.0-dev.2 #

  • feat: custom http client

1.0.0-dev.1 #

  • feat: add Mac OS and Windows support for deep links
  • BREAKING: Remove SupabaseAuthRequiredState as well as overriding methods in SupabaseAuthState
// Before

await Supabase.initialize(
  url: 'SUPABASE_URL',
  anonKey: 'SUPABASE_ANON_KEY',
);
...

// Class extending `SupabaseAuthState` or `AuthRequiredState` was necessary
// to persist auth state
class AuthState<T extends StatefulWidget> extends SupabaseAuthState<T> {
  ...
}

// After

// Initializing Supabase is all you need to do to persist auth state
// Deep links will also be automatically handled when you initialize Supabase.
await Supabase.initialize(
  url: 'SUPABASE_URL',
  anonKey: 'SUPABASE_ANON_KEY',
);

...

// You can get the initial session of the user with `SupabaseAuth.instance.initialSession`
try {
    final initialSession = await SupabaseAuth.instance.initialSession;
} catch(error) {
    // Handle errors in session initial recovery here
}

// You should now use `onAuthStateChanged` as the 
Supabase.instance.client.auth.onAuthStateChange((event, session) {
    // handle sign-in/signups here
});
  • fix: OAuth should open in an external browser
  • BREAKING: update supabase package v1.0.0-dev.1

0.3.3 #

  • feat: update supabase package v0.3.6

0.3.2 #

  • chore: add basic example codes on readme.md

0.3.1+3 #

  • fix: OAuth authentication page should open in an external browser

0.3.1+2 #

  • chore: update supabase package v0.3.4+1

0.3.1+1 #

  • fix: lint error on Flutter 2.X
  • chore: add multiple Flutter version to the CI pipeline

0.3.1 #

  • feat: update supabase to v0.3.4

0.3.0 #

  • BREAKING: update supabase to v0.3.0

0.2.12 #

  • chore: update supabase-dart package v0.2.14

0.2.11 #

  • chore: update supabase-dart package v0.2.13

0.2.10 #

  • chore: update supabase-dart package v0.2.12
  • chore: update documents

0.2.9 #

  • feat: signing out now triggers onUnauthenticated()
  • feat: export supabase package so that underlying symbols can be imported
  • fix: update code samples to reflect breaking change from v0.0.3
  • fix: typos on code samples on readme.md

0.2.8 #

  • chore: update supabase to v0.2.7

0.2.7 #

  • chore: update supabase to v0.2.6

0.2.6 #

  • fix: export local_storage

0.2.5 #

  • chore: update supabase to v0.2.5

0.2.4 #

  • chore: update supabase to v0.2.4

0.2.3 #

  • chore: update supabase to v0.2.3

0.2.2 #

  • chore: update supabase to v0.2.2

0.2.1 #

  • chore: update supabase to v0.2.1

0.2.0 #

  • chore: update supabase to v0.2.0

0.1.0 #

  • BREAKING CHANGE: Supabase.initialize is now Future<void>
  • chore: update supabase to v0.1.0
  • feat: using hive to persist session by default

0.0.8 #

  • chore: update supabase to v0.0.8

0.0.7 #

  • chore: update supabase to v0.0.7

0.0.6 #

  • chore: update supabase to v0.0.5

0.0.5 #

  • chore: update supabase to v0.0.4

0.0.4 #

  • chore: update supabase to v0.0.3

0.0.3 #

  • BREAKING CHANGE: rework Supabase singleton with Supabase.initialize and Supabase.instance
  • chore: update docs

0.0.2 #

  • feat: support custom localStorage with fallback to SharedPreferences as default

0.0.1 #

  • chore: update supabase, url_launcher packages

0.0.1-dev.5 #

  • fix: launch url in the current tab for flutter web
  • fix: SupabaseAuthRequiredState to trigger onAuthenticated when user session available

0.0.1-dev.4 #

  • feat: support flutter web

0.0.1-dev.3 #

  • chore: update supabase to v0.0.1

0.0.1-dev.2 #

  • feat: support nested authentication flow with startAuthObserver() and stopAuthObserver()
  • feat: support SupabaseAuthRequiredState
  • feat: support enable/disable debug log
  • refactor: tidy up

0.0.1-dev.1 #

  • Initial pre-release.