|
1 | | -# `storage-js` |
| 1 | +# ⚠️ REPOSITORY DEPRECATED - MOVED TO MONOREPO |
| 2 | + |
| 3 | +> **🚨 This repository has been moved and will be archived on October 10, 2025** |
| 4 | +> |
| 5 | +> **All development has moved to the [Supabase JS Monorepo](https://github.com/supabase/supabase-js)** |
| 6 | +> |
| 7 | +> **If you're looking for the README of `storage-js`, you can find it at:** |
| 8 | +> **https://github.com/supabase/supabase-js/tree/master/packages/core/storage-js** |
| 9 | +> |
| 10 | +> ### What happened? |
| 11 | +> |
| 12 | +> This repository was merged into the main Supabase JS monorepo for better coordination, testing, and releases. |
| 13 | +> |
| 14 | +> ### What you need to do: |
| 15 | +> |
| 16 | +> - **📖 For documentation**: Visit the [new storage-js location](https://github.com/supabase/supabase-js/tree/master/packages/core/storage-js) |
| 17 | +> - **🐛 For issues**: Create them in the [supabase-js repository](https://github.com/supabase/supabase-js/issues) |
| 18 | +> - **🔧 For contributions**: See the [Contributing Guide](https://github.com/supabase/supabase-js/blob/master/CONTRIBUTING.md) |
| 19 | +> - **📚 For migration help**: Read the [Migration Guide](https://github.com/supabase/supabase-js/blob/master/docs/MIGRATION.md) |
| 20 | +> |
| 21 | +> ### If you have open work: |
| 22 | +> |
| 23 | +> - **Uncommitted changes**: Manually transport your work to the monorepo (file structure is the same under `packages/core/storage-js/`) |
| 24 | +> - **Open PRs**: Tag a maintainer in your PR and we'll help you migrate it |
| 25 | +> - **Issues**: Will be transported to the supabase-js repository |
| 26 | +> |
| 27 | +> **⚠️ This is the old repository. Please use the [supabase-js monorepo](https://github.com/supabase/supabase-js) going forward.** |
| 28 | +
|
| 29 | +--- |
| 30 | + |
| 31 | +# `storage-js` (DEPRECATED - USE MONOREPO) |
2 | 32 |
|
3 | 33 | <div align="center"> |
4 | 34 |
|
@@ -160,16 +190,13 @@ const storageClient = new StorageClient(STORAGE_URL, { |
160 | 190 |
|
161 | 191 | Supplying `.throwOnError()` will throw errors instead of returning them as a property on the response object. |
162 | 192 |
|
163 | | - ```js |
164 | | - try { |
165 | | - const { data } = await storageClient |
166 | | - .from('bucket') |
167 | | - .throwOnError() |
168 | | - .download('path/to/file') |
169 | | - } catch (error) { |
170 | | - console.error(error) |
171 | | - } |
172 | | - ``` |
| 193 | +```js |
| 194 | +try { |
| 195 | + const { data } = await storageClient.from('bucket').throwOnError().download('path/to/file') |
| 196 | +} catch (error) { |
| 197 | + console.error(error) |
| 198 | +} |
| 199 | +``` |
173 | 200 |
|
174 | 201 | ## Sponsors |
175 | 202 |
|
|
0 commit comments