@angular/cli 15.0.0-next.3 → 15.0.0-next.4
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
|
@@ -41,12 +41,12 @@ if (version[0] % 2 === 1 && version[0] > 16) {
|
|
|
41
41
|
(version[0] === 14 && version[1] < 15) ||
|
|
42
42
|
(version[0] === 16 && version[1] < 10)
|
|
43
43
|
) {
|
|
44
|
-
// Error and exit if less than 14.
|
|
44
|
+
// Error and exit if less than 14.20 or 15.x or less than 16.10
|
|
45
45
|
console.error(
|
|
46
46
|
'Node.js version ' +
|
|
47
47
|
process.version +
|
|
48
48
|
' detected.\n' +
|
|
49
|
-
'The Angular CLI requires a minimum Node.js version of either v14.
|
|
49
|
+
'The Angular CLI requires a minimum Node.js version of either v14.20, or v16.10.\n\n' +
|
|
50
50
|
'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n',
|
|
51
51
|
);
|
|
52
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "15.0.0-next.
|
|
3
|
+
"version": "15.0.0-next.4",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -25,40 +25,39 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@angular-devkit/architect": "0.1500.0-next.
|
|
29
|
-
"@angular-devkit/core": "15.0.0-next.
|
|
30
|
-
"@angular-devkit/schematics": "15.0.0-next.
|
|
31
|
-
"@schematics/angular": "15.0.0-next.
|
|
28
|
+
"@angular-devkit/architect": "0.1500.0-next.4",
|
|
29
|
+
"@angular-devkit/core": "15.0.0-next.4",
|
|
30
|
+
"@angular-devkit/schematics": "15.0.0-next.4",
|
|
31
|
+
"@schematics/angular": "15.0.0-next.4",
|
|
32
32
|
"@yarnpkg/lockfile": "1.1.0",
|
|
33
33
|
"ansi-colors": "4.1.3",
|
|
34
34
|
"debug": "4.3.4",
|
|
35
35
|
"ini": "3.0.1",
|
|
36
36
|
"inquirer": "8.2.4",
|
|
37
37
|
"jsonc-parser": "3.2.0",
|
|
38
|
-
"npm-package-arg": "9.1.
|
|
38
|
+
"npm-package-arg": "9.1.2",
|
|
39
39
|
"npm-pick-manifest": "7.0.2",
|
|
40
40
|
"open": "8.4.0",
|
|
41
41
|
"ora": "5.4.1",
|
|
42
42
|
"pacote": "13.6.2",
|
|
43
43
|
"resolve": "1.22.1",
|
|
44
|
-
"semver": "7.3.
|
|
44
|
+
"semver": "7.3.8",
|
|
45
45
|
"symbol-observable": "4.0.0",
|
|
46
|
-
"
|
|
47
|
-
"yargs": "17.5.1"
|
|
46
|
+
"yargs": "17.6.0"
|
|
48
47
|
},
|
|
49
48
|
"ng-update": {
|
|
50
49
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
51
50
|
"packageGroup": {
|
|
52
|
-
"@angular/cli": "15.0.0-next.
|
|
53
|
-
"@angular-devkit/architect": "0.1500.0-next.
|
|
54
|
-
"@angular-devkit/build-angular": "15.0.0-next.
|
|
55
|
-
"@angular-devkit/build-webpack": "0.1500.0-next.
|
|
56
|
-
"@angular-devkit/core": "15.0.0-next.
|
|
57
|
-
"@angular-devkit/schematics": "15.0.0-next.
|
|
51
|
+
"@angular/cli": "15.0.0-next.4",
|
|
52
|
+
"@angular-devkit/architect": "0.1500.0-next.4",
|
|
53
|
+
"@angular-devkit/build-angular": "15.0.0-next.4",
|
|
54
|
+
"@angular-devkit/build-webpack": "0.1500.0-next.4",
|
|
55
|
+
"@angular-devkit/core": "15.0.0-next.4",
|
|
56
|
+
"@angular-devkit/schematics": "15.0.0-next.4"
|
|
58
57
|
}
|
|
59
58
|
},
|
|
60
59
|
"engines": {
|
|
61
|
-
"node": "^14.
|
|
60
|
+
"node": "^14.20.0 || >=16.10.0",
|
|
62
61
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
63
62
|
"yarn": ">= 1.13.0"
|
|
64
63
|
}
|
|
@@ -35,8 +35,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.getAnalyticsInfoString = exports.createAnalytics = exports.getSharedAnalytics = exports.getAnalytics = exports.promptAnalytics = exports.setAnalyticsConfig = exports.isPackageNameSafeForAnalytics = exports.analyticsPackageSafelist = exports.AnalyticsProperties = void 0;
|
|
37
37
|
const core_1 = require("@angular-devkit/core");
|
|
38
|
+
const crypto_1 = require("crypto");
|
|
38
39
|
const debug_1 = __importDefault(require("debug"));
|
|
39
|
-
const uuid_1 = require("uuid");
|
|
40
40
|
const color_1 = require("../utilities/color");
|
|
41
41
|
const config_1 = require("../utilities/config");
|
|
42
42
|
const environment_options_1 = require("../utilities/environment-options");
|
|
@@ -101,7 +101,7 @@ async function setAnalyticsConfig(global, value) {
|
|
|
101
101
|
if (!workspace || !core_1.json.isJsonObject(cli)) {
|
|
102
102
|
throw new Error(`Invalid config found at ${workspace.filePath}. CLI should be an object.`);
|
|
103
103
|
}
|
|
104
|
-
cli.analytics = value === true ? (0,
|
|
104
|
+
cli.analytics = value === true ? (0, crypto_1.randomUUID)() : value;
|
|
105
105
|
await workspace.save();
|
|
106
106
|
analyticsDebug('done');
|
|
107
107
|
}
|
|
@@ -51,11 +51,8 @@ flexibility in their environments when desired.
|
|
|
51
51
|
## Platform support
|
|
52
52
|
|
|
53
53
|
Angular CLI supports autocompletion for the Bash and Zsh shells on MacOS and Linux operating
|
|
54
|
-
systems.
|
|
55
|
-
|
|
56
|
-
Windows does not support autocompletion in native shells, such as Cmd and Powershell. However,
|
|
57
|
-
the Angular CLI supports Git Bash and
|
|
58
|
-
[Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/) using Bash or Zsh.
|
|
54
|
+
systems. On Windows, Git Bash and [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/)
|
|
55
|
+
using Bash or Zsh are supported.
|
|
59
56
|
|
|
60
57
|
## Global install
|
|
61
58
|
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.ConfigCommandModule = void 0;
|
|
11
|
+
const crypto_1 = require("crypto");
|
|
11
12
|
const path_1 = require("path");
|
|
12
|
-
const uuid_1 = require("uuid");
|
|
13
13
|
const command_module_1 = require("../../command-builder/command-module");
|
|
14
14
|
const config_1 = require("../../utilities/config");
|
|
15
15
|
const json_file_1 = require("../../utilities/json-file");
|
|
@@ -80,7 +80,7 @@ class ConfigCommandModule extends command_module_1.CommandModule {
|
|
|
80
80
|
if (!config || !configPath) {
|
|
81
81
|
throw new command_module_1.CommandModuleError('Confguration file cannot be found.');
|
|
82
82
|
}
|
|
83
|
-
const normalizeUUIDValue = (v) => (v === '' ? (0,
|
|
83
|
+
const normalizeUUIDValue = (v) => (v === '' ? (0, crypto_1.randomUUID)() : `${v}`);
|
|
84
84
|
const value = options.jsonPath === 'cli.analyticsSharing.uuid'
|
|
85
85
|
? normalizeUUIDValue(options.value)
|
|
86
86
|
: options.value;
|