@supabase/supabase-js 2.81.1 → 2.81.2-canary.1

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": "2.81.1",
3
+ "version": "2.81.2-canary.1",
4
4
  "description": "Isomorphic Javascript SDK for Supabase",
5
5
  "keywords": [
6
6
  "javascript",
@@ -54,11 +54,11 @@
54
54
  "update:test-deps:bun": "cd test/integration/bun && bun install"
55
55
  },
56
56
  "dependencies": {
57
- "@supabase/auth-js": "2.81.1",
58
- "@supabase/functions-js": "2.81.1",
59
- "@supabase/postgrest-js": "2.81.1",
60
- "@supabase/realtime-js": "2.81.1",
61
- "@supabase/storage-js": "2.81.1"
57
+ "@supabase/auth-js": "2.81.2-canary.1",
58
+ "@supabase/functions-js": "2.81.2-canary.1",
59
+ "@supabase/postgrest-js": "2.81.2-canary.1",
60
+ "@supabase/realtime-js": "2.81.2-canary.1",
61
+ "@supabase/storage-js": "2.81.2-canary.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "jsr": "^0.13.5",
@@ -101,6 +101,13 @@ export default class SupabaseClient<
101
101
  * @param options.storage Options passed along to the storage-js constructor.
102
102
  * @param options.global.fetch A custom fetch implementation.
103
103
  * @param options.global.headers Any additional headers to send with each network request.
104
+ * @example
105
+ * ```ts
106
+ * import { createClient } from '@supabase/supabase-js'
107
+ *
108
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')
109
+ * const { data } = await supabase.from('profiles').select('*')
110
+ * ```
104
111
  */
105
112
  constructor(
106
113
  protected supabaseUrl: string,
package/src/index.ts CHANGED
@@ -23,6 +23,14 @@ export type { SupabaseClientOptions, QueryResult, QueryData, QueryError } from '
23
23
 
24
24
  /**
25
25
  * Creates a new Supabase Client.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * import { createClient } from '@supabase/supabase-js'
30
+ *
31
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')
32
+ * const { data, error } = await supabase.from('profiles').select('*')
33
+ * ```
26
34
  */
27
35
  export const createClient = <
28
36
  Database = any,
@@ -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.81.1'
7
+ export const version = '2.81.2-canary.1'