Skip to content

Commit

Permalink
chore: Add migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinVignal committed Apr 12, 2024
1 parent 2e755ce commit 46248ba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/go_router/lib/fix_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46248ba

Please sign in to comment.