@supabase/supabase-js 3.0.0-next.0 → 3.0.0-next.10

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": "3.0.0-next.0",
3
+ "version": "3.0.0-next.10",
4
4
  "description": "Isomorphic Javascript SDK for Supabase",
5
5
  "keywords": [
6
6
  "javascript",
@@ -80,11 +80,11 @@
80
80
  "update:test-deps:bun": "cd test/integration/bun && bun install"
81
81
  },
82
82
  "dependencies": {
83
- "@supabase/auth-js": "3.0.0-next.0",
84
- "@supabase/functions-js": "3.0.0-next.0",
85
- "@supabase/postgrest-js": "3.0.0-next.0",
86
- "@supabase/realtime-js": "3.0.0-next.0",
87
- "@supabase/storage-js": "3.0.0-next.0"
83
+ "@supabase/auth-js": "3.0.0-next.10",
84
+ "@supabase/functions-js": "3.0.0-next.10",
85
+ "@supabase/postgrest-js": "3.0.0-next.10",
86
+ "@supabase/realtime-js": "3.0.0-next.10",
87
+ "@supabase/storage-js": "3.0.0-next.10"
88
88
  },
89
89
  "devDependencies": {
90
90
  "jsr": "^0.13.5",
@@ -110,7 +110,7 @@ export default class SupabaseClient<
110
110
  * import { createClient } from '@supabase/supabase-js'
111
111
  *
112
112
  * // Create a single supabase client for interacting with your database
113
- * const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-or-anon-key')
113
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
114
114
  * ```
115
115
  *
116
116
  * @example With a custom domain
@@ -118,7 +118,7 @@ export default class SupabaseClient<
118
118
  * import { createClient } from '@supabase/supabase-js'
119
119
  *
120
120
  * // Use a custom domain as the supabase URL
121
- * const supabase = createClient('https://my-custom-domain.com', 'publishable-or-anon-key')
121
+ * const supabase = createClient('https://my-custom-domain.com', 'your-publishable-key')
122
122
  * ```
123
123
  *
124
124
  * @example With additional parameters
@@ -138,7 +138,7 @@ export default class SupabaseClient<
138
138
  * headers: { 'x-my-custom-header': 'my-app-name' },
139
139
  * },
140
140
  * }
141
- * const supabase = createClient("https://xyzcompany.supabase.co", "publishable-or-anon-key", options)
141
+ * const supabase = createClient("https://xyzcompany.supabase.co", "your-publishable-key", options)
142
142
  * ```
143
143
  *
144
144
  * @exampleDescription With custom schemas
@@ -151,7 +151,7 @@ export default class SupabaseClient<
151
151
  * ```js
152
152
  * import { createClient } from '@supabase/supabase-js'
153
153
  *
154
- * const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-or-anon-key', {
154
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key', {
155
155
  * // Provide a custom schema. Defaults to "public".
156
156
  * db: { schema: 'other_schema' }
157
157
  * })
@@ -166,7 +166,7 @@ export default class SupabaseClient<
166
166
  * ```js
167
167
  * import { createClient } from '@supabase/supabase-js'
168
168
  *
169
- * const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-or-anon-key', {
169
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key', {
170
170
  * global: { fetch: fetch.bind(globalThis) }
171
171
  * })
172
172
  * ```
@@ -180,7 +180,7 @@ export default class SupabaseClient<
180
180
  * import { createClient } from '@supabase/supabase-js'
181
181
  * import AsyncStorage from "@react-native-async-storage/async-storage";
182
182
  *
183
- * const supabase = createClient("https://xyzcompany.supabase.co", "publishable-or-anon-key", {
183
+ * const supabase = createClient("https://xyzcompany.supabase.co", "your-publishable-key", {
184
184
  * auth: {
185
185
  * storage: AsyncStorage,
186
186
  * autoRefreshToken: true,
@@ -257,7 +257,7 @@ export default class SupabaseClient<
257
257
  * }
258
258
  * }
259
259
  *
260
- * const supabase = createClient("https://xyzcompany.supabase.co", "publishable-or-anon-key", {
260
+ * const supabase = createClient("https://xyzcompany.supabase.co", "your-publishable-key", {
261
261
  * auth: {
262
262
  * storage: new LargeSecureStore(),
263
263
  * autoRefreshToken: true,
@@ -271,7 +271,7 @@ export default class SupabaseClient<
271
271
  * ```ts
272
272
  * import { createClient } from '@supabase/supabase-js'
273
273
  *
274
- * const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-or-anon-key')
274
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
275
275
  *
276
276
  * const { data } = await supabase.from('profiles').select('*')
277
277
  * ```
@@ -328,6 +328,7 @@ export default class SupabaseClient<
328
328
  this.realtime = this._initRealtimeClient({
329
329
  headers: this.headers,
330
330
  accessToken: this._getAccessToken.bind(this),
331
+ fetch: this.fetch,
331
332
  ...settings.realtime,
332
333
  })
333
334
  if (this.accessToken) {
@@ -552,6 +553,7 @@ export default class SupabaseClient<
552
553
  lock,
553
554
  debug,
554
555
  throwOnError,
556
+ experimental,
555
557
  }: SupabaseAuthClientOptions,
556
558
  headers?: Record<string, string>,
557
559
  fetch?: Fetch
@@ -573,6 +575,7 @@ export default class SupabaseClient<
573
575
  lock,
574
576
  debug,
575
577
  throwOnError,
578
+ experimental,
576
579
  fetch,
577
580
  // auth checks if there is a custom authorizaiton header using this flag
578
581
  // so it knows whether to return an error when getUser is called with no session
package/src/index.ts CHANGED
@@ -39,7 +39,7 @@ export type {
39
39
  * ```ts
40
40
  * import { createClient } from '@supabase/supabase-js'
41
41
  *
42
- * const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-or-anon-key')
42
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
43
43
  * const { data, error } = await supabase.from('profiles').select('*')
44
44
  * ```
45
45
  */
package/src/lib/types.ts CHANGED
@@ -124,6 +124,13 @@ export type SupabaseClientOptions<SchemaName> = {
124
124
  * throwing the error instead of returning it as part of a successful response.
125
125
  */
126
126
  throwOnError?: SupabaseAuthClientOptions['throwOnError']
127
+ /**
128
+ * Opt-in flags for experimental features. These APIs may change without
129
+ * notice and are disabled by default.
130
+ *
131
+ * @experimental
132
+ */
133
+ experimental?: SupabaseAuthClientOptions['experimental']
127
134
  }
128
135
  /**
129
136
  * Options passed to the realtime-js instance
@@ -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 = '3.0.0-next.0'
7
+ export const version = '3.0.0-next.10'