Unverified Commit a5d67423 authored by Steven's avatar Steven Committed by GitHub

Bump minimum Node.js version to 14.6.0 (#41765)

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
parent 16c7480f
...@@ -14,7 +14,7 @@ If you have questions about anything related to Next.js, you're always welcome t ...@@ -14,7 +14,7 @@ If you have questions about anything related to Next.js, you're always welcome t
#### System Requirements #### 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 - MacOS, Windows (including WSL), and Linux are supported
## Automatic Setup ## Automatic Setup
......
...@@ -8,7 +8,7 @@ description: Learn how to upgrade Next.js. ...@@ -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 [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. The minimum React version has been bumped from 17.0.2 to 18.2.0.
......
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
"@babel/traverse": "7.18.0" "@babel/traverse": "7.18.0"
}, },
"engines": { "engines": {
"node": ">=14.0.0" "node": ">=14.6.0"
}, },
"packageManager": "pnpm@7.3.0" "packageManager": "pnpm@7.3.0"
} }
...@@ -49,6 +49,6 @@ ...@@ -49,6 +49,6 @@
"validate-npm-package-name": "3.0.0" "validate-npm-package-name": "3.0.0"
}, },
"engines": { "engines": {
"node": ">=14.0.0" "node": ">=14.6.0"
} }
} }
...@@ -293,6 +293,6 @@ ...@@ -293,6 +293,6 @@
"caniuse-lite": "1.0.30001406" "caniuse-lite": "1.0.30001406"
}, },
"engines": { "engines": {
"node": ">=14.0.0" "node": ">=14.6.0"
} }
} }
...@@ -66,7 +66,7 @@ module.exports = function (task) { ...@@ -66,7 +66,7 @@ module.exports = function (task) {
env: { env: {
targets: { targets: {
// follow the version defined in packages/next/package.json#engine // follow the version defined in packages/next/package.json#engine
node: '14.0.0', node: '14.6.0',
}, },
}, },
jsc: { jsc: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment