Skip to content

Specify the minimum supported version of Node in engines #4150

@nolanlawson

Description

@nolanlawson

Our engines is woefully out of date:

lwc/package.json

Lines 82 to 84 in 1dba707

"engines": {
"node": ">=10"
},

... and this is in our root package.json which isn't actually published to npm, so it doesn't do anything.

Instead, we should specify an engines like this across all our packages:

 "engines": { 
     "node": ">=18" 
 }, 

Arguably we should do this as a breaking change and just take this opportunity to bump our minimum supported Node version as well. Up to now, we have not really done a great job of communicating our minimum required version of Node, nor have we actually tested in multiple Node versions or bumped our major version when we dropped support for an older Node version. We should be more explicit about this.

See also: #4149

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions