Repository navigation
Releases
@vercel/[email protected]
Minor Changes
- 3b0e3a9:
put,putImage,copy,renameandcompleteMultipartUploadnow returnexpiresAt(aDate) for blobs written withttlDays, so you no longer need a follow-uphead()to learn when a blob will be deleted. - 3b0e3a9: Add
setTtl(urlOrPathname, { ttlDays })to change or clear a blob's TTL in place. PassttlDays: nullto remove it. Pass an array of up to 1,000 urls to update them in one request; a blob that couldn't be updated comes back as anerrorentry (not_foundwhen it doesn't exist) instead of failing the batch. S3 counts the TTL from the blob's upload date, not from this call. - 3b0e3a9: Add
ttlDaysoption toput,putImage,putFromUrl,copy,rename,createMultipartUpload, client tokens and presigned URLs. Blobs uploaded with a TTL are deleted automatically after that many days;head()returns the scheduledexpiresAt.ttlDaysis 1 to 730. Each write that sets a TTL counts as one additional Advanced Operation per started 60 days.
@vercel/[email protected]
Patch Changes
- f11f653: Send blob API version 13, where the server reads keys containing
.or..path segments exactly as they were written instead of resolving them away. Fixeshead,copy,rename,delandliston blobs whose pathname has a dot segment.
@vercel/[email protected]
Patch Changes
- 59be092: Allow
get()to fetch blob URLs from aVERCEL_BLOB_API_URLorigin.get()only accepted URLs on*.blob.vercel-storage.com, which blocked local emulators likeemulate, since they serve blob content from their own host. WhenVERCEL_BLOB_API_URL(orNEXT_PUBLIC_VERCEL_BLOB_API_URL) is set, URLs on that same origin are now accepted as well. With no override set the behavior is unchanged, so arbitrary hosts are still rejected in production.
@vercel/[email protected]
Minor Changes
- 8b49164: Add
putImage(pathname, bodyOrUrl, options): optimizes an image through Vercel Image Optimization and stores only the optimized output. The source can be the image content itself (string, File, Blob, Buffer or Stream) or aURLinstance pointing at a public http(s) image, which is fetched server-side. Options mirrorput(access, addRandomSuffix, allowOverwrite, cacheControlMaxAge, ifMatch) plus the requiredoptimizeImageparameters (width,quality,format);contentTypeis not accepted since the stored content type always comes from the optimizer output. Deprecates theoptimizeImageoption onputand theputFromUrlfunction in favor ofputImage; both keep working.
@vercel/[email protected]
Patch Changes
- 59b9bf5: Rename the internal
@vercel/edge-config-fspackage to@vercel/global-config-fs
@vercel/[email protected]
Patch Changes
- 59b9bf5: Rename the internal
@vercel/edge-config-fspackage to@vercel/global-config-fs
@vercel/[email protected]
Minor Changes
-
ad5a134: Add image optimization support: a new
optimizeImageoption onputand a newputFromUrlmethod. Both optimize the image through Vercel Image Optimization before storing it (only the optimized output is stored) and require OIDC authentication.const result = await put("avatars/foo.webp", body, { access: "public", optimizeImage: { width: 128, quality: 75, format: "webp" }, }); const result = await putFromUrl( "avatars/foo.webp", "https://example.com/photo.jpg", { access: "public", optimizeImage: { width: 128, quality: 75, format: "webp" }, } );
@vercel/[email protected]
Minor Changes
-
5c2d8bf: Introduce
@vercel/global-configas the new name for@vercel/edge-config.The package is a drop-in replacement: all existing exports are unchanged, and the exported types are additionally aliased as
GlobalConfigClient,GlobalConfigItems,GlobalConfigValueandEmbeddedGlobalConfig.The default client now reads the connection string from
process.env.GLOBAL_CONFIG, falling back toprocess.env.EDGE_CONFIGif it is not defined. The same applies toGLOBAL_CONFIG_TRACE_VERBOSEandGLOBAL_CONFIG_DISABLE_DEVELOPMENT_SWR.Connection strings using
https://global-config.vercel.comare now supported, in addition to the existinghttps://edge-config.vercel.comandedge-config:formats.
@vercel/[email protected]
Version Packages (#1089) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@vercel/[email protected]
Patch Changes
- d0118c4: Add a
useCacheoption topresignUrl()forgetoperations. WhenuseCache: false, the presigned URL includes acache=0query param so fetches bypass the CDN cache and read the latest content directly from origin storage. Likeget(), the bypass only applies to private blobs. The param is not part of the signed payload, so holders of a presigned URL can also add or remove it manually.