@supabase/supabase-js 3.0.0-next.17 → 3.0.0-next.19

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": "3.0.0-next.17",
3
+ "version": "3.0.0-next.19",
4
4
  "description": "Isomorphic Javascript SDK for Supabase",
5
5
  "keywords": [
6
6
  "javascript",
@@ -80,11 +80,11 @@
80
80
  "update:test-deps:bun": "cd test/integration/bun && bun install"
81
81
  },
82
82
  "dependencies": {
83
- "@supabase/auth-js": "3.0.0-next.17",
84
- "@supabase/functions-js": "3.0.0-next.17",
85
- "@supabase/postgrest-js": "3.0.0-next.17",
86
- "@supabase/realtime-js": "3.0.0-next.17",
87
- "@supabase/storage-js": "3.0.0-next.17"
83
+ "@supabase/auth-js": "3.0.0-next.19",
84
+ "@supabase/functions-js": "3.0.0-next.19",
85
+ "@supabase/postgrest-js": "3.0.0-next.19",
86
+ "@supabase/realtime-js": "3.0.0-next.19",
87
+ "@supabase/storage-js": "3.0.0-next.19"
88
88
  },
89
89
  "devDependencies": {
90
90
  "jsr": "^0.13.5",
@@ -555,6 +555,8 @@ export default class SupabaseClient<
555
555
  debug,
556
556
  throwOnError,
557
557
  experimental,
558
+ lockAcquireTimeout,
559
+ skipAutoInitialize,
558
560
  }: SupabaseAuthClientOptions,
559
561
  headers?: Record<string, string>,
560
562
  fetch?: Fetch
@@ -578,6 +580,8 @@ export default class SupabaseClient<
578
580
  throwOnError,
579
581
  experimental,
580
582
  fetch,
583
+ lockAcquireTimeout,
584
+ skipAutoInitialize,
581
585
  // auth checks if there is a custom authorizaiton header using this flag
582
586
  // so it knows whether to return an error when getUser is called with no session
583
587
  hasCustomAuthorizationHeader: Object.keys(this.headers).some(
package/src/lib/types.ts CHANGED
@@ -131,6 +131,22 @@ export type SupabaseClientOptions<SchemaName> = {
131
131
  * @experimental
132
132
  */
133
133
  experimental?: SupabaseAuthClientOptions['experimental']
134
+ /**
135
+ * Maximum time in milliseconds to wait when acquiring the auth lock before
136
+ * stealing it from the previous holder. See `GoTrueClientOptions.lockAcquireTimeout`
137
+ * for full semantics (zero fails immediately, negative waits indefinitely).
138
+ *
139
+ * @default 5000
140
+ */
141
+ lockAcquireTimeout?: SupabaseAuthClientOptions['lockAcquireTimeout']
142
+ /**
143
+ * If true, skips automatic initialization in the auth client constructor.
144
+ * Useful for SSR contexts where initialization timing must be controlled to
145
+ * prevent race conditions with HTTP response generation.
146
+ *
147
+ * @default false
148
+ */
149
+ skipAutoInitialize?: SupabaseAuthClientOptions['skipAutoInitialize']
134
150
  }
135
151
  /**
136
152
  * Options passed to the realtime-js instance
@@ -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 = '3.0.0-next.17'
7
+ export const version = '3.0.0-next.19'