@supabase/supabase-js 2.117.3 → 2.118.0-canary.0
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/umd/supabase.js +2 -2
- package/package.json +6 -6
- package/src/lib/rest/types/common/common.ts +8 -0
- package/src/lib/rest/types/common/rpc.ts +9 -3
- 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.
|
|
3
|
+
"version": "2.118.0-canary.0",
|
|
4
4
|
"description": "Isomorphic Javascript SDK for Supabase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
"directory": "packages/core/supabase-js"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@supabase/auth-js": "2.
|
|
81
|
-
"@supabase/functions-js": "2.
|
|
82
|
-
"@supabase/
|
|
83
|
-
"@supabase/
|
|
84
|
-
"@supabase/
|
|
80
|
+
"@supabase/auth-js": "2.118.0-canary.0",
|
|
81
|
+
"@supabase/functions-js": "2.118.0-canary.0",
|
|
82
|
+
"@supabase/postgrest-js": "2.118.0-canary.0",
|
|
83
|
+
"@supabase/realtime-js": "2.118.0-canary.0",
|
|
84
|
+
"@supabase/storage-js": "2.118.0-canary.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@opentelemetry/api": ">=1.0.0"
|
|
@@ -52,6 +52,12 @@ export type GenericTable = {
|
|
|
52
52
|
Insert: Record<string, unknown>
|
|
53
53
|
Update: Record<string, unknown>
|
|
54
54
|
Relationships: GenericRelationship[]
|
|
55
|
+
/**
|
|
56
|
+
* Names of the `Row` keys that are computed fields (functions taking the row), which
|
|
57
|
+
* PostgREST leaves out of `select('*')`. Generated types declare it; when absent, the
|
|
58
|
+
* computed fields are inferred from `Functions`.
|
|
59
|
+
*/
|
|
60
|
+
ComputedFields?: string
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
export type GenericUpdatableView = {
|
|
@@ -59,11 +65,13 @@ export type GenericUpdatableView = {
|
|
|
59
65
|
Insert: Record<string, unknown>
|
|
60
66
|
Update: Record<string, unknown>
|
|
61
67
|
Relationships: GenericRelationship[]
|
|
68
|
+
ComputedFields?: string
|
|
62
69
|
}
|
|
63
70
|
|
|
64
71
|
export type GenericNonUpdatableView = {
|
|
65
72
|
Row: Record<string, unknown>
|
|
66
73
|
Relationships: GenericRelationship[]
|
|
74
|
+
ComputedFields?: string
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
export type GenericView = GenericUpdatableView | GenericNonUpdatableView
|
|
@@ -86,10 +86,16 @@ export type GetRpcFunctionFilterBuilderByArgs<
|
|
|
86
86
|
1: IsAny<Schema> extends true
|
|
87
87
|
? any
|
|
88
88
|
: IsNever<Args> extends true
|
|
89
|
-
? //
|
|
90
|
-
//
|
|
89
|
+
? // Generated types spell a zero-argument definition either `Args: never` or
|
|
90
|
+
// `Args: Record<PropertyKey, never>`, so both are matched before falling back to the last
|
|
91
|
+
// function definition matched by name, which is for retro compatibility with a single
|
|
92
|
+
// return and an union of Args
|
|
91
93
|
IsNever<ExtractExactFunction<Schema['Functions'][FnName], Args>> extends true
|
|
92
|
-
?
|
|
94
|
+
? IsNever<
|
|
95
|
+
ExtractExactFunction<Schema['Functions'][FnName], Record<PropertyKey, never>>
|
|
96
|
+
> extends true
|
|
97
|
+
? LastOf<Schema['Functions'][FnName]>
|
|
98
|
+
: ExtractExactFunction<Schema['Functions'][FnName], Record<PropertyKey, never>>
|
|
93
99
|
: ExtractExactFunction<Schema['Functions'][FnName], Args>
|
|
94
100
|
: Args extends Record<PropertyKey, never>
|
|
95
101
|
? LastOf<Schema['Functions'][FnName]>
|
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.
|
|
7
|
+
export const version = '2.118.0-canary.0'
|