@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/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +25 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/umd/supabase.js +8 -8
- package/package.json +6 -6
- package/src/SupabaseClient.ts +2 -0
- package/src/lib/types.ts +25 -0
- package/src/lib/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supabase/supabase-js",
|
|
3
|
-
"version": "2.93.4-canary.
|
|
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.
|
|
74
|
-
"@supabase/functions-js": "2.93.4-canary.
|
|
75
|
-
"@supabase/postgrest-js": "2.93.4-canary.
|
|
76
|
-
"@supabase/realtime-js": "2.93.4-canary.
|
|
77
|
-
"@supabase/storage-js": "2.93.4-canary.
|
|
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",
|
package/src/SupabaseClient.ts
CHANGED
|
@@ -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?: {
|
package/src/lib/version.ts
CHANGED
|
@@ -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.
|
|
7
|
+
export const version = '2.93.4-canary.1'
|