Repository navigation
chore(repo): declare supabase-js compliance with SDK capability matrix - #2441
Merged
Merged
Conversation
@supabase/auth-js
@supabase/functions-js
@supabase/postgrest-js
@supabase/realtime-js
@supabase/storage-js
@supabase/supabase-js
commit: |
mandarini
force-pushed
the
chore/sdk-compliance-plumbing
branch
from
June 12, 2026 06:50
5dc9da4 to
9ade4c8
Compare
mandarini
force-pushed
the
chore/sdk-compliance-plumbing
branch
2 times, most recently
from
June 16, 2026 12:50
829bf20 to
27958bc
Compare
mandarini
marked this pull request as ready for review
June 16, 2026 12:51
grdsdev
reviewed
Jun 16, 2026
grdsdev
left a comment
Contributor
There was a problem hiding this comment.
Do we want to keep the changed scripts/* files and the sdk-compliance.draft.yaml? Or was that a bootstrap thing we can remove?
Contributor
Author
|
@grdsdev i wanted to keep them, but you're right, they do not want to be so many and i can drop the bootstrapping one. did so |
mandarini
force-pushed
the
chore/sdk-compliance-plumbing
branch
2 times, most recently
from
June 17, 2026 11:43
4553090 to
aedd617
Compare
mandarini
force-pushed
the
chore/sdk-compliance-plumbing
branch
from
June 17, 2026 13:01
aedd617 to
aacbef0
Compare
2 tasks
grdsdev
approved these changes
Jun 17, 2026
spydon
added a commit
to supabase/supabase-flutter
that referenced
this pull request
Jun 17, 2026
## Description Wires supabase-flutter into the per-SDK capability compliance model used across the Supabase SDKs (see [supabase-js#2441](supabase/supabase-js#2441) for the reference implementation). Adds a root-level `sdk-compliance.yaml` declaring which canonical capability IDs supabase-flutter implements, plus a CI workflow that validates the file against the canonical registry in [supabase/sdk](https://github.com/supabase/sdk). Linear: SDK-1034 ### What changed? Two new files: - **`sdk-compliance.yaml`** — declares the status of all 216 canonical capability IDs (auth, database, storage, realtime, functions, client). Statuses are `implemented`, `partially_implemented` (with a note describing the divergence from supabase-js), or `not_implemented`. Unlisted IDs default to `not_implemented`. - **`.github/workflows/validate-capabilities.yml`** — calls the reusable `validate-sdk-compliance.yml` workflow from `supabase/sdk` on every PR that touches the compliance file. Rejects unknown feature IDs and invalid statuses. ### How statuses were determined Every capability was verified against the actual Dart source in this repository, not just against the [gaps document](https://linear.app/supabase/document/gaps-in-supabase-flutter-dee88c3c1179). Because the repo has moved on since that document was written, several capabilities it lists as missing are in fact implemented now: - **OAuth client admin** (`auth.oauth_admin.*`) — fully implemented via `admin.oauth`. - **Passkeys** (`auth.passkey.*`, `auth.passkey_admin.*`) — implemented (experimental); marked `implemented` rather than `not_applicable` since passkeys do apply to Flutter mobile/desktop. - **Edge Function streaming** (`functions.invocation.streaming_response`) — implemented; `text/event-stream` responses are passed through as a raw byte stream. ### Status summary - ~146 `implemented` - ~26 `partially_implemented` (each carries a note, e.g. `signOut` defaulting to `local` scope, `listUsers` dropping pagination metadata, `explain` lacking JSON format) - ~44 `not_implemented` (Web3 sign-in, OAuth server consent flow, custom SSO providers, vector/analytics storage, request cancellation/timeouts, etc.) ### Notes - This file is hand-maintained. As gaps tracked in [SDK-973](https://linear.app/supabase/issue/SDK-973) are closed, update the corresponding entries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Wires supabase-js into the per-SDK capability compliance model introduced in supabase/sdk#15. Adds a root-level
sdk-compliance.yamldeclaring which capability IDs supabase-js implements, a CI workflow that validates that file against the canonical registry, and two scripts plus a mapping file that keep both sides in sync.What changed?
New files:
sdk-compliance.yaml-- 168 feature entries declaringimplementedstatus for each public method supabase-js exposes, grouped by area (auth, database, storage, realtime, functions). Generated by the audit script. Unlisted IDs default tonot_implemented..github/workflows/validate-capabilities.yml-- calls the reusablevalidate-sdk-compliance.ymlworkflow fromsupabase/sdkon every PR that touchessdk-compliance.yaml. Rejects unknown feature IDs. Declares a minimalcontents: readtoken permission.scripts/audit-sdk-compliance.ts-- walks each package's typedocspec.json, collects public methods on the main client classes (with a small DENYLIST for boilerplate likethen,toJSON,dispose), dedupes duplicate method names across classes (e.g.signOuton bothGoTrueClientandGoTrueAdminApi), applies the canonical mapping, snake_cases the names, and emits<area>.<group>.<snake_method>: implementedentries. Re-run whenever public methods change.scripts/sync-canon.ts-- one-direction "JS to canon" pipeline. Reads the samespec.jsonfiles plus their JSDoc summaries and writes feature entries into../sdk/capabilities/<area>.yaml. Two modes:--bootstrapreplaces canon files wholesale (used once to seed the registry); default mode is additive (only appends IDs that don't already exist, leaves existing entries untouched so registry maintainers and other SDKs can edit freely). Canon path is configurable via--canon-pathflag orSUPABASE_SDK_CAPABILITIES_PATHenv var, defaulting to a sibling checkout.scripts/canonical-mapping.yaml-- hand-maintained map from auto-derived JS feature IDs to their canonical IDs insupabase/sdk, for the cases where they diverge (JS-isms renamed in canon, group renames such asfilterstousing_filters, methods that collapse into one capability, and anullvalue to drop JS-only methods with no canonical counterpart). Without an entry, the auto-derived ID flows through unchanged.Source changes (documentation only, no behavior change):
packages/core/postgrest-js/src/{PostgrestClient,PostgrestFilterBuilder,PostgrestTransformBuilder}.tsandpackages/core/realtime-js/src/RealtimeChannel.ts-- reposition JSDoc comments onto the implementation signatures and add@categorytags so the typedocspec.jsonattributes method summaries correctly for the audit and sync scripts..gitignore-- ignore the audit script'ssdk-compliance.draft.yamlworking file.Additional notes
sync-canon.tsdefaults to additive on the canon side so concurrent edits from registry maintainers and other SDKs don't get clobbered. The bootstrap mode is one-shot.signInWithOAuth) snake_cases tosign_in_with_o_authdue to a heuristic ambiguity in the camelCase to snake_case conversion (the same regex that correctly splitsregexIMatchtoregex_i_matchalso splitsOAuthtoO_Auth). Left as-is; documented in the script comments.@supabase/supabase-js v2.108.1.