@angular/cli 10.1.5 → 10.2.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/commands/update-long.md +9 -4
- package/models/interface.d.ts +5 -0
- package/package.json +13 -13
- package/utilities/json-schema.js +5 -0
package/commands/update-long.md
CHANGED
|
@@ -4,14 +4,19 @@ Perform a basic update to the current stable release of the core framework and C
|
|
|
4
4
|
ng update @angular/cli @angular/core
|
|
5
5
|
```
|
|
6
6
|
|
|
7
|
-
To update to the next beta or pre-release version, use the `--next
|
|
7
|
+
To update to the next beta or pre-release version, use the `--next` option.
|
|
8
8
|
|
|
9
9
|
To update from one major version to another, use the format
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
ng update @angular/cli@^<major_version> @angular/core@^<major_version>
|
|
13
|
+
```
|
|
11
14
|
|
|
12
15
|
We recommend that you always update to the latest patch version, as it contains fixes we released since the initial major release.
|
|
13
|
-
For example, use the following command to take the latest
|
|
16
|
+
For example, use the following command to take the latest 10.x.x version and use that to update.
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
```
|
|
19
|
+
ng update @angular/cli@^10 @angular/core@^10
|
|
20
|
+
```
|
|
16
21
|
|
|
17
22
|
For detailed information and guidance on updating your application, see the interactive [Angular Update Guide](https://update.angular.io/).
|
package/models/interface.d.ts
CHANGED
|
@@ -129,6 +129,11 @@ export interface Option {
|
|
|
129
129
|
* If this is falsey, do not report this option.
|
|
130
130
|
*/
|
|
131
131
|
userAnalytics?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Deprecation. If this flag is not false a warning will be shown on the console. Either `true`
|
|
134
|
+
* or a string to show the user as a notice.
|
|
135
|
+
*/
|
|
136
|
+
deprecated?: boolean | string;
|
|
132
137
|
}
|
|
133
138
|
/**
|
|
134
139
|
* Scope of the command.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/cli",
|
|
3
|
-
"version": "10.1
|
|
3
|
+
"version": "10.2.1",
|
|
4
4
|
"description": "CLI tool for Angular",
|
|
5
5
|
"main": "lib/cli/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/angular/angular-cli",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@angular-devkit/architect": "0.
|
|
32
|
-
"@angular-devkit/core": "10.1
|
|
33
|
-
"@angular-devkit/schematics": "10.1
|
|
34
|
-
"@schematics/angular": "10.1
|
|
35
|
-
"@schematics/update": "0.
|
|
31
|
+
"@angular-devkit/architect": "0.1002.1",
|
|
32
|
+
"@angular-devkit/core": "10.2.1",
|
|
33
|
+
"@angular-devkit/schematics": "10.2.1",
|
|
34
|
+
"@schematics/angular": "10.2.1",
|
|
35
|
+
"@schematics/update": "0.1002.1",
|
|
36
36
|
"@yarnpkg/lockfile": "1.1.0",
|
|
37
37
|
"ansi-colors": "4.1.1",
|
|
38
38
|
"debug": "4.1.1",
|
|
39
|
-
"ini": "1.3.
|
|
39
|
+
"ini": "1.3.6",
|
|
40
40
|
"inquirer": "7.3.3",
|
|
41
41
|
"npm-package-arg": "8.0.1",
|
|
42
42
|
"npm-pick-manifest": "6.1.0",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"ng-update": {
|
|
53
53
|
"migrations": "@schematics/angular/migrations/migration-collection.json",
|
|
54
54
|
"packageGroup": {
|
|
55
|
-
"@angular/cli": "10.1
|
|
56
|
-
"@angular-devkit/build-angular": "0.
|
|
57
|
-
"@angular-devkit/build-ng-packagr": "0.
|
|
58
|
-
"@angular-devkit/build-webpack": "0.
|
|
59
|
-
"@angular-devkit/core": "10.1
|
|
60
|
-
"@angular-devkit/schematics": "10.1
|
|
55
|
+
"@angular/cli": "10.2.1",
|
|
56
|
+
"@angular-devkit/build-angular": "0.1002.1",
|
|
57
|
+
"@angular-devkit/build-ng-packagr": "0.1002.1",
|
|
58
|
+
"@angular-devkit/build-webpack": "0.1002.1",
|
|
59
|
+
"@angular-devkit/core": "10.2.1",
|
|
60
|
+
"@angular-devkit/schematics": "10.2.1"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
package/utilities/json-schema.js
CHANGED
|
@@ -199,6 +199,10 @@ async function parseJsonSchemaToOptions(registry, schema) {
|
|
|
199
199
|
const hidden = !!current.hidden || !visible;
|
|
200
200
|
const xUserAnalytics = current['x-user-analytics'];
|
|
201
201
|
const userAnalytics = typeof xUserAnalytics == 'number' ? xUserAnalytics : undefined;
|
|
202
|
+
// Deprecated is set only if it's true or a string.
|
|
203
|
+
const xDeprecated = current['x-deprecated'];
|
|
204
|
+
const deprecated = (xDeprecated === true || typeof xDeprecated === 'string')
|
|
205
|
+
? xDeprecated : undefined;
|
|
202
206
|
const option = {
|
|
203
207
|
name,
|
|
204
208
|
description: '' + (current.description === undefined ? '' : current.description),
|
|
@@ -210,6 +214,7 @@ async function parseJsonSchemaToOptions(registry, schema) {
|
|
|
210
214
|
...format !== undefined ? { format } : {},
|
|
211
215
|
hidden,
|
|
212
216
|
...userAnalytics ? { userAnalytics } : {},
|
|
217
|
+
...deprecated !== undefined ? { deprecated } : {},
|
|
213
218
|
...positional !== undefined ? { positional } : {},
|
|
214
219
|
};
|
|
215
220
|
options.push(option);
|