Skip to content

Commit ae87fcd

Browse files
committed
build: set up schematics for version 17
1 parent 533cbc3 commit ae87fcd

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
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-v16": {
5-
"version": "16.0.0-0",
6-
"description": "Updates the Angular CDK to v16",
7-
"factory": "./ng-update/index#updateToV16"
4+
"migration-v17": {
5+
"version": "17.0.0-0",
6+
"description": "Updates the Angular CDK to v17",
7+
"factory": "./ng-update/index#updateToV17"
88
},
99
"ng-post-update": {
1010
"description": "Prints out results after ng-update.",

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

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

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

16-
/** Entry point for the migration schematics with target of Angular CDK 16.0.0 */
17-
export function updateToV16(): Rule {
16+
/** Entry point for the migration schematics with target of Angular CDK 17.0.0 */
17+
export function updateToV17(): Rule {
1818
return createMigrationSchematicRule(
19-
TargetVersion.V16,
19+
TargetVersion.V17,
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 V16 deprecations.
18+
// There are currently no migrations for V17 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
// Used in an `Object.keys` call below so it can't be `const enum`.
1111
// tslint:disable-next-line:prefer-const-enum
1212
export enum TargetVersion {
13-
V16 = 'version 16',
13+
V17 = 'version 17',
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-v16": {
5-
"version": "16.0.0-0",
6-
"description": "Updates the Angular Material to v16",
7-
"factory": "./ng-update/index_bundled#updateToV16"
4+
"migration-v17": {
5+
"version": "17.0.0-0",
6+
"description": "Updates the Angular Material to v17",
7+
"factory": "./ng-update/index_bundled#updateToV17"
88
}
99
}
1010
}

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

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

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

20-
/** Entry point for the migration schematics with target of Angular Material v16 */
21-
export function updateToV16(): Rule {
20+
/** Entry point for the migration schematics with target of Angular Material v17 */
21+
export function updateToV17(): Rule {
2222
return createMigrationSchematicRule(
23-
TargetVersion.V16,
23+
TargetVersion.V17,
2424
materialMigrations,
2525
materialUpgradeData,
2626
onMigrationComplete,

0 commit comments

Comments
 (0)