feat(supabase): rename env to runtime and add runtime-version in X-Client-Info#2412
Merged
Merged
Conversation
…ient-Info Builds on #2359: renames the structured metadata key from `env` to `runtime` and adds a `runtime-version` field where the version can be deterministically extracted: - Node.js: process.version (leading `v` stripped) - Deno: Deno.version.deno - Web / React Native: no version appended Before: supabase-js/2.x.x; env=node After: supabase-js/2.x.x; runtime=node; runtime-version=22.13.1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@supabase/auth-js
@supabase/functions-js
@supabase/postgrest-js
@supabase/realtime-js
@supabase/storage-js
@supabase/supabase-js
commit: |
mandarini
approved these changes
Jun 1, 2026
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
Builds on top of #2359 (the structured
X-Client-Infometadata initiative, SDK-902/903).Two changes:
envkey toruntimeper the updated specruntime-versionfield where the version can be deterministically extracted at module load timeBefore / After
supabase-js/2.x.x; env=nodesupabase-js/2.x.x; runtime=node; runtime-version=22.13.1supabase-js/2.x.x; env=denosupabase-js/2.x.x; runtime=deno; runtime-version=1.37.0supabase-js/2.x.x; env=websupabase-js/2.x.x; runtime=websupabase-js/2.x.x; env=react-nativesupabase-js/2.x.x; runtime=react-nativeRuntime version extraction
process.versionwith the leadingvstripped (e.g.22.13.1)Deno.version.deno(e.g.1.37.0)Changes
packages/core/supabase-js/src/lib/constants.ts: renamedenv→runtime, addedJS_RUNTIME_VERSIONextraction for Node and Denopackages/core/supabase-js/test/unit/constants.test.ts: updated all assertions; added Deno-with-version test and negativeruntime-versionassertions for web and React NativeType of Change
Testing
jest-runtime@30.4.2/clearMocksOnScopeerror is pre-existing and unrelated to this change (reproduced on master before any edits)Checklist
tsc --noEmit)🤖 Generated with Claude Code