@supabase/supabase-js 2.116.0 → 2.117.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 +12 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -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 +3 -3
- package/package.json +6 -6
- package/src/lib/types.ts +12 -1
- 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.117.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/
|
|
81
|
-
"@supabase/
|
|
82
|
-
"@supabase/
|
|
83
|
-
"@supabase/
|
|
84
|
-
"@supabase/
|
|
80
|
+
"@supabase/auth-js": "2.117.0-canary.0",
|
|
81
|
+
"@supabase/functions-js": "2.117.0-canary.0",
|
|
82
|
+
"@supabase/postgrest-js": "2.117.0-canary.0",
|
|
83
|
+
"@supabase/realtime-js": "2.117.0-canary.0",
|
|
84
|
+
"@supabase/storage-js": "2.117.0-canary.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@opentelemetry/api": ">=1.0.0"
|
package/src/lib/types.ts
CHANGED
|
@@ -259,7 +259,11 @@ export type SupabaseClientOptions<SchemaName> = {
|
|
|
259
259
|
}
|
|
260
260
|
/**
|
|
261
261
|
* Optional function for using a third-party authentication system with
|
|
262
|
-
* Supabase.
|
|
262
|
+
* Supabase. Leave unset when using Supabase Auth — session tokens are
|
|
263
|
+
* refreshed automatically. Only needed when integrating a third-party
|
|
264
|
+
* provider (e.g. Clerk, Auth0, Firebase).
|
|
265
|
+
*
|
|
266
|
+
* The function should return an access token or ID token (JWT) by
|
|
263
267
|
* obtaining it from the third-party auth SDK. Note that this
|
|
264
268
|
* function may be called concurrently and many times. Use memoization and
|
|
265
269
|
* locking techniques if this is not supported by the SDKs.
|
|
@@ -267,6 +271,13 @@ export type SupabaseClientOptions<SchemaName> = {
|
|
|
267
271
|
* When set, the `auth` namespace of the Supabase client cannot be used.
|
|
268
272
|
* Create another client if you wish to use Supabase Auth and third-party
|
|
269
273
|
* authentications concurrently in the same application.
|
|
274
|
+
*
|
|
275
|
+
* For Realtime: also called on connect and on every heartbeat
|
|
276
|
+
* (`realtime.heartbeatIntervalMs`, default 25000ms). The token must stay valid
|
|
277
|
+
* past the next call, or Realtime closes the channel at expiry with no
|
|
278
|
+
* automatic resubscribe. So, plan for some call time and overhead,
|
|
279
|
+
* i.e. if hearbeats happen every 25 seconds and your token is still valid for 27
|
|
280
|
+
* seconds it's probably safer to refresh right now rather than risk a race condition.
|
|
270
281
|
*/
|
|
271
282
|
accessToken?: () => Promise<string | null>
|
|
272
283
|
/**
|
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.117.0-canary.0'
|