Skip to content

Commit 34060e3

Browse files
committed
Increase minimum node version to 14
1 parent bbd5a60 commit 34060e3

File tree

14 files changed

+21
-24
lines changed

14 files changed

+21
-24
lines changed

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
17-
node: ['10', '12', '14']
17+
node: ['14']
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Setup node

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Create a project, and you’re good to go.
3939

4040
## Creating an App
4141

42-
**You’ll need to have Node 10.16.0 or later version on your local development machine** (but it’s not required on the server). We recommend using the latest LTS version. You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
42+
**You’ll need to have Node 14.0.0 or later version on your local development machine** (but it’s not required on the server). We recommend using the latest LTS version. You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
4343

4444
To create a new app, you may choose one of the following methods:
4545

azure-pipelines-test-job.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ parameters:
66
name: ''
77
testScript: ''
88
configurations:
9-
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
10-
LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x }
9+
LinuxNode14: { vmImage: 'ubuntu-20.04', nodeVersion: 14.x }
1110

1211
jobs:
1312
- job: ${{ parameters.name }}

azure-pipelines.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ jobs:
5555
name: Behavior
5656
testScript: tasks/e2e-behavior.sh
5757
configurations:
58-
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
59-
LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x }
60-
WindowsNode10: { vmImage: 'windows-2019', nodeVersion: 10.x }
61-
WindowsNode12: { vmImage: 'windows-2019', nodeVersion: 12.x }
62-
MacNode10: { vmImage: 'macOS-10.15', nodeVersion: 10.x }
63-
MacNode12: { vmImage: 'macOS-10.15', nodeVersion: 12.x }
58+
LinuxNode14: { vmImage: 'ubuntu-20.04', nodeVersion: 14.x }
59+
WindowsNode14: { vmImage: 'windows-2021', nodeVersion: 14.x }
60+
Mac11Node14: { vmImage: 'macOS-10.15', nodeVersion: 14.x }
61+
Mac10Node14: { vmImage: 'macOS-11.0', nodeVersion: 14.x }
6462

6563
# ******************************************************************************
6664
# Old Node test suite

docusaurus/docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Create a project, and you’re good to go.
3434

3535
## Creating an App
3636

37-
**You’ll need to have Node >= 10 on your local development machine** (but it’s not required on the server). You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
37+
**You’ll need to have Node >= 14 on your local development machine** (but it’s not required on the server). You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
3838

3939
To create a new app, you may choose one of the following methods:
4040

packages/cra-template-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"license": "MIT",
1717
"engines": {
18-
"node": ">=10"
18+
"node": ">=14"
1919
},
2020
"bugs": {
2121
"url": "https://github.com/facebook/create-react-app/issues"

packages/cra-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"license": "MIT",
1616
"engines": {
17-
"node": ">=10"
17+
"node": ">=14"
1818
},
1919
"bugs": {
2020
"url": "https://github.com/facebook/create-react-app/issues"

packages/create-react-app/createReactApp.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// tell people to update their global version of create-react-app.
2222
//
2323
// Also be careful with new language features.
24-
// This file must work on Node 10+.
24+
// This file must work on Node 14+.
2525
//
2626
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2727
// /!\ DO NOT MODIFY THIS FILE /!\
@@ -239,14 +239,14 @@ function createApp(name, verbose, version, template, useNpm, usePnp) {
239239
const unsupportedNodeVersion = !semver.satisfies(
240240
// Coerce strings with metadata (i.e. `15.0.0-nightly`).
241241
semver.coerce(process.version),
242-
'>=10'
242+
'>=14'
243243
);
244244

245245
if (unsupportedNodeVersion) {
246246
console.log(
247247
chalk.yellow(
248248
`You are using Node ${process.version} so the project will be bootstrapped with an old unsupported version of tools.\n\n` +
249-
`Please update to Node 10 or higher for a better, fully supported experience.\n`
249+
`Please update to Node 14 or higher for a better, fully supported experience.\n`
250250
)
251251
);
252252
// Fall back to latest supported react-scripts on Node 4
@@ -527,7 +527,7 @@ function run(
527527
console.log(
528528
chalk.yellow(
529529
`\nNote: the project was bootstrapped with an old unsupported version of tools.\n` +
530-
`Please update to Node >=10 and npm >=6 to get supported tools in new projects.\n`
530+
`Please update to Node >=14 and npm >=6 to get supported tools in new projects.\n`
531531
)
532532
);
533533
}

packages/create-react-app/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ var currentNodeVersion = process.versions.node;
4040
var semver = currentNodeVersion.split('.');
4141
var major = semver[0];
4242

43-
if (major < 10) {
43+
if (major < 14) {
4444
console.error(
4545
'You are running Node ' +
4646
currentNodeVersion +
4747
'.\n' +
48-
'Create React App requires Node 10 or higher. \n' +
48+
'Create React App requires Node 14 or higher. \n' +
4949
'Please update your version of Node.'
5050
);
5151
process.exit(1);

packages/create-react-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"license": "MIT",
1414
"engines": {
15-
"node": ">=10"
15+
"node": ">=14"
1616
},
1717
"bugs": {
1818
"url": "https://github.com/facebook/create-react-app/issues"

0 commit comments

Comments
 (0)