Skip to content

Commit 3c58011

Browse files
committed
build: prepare framework peer dependency and migration collection for v14
Prepares the framework peer dependency and migration collection for v14, ensuring the release checks will not fail when we get closer to publishing the first RC.
1 parent b7ee958 commit 3c58011

File tree

6 files changed

+32
-1
lines changed

6 files changed

+32
-1
lines changed

packages.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Each individual package uses a placeholder for the version of Angular to ensure they're
22
# all in-sync. This map is passed to each ng_package rule to stamp out the appropriate
33
# version for the placeholders.
4-
ANGULAR_PACKAGE_VERSION = "^13.0.0 || ^14.0.0"
4+
ANGULAR_PACKAGE_VERSION = "^14.0.0-0 || ^15.0.0"
55
MDC_PACKAGE_VERSION = "14.0.0-canary.9736ddce9.0"
66
TSLIB_PACKAGE_VERSION = "^2.3.0"
77
RXJS_PACKAGE_VERSION = "^6.5.3 || ^7.4.0"

src/cdk/schematics/migration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
"description": "Updates the Angular CDK to v13",
4242
"factory": "./ng-update/index#updateToV13"
4343
},
44+
"migration-v14": {
45+
"version": "14.0.0-0",
46+
"description": "Updates the Angular CDK to v14",
47+
"factory": "./ng-update/index#updateToV14"
48+
},
4449
"ng-post-update": {
4550
"description": "Prints out results after ng-update.",
4651
"factory": "./ng-update/index#postUpdate",

src/cdk/schematics/ng-update/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ export function updateToV13(): Rule {
9494
);
9595
}
9696

97+
/** Entry point for the migration schematics with target of Angular CDK 14.0.0 */
98+
export function updateToV14(): Rule {
99+
return createMigrationSchematicRule(
100+
TargetVersion.V14,
101+
cdkMigrations,
102+
cdkUpgradeData,
103+
onMigrationComplete,
104+
);
105+
}
106+
97107
/** Function that will be called when the migration completed. */
98108
function onMigrationComplete(
99109
context: SchematicContext,

src/cdk/schematics/update-tool/target-version.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export enum TargetVersion {
1818
V11 = 'version 11',
1919
V12 = 'version 12',
2020
V13 = 'version 13',
21+
V14 = 'version 14',
2122
}
2223

2324
/**

src/material/schematics/migration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
"description": "Updates Angular Material to v13",
4242
"factory": "./ng-update/index#updateToV13"
4343
},
44+
"migration-v14": {
45+
"version": "14.0.0-0",
46+
"description": "Updates the Angular Material to v14",
47+
"factory": "./ng-update/index#updateToV14"
48+
},
4449
"ng-post-update": {
4550
"description": "Prints out results after ng-update.",
4651
"factory": "./ng-update/index#postUpdate",

src/material/schematics/ng-update/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ export function updateToV13(): Rule {
116116
);
117117
}
118118

119+
/** Entry point for the migration schematics with target of Angular Material v14 */
120+
export function updateToV14(): Rule {
121+
return createMigrationSchematicRule(
122+
TargetVersion.V14,
123+
materialMigrations,
124+
materialUpgradeData,
125+
onMigrationComplete,
126+
);
127+
}
128+
119129
/** Function that will be called when the migration completed. */
120130
function onMigrationComplete(
121131
context: SchematicContext,

0 commit comments

Comments
 (0)