Skip to content

Commit

Permalink
Bump minimum Node.js version to 14.6.0 (#41765)
Browse files Browse the repository at this point in the history
We found a case where 14.0.0 breaking with private class methods, such
as:

```js
class C {
  #x() { return 42; }
  x() {
    return this.#x();
  }
}
```

This feature was introduced in Node.js 14.6.0, so we can bump the
minimum version.

See https://node.green
  • Loading branch information
styfle committed Oct 25, 2022
1 parent 16c7480 commit a5d6742
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started.md
Expand Up @@ -14,7 +14,7 @@ If you have questions about anything related to Next.js, you're always welcome t

#### System Requirements

- [Node.js 14.0.0](https://nodejs.org/) or newer
- [Node.js 14.6.0](https://nodejs.org/) or newer
- MacOS, Windows (including WSL), and Linux are supported

## Automatic Setup
Expand Down
2 changes: 1 addition & 1 deletion docs/upgrading.md
Expand Up @@ -8,7 +8,7 @@ description: Learn how to upgrade Next.js.

The [Supported Browsers](/docs/basic-features/supported-browsers-features.md) have been changed to drop Internet Explorer and target modern browsers.

The minimum Node.js version has been bumped from 12.22.0 to 14.0.0, since 12.x has reached end-of-life.
The minimum Node.js version has been bumped from 12.22.0 to 14.6.0, since 12.x has reached end-of-life.

The minimum React version has been bumped from 17.0.2 to 18.2.0.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -217,7 +217,7 @@
"@babel/traverse": "7.18.0"
},
"engines": {
"node": ">=14.0.0"
"node": ">=14.6.0"
},
"packageManager": "pnpm@7.3.0"
}
2 changes: 1 addition & 1 deletion packages/create-next-app/package.json
Expand Up @@ -49,6 +49,6 @@
"validate-npm-package-name": "3.0.0"
},
"engines": {
"node": ">=14.0.0"
"node": ">=14.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/next/package.json
Expand Up @@ -293,6 +293,6 @@
"caniuse-lite": "1.0.30001406"
},
"engines": {
"node": ">=14.0.0"
"node": ">=14.6.0"
}
}
2 changes: 1 addition & 1 deletion packages/next/taskfile-swc.js
Expand Up @@ -66,7 +66,7 @@ module.exports = function (task) {
env: {
targets: {
// follow the version defined in packages/next/package.json#engine
node: '14.0.0',
node: '14.6.0',
},
},
jsc: {
Expand Down

0 comments on commit a5d6742

Please sign in to comment.