@supabase/supabase-js 2.93.4-canary.0 → 2.93.4-canary.1

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.93.4-canary.0",
3
+ "version": "2.93.4-canary.1",
4
4
  "description": "Isomorphic Javascript SDK for Supabase",
5
5
  "keywords": [
6
6
  "javascript",
@@ -70,11 +70,11 @@
70
70
  "update:test-deps:bun": "cd test/integration/bun && bun install"
71
71
  },
72
72
  "dependencies": {
73
- "@supabase/auth-js": "2.93.4-canary.0",
74
- "@supabase/functions-js": "2.93.4-canary.0",
75
- "@supabase/postgrest-js": "2.93.4-canary.0",
76
- "@supabase/realtime-js": "2.93.4-canary.0",
77
- "@supabase/storage-js": "2.93.4-canary.0"
73
+ "@supabase/auth-js": "2.93.4-canary.1",
74
+ "@supabase/functions-js": "2.93.4-canary.1",
75
+ "@supabase/postgrest-js": "2.93.4-canary.1",
76
+ "@supabase/realtime-js": "2.93.4-canary.1",
77
+ "@supabase/storage-js": "2.93.4-canary.1"
78
78
  },
79
79
  "devDependencies": {
80
80
  "jsr": "^0.13.5",
@@ -175,6 +175,8 @@ export default class SupabaseClient<
175
175
  headers: this.headers,
176
176
  schema: settings.db.schema,
177
177
  fetch: this.fetch,
178
+ timeout: settings.db.timeout,
179
+ urlLengthLimit: settings.db.urlLengthLimit,
178
180
  })
179
181
 
180
182
  this.storage = new SupabaseStorageClient(
package/src/lib/types.ts CHANGED
@@ -31,6 +31,31 @@ export type SupabaseClientOptions<SchemaName> = {
31
31
  */
32
32
  db?: {
33
33
  schema?: SchemaName
34
+ /**
35
+ * Optional timeout in milliseconds for PostgREST requests.
36
+ * When set, requests will automatically abort after this duration to prevent indefinite hangs.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const supabase = createClient(url, key, {
41
+ * db: { timeout: 30000 } // 30 second timeout
42
+ * })
43
+ * ```
44
+ */
45
+ timeout?: number
46
+ /**
47
+ * Maximum URL length in characters before warnings/errors are triggered.
48
+ * Defaults to 8000 characters. Used to provide helpful hints when URLs
49
+ * exceed server limits.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const supabase = createClient(url, key, {
54
+ * db: { urlLengthLimit: 10000 } // Custom limit
55
+ * })
56
+ * ```
57
+ */
58
+ urlLengthLimit?: number
34
59
  }
35
60
 
36
61
  auth?: {
@@ -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.93.4-canary.0'
7
+ export const version = '2.93.4-canary.1'