@supabase/postgrest-js 3.0.0-next.8 → 3.0.0-next.9
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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/PostgrestBuilder.ts +2 -2
- package/src/PostgrestClient.ts +2 -2
- package/src/PostgrestQueryBuilder.ts +2 -2
- package/src/version.ts +1 -1
package/package.json
CHANGED
package/src/PostgrestBuilder.ts
CHANGED
|
@@ -96,7 +96,7 @@ export default abstract class PostgrestBuilder<
|
|
|
96
96
|
* ```ts
|
|
97
97
|
* import { createClient } from '@supabase/supabase-js'
|
|
98
98
|
*
|
|
99
|
-
* const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-
|
|
99
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
100
100
|
* const { data, error } = await supabase.from('users').select('*')
|
|
101
101
|
* ```
|
|
102
102
|
*
|
|
@@ -108,7 +108,7 @@ export default abstract class PostgrestBuilder<
|
|
|
108
108
|
*
|
|
109
109
|
* const builder = new PostgrestQueryBuilder(
|
|
110
110
|
* new URL('https://xyzcompany.supabase.co/rest/v1/users'),
|
|
111
|
-
* { headers: new Headers({ apikey: 'publishable-
|
|
111
|
+
* { headers: new Headers({ apikey: 'your-publishable-key' }) }
|
|
112
112
|
* )
|
|
113
113
|
* ```
|
|
114
114
|
*/
|
package/src/PostgrestClient.ts
CHANGED
|
@@ -62,7 +62,7 @@ export default class PostgrestClient<
|
|
|
62
62
|
* ```ts
|
|
63
63
|
* import { createClient } from '@supabase/supabase-js'
|
|
64
64
|
*
|
|
65
|
-
* const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-
|
|
65
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
66
66
|
* const { data, error } = await supabase.from('profiles').select('*')
|
|
67
67
|
* ```
|
|
68
68
|
*
|
|
@@ -77,7 +77,7 @@ export default class PostgrestClient<
|
|
|
77
77
|
* import { PostgrestClient } from '@supabase/postgrest-js'
|
|
78
78
|
*
|
|
79
79
|
* const postgrest = new PostgrestClient('https://xyzcompany.supabase.co/rest/v1', {
|
|
80
|
-
* headers: { apikey: 'publishable-
|
|
80
|
+
* headers: { apikey: 'your-publishable-key' },
|
|
81
81
|
* schema: 'public',
|
|
82
82
|
* timeout: 30000, // 30 second timeout
|
|
83
83
|
* })
|
|
@@ -48,7 +48,7 @@ export default class PostgrestQueryBuilder<
|
|
|
48
48
|
* ```ts
|
|
49
49
|
* import { createClient } from '@supabase/supabase-js'
|
|
50
50
|
*
|
|
51
|
-
* const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-
|
|
51
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
52
52
|
* const { data, error } = await supabase.from('users').select('*')
|
|
53
53
|
* ```
|
|
54
54
|
*
|
|
@@ -58,7 +58,7 @@ export default class PostgrestQueryBuilder<
|
|
|
58
58
|
*
|
|
59
59
|
* const query = new PostgrestQueryBuilder(
|
|
60
60
|
* new URL('https://xyzcompany.supabase.co/rest/v1/users'),
|
|
61
|
-
* { headers: { apikey: 'publishable-
|
|
61
|
+
* { headers: { apikey: 'your-publishable-key' }, retry: true }
|
|
62
62
|
* )
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
package/src/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 = '3.0.0-next.
|
|
7
|
+
export const version = '3.0.0-next.9'
|