Skip to content

Commit 0a62213

Browse files
Version Packages (#849)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 00dfe23 commit 0a62213

File tree

5 files changed

+37
-27
lines changed

5 files changed

+37
-27
lines changed

Diff for: .changeset/two-walls-doubt.md

-25
This file was deleted.

Diff for: packages/blob/CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# @vercel/blob
22

3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- 00dfe23: Vercel Blob is now GA! To celebrate this we're releasing the `1.0.0` version of the Vercel Blob SDK which includes multiple changes and improvements.
8+
9+
Changes:
10+
11+
- `addRandomSuffix` is now false by default
12+
- Blobs are cached for one month, configurable and with a lower limit of 1 min. Which means you cannot configure the blob cache to be less than 1 minute.
13+
- Random suffixes are now also added to the `pathname` of blob responses and `content-disposition` header.
14+
- Overwriting blobs now requires to use `allowOverwrite: true`. Example:
15+
16+
```js
17+
await put('file.png', file, { access: 'public' });
18+
19+
await put('file.png', file, { access: 'public' }); // This will throw
20+
21+
put('file.png', file, { access: 'public', allowOverwrite: true }); // This will work
22+
```
23+
24+
How to upgrade:
25+
26+
- If you're using random suffixes by default, then add `addRandomSuffix: true` to `put` and `onBeforeGenerateToken` options.
27+
- If you're overwriting blobs, then add `allowOverwrite: true` to `put` and `onBeforeGenerateToken` options.
28+
- If you're using a cache-control of less than one minute, we recommend using a Vercel Function instead of a Blob. As Vercel Blob is primarily designed for caching content for a longer time.
29+
- If you're displaying the `pathname` field of Blob responses in a UI, and using random suffixes, make sure you adpat the UI to show the longer `pathname`.
30+
331
## 0.27.3
432

533
### Patch Changes

Diff for: packages/blob/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vercel/blob",
3-
"version": "0.27.3",
3+
"version": "1.0.0",
44
"description": "The Vercel Blob JavaScript API client",
55
"homepage": "https://vercel.com/storage/blob",
66
"repository": {

Diff for: test/next/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# vercel-storage-integration-test-suite
22

3+
## 0.3.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [00dfe23]
8+
- @vercel/blob@1.0.0
9+
310
## 0.3.4
411

512
### Patch Changes

Diff for: test/next/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vercel-storage-integration-test-suite",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"private": true,
55
"scripts": {
66
"build": "next build",

0 commit comments

Comments
 (0)