Skip to content

Releases

@vercel/[email protected]

Choose a tag to compare

@github-actions github-actions released this 09 Nov 16:52
bf0c1c5

Minor Changes

  • 3b0e3a9: put, putImage, copy, rename and completeMultipartUpload now return expiresAt (a Date) for blobs written with ttlDays, so you no longer need a follow-up head() to learn when a blob will be deleted.
  • 3b0e3a9: Add setTtl(urlOrPathname, { ttlDays }) to change or clear a blob's TTL in place. Pass ttlDays: null to 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 an error entry (not_found when 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 ttlDays option to put, 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 scheduled expiresAt. ttlDays is 1 to 730. Each write that sets a TTL counts as one additional Advanced Operation per started 60 days.

@vercel/[email protected]

Choose a tag to compare

@github-actions github-actions released this 14 Oct 08:59
5425e16

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. Fixes head, copy, rename, del and list on blobs whose pathname has a dot segment.

@vercel/[email protected]

Choose a tag to compare

@github-actions github-actions released this 06 Oct 08:54
d15b9b3

Patch Changes

  • 59be092: Allow get() to fetch blob URLs from a VERCEL_BLOB_API_URL origin. get() only accepted URLs on *.blob.vercel-storage.com, which blocked local emulators like emulate, since they serve blob content from their own host. When VERCEL_BLOB_API_URL (or NEXT_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]

Choose a tag to compare

@github-actions github-actions released this 10 Aug 23:27
cdbac94

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 a URL instance pointing at a public http(s) image, which is fetched server-side. Options mirror put (access, addRandomSuffix, allowOverwrite, cacheControlMaxAge, ifMatch) plus the required optimizeImage parameters (width, quality, format); contentType is not accepted since the stored content type always comes from the optimizer output. Deprecates the optimizeImage option on put and the putFromUrl function in favor of putImage; both keep working.

@vercel/[email protected]

Choose a tag to compare

@github-actions github-actions released this 06 Aug 09:21
7637604

Patch Changes

  • 59b9bf5: Rename the internal @vercel/edge-config-fs package to @vercel/global-config-fs

@vercel/[email protected]

Choose a tag to compare

@github-actions github-actions released this 06 Aug 09:21
7637604

Patch Changes

  • 59b9bf5: Rename the internal @vercel/edge-config-fs package to @vercel/global-config-fs

@vercel/[email protected]

Choose a tag to compare

@github-actions github-actions released this 06 Aug 09:21
7637604

Minor Changes

  • ad5a134: Add image optimization support: a new optimizeImage option on put and a new putFromUrl method. 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]

Choose a tag to compare

@github-actions github-actions released this 27 Jul 10:17
9f1c171

Minor Changes

  • 5c2d8bf: Introduce @vercel/global-config as 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, GlobalConfigValue and EmbeddedGlobalConfig.

    The default client now reads the connection string from process.env.GLOBAL_CONFIG, falling back to process.env.EDGE_CONFIG if it is not defined. The same applies to GLOBAL_CONFIG_TRACE_VERBOSE and GLOBAL_CONFIG_DISABLE_DEVELOPMENT_SWR.

    Connection strings using https://global-config.vercel.com are now supported, in addition to the existing https://edge-config.vercel.com and edge-config: formats.

@vercel/[email protected]

Choose a tag to compare

@github-actions github-actions released this 28 Jul 13:49
9f1c171
Version Packages (#1089)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

@vercel/[email protected]

Choose a tag to compare

@github-actions github-actions released this 08 Jul 10:32
f5cb880

Patch Changes

  • d0118c4: Add a useCache option to presignUrl() for get operations. When useCache: false, the presigned URL includes a cache=0 query param so fetches bypass the CDN cache and read the latest content directly from origin storage. Like get(), 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.