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 1
1
# Each individual package uses a placeholder for the version of Angular to ensure they're
2
2
# all in-sync. This map is passed to each ng_package rule to stamp out the appropriate
3
3
# 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"
5
5
MDC_PACKAGE_VERSION = "14.0.0-canary.9736ddce9.0"
6
6
TSLIB_PACKAGE_VERSION = "^2.3.0"
7
7
RXJS_PACKAGE_VERSION = "^6.5.3 || ^7.4.0"
Original file line number Diff line number Diff line change 41
41
"description" : " Updates the Angular CDK to v13" ,
42
42
"factory" : " ./ng-update/index#updateToV13"
43
43
},
44
+ "migration-v14" : {
45
+ "version" : " 14.0.0-0" ,
46
+ "description" : " Updates the Angular CDK to v14" ,
47
+ "factory" : " ./ng-update/index#updateToV14"
48
+ },
44
49
"ng-post-update" : {
45
50
"description" : " Prints out results after ng-update." ,
46
51
"factory" : " ./ng-update/index#postUpdate" ,
Original file line number Diff line number Diff line change @@ -94,6 +94,16 @@ export function updateToV13(): Rule {
94
94
) ;
95
95
}
96
96
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
+
97
107
/** Function that will be called when the migration completed. */
98
108
function onMigrationComplete (
99
109
context : SchematicContext ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export enum TargetVersion {
18
18
V11 = 'version 11' ,
19
19
V12 = 'version 12' ,
20
20
V13 = 'version 13' ,
21
+ V14 = 'version 14' ,
21
22
}
22
23
23
24
/**
Original file line number Diff line number Diff line change 41
41
"description" : " Updates Angular Material to v13" ,
42
42
"factory" : " ./ng-update/index#updateToV13"
43
43
},
44
+ "migration-v14" : {
45
+ "version" : " 14.0.0-0" ,
46
+ "description" : " Updates the Angular Material to v14" ,
47
+ "factory" : " ./ng-update/index#updateToV14"
48
+ },
44
49
"ng-post-update" : {
45
50
"description" : " Prints out results after ng-update." ,
46
51
"factory" : " ./ng-update/index#postUpdate" ,
Original file line number Diff line number Diff line change @@ -116,6 +116,16 @@ export function updateToV13(): Rule {
116
116
) ;
117
117
}
118
118
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
+
119
129
/** Function that will be called when the migration completed. */
120
130
function onMigrationComplete (
121
131
context : SchematicContext ,
You can’t perform that action at this time.
0 commit comments