Skip to content

Commit 4eaf107

Browse files
alan-agius4angular-robot[bot]
authored andcommitted
build: update minimum supported Node version from 16.13.0 -> 16.14.0
This commit updates the minimum supported Node version across packages from 16.13.0 -> 16.14.0 to ensure compatibility with dependencies.
1 parent 9add757 commit 4eaf107

File tree

7 files changed

+9
-14
lines changed

7 files changed

+9
-14
lines changed

constants.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Engine versions to stamp in a release package.json
2-
RELEASE_ENGINES_NODE = "^16.13.0 || >=18.10.0"
2+
RELEASE_ENGINES_NODE = "^16.14.0 || >=18.10.0"
33
RELEASE_ENGINES_NPM = "^6.11.0 || ^7.5.6 || >=8.0.0"
44
RELEASE_ENGINES_YARN = ">= 1.13.0"
55

docs/DEVELOPER.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ To get started locally, follow these instructions:
66

77
1. If you haven't done it already, [make a fork of this repo](https://github.com/angular/angular-cli/fork).
88
1. Clone to your local computer using `git`.
9-
1. Make sure that you have Node `v14.20`, `v16.13` or `v18.10` installed. See instructions [here](https://nodejs.org/en/download/).
9+
1. Make sure that you have Node `v14.20`, `v16.14` or `v18.10` installed. See instructions [here](https://nodejs.org/en/download/).
1010
1. Make sure that you have `yarn` installed; see instructions [here](https://yarnpkg.com/lang/en/docs/install/).
1111
1. Run `yarn` (no arguments) from the root of your clone of this project to install dependencies.
1212

lib/packages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function loadPackageJson(p: string) {
8585
// Overwrite engines to a common default.
8686
case 'engines':
8787
pkg['engines'] = {
88-
'node': '^16.13.0 || >=18.10.0',
88+
'node': '^16.14.0 || >=18.10.0',
8989
'npm': '^6.11.0 || ^7.5.6 || >=8.0.0',
9090
'yarn': '>= 1.13.0',
9191
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"url": "https://github.com/angular/angular-cli.git"
4141
},
4242
"engines": {
43-
"node": "^16.13.0 || ^18.10.0",
43+
"node": "^16.14.0 || ^18.10.0",
4444
"yarn": ">=1.21.1 <2",
4545
"npm": "Please use yarn instead of NPM to install dependencies"
4646
},

packages/angular/cli/bin/ng.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ if (version[0] % 2 === 1) {
4848
} else if (
4949
version[0] < 14 ||
5050
(version[0] === 14 && version[1] < 20) ||
51-
(version[0] === 16 && version[1] < 13) ||
51+
(version[0] === 16 && version[1] < 14) ||
5252
(version[0] === 18 && version[1] < 10)
5353
) {
54-
// Error and exit if less than 14.20, 16.13 or 18.10
54+
// Error and exit if less than 14.20, 16.14 or 18.10
5555
console.error(
5656
'Node.js version ' +
5757
process.version +
5858
' detected.\n' +
59-
'The Angular CLI requires a minimum Node.js version of either v14.20, v16.13 or v18.10.\n\n' +
59+
'The Angular CLI requires a minimum Node.js version of either v14.20, v16.14 or v18.10.\n\n' +
6060
'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n',
6161
);
6262

packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,7 @@ async function writeResultFiles(
315315
directoryExists.add(basePath);
316316
}
317317
// Copy file contents
318-
await fs.copyFile(
319-
source,
320-
path.join(outputPath, destination),
321-
// This is not yet available from `fs/promises` in Node.js v16.13
322-
fsConstants.COPYFILE_FICLONE,
323-
);
318+
await fs.copyFile(source, path.join(outputPath, destination), fsConstants.COPYFILE_FICLONE);
324319
}),
325320
);
326321
}

tools/test/expected_package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
},
3737
"engines": {
38-
"node": "^16.13.0 || >=18.10.0",
38+
"node": "^16.14.0 || >=18.10.0",
3939
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
4040
"yarn": ">= 1.13.0"
4141
}

0 commit comments

Comments
 (0)