Skip to content

Commit 90a76d2

Browse files
committed
build: set up schematics for v19
Sets up the update schematics for v19.
1 parent 4ee6c6c commit 90a76d2

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
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-v18": {
5-
"version": "18.0.0-0",
6-
"description": "Updates the Angular CDK to v18",
7-
"factory": "./ng-update/index#updateToV18"
4+
"migration-v19": {
5+
"version": "19.0.0-0",
6+
"description": "Updates the Angular CDK to v19",
7+
"factory": "./ng-update/index#updateToV19"
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 updateToV18(): Rule {
17+
export function updateToV19(): Rule {
1818
return createMigrationSchematicRule(
19-
TargetVersion.V18,
19+
TargetVersion.V19,
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 V18 deprecations.
18+
// There are currently no migrations for V19 deprecations.
1919
enabled = false;
2020

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// tslint:disable-next-line:prefer-const-enum
1212
export enum TargetVersion {
1313
V18 = 'version 18',
14+
V19 = 'version 19',
1415
}
1516

1617
/**
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-v18": {
5-
"version": "18.0.0-0",
6-
"description": "Updates Angular Material to v18",
7-
"factory": "./ng-update/index_bundled#updateToV18"
4+
"migration-v19": {
5+
"version": "19.0.0-0",
6+
"description": "Updates Angular Material to v19",
7+
"factory": "./ng-update/index_bundled#updateToV19"
88
}
99
}
1010
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import {M2ThemingMigration} from './migrations/m2-theming-v18';
1818

1919
const materialMigrations: NullableDevkitMigration[] = [M2ThemingMigration];
2020

21-
/** Entry point for the migration schematics with target of Angular Material v18 */
22-
export function updateToV18(): Rule {
21+
/** Entry point for the migration schematics with target of Angular Material v19 */
22+
export function updateToV19(): Rule {
2323
return createMigrationSchematicRule(
24-
TargetVersion.V18,
24+
TargetVersion.V19,
2525
materialMigrations,
2626
materialUpgradeData,
2727
onMigrationComplete,

0 commit comments

Comments
 (0)