feat!: Require Node.js ^20.19.0 || ^22.13.0 || >=24#297
Conversation
866d2df to
70cde5e
Compare
mdjermanovic
left a comment
There was a problem hiding this comment.
Can you also update the template for new projects?
rewrite/templates/package/package.json
Lines 54 to 56 in 27fdbe7
2b56bea to
c6d1c20
Compare
|
LGTM, thanks! |
lumirlumir
left a comment
There was a problem hiding this comment.
Lines 31 to 33 in 35f7342
Could we also update the engines field in the root-level package.json?
I believe the engines field was first added in 973144e, but it seems fine to set it to ^20.19.0 || ^22.13.0 || >=24, since all internal Node.js modules used by the rewrite package are available with Node.js ^20.19.0.
8aec85d
This was added because of |
|
I missed that the stable version was released as v22.3.0 👍 If so, does using |
IMHO, it's fine - they are different things - unlike others, the root-level act as something like |
|
@aladdin-add Thanks for the reference! If so, please feel free to revert my suggestion or set it to |
This MR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [@eslint/compat](https://github.com/eslint/rewrite/tree/main/packages/compat#readme) ([source](https://github.com/eslint/rewrite/tree/HEAD/packages/compat)) | devDependencies | major | [`^1.3.1` → `^2.0.0`](https://renovatebot.com/diffs/npm/@eslint%2fcompat/1.4.1/2.0.0) | [](https://securityscorecards.dev/viewer/?uri=github.com/eslint/rewrite) | --- ### Release Notes <details> <summary>eslint/rewrite (@​eslint/compat)</summary> ### [`v2.0.0`](https://github.com/eslint/rewrite/blob/HEAD/packages/compat/CHANGELOG.md#200-2025-11-14) [Compare Source](eslint/rewrite@f5ecc7e...c368656) ##### ⚠ BREAKING CHANGES - Require Node.js ^20.19.0 || ^22.13.0 || >=24 ([#​297](eslint/rewrite#297)) ##### Features - patch missing context and SourceCode methods for v10 ([#​311](eslint/rewrite#311)) ([a40d8c6](eslint/rewrite@a40d8c6)) - Require Node.js ^20.19.0 || ^22.13.0 || >=24 ([#​297](eslint/rewrite#297)) ([acc623c](eslint/rewrite@acc623c)) ##### Dependencies - The following workspace dependencies were updated - dependencies - [@​eslint/core](https://github.com/eslint/core) bumped from ^0.17.0 to ^1.0.0 </details> --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4yNy4xIiwidXBkYXRlZEluVmVyIjoiNDIuNzAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGUiXX0=--> See merge request swiss-armed-forces/cyber-command/cea/loom!234 Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com>
chore(deps): update @eslint/compat (major) This MR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [@eslint/compat](https://github.com/eslint/rewrite/tree/main/packages/compat#readme) ([source](https://github.com/eslint/rewrite/tree/HEAD/packages/compat)) | devDependencies | major | [`^1.3.1` → `^2.0.0`](https://renovatebot.com/diffs/npm/@eslint%2fcompat/1.4.1/2.0.0) | [](https://securityscorecards.dev/viewer/?uri=github.com/eslint/rewrite) | --- ### Release Notes <details> <summary>eslint/rewrite (@​eslint/compat)</summary> ### [`v2.0.0`](https://github.com/eslint/rewrite/blob/HEAD/packages/compat/CHANGELOG.md#200-2025-11-14) [Compare Source](eslint/rewrite@f5ecc7e...c368656) ##### ⚠ BREAKING CHANGES - Require Node.js ^20.19.0 || ^22.13.0 || >=24 ([#​297](eslint/rewrite#297)) ##### Features - patch missing context and SourceCode methods for v10 ([#​311](eslint/rewrite#311)) ([a40d8c6](eslint/rewrite@a40d8c6)) - Require Node.js ^20.19.0 || ^22.13.0 || >=24 ([#​297](eslint/rewrite#297)) ([acc623c](eslint/rewrite@acc623c)) ##### Dependencies - The following workspace dependencies were updated - dependencies - [@​eslint/core](https://github.com/eslint/core) bumped from ^0.17.0 to ^1.0.0 </details> --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4yNy4xIiwidXBkYXRlZEluVmVyIjoiNDIuNzAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGUiXX0=--> See merge request swiss-armed-forces/cyber-command/cea/loom!234 Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com> Co-authored-by: open-source Pipeline <group_90701827_bot_ed04ae348bc5f40af9966fb8b6867e99@noreply.gitlab.com>
Prerequisites checklist
What is the purpose of this pull request?
Updated package.json of the package to require:
"node": "^20.19.0 || ^22.13.0 || >=24"
This drops support for Node.js 18.
What changes did you make? (Give an overview)
Related Issues
refs eslint/eslint#19969
Is there anything you'd like reviewers to focus on?