Skip to content

chore: sync sdk-compliance.yaml with the v3 public API - #1790

Merged
spydon merged 4 commits into
v3from
chore/v3-sdk-compliance
Oct 28, 2026
Merged

spydon merged 4 commits into
v3from
chore/v3-sdk-compliance

Conversation

@spydon

@spydon spydon commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Top of the v3 sync stack (#1791 to #1798), stacked on #1798. Rewrites sdk-compliance.yaml for the v3 public API and pins the compliance workflow to capability-matrix/v1.18.0.

Changes

  • Workflow: validate-capabilities.yml now uses supabase/sdk at capability-matrix/v1.18.0 (e259106).

  • Symbols: every symbol now uses the v3 class names. Examples:

    • AsyncGoTrueClient.* becomes Async/SyncSupabaseAuthClient.*.
    • postgrest methods map to RequestBuilder and the other builders in request_builder.py.
    • Storage, functions and realtime are listed once, since v3 has no Async/Sync split for them.
  • Newly declared features: the 11 features the v1.18.0 registry added are now declared, all not_implemented in v3. They are auth.admin.update_mfa_factor, auth.sso_admin.*, database.generated_types.typed_queries and typed_rpc, and storage.file_buckets.purge_project_cache, resumable_upload and transfer_progress.

  • Private helpers: the internal helpers added while porting main are introduced with private names directly in fix(functions): port main's changes to v3 #1794, fix(auth): port main's changes to v3 #1795 and fix(postgrest): port main's changes to v3 #1796, so they are not public API.

  • Drift check: the 28 implemented features the drift check could not verify now register their entry points under symbols. Features that take an option list the method or options class that accepts it, for example RealtimeChannelOptions.presence for presence_key. auth.session.auto_refresh and client.session_management.custom_storage move their entry points from supporting_symbols to symbols. Cancellation and timeouts, which work through asyncio, are marked no_public_symbols.

  • Review fixes in the stack: exchange_code_for_session is registered on AsyncSupabaseAuthClient and SyncSupabaseAuthClient instead of the shared base class, RealtimeChannel.joined is registered now that it is a property, and the removed ListIndexesOptions is dropped.

  • Accuracy fixes: database.configuration.auto_retry points at BaseRequestClient.retry, which every postgrest builder now has. The reconnect backoff note describes the fixed max_retries behaviour, the heartbeat note mentions the 15 second minimum, and the request timeout notes no longer recommend asyncio.timeout(), which does not exist on Python 3.10. Instead they point at the httpx client timeout or asyncio.wait_for.

Status changes compared to main

  • auth.admin.sign_out: implemented → not_implemented. The v3 admin client has no sign_out.
  • realtime.client.connection_state: partially_implemented → not_implemented. v3 exposes no connection state.
  • realtime.subscriptions.broadcast_ack: partially_implemented → implemented.
  • realtime.configuration.access_token_callback: not_implemented → partially_implemented. connect_once(token_callback=...) works, but the supabase AsyncClient hands realtime a callback that only ever returns the anon key.
  • client.authentication_integration.cross_client_token_sync: implemented → partially_implemented. The sync Client syncs postgrest, storage and functions. In v3, AsyncClient.auth builds a new auth client on every access, so the listener registered in __init__ never fires and no client, realtime included, gets the new token.
  • client.session_management.persist_session: implemented → not_implemented. In v3, SupabaseAuthClient accepts persist_session and storage_key but never uses them.

The token callback, cross-client sync and persist_session gaps are v3 bugs and should be fixed in code separately.

Testing

  • I ran the v1.18.0 tooling locally: the compliance validator, a griffe dump checked with check-api-symbols in additions mode against v3 as the base, and check-drift. All pass, and the drift check reports nothing.
  • In full-coverage mode, 107 public symbols are still unregistered, mostly internal plumbing that could be made private later.
  • mypy, the tests that need no infra and make ruff pass.

@spydon
spydon requested a review from o-santi as a code owner October 20, 2026 12:20
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch from 9d9f7ab to 3b06d03 Compare October 20, 2026 14:56
@spydon
spydon changed the base branch from chore/merge-main-into-v3 to v3-sync/08-realtime October 20, 2026 14:58
@spydon
spydon added this pull request to stack #1799 October 20, 2026 15:08
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch from 7ec9f2d to 4389dd8 Compare October 21, 2026 07:13
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch from 4389dd8 to 80b075f Compare October 21, 2026 07:46
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch 2 times, most recently from 5f4e22f to c95b5b3 Compare October 22, 2026 08:01
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch from c95b5b3 to 847cb68 Compare October 26, 2026 13:45
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch from 847cb68 to 7cc6cf4 Compare October 26, 2026 14:08
@spydon
spydon removed this pull request from stack #1799 October 26, 2026 15:40
@spydon
spydon added this pull request to stack #1841 October 26, 2026 15:40
@spydon
spydon removed this pull request from stack #1841 October 26, 2026 15:42
@spydon
spydon added this pull request to stack #1842 October 26, 2026 15:42
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch from 7cc6cf4 to 5eb107b Compare October 27, 2026 16:26
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch 4 times, most recently from c8aee1e to 764d268 Compare October 27, 2026 17:14
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch 2 times, most recently from 05be96b to 6fe83ba Compare October 27, 2026 17:19
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch 2 times, most recently from f86d389 to 945024d Compare October 27, 2026 19:48
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch 2 times, most recently from 75e79e5 to e05a2c8 Compare October 28, 2026 08:51
Base automatically changed from v3-sync/08-realtime to v3 October 28, 2026 08:59
exchange_code_for_session moved to the async and sync auth clients, RealtimeChannel.joined is now a property, and ListIndexesOptions was removed.
retry() moved to BaseRequestClient. access_token_callback is partial, because the supabase AsyncClient never updates the token it hands to realtime, and the cross-client sync, reconnect backoff, heartbeat interval and timeout notes now describe what the code does.
@spydon
spydon force-pushed the chore/v3-sdk-compliance branch from e05a2c8 to 435378e Compare October 28, 2026 08:59
@spydon
spydon merged commit 46e362e into v3 Oct 28, 2026
36 checks passed
@spydon
spydon deleted the chore/v3-sdk-compliance branch October 28, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant