Skip to content

Commit 0972ab6

Browse files
committed
build: set up schematics for v20
1 parent 61b5f2a commit 0972ab6

File tree

10 files changed

+16
-546
lines changed

10 files changed

+16
-546
lines changed

src/cdk/schematics/migration.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
33
"schematics": {
4-
"migration-v19": {
5-
"version": "19.0.0-0",
6-
"description": "Updates the Angular CDK to v19",
7-
"factory": "./ng-update/index#updateToV19"
4+
"migration-v20": {
5+
"version": "20.0.0-0",
6+
"description": "Updates the Angular CDK to v20",
7+
"factory": "./ng-update/index#updateToV20"
88
},
99
"ng-post-update": {
1010
"description": "Prints out results after ng-update.",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import {createMigrationSchematicRule, NullableDevkitMigration} from './devkit-mi
1414
const cdkMigrations: NullableDevkitMigration[] = [];
1515

1616
/** Entry point for the migration schematics with target of Angular CDK 18.0.0 */
17-
export function updateToV19(): Rule {
17+
export function updateToV20(): Rule {
1818
return createMigrationSchematicRule(
19-
TargetVersion.V19,
19+
TargetVersion.V20,
2020
cdkMigrations,
2121
cdkUpgradeData,
2222
onMigrationComplete,

src/cdk/schematics/ng-update/migrations/misc-template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {UpgradeData} from '../upgrade-data';
1515
* instances of outdated Angular CDK API that can't be migrated automatically.
1616
*/
1717
export class MiscTemplateMigration extends Migration<UpgradeData> {
18-
// There are currently no migrations for V19 deprecations.
18+
// There are currently no migrations for V20 deprecations.
1919
enabled = false;
2020

2121
override visitTemplate(template: ResolvedResource): void {}

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

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

1111
// tslint:disable-next-line:prefer-const-enum
1212
export enum TargetVersion {
13-
V19 = 'version 19',
13+
V20 = 'version 20',
1414
}
1515

1616
/**
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
33
"schematics": {
4-
"migration-v19": {
5-
"version": "19.0.0-0",
6-
"description": "Updates Angular Material to v19",
7-
"factory": "./ng-update/index_bundled#updateToV19"
4+
"migration-v20": {
5+
"version": "20.0.0-0",
6+
"description": "Updates Angular Material to v20",
7+
"factory": "./ng-update/index_bundled#updateToV20"
88
}
99
}
1010
}

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,13 @@ import {
1414
} from '@angular/cdk/schematics';
1515

1616
import {materialUpgradeData} from './upgrade-data';
17-
import {MatCoreMigration} from './migrations/mat-core-removal';
18-
import {ExplicitSystemVariablePrefixMigration} from './migrations/explicit-system-variable-prefix';
1917

20-
const materialMigrations: NullableDevkitMigration[] = [
21-
MatCoreMigration,
22-
ExplicitSystemVariablePrefixMigration,
23-
];
18+
const materialMigrations: NullableDevkitMigration[] = [];
2419

25-
/** Entry point for the migration schematics with target of Angular Material v19 */
26-
export function updateToV19(): Rule {
20+
/** Entry point for the migration schematics with target of Angular Material v20 */
21+
export function updateToV20(): Rule {
2722
return createMigrationSchematicRule(
28-
TargetVersion.V19,
23+
TargetVersion.V20,
2924
materialMigrations,
3025
materialUpgradeData,
3126
onMigrationComplete,

src/material/schematics/ng-update/migrations/explicit-system-variable-prefix.ts

Lines changed: 0 additions & 125 deletions
This file was deleted.

src/material/schematics/ng-update/migrations/mat-core-removal.ts

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)