@angular/cli 20.0.0-rc.4 → 20.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/ng.js CHANGED
@@ -31,7 +31,6 @@ try {
31
31
  }
32
32
 
33
33
  const rawCommandName = process.argv[2];
34
-
35
34
  if (rawCommandName === '--get-yargs-completions' || rawCommandName === 'completion') {
36
35
  // Skip Node.js supported checks when running ng completion.
37
36
  // A warning at this stage could cause a broken source action (`source <(ng completion script)`) when in the shell init script.
@@ -43,8 +42,9 @@ if (rawCommandName === '--get-yargs-completions' || rawCommandName === 'completi
43
42
  // This node version check ensures that extremely old versions of node are not used.
44
43
  // These may not support ES2015 features such as const/let/async/await/etc.
45
44
  // These would then crash with a hard to diagnose error message.
46
- var version = process.versions.node.split('.').map((part) => Number(part));
47
- if (version[0] % 2 === 1) {
45
+ const [major, minor] = process.versions.node.split('.', 2).map((part) => Number(part));
46
+
47
+ if (major % 2 === 1) {
48
48
  // Allow new odd numbered releases with a warning (currently v17+)
49
49
  console.warn(
50
50
  'Node.js version ' +
@@ -55,13 +55,13 @@ if (version[0] % 2 === 1) {
55
55
  );
56
56
 
57
57
  require('./bootstrap');
58
- } else if (version[0] < 20 || (version[0] === 20 && version[1] < 11)) {
59
- // Error and exit if less than 20.11
58
+ } else if (major < 20 || (major === 20 && minor < 19) || (major === 22 && minor < 12)) {
59
+ // Error and exit if less than 20.19 or 22.12
60
60
  console.error(
61
61
  'Node.js version ' +
62
62
  process.version +
63
63
  ' detected.\n' +
64
- 'The Angular CLI requires a minimum Node.js version of v20.11.\n\n' +
64
+ 'The Angular CLI requires a minimum Node.js version of v20.19 or v22.12.\n\n' +
65
65
  'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n',
66
66
  );
67
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cli",
3
- "version": "20.0.0-rc.4",
3
+ "version": "20.0.1",
4
4
  "description": "CLI tool for Angular",
5
5
  "main": "lib/cli/index.js",
6
6
  "bin": {
@@ -25,12 +25,12 @@
25
25
  },
26
26
  "homepage": "https://github.com/angular/angular-cli",
27
27
  "dependencies": {
28
- "@angular-devkit/architect": "0.2000.0-rc.4",
29
- "@angular-devkit/core": "20.0.0-rc.4",
30
- "@angular-devkit/schematics": "20.0.0-rc.4",
28
+ "@angular-devkit/architect": "0.2000.1",
29
+ "@angular-devkit/core": "20.0.1",
30
+ "@angular-devkit/schematics": "20.0.1",
31
31
  "@inquirer/prompts": "7.5.1",
32
32
  "@listr2/prompt-adapter-inquirer": "2.0.22",
33
- "@schematics/angular": "20.0.0-rc.4",
33
+ "@schematics/angular": "20.0.1",
34
34
  "@yarnpkg/lockfile": "1.1.0",
35
35
  "ini": "5.0.0",
36
36
  "jsonc-parser": "3.3.1",
@@ -45,14 +45,14 @@
45
45
  "ng-update": {
46
46
  "migrations": "@schematics/angular/migrations/migration-collection.json",
47
47
  "packageGroup": {
48
- "@angular/cli": "20.0.0-rc.4",
49
- "@angular/build": "20.0.0-rc.4",
50
- "@angular/ssr": "20.0.0-rc.4",
51
- "@angular-devkit/architect": "0.2000.0-rc.4",
52
- "@angular-devkit/build-angular": "20.0.0-rc.4",
53
- "@angular-devkit/build-webpack": "0.2000.0-rc.4",
54
- "@angular-devkit/core": "20.0.0-rc.4",
55
- "@angular-devkit/schematics": "20.0.0-rc.4"
48
+ "@angular/cli": "20.0.1",
49
+ "@angular/build": "20.0.1",
50
+ "@angular/ssr": "20.0.1",
51
+ "@angular-devkit/architect": "0.2000.1",
52
+ "@angular-devkit/build-angular": "20.0.1",
53
+ "@angular-devkit/build-webpack": "0.2000.1",
54
+ "@angular-devkit/core": "20.0.1",
55
+ "@angular-devkit/schematics": "20.0.1"
56
56
  }
57
57
  },
58
58
  "packageManager": "pnpm@9.15.9",
@@ -22,4 +22,4 @@ class Version {
22
22
  this.patch = patch;
23
23
  }
24
24
  }
25
- exports.VERSION = new Version('20.0.0-rc.4');
25
+ exports.VERSION = new Version('20.0.1');