@supabase/ssr
Advanced tools
Comparing version 0.4.0-rc.4 to 0.4.0-rc.5
@@ -5,13 +5,2 @@ import { SupabaseClient } from "@supabase/supabase-js"; | ||
/** | ||
* @deprecated Please specify `getAll` and `setAll` cookie methods instead of | ||
* the `get`, `set` and `remove`. These will not be supported in the next major | ||
* version. | ||
*/ | ||
export declare function createBrowserClient<Database = any, SchemaName extends string & keyof Database = "public" extends keyof Database ? "public" : string & keyof Database, Schema extends GenericSchema = Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any>(supabaseUrl: string, supabaseKey: string, options?: SupabaseClientOptions<SchemaName> & { | ||
cookies: CookieMethodsBrowserDeprecated; | ||
cookieOptions?: CookieOptionsWithName; | ||
cookieEncoding?: "raw" | "base64url"; | ||
isSingleton?: boolean; | ||
}): SupabaseClient<Database, SchemaName, Schema>; | ||
/** | ||
* Creates a Supabase Client for use in a browser environment. | ||
@@ -39,1 +28,12 @@ * | ||
}): SupabaseClient<Database, SchemaName, Schema>; | ||
/** | ||
* @deprecated Please specify `getAll` and `setAll` cookie methods instead of | ||
* the `get`, `set` and `remove`. These will not be supported in the next major | ||
* version. | ||
*/ | ||
export declare function createBrowserClient<Database = any, SchemaName extends string & keyof Database = "public" extends keyof Database ? "public" : string & keyof Database, Schema extends GenericSchema = Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any>(supabaseUrl: string, supabaseKey: string, options?: SupabaseClientOptions<SchemaName> & { | ||
cookies: CookieMethodsBrowserDeprecated; | ||
cookieOptions?: CookieOptionsWithName; | ||
cookieEncoding?: "raw" | "base64url"; | ||
isSingleton?: boolean; | ||
}): SupabaseClient<Database, SchemaName, Schema>; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "0.4.0-rc.4"; | ||
export declare const VERSION = "0.4.0-rc.5"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '0.4.0-rc.4'; | ||
exports.VERSION = '0.4.0-rc.5'; | ||
//# sourceMappingURL=version.js.map |
@@ -5,13 +5,2 @@ import { SupabaseClient } from "@supabase/supabase-js"; | ||
/** | ||
* @deprecated Please specify `getAll` and `setAll` cookie methods instead of | ||
* the `get`, `set` and `remove`. These will not be supported in the next major | ||
* version. | ||
*/ | ||
export declare function createBrowserClient<Database = any, SchemaName extends string & keyof Database = "public" extends keyof Database ? "public" : string & keyof Database, Schema extends GenericSchema = Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any>(supabaseUrl: string, supabaseKey: string, options?: SupabaseClientOptions<SchemaName> & { | ||
cookies: CookieMethodsBrowserDeprecated; | ||
cookieOptions?: CookieOptionsWithName; | ||
cookieEncoding?: "raw" | "base64url"; | ||
isSingleton?: boolean; | ||
}): SupabaseClient<Database, SchemaName, Schema>; | ||
/** | ||
* Creates a Supabase Client for use in a browser environment. | ||
@@ -39,1 +28,12 @@ * | ||
}): SupabaseClient<Database, SchemaName, Schema>; | ||
/** | ||
* @deprecated Please specify `getAll` and `setAll` cookie methods instead of | ||
* the `get`, `set` and `remove`. These will not be supported in the next major | ||
* version. | ||
*/ | ||
export declare function createBrowserClient<Database = any, SchemaName extends string & keyof Database = "public" extends keyof Database ? "public" : string & keyof Database, Schema extends GenericSchema = Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any>(supabaseUrl: string, supabaseKey: string, options?: SupabaseClientOptions<SchemaName> & { | ||
cookies: CookieMethodsBrowserDeprecated; | ||
cookieOptions?: CookieOptionsWithName; | ||
cookieEncoding?: "raw" | "base64url"; | ||
isSingleton?: boolean; | ||
}): SupabaseClient<Database, SchemaName, Schema>; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "0.4.0-rc.4"; | ||
export declare const VERSION = "0.4.0-rc.5"; |
@@ -1,2 +0,2 @@ | ||
export const VERSION = '0.4.0-rc.4'; | ||
export const VERSION = '0.4.0-rc.5'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@supabase/ssr", | ||
"version": "0.4.0-rc.4", | ||
"version": "0.4.0-rc.5", | ||
"description": "Use the Supabase JavaScript library in popular server-side rendering (SSR) frameworks.", | ||
@@ -5,0 +5,0 @@ "main": "dist/main/index.js", |
@@ -32,5 +32,17 @@ import { parse, serialize } from "cookie"; | ||
/** | ||
* @deprecated Please specify `getAll` and `setAll` cookie methods instead of | ||
* the `get`, `set` and `remove`. These will not be supported in the next major | ||
* version. | ||
* Creates a Supabase Client for use in a browser environment. | ||
* | ||
* In most cases you should not configure the `options.cookies` object, as this | ||
* is automatically handled for you. If you do customize this, prefer using the | ||
* `getAll` and `setAll` functions over `get`, `set` and `remove`. The latter | ||
* are deprecated due to being difficult to correctly implement and not | ||
* supporting some edge-cases. Both `getAll` and `setAll` (or both `get`, `set` | ||
* and `remove`) must be provided. Failing to provide the methods for setting | ||
* will throw an exception, and in previous versions of the library will result | ||
* in difficult to debug authentication issues such as random logouts, early | ||
* session termination or problems with inconsistent state. | ||
* | ||
* @param supabaseUrl The URL of the Supabase project. | ||
* @param supabaseKey The `anon` API key of the Supabase project. | ||
* @param options Various configuration options. | ||
*/ | ||
@@ -49,3 +61,3 @@ export function createBrowserClient< | ||
options?: SupabaseClientOptions<SchemaName> & { | ||
cookies: CookieMethodsBrowserDeprecated; | ||
cookies?: CookieMethodsBrowser; | ||
cookieOptions?: CookieOptionsWithName; | ||
@@ -58,17 +70,5 @@ cookieEncoding?: "raw" | "base64url"; | ||
/** | ||
* Creates a Supabase Client for use in a browser environment. | ||
* | ||
* In most cases you should not configure the `options.cookies` object, as this | ||
* is automatically handled for you. If you do customize this, prefer using the | ||
* `getAll` and `setAll` functions over `get`, `set` and `remove`. The latter | ||
* are deprecated due to being difficult to correctly implement and not | ||
* supporting some edge-cases. Both `getAll` and `setAll` (or both `get`, `set` | ||
* and `remove`) must be provided. Failing to provide the methods for setting | ||
* will throw an exception, and in previous versions of the library will result | ||
* in difficult to debug authentication issues such as random logouts, early | ||
* session termination or problems with inconsistent state. | ||
* | ||
* @param supabaseUrl The URL of the Supabase project. | ||
* @param supabaseKey The `anon` API key of the Supabase project. | ||
* @param options Various configuration options. | ||
* @deprecated Please specify `getAll` and `setAll` cookie methods instead of | ||
* the `get`, `set` and `remove`. These will not be supported in the next major | ||
* version. | ||
*/ | ||
@@ -87,3 +87,3 @@ export function createBrowserClient< | ||
options?: SupabaseClientOptions<SchemaName> & { | ||
cookies?: CookieMethodsBrowser; | ||
cookies: CookieMethodsBrowserDeprecated; | ||
cookieOptions?: CookieOptionsWithName; | ||
@@ -90,0 +90,0 @@ cookieEncoding?: "raw" | "base64url"; |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '0.4.0-rc.4'; | ||
export const VERSION = '0.4.0-rc.5'; |