Repository navigation
Conversation
Defines the structure and content of the X-Client-Info HTTP header sent by all Supabase client libraries — format, defined parameters (platform, platform-version, runtime, runtime-version, framework, framework-version), omission rules, and sub-client inheritance behavior. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add `framework` to Definitions - R2.5: remove out-of-scope parser normative text; parser behaviour is a data pipeline responsibility, not a client library requirement - Changelog 0.2.0: note that former R3.5 (omission rule) was renumbered to R3.7 - Add rationale entries for two uncovered SHOULDs: R3.1 (closest table value) and R3.2 (platform-version format follows host convention) - Regroup scenarios into Format / Inheritance / Parameters / Framework - Fix standalone-sub-client Expected: remove undefined [; ...] notation, be explicit about library token - Fix framework-detected Expected: replace <detected-version> placeholder with concrete version and source description - Add platform-included and runtime-included scenarios for R3.1/R3.3/R3.4 positive cases - Remove parameter-key-lookup scenario (tested parser behaviour, out of scope) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…r (0.2.2) - R2.2: reword to "When parameters are present, each MUST be separated…" so the requirement is not read as mandating parameters always exist, consistent with the zero-or-more ABNF in R2.4 - missing-platform-version scenario: replace informal <value> placeholder with concrete wording referencing the R3.1 defined-values table Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SDK-923 Set up supabase/sdk spec and tooling repository
SummaryCreated the Work done so far
Open PRs
References
|
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.
Summary
Adds
specs/0002-x-client-info-header.md— the behavior contract for theX-Client-InfoHTTP header sent by all Supabase client libraries.name/versionlibrary token followed by; key=valueparameters (semicolon-delimited, Content-Type convention)platform,platform-version,runtime,runtime-version,framework,framework-version— allSHOULD, omitted when not determinableBackground
The motivation for this spec is that adding a new HTTP header in supabase-js is a breaking change for applications running the client inside Edge Functions — users must explicitly allowlist headers in their CORS config.
X-Client-Infois already in every allowlist, so extending it as a structured value lets all client libraries add new metadata fields without touching CORS or coordinating across SDKs.Reference implementation: supabase/supabase-swift#986
Status
Draft— requesting team feedback before moving toReview.