@supabase/storage-js 2.76.2-canary.1 → 2.77.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/storage-js",
3
- "version": "2.76.2-canary.1",
3
+ "version": "2.77.0",
4
4
  "description": "Isomorphic storage client for Supabase.",
5
5
  "keywords": [
6
6
  "javascript",
@@ -25,8 +25,7 @@
25
25
  "directory": "packages/core/storage-js"
26
26
  },
27
27
  "scripts": {
28
- "clean": "rimraf dist docs/v2",
29
- "build": "npm run clean && npm run build:main && npm run build:module && npm run build:umd",
28
+ "build": "npm run build:main && npm run build:module && npm run build:umd",
30
29
  "build:main": "tsc -p tsconfig.json",
31
30
  "build:module": "tsc -p tsconfig.module.json",
32
31
  "build:umd": "webpack",
package/src/lib/types.ts CHANGED
@@ -51,6 +51,7 @@ export interface FileObject {
51
51
  id: string
52
52
  updated_at: string
53
53
  created_at: string
54
+ /** @deprecated */
54
55
  last_accessed_at: string
55
56
  metadata: Record<string, any>
56
57
  buckets: Bucket
@@ -63,6 +64,7 @@ export interface FileObjectV2 {
63
64
  bucket_id: string
64
65
  updated_at: string
65
66
  created_at: string
67
+ /** @deprecated */
66
68
  last_accessed_at: string
67
69
  size?: number
68
70
  cache_control?: string
@@ -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.76.2-canary.1'
7
+ export const version = '2.77.0'
@@ -135,11 +135,8 @@ export default class StorageAnalyticsApi {
135
135
  const url = queryString ? `${this.url}/bucket?${queryString}` : `${this.url}/bucket`
136
136
 
137
137
  const data = await get(this.fetch, url, { headers: this.headers })
138
- // Filter to only return analytics buckets
139
- const analyticsBuckets = Array.isArray(data)
140
- ? data.filter((bucket: Bucket) => bucket.type === 'ANALYTICS')
141
- : []
142
- return { data: analyticsBuckets, error: null }
138
+
139
+ return { data: data, error: null }
143
140
  } catch (error) {
144
141
  if (this.shouldThrowOnError) {
145
142
  throw error