@supabase/supabase-js 2.107.0-beta.0 → 2.107.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/supabase-js",
3
- "version": "2.107.0-beta.0",
3
+ "version": "2.107.0-beta.6",
4
4
  "description": "Isomorphic Javascript SDK for Supabase",
5
5
  "keywords": [
6
6
  "javascript",
@@ -59,11 +59,11 @@
59
59
  "directory": "packages/core/supabase-js"
60
60
  },
61
61
  "dependencies": {
62
- "@supabase/auth-js": "2.107.0-beta.0",
63
- "@supabase/functions-js": "2.107.0-beta.0",
64
- "@supabase/realtime-js": "2.107.0-beta.0",
65
- "@supabase/postgrest-js": "2.107.0-beta.0",
66
- "@supabase/storage-js": "2.107.0-beta.0"
62
+ "@supabase/auth-js": "2.107.0-beta.6",
63
+ "@supabase/functions-js": "2.107.0-beta.6",
64
+ "@supabase/postgrest-js": "2.107.0-beta.6",
65
+ "@supabase/realtime-js": "2.107.0-beta.6",
66
+ "@supabase/storage-js": "2.107.0-beta.6"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@arethetypeswrong/cli": "^0.18.2",
@@ -4,18 +4,30 @@ import { SupabaseAuthClientOptions, TracePropagationOptions } from './types'
4
4
  import { version } from './version'
5
5
 
6
6
  let JS_ENV = ''
7
+ let JS_RUNTIME_VERSION: string | undefined
7
8
  // @ts-ignore
8
9
  if (typeof Deno !== 'undefined') {
9
10
  JS_ENV = 'deno'
11
+ // @ts-ignore
12
+ JS_RUNTIME_VERSION = Deno.version?.deno
10
13
  } else if (typeof document !== 'undefined') {
11
14
  JS_ENV = 'web'
12
15
  } else if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
13
16
  JS_ENV = 'react-native'
14
17
  } else {
15
18
  JS_ENV = 'node'
19
+ JS_RUNTIME_VERSION =
20
+ typeof process !== 'undefined' ? process.version?.replace(/^v/, '') : undefined
16
21
  }
17
22
 
18
- export const DEFAULT_HEADERS = { 'X-Client-Info': `supabase-js-${JS_ENV}/${version}` }
23
+ const _runtimeMeta = [`runtime=${JS_ENV}`]
24
+ if (JS_RUNTIME_VERSION) {
25
+ _runtimeMeta.push(`runtime-version=${JS_RUNTIME_VERSION}`)
26
+ }
27
+
28
+ export const DEFAULT_HEADERS = {
29
+ 'X-Client-Info': `supabase-js/${version}; ${_runtimeMeta.join('; ')}`,
30
+ }
19
31
 
20
32
  export const DEFAULT_GLOBAL_OPTIONS = {
21
33
  headers: DEFAULT_HEADERS,
@@ -4,4 +4,4 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.107.0-beta.0'
7
+ export const version = '2.107.0-beta.6'