@supabase/storage-js 2.104.0-canary.1 → 2.104.0

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 CHANGED
@@ -1481,7 +1481,7 @@ var StorageFileApi = class extends BaseApiClient {
1481
1481
 
1482
1482
  //#endregion
1483
1483
  //#region src/lib/version.ts
1484
- const version = "2.104.0-canary.1";
1484
+ const version = "2.104.0";
1485
1485
 
1486
1486
  //#endregion
1487
1487
  //#region src/lib/constants.ts
@@ -1803,8 +1803,18 @@ var StorageAnalyticsClient = class extends BaseApiClient {
1803
1803
  * @param headers - HTTP headers to include in requests
1804
1804
  * @param fetch - Optional custom fetch implementation
1805
1805
  *
1806
- * @example Creating a StorageAnalyticsClient instance
1806
+ * @example Using supabase-js (recommended)
1807
1807
  * ```typescript
1808
+ * import { createClient } from '@supabase/supabase-js'
1809
+ *
1810
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-or-anon-key')
1811
+ * const { data, error } = await supabase.storage.analytics.listBuckets()
1812
+ * ```
1813
+ *
1814
+ * @example Standalone import for bundle-sensitive environments
1815
+ * ```typescript
1816
+ * import { StorageAnalyticsClient } from '@supabase/storage-js'
1817
+ *
1808
1818
  * const client = new StorageAnalyticsClient(url, headers)
1809
1819
  * ```
1810
1820
  */
@@ -2328,8 +2338,18 @@ var StorageVectorsClient = class extends VectorBucketApi {
2328
2338
  * @param options.headers - Optional headers (for example `Authorization`) applied to every request.
2329
2339
  * @param options.fetch - Optional custom `fetch` implementation for non-browser runtimes.
2330
2340
  *
2331
- * @example Creating a StorageVectorsClient instance
2341
+ * @example Using supabase-js (recommended)
2342
+ * ```typescript
2343
+ * import { createClient } from '@supabase/supabase-js'
2344
+ *
2345
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-or-anon-key')
2346
+ * const bucket = supabase.storage.vectors.from('embeddings-prod')
2347
+ * ```
2348
+ *
2349
+ * @example Standalone import for bundle-sensitive environments
2332
2350
  * ```typescript
2351
+ * import { StorageVectorsClient } from '@supabase/storage-js'
2352
+ *
2333
2353
  * const client = new StorageVectorsClient(url, options)
2334
2354
  * ```
2335
2355
  */
@@ -2815,12 +2835,20 @@ var StorageClient = class extends StorageBucketApi {
2815
2835
  * Creates a client for Storage buckets, files, analytics, and vectors.
2816
2836
  *
2817
2837
  * @category File Buckets
2818
- * @example Creating a Storage client
2838
+ * @example Using supabase-js (recommended)
2839
+ * ```ts
2840
+ * import { createClient } from '@supabase/supabase-js'
2841
+ *
2842
+ * const supabase = createClient('https://xyzcompany.supabase.co', 'publishable-or-anon-key')
2843
+ * const avatars = supabase.storage.from('avatars')
2844
+ * ```
2845
+ *
2846
+ * @example Standalone import for bundle-sensitive environments
2819
2847
  * ```ts
2820
2848
  * import { StorageClient } from '@supabase/storage-js'
2821
2849
  *
2822
2850
  * const storage = new StorageClient('https://xyzcompany.supabase.co/storage/v1', {
2823
- * apikey: 'public-anon-key',
2851
+ * apikey: 'publishable-or-anon-key',
2824
2852
  * })
2825
2853
  * const avatars = storage.from('avatars')
2826
2854
  * ```