From d1fcb75d64c58b05c9de12b19af43c41d4316f28 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 13 Aug 2023 15:45:30 +0000 Subject: [PATCH] chore(deps): bump go_router from 9.1.1 to 10.0.0 Bumps [go_router](https://github.com/flutter/packages/tree/main/packages) from 9.1.1 to 10.0.0. - [Release notes](https://github.com/flutter/packages/releases) - [Commits](https://github.com/flutter/packages/commits/go_router-v10.0.0/packages) --- updated-dependencies: - dependency-name: go_router dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- packages/neon/neon/lib/src/router.dart | 4 +-- packages/neon/neon/lib/src/router.g.dart | 26 +++++++++---------- packages/neon/neon/pubspec.yaml | 2 +- packages/neon/neon_files/pubspec.yaml | 2 +- packages/neon/neon_news/pubspec.yaml | 2 +- packages/neon/neon_notes/pubspec.yaml | 2 +- packages/neon/neon_notifications/pubspec.yaml | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/neon/neon/lib/src/router.dart b/packages/neon/neon/lib/src/router.dart index 9516e05c..509e8f5d 100644 --- a/packages/neon/neon/lib/src/router.dart +++ b/packages/neon/neon/lib/src/router.dart @@ -34,7 +34,7 @@ class AppRouter extends GoRouter { navigatorKey: navigatorKey, initialLocation: const HomeRoute().location, redirect: (final context, final state) { - final loginQrcode = LoginQrcode.tryParse(state.location); + final loginQrcode = LoginQrcode.tryParse(state.uri.toString()); if (loginQrcode != null) { return LoginCheckServerStatusRoute.withCredentials( serverUrl: loginQrcode.serverURL, @@ -44,7 +44,7 @@ class AppRouter extends GoRouter { } // redirect to loginscreen when no account is logged in - if (!accountsBloc.hasAccounts && !state.location.startsWith(const LoginRoute().location)) { + if (!accountsBloc.hasAccounts && !state.uri.toString().startsWith(const LoginRoute().location)) { return const LoginRoute().location; } diff --git a/packages/neon/neon/lib/src/router.g.dart b/packages/neon/neon/lib/src/router.g.dart index a8d1e57f..a8d73571 100644 --- a/packages/neon/neon/lib/src/router.g.dart +++ b/packages/neon/neon/lib/src/router.g.dart @@ -78,7 +78,7 @@ extension $HomeRouteExtension on HomeRoute { extension $SettingsRouteExtension on SettingsRoute { static SettingsRoute _fromState(GoRouterState state) => SettingsRoute( initialCategory: - _$convertMapValue('initial-category', state.queryParameters, _$SettingsCageoriesEnumMap._$fromName), + _$convertMapValue('initial-category', state.uri.queryParameters, _$SettingsCageoriesEnumMap._$fromName), ); String get location => GoRouteData.$location( @@ -144,7 +144,7 @@ extension $_AddAccountRouteExtension on _AddAccountRoute { extension $_AddAccountFlowRouteExtension on _AddAccountFlowRoute { static _AddAccountFlowRoute _fromState(GoRouterState state) => _AddAccountFlowRoute( - serverUrl: state.queryParameters['server-url']!, + serverUrl: state.uri.queryParameters['server-url']!, ); String get location => GoRouteData.$location( @@ -181,7 +181,7 @@ extension $_AddAccountQrcodeRouteExtension on _AddAccountQrcodeRoute { extension $_AddAccountCheckServerStatusRouteExtension on _AddAccountCheckServerStatusRoute { static _AddAccountCheckServerStatusRoute _fromState(GoRouterState state) => _AddAccountCheckServerStatusRoute( - serverUrl: state.queryParameters['server-url']!, + serverUrl: state.uri.queryParameters['server-url']!, ); String get location => GoRouteData.$location( @@ -202,9 +202,9 @@ extension $_AddAccountCheckServerStatusRouteExtension on _AddAccountCheckServerS extension $_AddAccountCheckAccountRouteExtension on _AddAccountCheckAccountRoute { static _AddAccountCheckAccountRoute _fromState(GoRouterState state) => _AddAccountCheckAccountRoute( - serverUrl: state.queryParameters['server-url']!, - loginName: state.queryParameters['login-name']!, - password: state.queryParameters['password']!, + serverUrl: state.uri.queryParameters['server-url']!, + loginName: state.uri.queryParameters['login-name']!, + password: state.uri.queryParameters['password']!, ); String get location => GoRouteData.$location( @@ -298,7 +298,7 @@ extension $LoginRouteExtension on LoginRoute { extension $LoginFlowRouteExtension on LoginFlowRoute { static LoginFlowRoute _fromState(GoRouterState state) => LoginFlowRoute( - serverUrl: state.queryParameters['server-url']!, + serverUrl: state.uri.queryParameters['server-url']!, ); String get location => GoRouteData.$location( @@ -335,9 +335,9 @@ extension $LoginQrcodeRouteExtension on LoginQrcodeRoute { extension $LoginCheckServerStatusRouteExtension on LoginCheckServerStatusRoute { static LoginCheckServerStatusRoute _fromState(GoRouterState state) => LoginCheckServerStatusRoute( - serverUrl: state.queryParameters['server-url']!, - loginName: state.queryParameters['login-name'], - password: state.queryParameters['password'], + serverUrl: state.uri.queryParameters['server-url']!, + loginName: state.uri.queryParameters['login-name'], + password: state.uri.queryParameters['password'], ); String get location => GoRouteData.$location( @@ -360,9 +360,9 @@ extension $LoginCheckServerStatusRouteExtension on LoginCheckServerStatusRoute { extension $LoginCheckAccountRouteExtension on LoginCheckAccountRoute { static LoginCheckAccountRoute _fromState(GoRouterState state) => LoginCheckAccountRoute( - serverUrl: state.queryParameters['server-url']!, - loginName: state.queryParameters['login-name']!, - password: state.queryParameters['password']!, + serverUrl: state.uri.queryParameters['server-url']!, + loginName: state.uri.queryParameters['login-name']!, + password: state.uri.queryParameters['password']!, ); String get location => GoRouteData.$location( diff --git a/packages/neon/neon/pubspec.yaml b/packages/neon/neon/pubspec.yaml index 05419562..21c1b2a8 100644 --- a/packages/neon/neon/pubspec.yaml +++ b/packages/neon/neon/pubspec.yaml @@ -21,7 +21,7 @@ dependencies: flutter_native_splash: ^2.2.19 flutter_svg: ^2.0.5 flutter_zxing: ^1.1.2 # ^1.2.0 downgrades to image ^3.0.0 which breaks our dependencies. See https://github.com/khoren93/flutter_zxing/issues/94 - go_router: ^9.0.3 + go_router: ^10.0.0 http: ^1.1.0 image: ^4.0.17 intersperse: ^2.0.0 diff --git a/packages/neon/neon_files/pubspec.yaml b/packages/neon/neon_files/pubspec.yaml index d9b14ca5..19ecb35f 100644 --- a/packages/neon/neon_files/pubspec.yaml +++ b/packages/neon/neon_files/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: filesize: ^2.0.1 flutter: sdk: flutter - go_router: ^9.0.3 + go_router: ^10.0.0 image_picker: ^0.8.7+5 intersperse: ^2.0.0 material_design_icons_flutter: ^7.0.7296 diff --git a/packages/neon/neon_news/pubspec.yaml b/packages/neon/neon_news/pubspec.yaml index 88622223..77d2cf28 100644 --- a/packages/neon/neon_news/pubspec.yaml +++ b/packages/neon/neon_news/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter flutter_html: ^3.0.0-alpha.6 - go_router: ^9.0.3 + go_router: ^10.0.0 html: ^0.15.3 material_design_icons_flutter: ^7.0.7296 neon: diff --git a/packages/neon/neon_notes/pubspec.yaml b/packages/neon/neon_notes/pubspec.yaml index 05e4a95d..3e51d18b 100644 --- a/packages/neon/neon_notes/pubspec.yaml +++ b/packages/neon/neon_notes/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: flutter: sdk: flutter flutter_markdown: ^0.6.14 - go_router: ^9.0.3 + go_router: ^10.0.0 material_design_icons_flutter: ^7.0.7296 neon: git: diff --git a/packages/neon/neon_notifications/pubspec.yaml b/packages/neon/neon_notifications/pubspec.yaml index 1cb138c2..4d5a3727 100644 --- a/packages/neon/neon_notifications/pubspec.yaml +++ b/packages/neon/neon_notifications/pubspec.yaml @@ -9,7 +9,7 @@ environment: dependencies: flutter: sdk: flutter - go_router: ^9.0.3 + go_router: ^10.0.0 material_design_icons_flutter: ^7.0.7296 neon: git: