Skip to content

Commit

Permalink
Version Packages (#365)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Sep 13, 2023
1 parent 8251462 commit c5f9a26
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 33 deletions.
31 changes: 0 additions & 31 deletions .changeset/tall-masks-scream.md

This file was deleted.

32 changes: 32 additions & 0 deletions packages/blob/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# @vercel/blob

## 0.12.0

### Minor Changes

- 8251462: This release introduces BREAKING CHANGES. Mostly, we've separated client and server needs better. While ensuring we only export what we currently think is useful to you.

We have a completely new documentation about client (browser) uploads: https://vercel.com/docs/storage/vercel-blob/quickstart#client-uploads.

We've moved and renamed client-related utilities, including the ones to generate client tokens, to a separate entry file: `@vercel/blob/client`. Use it this way:

```ts
import {
upload,
handleUpload,
generateClientTokenFromReadWriteToken,
} from '@vercel/blob/client';
```

Here are the new features:

- You can now pass a `clientPayload?: string` option during client uploads via the `upload` method. This payload can be used to attach metadata to your file, for example when updating a blog post cover image, you may want to pass: `clientPayload: JSON.stringify({ postId: 123 })`, so you can then use it server side to update the blog post.

Here are the BREAKING CHANGES:

- `handleBlobUpload` has moved to client/`handleUpload`
- For client (browser) uploads, please use client/`upload` instead of `put`. Also, the `handleBlobUploadUrl` option has been renamed to `handleUploadUrl`.
- `verifyCallbackSignature` is no more exported if you think you need it, open an issue
- `BlobCommandOptions` type is no longer exported. This is an internal utility type. Other internal types were removed also but nobody was using them
- `metadata` in `onBeforeGenerateToken` and `onUploadCompleted` has been renamed to `tokenPayload`

Enjoy!

## 0.11.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/blob/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vercel/blob",
"version": "0.11.0",
"version": "0.12.0",
"description": "The Vercel Blob JavaScript API client",
"homepage": "https://vercel.com/storage/blob",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions test/next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# vercel-storage-integration-test-suite

## 0.1.19

### Patch Changes

- Updated dependencies [8251462]
- @vercel/blob@0.12.0

## 0.1.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion test/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vercel-storage-integration-test-suite",
"version": "0.1.18",
"version": "0.1.19",
"private": true,
"scripts": {
"build": "next build",
Expand Down

1 comment on commit c5f9a26

@vercel
Copy link

@vercel vercel bot commented on c5f9a26 Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.