diff --git a/CHANGELOG.md b/CHANGELOG.md index a5e4ad5..3edc1c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.0.1 +* Fix InputFile filename param +* Fix examples + ## 4.0.0 * Support for Appwrite 0.13 * **BREAKING** **Tags** have been renamed to **Deployments** diff --git a/README.md b/README.md index 3785fae..02679d1 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file: ```yml dependencies: - appwrite: ^4.0.0 + appwrite: ^4.0.1 ``` You can install packages from the command line: diff --git a/docs/examples/storage/create-file.md b/docs/examples/storage/create-file.md index 16732b8..5c591ff 100644 --- a/docs/examples/storage/create-file.md +++ b/docs/examples/storage/create-file.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = storage.createFile( bucketId: '[BUCKET_ID]', fileId: '[FILE_ID]', - file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'), + file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), ); result diff --git a/lib/services/account.dart b/lib/services/account.dart index 0047f34..b09404d 100644 --- a/lib/services/account.dart +++ b/lib/services/account.dart @@ -1,5 +1,7 @@ part of appwrite; + + /// The Account service allows you to authenticate and manage a user account. class Account extends Service { Account(Client client): super(client); diff --git a/lib/services/avatars.dart b/lib/services/avatars.dart index a2e5000..747a33a 100644 --- a/lib/services/avatars.dart +++ b/lib/services/avatars.dart @@ -1,5 +1,8 @@ part of appwrite; + + /// The Avatars service aims to help you complete everyday tasks related to + /// your app image, icons, and avatars. class Avatars extends Service { Avatars(Client client): super(client); diff --git a/lib/services/database.dart b/lib/services/database.dart index 83411e7..dbebc85 100644 --- a/lib/services/database.dart +++ b/lib/services/database.dart @@ -1,5 +1,8 @@ part of appwrite; + + /// The Database service allows you to create structured collections of + /// documents, query and filter lists of documents class Database extends Service { Database(Client client): super(client); diff --git a/lib/services/functions.dart b/lib/services/functions.dart index 843a13b..37ae4e5 100644 --- a/lib/services/functions.dart +++ b/lib/services/functions.dart @@ -1,5 +1,8 @@ part of appwrite; + + /// The Functions Service allows you view, create and manage your Cloud + /// Functions. class Functions extends Service { Functions(Client client): super(client); diff --git a/lib/services/locale.dart b/lib/services/locale.dart index 1910ae8..60add44 100644 --- a/lib/services/locale.dart +++ b/lib/services/locale.dart @@ -1,5 +1,8 @@ part of appwrite; + + /// The Locale service allows you to customize your app based on your users' + /// location. class Locale extends Service { Locale(Client client): super(client); diff --git a/lib/services/storage.dart b/lib/services/storage.dart index fbcdfc6..9cc4608 100644 --- a/lib/services/storage.dart +++ b/lib/services/storage.dart @@ -1,5 +1,7 @@ part of appwrite; + + /// The Storage service allows you to manage your project files. class Storage extends Service { Storage(Client client): super(client); diff --git a/lib/services/teams.dart b/lib/services/teams.dart index 0206498..656635f 100644 --- a/lib/services/teams.dart +++ b/lib/services/teams.dart @@ -1,5 +1,8 @@ part of appwrite; + + /// The Teams service allows you to group users of your project and to enable + /// them to share read and write access to your project resources class Teams extends Service { Teams(Client client): super(client); diff --git a/lib/src/client_browser.dart b/lib/src/client_browser.dart index c3ca4a5..50e33a8 100644 --- a/lib/src/client_browser.dart +++ b/lib/src/client_browser.dart @@ -37,7 +37,7 @@ class ClientBrowser extends ClientBase with ClientMixin { .replaceFirst('http://', 'ws://'); _headers = { 'content-type': 'application/json', - 'x-sdk-version': 'appwrite:flutter:4.0.0', + 'x-sdk-version': 'appwrite:flutter:4.0.1', 'X-Appwrite-Response-Format' : '0.13.0', }; diff --git a/lib/src/client_io.dart b/lib/src/client_io.dart index 0886875..3fdf1df 100644 --- a/lib/src/client_io.dart +++ b/lib/src/client_io.dart @@ -55,7 +55,7 @@ class ClientIO extends ClientBase with ClientMixin { .replaceFirst('http://', 'ws://'); _headers = { 'content-type': 'application/json', - 'x-sdk-version': 'appwrite:flutter:4.0.0', + 'x-sdk-version': 'appwrite:flutter:4.0.1', 'X-Appwrite-Response-Format' : '0.13.0', }; diff --git a/pubspec.yaml b/pubspec.yaml index b3087ed..3c84378 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: appwrite -version: 4.0.0 +version: 4.0.1 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