Skip to content

Commit 3e1930f

Browse files
authored
chore: update min build version (#704)
* chore: update min build version Release-As: 4.0.0-beta.1 * chore: update test
1 parent 7c5a8ae commit 3e1930f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/helpers/verification.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ exports.verifyBuildTarget = (target) => {
1313
}
1414
}
1515

16-
// This is when the esbuild dynamic import support was added
17-
const REQUIRED_BUILD_VERSION = '>=15.11.5'
16+
// This is when nft support was added
17+
const REQUIRED_BUILD_VERSION = '>=18.16.0'
1818

1919
exports.verifyNetlifyBuildVersion = ({ IS_LOCAL, NETLIFY_BUILD_VERSION, failBuild }) => {
2020
// We check for build version because that's what's available to us, but prompt about the cli because that's what they can upgrade
2121
if (IS_LOCAL && !satisfies(NETLIFY_BUILD_VERSION, REQUIRED_BUILD_VERSION, { includePrerelease: true })) {
2222
return failBuild(outdent`
23-
This version of the Essential Next.js plugin requires netlify-cli@4.4.2 or higher. Please upgrade and try again.
23+
This version of the Essential Next.js plugin requires netlify-cli@6.12.4 or higher. Please upgrade and try again.
2424
You can do this by running: "npm install -g netlify-cli@latest" or "yarn global add netlify-cli@latest"
2525
`)
2626
}

test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,16 @@ describe('preBuild()', () => {
9797
expect(
9898
plugin.onPreBuild({
9999
...defaultArgs,
100-
constants: { IS_LOCAL: true, NETLIFY_BUILD_VERSION: '15.11.4' },
100+
constants: { IS_LOCAL: true, NETLIFY_BUILD_VERSION: '18.15.0' },
101101
}),
102-
).rejects.toThrow('This version of the Essential Next.js plugin requires netlify-cli@4.4.2 or higher')
102+
).rejects.toThrow('This version of the Essential Next.js plugin requires netlify-cli')
103103
})
104104

105105
test('passes if the build version is new enough', async () => {
106106
expect(
107107
plugin.onPreBuild({
108108
...defaultArgs,
109-
constants: { IS_LOCAL: true, NETLIFY_BUILD_VERSION: '15.12.2' },
109+
constants: { IS_LOCAL: true, NETLIFY_BUILD_VERSION: '18.16.1' },
110110
}),
111111
).resolves.not.toThrow()
112112
})

0 commit comments

Comments
 (0)