From ec2d323f64c445447c3acead1fda921a4c0f90a3 Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Fri, 9 Aug 2024 12:01:56 +0300 Subject: [PATCH] chore: add migration comments for `TUI_ANIMATIONS_DURATION` & `TUI_IS_MOBILE_RES` (#8433) --- .../v4/steps/constants/migration-warnings.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts index ccddba286490..ce203274ba00 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts @@ -180,4 +180,16 @@ export const MIGRATION_WARNINGS: MigrationWarning[] = [ message: 'TuiIllustrationModePipe was deleted. Import TuiIconPipe and use instead. See https://taiga-ui.tcsbank.ru/icons', }, + { + name: 'TUI_IS_MOBILE_RES', + moduleSpecifier: '@taiga-ui/core', + message: + 'use TuiBreakpointService instead of TUI_IS_MOBILE_RES. Learn more https://taiga-ui.dev/services/breakpoint-service', + }, + { + name: 'TUI_ANIMATIONS_DURATION', + moduleSpecifier: '@taiga-ui/core', + message: + 'TUI_ANIMATIONS_DURATION is deleted. Use TUI_ANIMATIONS_SPEED instead (300ms divided by your previous value of TUI_ANIMATIONS_DURATION)', + }, ];