Skip to content

Commit da5abb5

Browse files
Merge branch 'next' of https://github.com/supabase/supabase-js into j0_patch_revamped_constructor
2 parents eba62c1 + a8acc65 commit da5abb5

File tree

5 files changed

+22
-20
lines changed

5 files changed

+22
-20
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ dist
103103

104104
# TernJS port file
105105
.tern-port
106+
107+
docs/

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
},
3939
"dependencies": {
4040
"@supabase/functions-js": "^1.3.3",
41-
"@supabase/gotrue-js": "^1.23.0-next.12",
41+
"@supabase/gotrue-js": "^1.23.0-next.15",
4242
"@supabase/postgrest-js": "^1.0.0-next.2",
4343
"@supabase/realtime-js": "^1.8.0-next.13",
44-
"@supabase/storage-js": "^1.8.0-next.3",
44+
"@supabase/storage-js": "^1.8.0-next.4",
4545
"cross-fetch": "^3.1.5"
4646
},
4747
"devDependencies": {

src/SupabaseClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
PostgrestQueryBuilder,
77
} from '@supabase/postgrest-js'
88
import { RealtimeChannel, RealtimeClient, RealtimeClientOptions } from '@supabase/realtime-js'
9-
import { SupabaseStorageClient } from '@supabase/storage-js'
9+
import { StorageClient as SupabaseStorageClient } from '@supabase/storage-js'
1010
import { DEFAULT_HEADERS } from './lib/constants'
1111
import { fetchWithAuth } from './lib/fetch'
1212
import { stripTrailingSlash } from './lib/helpers'
@@ -297,7 +297,7 @@ export default class SupabaseClient<
297297
autoRefreshToken,
298298
persistSession,
299299
detectSessionInUrl,
300-
localStorage,
300+
storage,
301301
cookieOptions,
302302
storageKey,
303303
}: SupabaseAuthClientOptions,
@@ -315,7 +315,7 @@ export default class SupabaseClient<
315315
autoRefreshToken,
316316
persistSession,
317317
detectSessionInUrl,
318-
localStorage,
318+
storage,
319319
fetch,
320320
cookieOptions,
321321
})

src/lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type SupabaseClientOptions<SchemaName> = {
3939
/**
4040
* A storage provider. Used to store the logged in session.
4141
*/
42-
localStorage?: SupabaseAuthClientOptions['localStorage']
42+
storage?: SupabaseAuthClientOptions['storage']
4343
/**
4444
* Options passed to the gotrue-js instance
4545
*/

0 commit comments

Comments
 (0)