Skip to content

Commit 811cd66

Browse files
authored
build: set up schematics for v19 (#29584)
Sets up the update schematics for v19.
1 parent 4ee6c6c commit 811cd66

File tree

11 files changed

+18
-823
lines changed

11 files changed

+18
-823
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 & 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-
V18 = 'version 18',
13+
V19 = 'version 19',
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-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/data/css-tokens.ts

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {TargetVersion, VersionChanges} from '@angular/cdk/schematics';
9+
import {VersionChanges} from '@angular/cdk/schematics';
1010

1111
export interface MaterialCssTokenData {
1212
/** The CSS selector to replace. */
@@ -27,36 +27,4 @@ export interface MaterialCssTokenData {
2727
};
2828
}
2929

30-
export const cssTokens: VersionChanges<MaterialCssTokenData> = {
31-
[TargetVersion.V18]: [
32-
{
33-
pr: 'https://github.com/angular/components/pull/29026',
34-
changes: [
35-
{
36-
replace: '--mdc-form-field-label-text-color',
37-
replaceWith: '--mat-checkbox-label-text-color',
38-
},
39-
{
40-
replace: '--mdc-form-field-label-text-font',
41-
replaceWith: '--mat-checkbox-label-text-font',
42-
},
43-
{
44-
replace: '--mdc-form-field-label-text-line-height',
45-
replaceWith: '--mat-checkbox-label-text-line-height',
46-
},
47-
{
48-
replace: '--mdc-form-field-label-text-size',
49-
replaceWith: '--mat-checkbox-label-text-size',
50-
},
51-
{
52-
replace: '--mdc-form-field-label-text-tracking',
53-
replaceWith: '--mat-checkbox-label-text-tracking',
54-
},
55-
{
56-
replace: '--mdc-form-field-label-text-weight',
57-
replaceWith: '--mat-checkbox-label-text-weight',
58-
},
59-
],
60-
},
61-
],
62-
};
30+
export const cssTokens: VersionChanges<MaterialCssTokenData> = {};

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

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

1616
import {materialUpgradeData} from './upgrade-data';
17-
import {M2ThemingMigration} from './migrations/m2-theming-v18';
1817

19-
const materialMigrations: NullableDevkitMigration[] = [M2ThemingMigration];
18+
const materialMigrations: NullableDevkitMigration[] = [];
2019

21-
/** Entry point for the migration schematics with target of Angular Material v18 */
22-
export function updateToV18(): Rule {
20+
/** Entry point for the migration schematics with target of Angular Material v19 */
21+
export function updateToV19(): Rule {
2322
return createMigrationSchematicRule(
24-
TargetVersion.V18,
23+
TargetVersion.V19,
2524
materialMigrations,
2625
materialUpgradeData,
2726
onMigrationComplete,

src/material/schematics/ng-update/migrations/m2-theming-v18/index.ts

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

0 commit comments

Comments
 (0)