From 7694b9d0361dad915f67d12055cb722eaa1fb71b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 19:15:12 +0000 Subject: [PATCH] chore(deps): update dependency @netlify/blobs to ^7.4.0 (#2525) * chore(deps): update dependency @netlify/blobs to ^7.4.0 * fix: latest version of getDeployStore accepts argument of type string as well --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mateusz Bocian Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- package-lock.json | 14 +++++++------- package.json | 2 +- src/run/regional-blob-store.cts | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index f9f67aa7c7..fb05009220 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "devDependencies": { "@fastly/http-compute-js": "1.1.4", - "@netlify/blobs": "^7.3.0", + "@netlify/blobs": "^7.4.0", "@netlify/build": "^29.50.2", "@netlify/edge-bundler": "^12.1.1", "@netlify/edge-functions": "^2.10.0", @@ -3839,9 +3839,9 @@ "dev": true }, "node_modules/@netlify/blobs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@netlify/blobs/-/blobs-7.3.0.tgz", - "integrity": "sha512-wN/kNTZo4xjlUM/C0WILOkJbe8p4AFquSGkZEIoIcgnsx5ikp2GyqGiq1WMLee7QdbnqeIV2g2hn/PjT324E5w==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@netlify/blobs/-/blobs-7.4.0.tgz", + "integrity": "sha512-7rdPzo8bggt3D2CVO+U1rmEtxxs8X7cLusDbHZRJaMlxqxBD05mXgThj5DUJMFOvmfVjhEH/S/3AyiLUbDQGDg==", "dev": true, "engines": { "node": "^14.16.0 || >=16.0.0" @@ -22732,9 +22732,9 @@ "dev": true }, "@netlify/blobs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/@netlify/blobs/-/blobs-7.3.0.tgz", - "integrity": "sha512-wN/kNTZo4xjlUM/C0WILOkJbe8p4AFquSGkZEIoIcgnsx5ikp2GyqGiq1WMLee7QdbnqeIV2g2hn/PjT324E5w==", + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@netlify/blobs/-/blobs-7.4.0.tgz", + "integrity": "sha512-7rdPzo8bggt3D2CVO+U1rmEtxxs8X7cLusDbHZRJaMlxqxBD05mXgThj5DUJMFOvmfVjhEH/S/3AyiLUbDQGDg==", "dev": true }, "@netlify/build": { diff --git a/package.json b/package.json index 04e9fadfb0..fd6709f0bd 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "homepage": "https://github.com/netlify/next-runtime#readme", "devDependencies": { "@fastly/http-compute-js": "1.1.4", - "@netlify/blobs": "^7.3.0", + "@netlify/blobs": "^7.4.0", "@netlify/build": "^29.50.2", "@netlify/edge-bundler": "^12.1.1", "@netlify/edge-functions": "^2.10.0", diff --git a/src/run/regional-blob-store.cts b/src/run/regional-blob-store.cts index d3be12684b..350237472b 100644 --- a/src/run/regional-blob-store.cts +++ b/src/run/regional-blob-store.cts @@ -3,8 +3,9 @@ import { getDeployStore, Store } from '@netlify/blobs' const fetchBeforeNextPatchedIt = globalThis.fetch export const getRegionalBlobStore = (args: Parameters[0] = {}): Store => { + const options = typeof args === 'string' ? { name: args } : args return getDeployStore({ - ...args, + ...options, fetch: fetchBeforeNextPatchedIt, experimentalRegion: process.env.USE_REGIONAL_BLOBS?.toUpperCase() === 'TRUE' ? 'context' : undefined,