Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and bump version on each package #109

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.nhost_auth_dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ jobs:
coverage-files: packages/nhost_auth_dart/coverage/lcov.info
working-directory: packages/nhost_auth_dart/
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
2 changes: 1 addition & 1 deletion .github/workflows/test.nhost_dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ jobs:
coverage-files: packages/nhost_dart/coverage/lcov.info
working-directory: packages/nhost_dart/
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
2 changes: 1 addition & 1 deletion .github/workflows/test.nhost_flutter_auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ jobs:
coverage-files: packages/nhost_flutter_auth/coverage/lcov.info
working-directory: packages/nhost_flutter_auth/
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
2 changes: 1 addition & 1 deletion .github/workflows/test.nhost_flutter_graphql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ jobs:
coverage-files: packages/nhost_flutter_graphql/coverage/lcov.info
working-directory: packages/nhost_flutter_graphql/
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
2 changes: 1 addition & 1 deletion .github/workflows/test.nhost_functions_dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ jobs:
coverage-files: packages/nhost_functions_dart/coverage/lcov.info
working-directory: packages/nhost_functions_dart/
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
2 changes: 1 addition & 1 deletion .github/workflows/test.nhost_gql_links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ jobs:
coverage-files: packages/nhost_gql_links/coverage/lcov.info
working-directory: packages/nhost_gql_links/
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
2 changes: 1 addition & 1 deletion .github/workflows/test.nhost_graphql_adapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ jobs:
coverage-files: packages/nhost_graphql_adapter/coverage/lcov.info
working-directory: packages/nhost_graphql_adapter/
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
2 changes: 1 addition & 1 deletion .github/workflows/test.nhost_sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ jobs:
coverage-files: packages/nhost_sdk/coverage/lcov.info
working-directory: packages/nhost_sdk/
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
2 changes: 1 addition & 1 deletion .github/workflows/test.nhost_storage_dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ jobs:
coverage-files: packages/nhost_storage_dart/coverage/lcov.info
working-directory: packages/nhost_storage_dart/
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
if: ${{ github.event_name != 'pull_request' && steps.check_coverage_exists.outputs.files_exists == 'true' }}
2 changes: 1 addition & 1 deletion docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ First install the package

```yaml
dependencies:
nhost_dart: ^1.0.1
nhost_dart: ^1.0.2
```

Then, import the package and create new NhostClient
Expand Down
5 changes: 5 additions & 0 deletions packages/nhost_auth_dart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.0.1

- **CHORE**: bump `nhost_auth_dart` version
- Update dependencies.

## 1.0.0

- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
Expand Down
6 changes: 6 additions & 0 deletions packages/nhost_auth_dart/example/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# melos_managed_dependency_overrides: nhost_auth_dart,nhost_sdk
dependency_overrides:
nhost_auth_dart:
path: ..
nhost_sdk:
path: ../../nhost_sdk
8 changes: 4 additions & 4 deletions packages/nhost_auth_dart/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: nhost_auth_dart
description: Nhost Dart Auth Service SDK
version: 1.0.0
version: 1.0.1
homepage: https://nhost.io
repository: https://github.com/nhost/nhost-dart/tree/main/packages/nhost_sdk
issue_tracker: https://github.com/nhost/nhost-dart/issues

environment:
sdk: '>=2.14.0 <3.0.0'
sdk: ">=2.14.0 <3.0.0"

dependencies:
http_parser: ^4.0.1
http: ^0.13.4
http: ^0.13.6
logging: ^1.1.0
meta: ^1.7.0
#Nhost_sdk
nhost_sdk: ^4.0.0
nhost_sdk: ^4.0.1
dev_dependencies:
lints: ^2.0.0
test: ^1.16.0
4 changes: 4 additions & 0 deletions packages/nhost_auth_dart/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# melos_managed_dependency_overrides: nhost_sdk
dependency_overrides:
nhost_sdk:
path: ../nhost_sdk
5 changes: 5 additions & 0 deletions packages/nhost_dart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.0.2

- **CHORE**: bump `nhost_dart` version
- Update dependencies.

## 1.0.1

- added image transform options to getPresignedUrl
Expand Down
2 changes: 1 addition & 1 deletion packages/nhost_dart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void main() async {

```yaml
dependencies:
nhost_dart: ^1.0.1
nhost_dart: ^1.0.2
```

## 🔥 More Dart & Flutter packages from Nhost
Expand Down
6 changes: 3 additions & 3 deletions packages/nhost_dart/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: nhost_dart_example
description: 'nhost Dart sdk example'
description: "nhost Dart sdk example"
private: true
version: 1.0.0+1
publish_to: none

environment:
sdk: '>=2.14.0 <3.0.0'
sdk: ">=2.14.0 <3.0.0"

dependencies:
# Nhost packages
nhost_dart:
path: ../
path: ../../nhost_dart
16 changes: 16 additions & 0 deletions packages/nhost_dart/example/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# melos_managed_dependency_overrides: nhost_auth_dart,nhost_dart,nhost_functions_dart,nhost_gql_links,nhost_graphql_adapter,nhost_sdk,nhost_storage_dart
dependency_overrides:
nhost_auth_dart:
path: ../../nhost_auth_dart
nhost_dart:
path: ..
nhost_functions_dart:
path: ../../nhost_functions_dart
nhost_gql_links:
path: ../../nhost_gql_links
nhost_graphql_adapter:
path: ../../nhost_graphql_adapter
nhost_sdk:
path: ../../nhost_sdk
nhost_storage_dart:
path: ../../nhost_storage_dart
22 changes: 11 additions & 11 deletions packages/nhost_dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,35 @@ repository: https://github.com/nhost/nhost-dart/tree/main/packages/nhost_sdk
issue_tracker: https://github.com/nhost/nhost-dart/issues

environment:
sdk: '>=2.14.9 <3.0.0'
sdk: ">=2.14.9 <3.0.0"

dependencies:
http_parser: ^4.0.1
http: ^0.13.4
http: ^0.13.6
logging: ^1.1.0
meta: ^1.7.0
path: ^1.8.0

#NHOST Package
nhost_sdk: ^4.0.0
nhost_storage_dart: ^1.0.1
nhost_auth_dart: ^1.0.0
nhost_functions_dart: ^1.0.0
nhost_graphql_adapter: ^3.0.0
nhost_sdk: ^4.0.1
nhost_storage_dart: ^1.0.2
nhost_auth_dart: ^1.0.1
nhost_functions_dart: ^1.0.1
nhost_graphql_adapter: ^3.0.1
dev_dependencies:
betamax: ^2.0.0
fake_async: ^1.3.1
graphql: ^5.1.3
lints: any
mockito: ^5.3.2
nock: ^1.2.1
otp: '3.1.3'
otp: "3.1.3"
stack_trace: ^1.11.0
test_api: ^0.4.16
test: ^1.22.0
gql: ^0.14.0
gql_exec: ^0.4.3
nhost_gql_links: ^3.0.0
gql: ^1.0.0
gql_exec: ^1.0.0
nhost_gql_links: ^3.0.1
async: ^2.10.0
stream_channel: ^2.1.1
web_socket_channel: ^2.2.0
14 changes: 14 additions & 0 deletions packages/nhost_dart/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# melos_managed_dependency_overrides: nhost_auth_dart,nhost_functions_dart,nhost_gql_links,nhost_graphql_adapter,nhost_sdk,nhost_storage_dart
dependency_overrides:
nhost_auth_dart:
path: ../nhost_auth_dart
nhost_functions_dart:
path: ../nhost_functions_dart
nhost_gql_links:
path: ../nhost_gql_links
nhost_graphql_adapter:
path: ../nhost_graphql_adapter
nhost_sdk:
path: ../nhost_sdk
nhost_storage_dart:
path: ../nhost_storage_dart
5 changes: 5 additions & 0 deletions packages/nhost_flutter_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 3.0.2

- **CHORE**: bump `nhost_flutter_auth` version
- Update dependencies.

## 3.0.1

- update nhost_dart to 1.0.1
Expand Down
2 changes: 1 addition & 1 deletion packages/nhost_flutter_auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ outs.

```yaml
dependencies:
nhost_flutter_auth: ^3.0.0
nhost_flutter_auth: ^3.0.2
```

## 🔥 More Dart & Flutter packages from Nhost
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class ExampleRouteInformationParser
@override
Future<ExampleRoutePath> parseRouteInformation(
RouteInformation routeInformation) async {
final uri = Uri.parse(routeInformation.location!);
final uri = routeInformation.uri;

if (uri.pathSegments.isNotEmpty) {
if (uri.pathSegments.first == 'admin') {
Expand All @@ -183,13 +183,13 @@ class ExampleRouteInformationParser
@override
RouteInformation restoreRouteInformation(ExampleRoutePath configuration) {
if (configuration is HomeRoutePath) {
return const RouteInformation(location: '/');
return RouteInformation(uri: Uri.parse('/'));
}
if (configuration is AdminRoutePath) {
return const RouteInformation(location: '/admin');
return RouteInformation(uri: Uri.parse('/admin'));
}
if (configuration is SignInRoutePath) {
return const RouteInformation(location: '/signin');
return RouteInformation(uri: Uri.parse('/signin'));
}

throw ('Unsupported configuration');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class SignInFormState extends State<SignInForm> {
password: passwordController.text,
);
} on ApiException {
if (!context.mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Sign in Failed'),
Expand All @@ -133,6 +134,7 @@ class SignInFormState extends State<SignInForm> {
} on SocketException catch (e) {
// ignore: avoid_print
print(e);
if (!context.mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Network Failed'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import FlutterMacOS
import Foundation

import app_links_macos
import shared_preferences_macos
import app_links
import shared_preferences_foundation
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
Expand Down
18 changes: 18 additions & 0 deletions packages/nhost_flutter_auth/example/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# melos_managed_dependency_overrides: nhost_auth_dart,nhost_dart,nhost_flutter_auth,nhost_functions_dart,nhost_gql_links,nhost_graphql_adapter,nhost_sdk,nhost_storage_dart
dependency_overrides:
nhost_auth_dart:
path: ../../nhost_auth_dart
nhost_dart:
path: ../../nhost_dart
nhost_flutter_auth:
path: ..
nhost_functions_dart:
path: ../../nhost_functions_dart
nhost_gql_links:
path: ../../nhost_gql_links
nhost_graphql_adapter:
path: ../../nhost_graphql_adapter
nhost_sdk:
path: ../../nhost_sdk
nhost_storage_dart:
path: ../../nhost_storage_dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

#include "generated_plugin_registrant.h"

#include <app_links_windows/app_links_windows_plugin.h>
#include <app_links/app_links_plugin_c_api.h>
#include <url_launcher_windows/url_launcher_windows.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
AppLinksWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("AppLinksWindowsPlugin"));
AppLinksPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("AppLinksPluginCApi"));
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
app_links_windows
app_links
url_launcher_windows
)

Expand Down
6 changes: 3 additions & 3 deletions packages/nhost_flutter_auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ repository: https://github.com/nhost/nhost-dart/tree/main/packages/nhost_flutter
issue_tracker: https://github.com/nhost/nhost-dart/issues

environment:
sdk: '>=2.14.0 <3.0.0'
flutter: '>=2.8.0'
sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.8.0"

dependencies:
flutter:
sdk: flutter
#Nhost_dart
nhost_dart: ^1.0.1
nhost_dart: ^1.0.2
dev_dependencies:
flutter_test:
sdk: flutter
Expand Down
16 changes: 16 additions & 0 deletions packages/nhost_flutter_auth/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# melos_managed_dependency_overrides: nhost_auth_dart,nhost_dart,nhost_functions_dart,nhost_gql_links,nhost_graphql_adapter,nhost_sdk,nhost_storage_dart
dependency_overrides:
nhost_auth_dart:
path: ../nhost_auth_dart
nhost_dart:
path: ../nhost_dart
nhost_functions_dart:
path: ../nhost_functions_dart
nhost_gql_links:
path: ../nhost_gql_links
nhost_graphql_adapter:
path: ../nhost_graphql_adapter
nhost_sdk:
path: ../nhost_sdk
nhost_storage_dart:
path: ../nhost_storage_dart
5 changes: 5 additions & 0 deletions packages/nhost_flutter_graphql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 3.0.1

- **CHORE**: bump `nhost_flutter_graphql` version
- Update dependencies.

## 3.0.0

- Graduate package to a stable release. See pre-releases prior to this version for changelog entries.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ class SignInPageState extends State<SignInPage> {
await auth.signInEmailPassword(
email: emailController.text, password: passwordController.text);
} on ApiException {
if (!context.mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Sign in Failed'),
Expand Down
Loading