File tree Expand file tree Collapse file tree 6 files changed +32
-1
lines changed Expand file tree Collapse file tree 6 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 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"
55MDC_PACKAGE_VERSION = "14.0.0-canary.9736ddce9.0"
66TSLIB_PACKAGE_VERSION = "^2.3.0"
77RXJS_PACKAGE_VERSION = "^6.5.3 || ^7.4.0"
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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. */
98108function onMigrationComplete (
99109 context : SchematicContext ,
Original file line number Diff line number Diff 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/**
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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. */
120130function onMigrationComplete (
121131 context : SchematicContext ,
You can’t perform that action at this time.
0 commit comments