Skip to content

feat!: end of support for v14 and v16 #6223

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

mrstork
Copy link
Contributor

@mrstork mrstork commented Apr 29, 2025

Summary

Part of FRB-1780

Notes:

Prior to merging:

  • Update the list of required tests in build repository settings to match new test names
  • Merge any outstanding release branches
  • Wait until May 14

For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures
    your code follows our style guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

image

Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

@mrstork mrstork force-pushed the update-node-engine-field branch from 19bd568 to 9af51da Compare April 29, 2025 19:06
@mrstork mrstork force-pushed the update-node-engine-field branch from 9d052ce to 33dfed8 Compare April 29, 2025 22:08
@netlify netlify deleted a comment from github-actions bot Apr 29, 2025
@netlify netlify deleted a comment from github-actions bot Apr 29, 2025
@netlify netlify deleted a comment from github-actions bot Apr 29, 2025
@netlify netlify deleted a comment from github-actions bot Apr 29, 2025
@netlify netlify deleted a comment from github-actions bot Apr 29, 2025
@netlify netlify deleted a comment from github-actions bot Apr 30, 2025
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

1 similar comment
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

@mrstork mrstork force-pushed the update-node-engine-field branch from 305b6a5 to 8a3ce46 Compare April 30, 2025 13:21
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

@mrstork mrstork force-pushed the update-node-engine-field branch from 8a3ce46 to c0483d1 Compare April 30, 2025 13:22
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

@mrstork mrstork force-pushed the update-node-engine-field branch from c0483d1 to f672279 Compare April 30, 2025 14:25
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

Comment on lines -113 to -131
test('Validate --node-path version is supported by the plugin', async (t) => {
const systemLog = await tmp.file()

const nodePath = getNodePath('16.14.0')
const output = await new Fixture('./fixtures/engines')
.withFlags({
nodePath,
featureFlags: { build_warn_upcoming_system_version_change: true },
systemLogFile: systemLog.fd,
debug: false,
})
.runWithBuild()
t.true(normalizeOutput(output).includes('The Node.js version is 1.0.0 but the plugin "./plugin.js" requires >=1.0.0'))
const systemLogContents = await fs.readFile(systemLog.path, 'utf8')
await systemLog.cleanup()

t.true(systemLogContents.includes('plugin "./plugin.js" node support range includes v22'))
})

Copy link
Contributor

@pieh pieh May 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be completely removed and not adjusted to have fixture have engines.node requiring higher version than 18.17 (? I'm not sure if I do read this test right)

Also the 1.0.0 assertions tripped me out, but seems like that's because of version normalization -

// Semantic versions
[/\d+\.\d+\.\d+(-\w+)?/g, '1.0.0'],

and the output of this test today is:

The Node.js version is 16.14.0 but the plugin "./plugin.js" requires >=18.0.0

so I wonder wether instead we should do the bumps so node version IS in @netlify/build supported range, but plugin still require higher version than that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants