Skip to content

Upgrading go_router 0.6 to 0.7

Breaking0.6.2 → 0.7.1Breaking1New1Fixed1

BreakingUpgrade verdict

1 breaking change.

  • A configuration option has a new name. If you used the old name, you must update it.
1 item needs code or config changes
Breaking1
Renames pattern to path for consistency with other routers.
patternpath

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: field GoRoute.pattern: final String
  • removed: field GoRouterState.pattern: final String
  • removed: get GoRouterState.pageKey: ValueKey
  • changed: ctor GoRoute({ required this.pattern, required this.builder, this.routes, }) → ctor GoRoute({ required this.path, required this.builder, this.routes, })
  • changed: ctor GoRouterState({ required this.router, required this.location, required this.subloc, this.pattern = …, this.params = …, String>{}, this.error, }) → ctor GoRouterState({ required this.router, required this.location, required this.subloc, this.path = …, this.params = …, String>{}, this.error, String fullpath = …, })
  • changed: static method GoRouter.locationFor(String pattern, Map<String, String> params): String → static method GoRouter.locationFor(String path, Map<String, String> params): String
  • added: class GoRouterLoginGuard extends GoRouterGuard
  • added: ctor GoRouterLoginGuard( Listenable loginInfo, { required this.loginPath, this.homePath = …, this.fromParam = …, })
  • added: field GoRoute.path: final String
  • added: field GoRouterLoginGuard.fromParam: final String
  • added: field GoRouterLoginGuard.homePath: final String
  • added: field GoRouterLoginGuard.loginPath: final String
  • added: field GoRouterState.pageKey: final ValueKey<String>
  • added: field GoRouterState.path: final String
  • added: get GoRouterLoggedIn.loggedIn: bool
  • added: method GoRouterLoginGuard.redirect(String location): String?
  • added: mixin GoRouterLoggedIn