From faf759c7167c373ab82f2934a833becb18b8b9e6 Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Fri, 8 May 2020 15:02:48 -0700 Subject: [PATCH] chore: add no-op v10 migration entrypoints --- src/cdk/schematics/migration.json | 5 +++++ src/cdk/schematics/ng-update/index.ts | 5 +++++ src/material/schematics/migration.json | 5 +++++ src/material/schematics/ng-update/index.ts | 6 ++++++ 4 files changed, 21 insertions(+) diff --git a/src/cdk/schematics/migration.json b/src/cdk/schematics/migration.json index cbd7f3f3eb31..ad3eb56eb781 100644 --- a/src/cdk/schematics/migration.json +++ b/src/cdk/schematics/migration.json @@ -21,6 +21,11 @@ "description": "Updates the Angular CDK to v9", "factory": "./ng-update/index#updateToV9" }, + "migration-v10": { + "version": "10.0.0-0", + "description": "Updates the Angular CDK to v10", + "factory": "./ng-update/index#updateToV10" + }, "ng-post-update": { "description": "Prints out results after ng-update.", "factory": "./ng-update/index#postUpdate", diff --git a/src/cdk/schematics/ng-update/index.ts b/src/cdk/schematics/ng-update/index.ts index be33c1684b30..3768e6dcb7b5 100644 --- a/src/cdk/schematics/ng-update/index.ts +++ b/src/cdk/schematics/ng-update/index.ts @@ -31,6 +31,11 @@ export function updateToV9(): Rule { return createMigrationSchematicRule(TargetVersion.V9, [], cdkUpgradeData, onMigrationComplete); } +/** Entry point for the migration schematics with target of Angular CDK 10.0.0 */ +export function updateToV10(): Rule { + return createMigrationSchematicRule(TargetVersion.V10, [], cdkUpgradeData, onMigrationComplete); +} + /** Function that will be called when the migration completed. */ function onMigrationComplete(context: SchematicContext, targetVersion: TargetVersion, hasFailures: boolean) { diff --git a/src/material/schematics/migration.json b/src/material/schematics/migration.json index 4cf0bdcc73ed..e1c08999b6d7 100644 --- a/src/material/schematics/migration.json +++ b/src/material/schematics/migration.json @@ -21,6 +21,11 @@ "description": "Updates Angular Material to v9", "factory": "./ng-update/index#updateToV9" }, + "migration-v10": { + "version": "10.0.0-0", + "description": "Updates Angular Material to v10", + "factory": "./ng-update/index#updateToV10" + }, "ng-post-update": { "description": "Prints out results after ng-update.", "factory": "./ng-update/index#postUpdate", diff --git a/src/material/schematics/ng-update/index.ts b/src/material/schematics/ng-update/index.ts index 5c330fb8ec6b..b773b338feee 100644 --- a/src/material/schematics/ng-update/index.ts +++ b/src/material/schematics/ng-update/index.ts @@ -62,6 +62,12 @@ export function updateToV9(): Rule { TargetVersion.V9, materialMigrations, materialUpgradeData, onMigrationComplete); } +/** Entry point for the migration schematics with target of Angular Material v10 */ +export function updateToV10(): Rule { + return createMigrationSchematicRule( + TargetVersion.V10, materialMigrations, materialUpgradeData, onMigrationComplete); +} + /** Function that will be called when the migration completed. */ function onMigrationComplete(context: SchematicContext, targetVersion: TargetVersion, hasFailures: boolean) {