github supabase/supabase-swift v3.0.0-alpha.2

pre-release39 minutes ago

3.0.0-alpha.2 (2026-11-23)

⚠ BREAKING CHANGES

  • realtime: in a standalone RealtimeClient, an accessToken callback that returns nil now clears the stored token instead of keeping it, and httpSend drops an Authorization header from headers in that case.
  • supabase: SupabaseClient.Configuration.Database, .Auth, .Functions, .Storage and .Realtime no longer have http or logger, and Database, Auth, Storage and Realtime no longer have clock. Configuration.Global.clock, and clock and now on the standalone module configurations, are @_spi(Testing) and are no longer init parameters.
  • auth: a redirect URL with implicit tokens throws unless acceptsImplicitTokens is true. Apps that use email links without PKCE, invites, or generateLink links must opt in. An HTTPS redirect URL throws on systems older than iOS 17.4 and the matching releases.
  • storage: UploadOptions.upsert is Bool? instead of Bool.
  • storage: ObjectListingOptions.delimited is now Bool?, and objects(prefix:) without options lists every depth with no folders. Pass ObjectListingOptions(delimited: true) to list one level with folders.
  • storage: report each upload's error from resumeAll (#1850)
  • postgrest: maybeSingle() no longer sends Accept: application/vnd.pgrst.object+json, so PostgREST no longer rolls back a write that matches more than one row. The rows are written, then the call throws PGRST116. Use single() where the rollback matters. The typed maybeSingle() throws a .server error instead of .decoding.
  • auth: shouldCreateUser is Bool?, channel is MessagingChannel?, and deleteUser(id:softDelete:) takes Bool?. Code that reads these properties must handle nil.

Features

  • auth: expose lastChallengedAt, phone, and webAuthnAAGUID on Factor (#1876) (7ec2429)
  • helpers: add an equal-jitter BackoffPolicy (#1868) (7605701)
  • postgrest: add defaultToNull to typed bulk insert and upsert (#1856) (630823d)
  • realtime: add buffering policies to presence state and broadcast streams (#1840) (3a5863a)
  • realtime: add typed broadcast events (#1845) (029cedb)

Bug Fixes

  • auth: let the server apply its own OTP, channel, delete, and invite defaults (#1838) (4e62850)
  • auth: refuse implicit-token redirects by default and check the OAuth callback URL (#1864) (ac3717a)
  • auth: store the server's user after unlinkIdentity (#1851) (88ea33f)
  • functions: send a third-party provider token as given (#1853) (254d98d)
  • helpers: use full jitter for the retry backoff (#1860) (2201765)
  • postgrest: apply the configured coders on the typed path (#1861) (5e06f5b)
  • postgrest: escape the database function name in @function (#1857) (3c49050)
  • postgrest: let PostgREST apply its own write defaults in the typed API (#1835) (1e5a020)
  • postgrest: make maybeSingle behave the same on the typed and untyped paths (#1841) (c6ef67c)
  • postgrest: throw from typed readOnly() when arguments are not an object (#1852) (2c5b4f2)
  • realtime: accept unknown event values in the join reply (#1832) (4d125a2)
  • realtime: confirm subscribe on the join reply unless waitsForSubscription is set (#1869) (da4f9b0)
  • realtime: let the server judge typed Postgres changes filters (#1836) (e2eec74)
  • realtime: read the httpSend error message from any JSON body (#1846) (5d736f7)
  • realtime: treat a nil access token after a real one as "no user" (#1865) (554ed9f)
  • storage: keep a minimum wait between resumable upload retries (#1866) (908d3a5)
  • storage: keep resumable upload requests on the storage origin and inside the container (#1863) (fd7dcd4)
  • storage: leave Storage's own upsert and list defaults to the service (#1847) (cd2c893)
  • storage: report each upload's error from resumeAll (#1850) (53509e0)
  • storage: send values to the service instead of checking them first (#1839) (531793d)
  • storage: send with_delimiter on list-v2 only when the caller sets it (#1855) (b8a58cc)
  • storage: send x-upsert on every tus request and stop looping on duplicates (#1854) (24bb048)
  • supabase: apply the URLSession delegate to the Realtime WebSocket (#1862) (accd70a)

Code Refactoring

  • supabase: one http, logger and clock for every sub-client (#1858) (1a2d26b)

Don't miss a new supabase-swift release

NewReleases is sending notifications on new releases.