From fb49b3ff314a04a5ccd5940758a71e4f1ff1543a Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 25 Apr 2024 07:28:42 +0000 Subject: [PATCH 1/2] upgrade dependencies --- CHANGELOG.md | 4 ++++ README.md | 2 +- lib/src/client_browser.dart | 2 +- lib/src/client_io.dart | 2 +- lib/src/realtime_mixin.dart | 2 -- pubspec.yaml | 14 +++++++------- 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81b9c8a..dd5a7aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 12.0.3 + +* Upgrade dependencies + ## 12.0.2 * Fixed realtime multiple subscription issues diff --git a/README.md b/README.md index 0d87af6..a4a1ac0 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file: ```yml dependencies: - appwrite: ^12.0.2 + appwrite: ^12.0.3 ``` You can install packages from the command line: diff --git a/lib/src/client_browser.dart b/lib/src/client_browser.dart index 1ba77e1..db8045e 100644 --- a/lib/src/client_browser.dart +++ b/lib/src/client_browser.dart @@ -43,7 +43,7 @@ class ClientBrowser extends ClientBase with ClientMixin { 'x-sdk-name': 'Flutter', 'x-sdk-platform': 'client', 'x-sdk-language': 'flutter', - 'x-sdk-version': '12.0.2', + 'x-sdk-version': '12.0.3', 'X-Appwrite-Response-Format': '1.5.0', }; diff --git a/lib/src/client_io.dart b/lib/src/client_io.dart index 52332aa..3821b2d 100644 --- a/lib/src/client_io.dart +++ b/lib/src/client_io.dart @@ -64,7 +64,7 @@ class ClientIO extends ClientBase with ClientMixin { 'x-sdk-name': 'Flutter', 'x-sdk-platform': 'client', 'x-sdk-language': 'flutter', - 'x-sdk-version': '12.0.2', + 'x-sdk-version': '12.0.3', 'X-Appwrite-Response-Format' : '1.5.0', }; diff --git a/lib/src/realtime_mixin.dart b/lib/src/realtime_mixin.dart index 34d6f29..add6105 100644 --- a/lib/src/realtime_mixin.dart +++ b/lib/src/realtime_mixin.dart @@ -21,7 +21,6 @@ mixin RealtimeMixin { late WebSocketFactory getWebSocket; GetFallbackCookie? getFallbackCookie; int? get closeCode => _websok?.closeCode; - int _subscriptionsCounter = 0; Map _subscriptions = {}; bool _notifyDone = true; StreamSubscription? _websocketSubscription; @@ -144,7 +143,6 @@ mixin RealtimeMixin { channels: channels, close: () async { _subscriptions.remove(id); - _subscriptionsCounter--; controller.close(); _cleanup(channels); diff --git a/pubspec.yaml b/pubspec.yaml index a9bdefc..2828fcd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: appwrite -version: 12.0.2 +version: 12.0.3 description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API homepage: https://appwrite.io repository: https://github.com/appwrite/sdk-for-flutter @@ -19,17 +19,17 @@ dependencies: flutter: sdk: flutter cookie_jar: ^4.0.8 - device_info_plus: ^9.1.2 + device_info_plus: ^10.1.0 flutter_web_auth_2: ^3.1.1 http: '>=0.13.6 <2.0.0' - package_info_plus: ^5.0.1 - path_provider: ^2.1.2 - web_socket_channel: ^2.4.3 - universal_html: ^2.2.2 + package_info_plus: ^8.0.0 + path_provider: ^2.1.3 + web_socket_channel: ^2.4.5 + universal_html: ^2.2.4 dev_dependencies: path_provider_platform_interface: ^2.1.2 - flutter_lints: ^3.0.1 + flutter_lints: ^3.0.2 flutter_test: sdk: flutter mockito: ^5.4.4 From b1ef4ac2b3d7464ce93454da83b5d0cbe9a6d2d0 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 25 Apr 2024 07:50:30 +0000 Subject: [PATCH 2/2] fix var type causing linter issue --- lib/src/client_browser.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/client_browser.dart b/lib/src/client_browser.dart index db8045e..27743ad 100644 --- a/lib/src/client_browser.dart +++ b/lib/src/client_browser.dart @@ -162,7 +162,7 @@ class ClientBrowser extends ClientBase with ClientMixin { } while (offset < size) { - var chunk; + List chunk = []; final end = min(offset + CHUNK_SIZE, size); chunk = file.bytes!.getRange(offset, end).toList(); params[paramName] =