@schematics/angular 12.1.2 → 12.1.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.3",
|
|
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.1.
|
|
19
|
-
"@angular-devkit/schematics": "12.1.
|
|
18
|
+
"@angular-devkit/core": "12.1.3",
|
|
19
|
+
"@angular-devkit/schematics": "12.1.3",
|
|
20
20
|
"jsonc-parser": "3.0.0"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
export declare const latestVersions: {
|
|
9
|
-
Angular: string;
|
|
10
9
|
RxJs: string;
|
|
11
10
|
ZoneJs: string;
|
|
12
11
|
TypeScript: string;
|
|
13
12
|
TsLib: string;
|
|
13
|
+
Angular: string;
|
|
14
14
|
DevkitBuildAngular: string;
|
|
15
15
|
ngPackagr: string;
|
|
16
16
|
};
|
|
@@ -8,13 +8,25 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.latestVersions = void 0;
|
|
11
|
+
/** Retrieve the minor version for the provided version string. */
|
|
12
|
+
function getEarliestMinorVersion(version) {
|
|
13
|
+
const versionMatching = version.match(/^(\d+)\.(\d+)\.*/);
|
|
14
|
+
if (versionMatching === null) {
|
|
15
|
+
throw Error('Unable to determine the minor version for the provided version');
|
|
16
|
+
}
|
|
17
|
+
const [_, major, minor] = versionMatching;
|
|
18
|
+
return `${major}.${minor}.0`;
|
|
19
|
+
}
|
|
11
20
|
exports.latestVersions = {
|
|
12
21
|
// These versions should be kept up to date with latest Angular peer dependencies.
|
|
13
|
-
Angular: '~12.1.2',
|
|
14
22
|
RxJs: '~6.6.0',
|
|
15
23
|
ZoneJs: '~0.11.4',
|
|
16
24
|
TypeScript: '~4.3.2',
|
|
17
25
|
TsLib: '^2.2.0',
|
|
26
|
+
// As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
|
|
27
|
+
// Angular CLI minor version with earliest prerelease (appended with `-`) will match the latest
|
|
28
|
+
// Angular Framework minor.
|
|
29
|
+
Angular: `~${getEarliestMinorVersion(require('../package.json')['version'])}-`,
|
|
18
30
|
// Since @angular-devkit/build-angular and @schematics/angular are always
|
|
19
31
|
// published together from the same monorepo, and they are both
|
|
20
32
|
// non-experimental, they will always have the same version.
|