From 46248ba6dafa90b56c68ce62b061da8675aeafbc Mon Sep 17 00:00:00 2001 From: ValentinVignal Date: Fri, 12 Apr 2024 18:03:30 +0800 Subject: [PATCH] chore: Add migration script --- packages/go_router/lib/fix_data.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/go_router/lib/fix_data.yaml b/packages/go_router/lib/fix_data.yaml index 6a20a7de55ab..31ea01040889 100644 --- a/packages/go_router/lib/fix_data.yaml +++ b/packages/go_router/lib/fix_data.yaml @@ -17,6 +17,22 @@ version: 1 transforms: + - title: "Replaces 'params' and 'queryParams' in 'GoRouter.replaceNamed' with `pathParameters` and `queryParameters`" + date: 2024-04-12 + bulkApply: true + element: + # TODO(ahmednfwela): Workaround for https://github.com/dart-lang/sdk/issues/52233 + uris: [ 'go_router.dart', 'package:go_router/go_router.dart' ] + method: 'onExit' + inClass: 'GoRoute' + changes: + - kind: 'addParameter' + index: 1 + name: 'state' + style: 'required_positional' + argumentValue: + expression: 'GoRouterState state' + - title: "Replaces 'location' in 'GoRouterState' with `uri.toString()`" date: 2023-07-06 bulkApply: true