File tree Expand file tree Collapse file tree 5 files changed +31
-0
lines changed Expand file tree Collapse file tree 5 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 46
46
"description" : " Updates the Angular CDK to v14" ,
47
47
"factory" : " ./ng-update/index#updateToV14"
48
48
},
49
+ "migration-v15" : {
50
+ "version" : " 15.0.0-0" ,
51
+ "description" : " Updates the Angular CDK to v15" ,
52
+ "factory" : " ./ng-update/index#updateToV15"
53
+ },
49
54
"ng-post-update" : {
50
55
"description" : " Prints out results after ng-update." ,
51
56
"factory" : " ./ng-update/index#postUpdate" ,
Original file line number Diff line number Diff line change @@ -104,6 +104,16 @@ export function updateToV14(): Rule {
104
104
) ;
105
105
}
106
106
107
+ /** Entry point for the migration schematics with target of Angular CDK 15.0.0 */
108
+ export function updateToV15 ( ) : Rule {
109
+ return createMigrationSchematicRule (
110
+ TargetVersion . V15 ,
111
+ cdkMigrations ,
112
+ cdkUpgradeData ,
113
+ onMigrationComplete ,
114
+ ) ;
115
+ }
116
+
107
117
/** Function that will be called when the migration completed. */
108
118
function onMigrationComplete (
109
119
context : SchematicContext ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export enum TargetVersion {
19
19
V12 = 'version 12' ,
20
20
V13 = 'version 13' ,
21
21
V14 = 'version 14' ,
22
+ V15 = 'version 15' ,
22
23
}
23
24
24
25
/**
Original file line number Diff line number Diff line change 46
46
"description" : " Updates the Angular Material to v14" ,
47
47
"factory" : " ./ng-update/index#updateToV14"
48
48
},
49
+ "migration-v15" : {
50
+ "version" : " 15.0.0-0" ,
51
+ "description" : " Updates the Angular Material to v15" ,
52
+ "factory" : " ./ng-update/index#updateToV15"
53
+ },
49
54
"ng-post-update" : {
50
55
"description" : " Prints out results after ng-update." ,
51
56
"factory" : " ./ng-update/index#postUpdate" ,
Original file line number Diff line number Diff line change @@ -126,6 +126,16 @@ export function updateToV14(): Rule {
126
126
) ;
127
127
}
128
128
129
+ /** Entry point for the migration schematics with target of Angular Material v15 */
130
+ export function updateToV15 ( ) : Rule {
131
+ return createMigrationSchematicRule (
132
+ TargetVersion . V15 ,
133
+ materialMigrations ,
134
+ materialUpgradeData ,
135
+ onMigrationComplete ,
136
+ ) ;
137
+ }
138
+
129
139
/** Function that will be called when the migration completed. */
130
140
function onMigrationComplete (
131
141
context : SchematicContext ,
You can’t perform that action at this time.
0 commit comments