Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.1→2.3.3Release Notes
vercel/storage (@vercel/blob)
v2.3.3Compare Source
Patch Changes
d2ea7cf: EnforcemaximumSizeInBytesclient-side for multipart uploads. Bodies with a known size (Blob, File, Buffer) are now checked before the upload starts, avoiding wasted API calls.949e994: Fix multipart upload hanging forever on empty streams, and fixcreateChunkTransformStreambypassing backpressure by removing incorrectqueueMicrotaskwrapping.v2.3.2Compare Source
Patch Changes
c9d9a1a: ApplyifMatch/allowOverwritevalidation tohandleUploadandgenerateClientTokenFromReadWriteToken. WhenifMatchis set viaonBeforeGenerateTokenor direct token generation,allowOverwriteis now implicitly enabled. Explicitly passingallowOverwrite: falsewithifMatchthrows a clear error.6dcecb8: MakeifMatchimplyallowOverwrite: trueonput(). Previously, usingifMatchwithout explicitly settingallowOverwrite: truewould cause the server to send conflicting conditional headers to S3, resulting in 500 errors. Now the SDK implicitly enablesallowOverwritewhenifMatchis set, and throws a clear error ifallowOverwrite: falseis explicitly combined withifMatch.v2.3.1Compare Source
Patch Changes
a9a733a: fix: validate URL domain inget()to prevent sending the token to arbitrary hostsv2.3.0Compare Source
Minor Changes
04ca1f0: Add private storage support (beta), a newget()method, and conditional getsPrivate storage (beta)
You can now upload and read private blobs by setting
access: 'private'onput()andget(). Private blobs require authentication to access — they are not publicly accessible via their URL.New
get()methodFetch blob content by URL or pathname. Returns a
ReadableStreamalong with blob metadata (url, pathname, contentType, size, etag, etc.).Conditional gets with
ifNoneMatchPass an
ifNoneMatchoption toget()with a previously received ETag. When the blob hasn't changed, the response returnsstatusCode: 304withstream: null, avoiding unnecessary re-downloads.Example
Learn more: https://vercel.com/docs/vercel-blob/private-storage
v2.2.0Compare Source
Minor Changes
2b1cbbc: AddifMatchoption todel()for conditional deletes (optimistic concurrency control). Only works for single-URL deletes.v2.1.0Compare Source
Minor Changes
6c68442: Add ETag support for conditional writes (optimistic concurrency control)etagin all blob responses (put, copy, head, list, multipart)ifMatchoption in put/copy/createMultipartUpload for conditional writesBlobPreconditionFailedErrorfor ETag mismatch (HTTP 412)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.