@schematics/angular 12.2.0-next.3 → 12.2.2

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.
@@ -66,7 +66,7 @@ export interface Schema {
66
66
  */
67
67
  style?: Style;
68
68
  /**
69
- * The view encapsulation strategy to use in the new app.
69
+ * The view encapsulation strategy to use in the new application.
70
70
  */
71
71
  viewEncapsulation?: ViewEncapsulation;
72
72
  }
@@ -80,7 +80,7 @@ export declare enum Style {
80
80
  Scss = "scss"
81
81
  }
82
82
  /**
83
- * The view encapsulation strategy to use in the new app.
83
+ * The view encapsulation strategy to use in the new application.
84
84
  */
85
85
  export declare enum ViewEncapsulation {
86
86
  Emulated = "Emulated",
@@ -14,7 +14,7 @@ var Style;
14
14
  Style["Scss"] = "scss";
15
15
  })(Style = exports.Style || (exports.Style = {}));
16
16
  /**
17
- * The view encapsulation strategy to use in the new app.
17
+ * The view encapsulation strategy to use in the new application.
18
18
  */
19
19
  var ViewEncapsulation;
20
20
  (function (ViewEncapsulation) {
@@ -33,7 +33,7 @@
33
33
  "x-user-analytics": 10
34
34
  },
35
35
  "viewEncapsulation": {
36
- "description": "The view encapsulation strategy to use in the new app.",
36
+ "description": "The view encapsulation strategy to use in the new application.",
37
37
  "enum": ["Emulated", "None", "ShadowDom"],
38
38
  "type": "string",
39
39
  "x-user-analytics": 11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "12.2.0-next.3",
3
+ "version": "12.2.2",
4
4
  "description": "Schematics specific to Angular",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "keywords": [
@@ -15,8 +15,8 @@
15
15
  ],
16
16
  "schematics": "./collection.json",
17
17
  "dependencies": {
18
- "@angular-devkit/core": "12.2.0-next.3",
19
- "@angular-devkit/schematics": "12.2.0-next.3",
18
+ "@angular-devkit/core": "12.2.2",
19
+ "@angular-devkit/schematics": "12.2.2",
20
20
  "jsonc-parser": "3.0.0"
21
21
  },
22
22
  "repository": {
@@ -9,22 +9,20 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.latestVersions = void 0;
11
11
  /** Retrieve the minor version for the provided version string. */
12
- function getEarliestMinorVersion(version) {
13
- const versionMatching = version.match(/^(\d+)\.(\d+)\.*/);
12
+ function getAngularEarliestMinorVersion(version) {
13
+ const versionMatching = version.match(/^(\d+)\.(\d+)\.\d+(-\w+)?/);
14
14
  if (versionMatching === null) {
15
15
  throw Error('Unable to determine the minor version for the provided version');
16
16
  }
17
- const [_, major, minor] = versionMatching;
18
- return `${major}.${minor}.0`;
17
+ const [_, major, minor, prerelease = ''] = versionMatching;
18
+ return `~${major}.${minor}.0${prerelease}`;
19
19
  }
20
20
  exports.latestVersions = {
21
21
  // We could have used TypeScripts' `resolveJsonModule` to make the `latestVersion` object typesafe,
22
22
  // but ts_library doesn't support JSON inputs.
23
23
  ...require('./latest-versions/package.json')['dependencies'],
24
24
  // As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
25
- // Angular CLI minor version with earliest prerelease (appended with `-`) will match the latest
26
- // Angular Framework minor.
27
- Angular: `~${getEarliestMinorVersion(require('../package.json')['version'])}-`,
25
+ Angular: getAngularEarliestMinorVersion(require('../package.json')['version']),
28
26
  // Since @angular-devkit/build-angular and @schematics/angular are always
29
27
  // published together from the same monorepo, and they are both
30
28
  // non-experimental, they will always have the same version.