@angular/cli 10.1.7 → 10.2.0

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.
@@ -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=true` option.
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
- `ng update @angular/cli@^<major_version> @angular/core@^<major_version>`.
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 9.x.x version and use that to update.
16
+ For example, use the following command to take the latest 10.x.x version and use that to update.
14
17
 
15
- `ng update @angular/cli@^9 @angular/core@^9`
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/).
@@ -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.7",
3
+ "version": "10.2.0",
4
4
  "description": "CLI tool for Angular",
5
5
  "main": "lib/cli/index.js",
6
6
  "bin": {
@@ -28,11 +28,11 @@
28
28
  },
29
29
  "homepage": "https://github.com/angular/angular-cli",
30
30
  "dependencies": {
31
- "@angular-devkit/architect": "0.1001.7",
32
- "@angular-devkit/core": "10.1.7",
33
- "@angular-devkit/schematics": "10.1.7",
34
- "@schematics/angular": "10.1.7",
35
- "@schematics/update": "0.1001.7",
31
+ "@angular-devkit/architect": "0.1002.0",
32
+ "@angular-devkit/core": "10.2.0",
33
+ "@angular-devkit/schematics": "10.2.0",
34
+ "@schematics/angular": "10.2.0",
35
+ "@schematics/update": "0.1002.0",
36
36
  "@yarnpkg/lockfile": "1.1.0",
37
37
  "ansi-colors": "4.1.1",
38
38
  "debug": "4.1.1",
@@ -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.7",
56
- "@angular-devkit/build-angular": "0.1001.7",
57
- "@angular-devkit/build-ng-packagr": "0.1001.7",
58
- "@angular-devkit/build-webpack": "0.1001.7",
59
- "@angular-devkit/core": "10.1.7",
60
- "@angular-devkit/schematics": "10.1.7"
55
+ "@angular/cli": "10.2.0",
56
+ "@angular-devkit/build-angular": "0.1002.0",
57
+ "@angular-devkit/build-ng-packagr": "0.1002.0",
58
+ "@angular-devkit/build-webpack": "0.1002.0",
59
+ "@angular-devkit/core": "10.2.0",
60
+ "@angular-devkit/schematics": "10.2.0"
61
61
  }
62
62
  },
63
63
  "engines": {
@@ -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);