From 7ccb8f8a0567880aa227a3c7e64a15e7bc29791b Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 2 Jun 2021 19:26:47 +0200 Subject: [PATCH] add param checking and removed default values --- CHANGELOG.md | 4 ---- README.md | 2 +- lib/client.dart | 2 +- lib/services/storage.dart | 2 +- pubspec.yaml | 2 +- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 771636a..f79eb35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,3 @@ -## 0.6.1 - -- Fix for image preview param types - ## 0.6.0 - Upgraded to Null-safety, minimum Dart SDK required 2.12.0 diff --git a/README.md b/README.md index ff49a61..d1d0c2f 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Add this to your package's `pubspec.yaml` file: ```yml dependencies: - dart_appwrite: ^0.6.1 + dart_appwrite: ^0.6.2 ``` You can install packages from the command line: diff --git a/lib/client.dart b/lib/client.dart index 05db3a6..34a856d 100644 --- a/lib/client.dart +++ b/lib/client.dart @@ -13,7 +13,7 @@ class Client { this.headers = { 'content-type': 'application/json', - 'x-sdk-version': 'appwrite:dart:0.6.1', + 'x-sdk-version': 'appwrite:dart:0.6.2', 'X-Appwrite-Response-Format':'0.8.0', }; diff --git a/lib/services/storage.dart b/lib/services/storage.dart index be27d38..c883be2 100644 --- a/lib/services/storage.dart +++ b/lib/services/storage.dart @@ -133,7 +133,7 @@ class Storage extends Service { /// and spreadsheets, will return the file icon image. You can also pass query /// string arguments for cutting and resizing your preview image. /// - Future getFilePreview({required String fileId, int width = 0, int height = 0, int quality = 100, int borderWidth = 0, String borderColor = '', int borderRadius = 0, double opacity = 1, int rotation = 0, String background = '', String output = ''}) { + Future getFilePreview({required String fileId, int width = 0, int height = 0, int quality = 100, int borderWidth = 0, String borderColor = '', int borderRadius = 0, int opacity = 1, int rotation = 0, String background = '', String output = ''}) { final String path = '/storage/files/{fileId}/preview'.replaceAll(RegExp('{fileId}'), fileId); final Map params = { diff --git a/pubspec.yaml b/pubspec.yaml index 1b2204e..dfb0a7c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: dart_appwrite -version: 0.6.1 +version: 0.6.2 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-dart