Skip to content

fix(deps): update dependency @netlify/blobs to v8 #5756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 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 packages/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"license": "MIT",
"dependencies": {
"@bugsnag/js": "^7.0.0",
"@netlify/blobs": "^7.4.0",
"@netlify/blobs": "^8.1.1",
"@netlify/cache-utils": "^5.2.0",
"@netlify/config": "^21.0.3",
"@netlify/edge-bundler": "12.3.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/build/src/plugins_core/blobs_upload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const coreStep: CoreStepFunction = async function ({
// If using the deploy config API or the Frameworks API, configure the store
// to use the region that was configured for the deploy. We don't do it for
// the legacy file-based upload API since that would be a breaking change.
if (blobs.apiVersion > 1) {
storeOpts.experimentalRegion = 'auto'
if (blobs.apiVersion === 1) {
storeOpts.region = 'us-east-2'
}

const blobStore = getDeployStore(storeOpts)
Expand Down
4 changes: 2 additions & 2 deletions packages/build/src/plugins_core/dev_blobs_upload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const coreStep: CoreStepFunction = async function ({
// If using the deploy config API or the Frameworks API, configure the store
// to use the region that was configured for the deploy. We don't do it for
// the legacy file-based upload API since that would be a breaking change.
if (blobs.apiVersion > 1) {
storeOpts.experimentalRegion = 'auto'
if (blobs.apiVersion === 1) {
storeOpts.region = 'us-east-2'
}

const blobStore = getDeployStore(storeOpts)
Expand Down
12 changes: 6 additions & 6 deletions packages/build/tests/blobs_upload/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ test.serial('Blobs upload step uploads files to deploy store (legacy API)', asyn
t.true(success)
t.is(t.context.blobRequests.set.length, 6)

const regionRequests = t.context.blobRequests.set.filter((urlPath) => {
const defaultRegionRequests = t.context.blobRequests.set.filter((urlPath) => {
const url = new URL(urlPath, 'http://localhost')

return url.searchParams.has('region')
return url.searchParams.get('region') === 'us-east-2'
})

t.is(regionRequests.length, 0)
t.is(defaultRegionRequests.length, 3)

const storeOpts = { deployID: 'abc123', siteID: 'test', token: TOKEN }
if (semver.lt(nodeVersion, '18.0.0')) {
Expand Down Expand Up @@ -125,13 +125,13 @@ test.serial('Blobs upload step uploads files to deploy store (legacy deploy conf
t.true(success)
t.is(t.context.blobRequests.set.length, 6)

const regionRequests = t.context.blobRequests.set.filter((urlPath) => {
const regionAutoRequests = t.context.blobRequests.set.filter((urlPath) => {
const url = new URL(urlPath, 'http://localhost')

return url.searchParams.has('region')
return url.searchParams.get('region') === 'auto'
})

t.is(regionRequests.length, 3)
t.is(regionAutoRequests.length, 3)

const storeOpts = { deployID: 'abc123', siteID: 'test', token: TOKEN }
if (semver.lt(nodeVersion, '18.0.0')) {
Expand Down
Loading