Skip to content
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

stabilize to a single minumum NodeJS LTS version for engines #1379

Open
thescientist13 opened this issue Jan 11, 2025 · 0 comments
Open

stabilize to a single minumum NodeJS LTS version for engines #1379

thescientist13 opened this issue Jan 11, 2025 · 0 comments
Labels
breaking CLI enhancement Improve something existing (e.g. no docs, new APIs, etc)
Milestone

Comments

@thescientist13
Copy link
Member

Type of Change

Enhancement

Summary

Coming out of #1202 / #1372, we opened up the range for NodeJS LTS version to try and accommodate all minimum versions with the least amount of experimental features based on the current compatibility matrix at the time

"engines": {
  "node": "^18.20.5 || ^20.10.0 || ^22.12.0"
}

Per research into opening #1372 , here's a current breakdown of key feature we're using and where they stand in the NodeJS release / API status

Feature Min. Node Version Changelog Notes / Status
import.meta.resolve 18.19.0, 20.6.0 https://nodejs.org/docs/latest-v22.x/api/esm.html#importmetaresolvespecifier Release Candidate
JSON import attributes 18.20.5, 20.10.0*, 22.12.0 https://nodejs.org/docs/latest-v22.x/api/esm.html#json-modules Stable, * awaiting a 20.x backport, though
New Loader Hooks 20.6.0 https://nodejs.org/docs/latest-v22.x/api/module.html#customization-hooks Release Candidate

Details

Prior to 1.0, would like to go back to a single minimum version, using >= so we don't have to constantly be chasing the LTS release schedule, e.g.

The main items we're waiting on

I think eventually we can go to something like this for the engines field

"engines": {
  "node": ">=20.?.0"
}
@thescientist13 thescientist13 added enhancement Improve something existing (e.g. no docs, new APIs, etc) CLI breaking labels Jan 11, 2025
@thescientist13 thescientist13 added this to the 1.0 milestone Jan 11, 2025
@thescientist13 thescientist13 changed the title stabilize to a single minumum NodeJS LTS version stabilize to a single minumum NodeJS LTS version for engines Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking CLI enhancement Improve something existing (e.g. no docs, new APIs, etc)
Projects
Status: 🔖 Ready
Development

No branches or pull requests

1 participant