@supabase/supabase-js 2.81.1 → 2.81.2-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/main/SupabaseClient.d.ts +7 -0
- package/dist/main/SupabaseClient.d.ts.map +1 -1
- package/dist/main/SupabaseClient.js +7 -0
- package/dist/main/SupabaseClient.js.map +1 -1
- package/dist/main/index.d.ts +8 -0
- package/dist/main/index.d.ts.map +1 -1
- package/dist/main/index.js +8 -0
- package/dist/main/index.js.map +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.d.ts.map +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/main/lib/version.js.map +1 -1
- package/dist/module/SupabaseClient.d.ts +7 -0
- package/dist/module/SupabaseClient.d.ts.map +1 -1
- package/dist/module/SupabaseClient.js +7 -0
- package/dist/module/SupabaseClient.js.map +1 -1
- package/dist/module/index.d.ts +8 -0
- package/dist/module/index.d.ts.map +1 -1
- package/dist/module/index.js +8 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.d.ts.map +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/module/lib/version.js.map +1 -1
- package/dist/umd/supabase.js +1 -1
- package/package.json +6 -6
- package/src/SupabaseClient.ts +7 -0
- package/src/index.ts +8 -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.81.1",
|
|
3
|
+
"version": "2.81.2-canary.1",
|
|
4
4
|
"description": "Isomorphic Javascript SDK for Supabase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"update:test-deps:bun": "cd test/integration/bun && bun install"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@supabase/auth-js": "2.81.1",
|
|
58
|
-
"@supabase/functions-js": "2.81.1",
|
|
59
|
-
"@supabase/postgrest-js": "2.81.1",
|
|
60
|
-
"@supabase/realtime-js": "2.81.1",
|
|
61
|
-
"@supabase/storage-js": "2.81.1"
|
|
57
|
+
"@supabase/auth-js": "2.81.2-canary.1",
|
|
58
|
+
"@supabase/functions-js": "2.81.2-canary.1",
|
|
59
|
+
"@supabase/postgrest-js": "2.81.2-canary.1",
|
|
60
|
+
"@supabase/realtime-js": "2.81.2-canary.1",
|
|
61
|
+
"@supabase/storage-js": "2.81.2-canary.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"jsr": "^0.13.5",
|
package/src/SupabaseClient.ts
CHANGED
|
@@ -101,6 +101,13 @@ export default class SupabaseClient<
|
|
|
101
101
|
* @param options.storage Options passed along to the storage-js constructor.
|
|
102
102
|
* @param options.global.fetch A custom fetch implementation.
|
|
103
103
|
* @param options.global.headers Any additional headers to send with each network request.
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* import { createClient } from '@supabase/supabase-js'
|
|
107
|
+
*
|
|
108
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')
|
|
109
|
+
* const { data } = await supabase.from('profiles').select('*')
|
|
110
|
+
* ```
|
|
104
111
|
*/
|
|
105
112
|
constructor(
|
|
106
113
|
protected supabaseUrl: string,
|
package/src/index.ts
CHANGED
|
@@ -23,6 +23,14 @@ export type { SupabaseClientOptions, QueryResult, QueryData, QueryError } from '
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Creates a new Supabase Client.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* import { createClient } from '@supabase/supabase-js'
|
|
30
|
+
*
|
|
31
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')
|
|
32
|
+
* const { data, error } = await supabase.from('profiles').select('*')
|
|
33
|
+
* ```
|
|
26
34
|
*/
|
|
27
35
|
export const createClient = <
|
|
28
36
|
Database = any,
|
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.81.1'
|
|
7
|
+
export const version = '2.81.2-canary.1'
|