Skip to content

Commit 694765d

Browse files
authored
build: remove v21 migrations (#32937)
Now that we're on v22 in `main`, we don't need th v21 migrations anymore.
1 parent 0767a3c commit 694765d

File tree

7 files changed

+0
-38
lines changed

7 files changed

+0
-38
lines changed

src/cdk/schematics/migration.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
33
"schematics": {
4-
"migration-v21": {
5-
"version": "21.0.0-0",
6-
"description": "Updates the Angular CDK to v21",
7-
"factory": "./ng-update/index#updateToV21"
8-
},
94
"migration-v22": {
105
"version": "22.0.0-0",
116
"description": "Updates the Angular CDK to v22",

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ import {createMigrationSchematicRule, NullableDevkitMigration} from './devkit-mi
1313

1414
const cdkMigrations: NullableDevkitMigration[] = [];
1515

16-
/** Entry point for the migration schematics with target of Angular CDK 21.0.0 */
17-
export function updateToV21(): Rule {
18-
return createMigrationSchematicRule(
19-
TargetVersion.V21,
20-
cdkMigrations,
21-
cdkUpgradeData,
22-
onMigrationComplete,
23-
);
24-
}
25-
2616
/** Entry point for the migration schematics with target of Angular CDK 22.0.0 */
2717
export function updateToV22(): Rule {
2818
return createMigrationSchematicRule(

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// tslint:disable-next-line:prefer-const-enum
1212
export enum TargetVersion {
13-
V21 = 'version 21',
1413
V22 = 'version 22',
1514
}
1615

src/google-maps/schematics/migration.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
22
"schematics": {
3-
"migration-v21": {
4-
"version": "21.0.0-0",
5-
"description": "Updates the Angular Google Maps package to v21",
6-
"factory": "./ng-update/index#updateToV21"
7-
},
83
"migration-v22": {
94
"version": "22.0.0-0",
105
"description": "Updates the Angular Google Maps package to v22",

src/google-maps/schematics/ng-update/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
import {Rule} from '@angular-devkit/schematics';
1010

11-
/** Entry point for the migration schematics with target of Google Maps v21 */
12-
export function updateToV21(): Rule {
13-
return () => {};
14-
}
15-
1611
/** Entry point for the migration schematics with target of Google Maps v22 */
1712
export function updateToV22(): Rule {
1813
return () => {};

src/material/schematics/migration.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
33
"schematics": {
4-
"migration-v21": {
5-
"version": "21.0.0-0",
6-
"description": "Updates Angular Material to v21",
7-
"factory": "./ng-update/index_bundled#updateToV21"
8-
},
94
"migration-v22": {
105
"version": "22.0.0-0",
116
"description": "Updates Angular Material to v22",

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ import {materialUpgradeData} from './upgrade-data';
1717

1818
const materialMigrations: NullableDevkitMigration[] = [];
1919

20-
/** Entry point for the migration schematics with target of Angular Material v21 */
21-
export function updateToV21(): Rule {
22-
return chain([
23-
createMigrationSchematicRule(TargetVersion.V21, materialMigrations, materialUpgradeData),
24-
]);
25-
}
26-
2720
/** Entry point for the migration schematics with target of Angular Material v22 */
2821
export function updateToV22(): Rule {
2922
return chain([

0 commit comments

Comments
 (0)