Skip to content

Commit

Permalink
chore(deps): update dependency @netlify/blobs to ^7.4.0 (#2525)
Browse files Browse the repository at this point in the history
* 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 <mrstork@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 17, 2024
1 parent 72bc797 commit 7694b9d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/run/regional-blob-store.cts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { getDeployStore, Store } from '@netlify/blobs'
const fetchBeforeNextPatchedIt = globalThis.fetch

export const getRegionalBlobStore = (args: Parameters<typeof getDeployStore>[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,
Expand Down

0 comments on commit 7694b9d

Please sign in to comment.