diff --git a/CHANGELOG.md b/CHANGELOG.md index 84226c9..e94f5d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 17.0.2 + +* Add `gif` support to `ImageFormat` enum +* Fix `convertTo()` method in `Document` and `Preferences` models to correctly accept `Map` + +## 17.0.1 + +* Fix `devKeys` support by conditionally including credentials during requests + ## 17.0.0 * Update `flutter_web_auth_2` dependency to version 4.1.0 @@ -22,7 +31,7 @@ ## 15.0.2 * Avoid setting empty `User-Agent` header and only encode it when present. -* Update doc examples to use new multi-region endpoint: `https://<REGION>.cloud.appwrite.io/v1`. +* Update doc examples to use new multi-region endpoint: `https://.cloud.appwrite.io/v1`. ## 15.0.1 @@ -34,7 +43,7 @@ * Encode `User-Agent` header to fix invalid HTTP header field value error. * Breaking changes: - * Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`). + * Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`). ## 14.0.0 @@ -180,8 +189,8 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md ## 6.0.0 * Support for Appwrite 0.15 * **NEW** Phone authentication `account.createPhoneSession()` -* **BREAKING** `Database` -> `Databases` -* **BREAKING** `account.createSession()` -> `account.createEmailSession()` +* **BREAKING** `Database` -> `Databases` +* **BREAKING** `account.createSession()` -> `account.createEmailSession()` * **BREAKING** `dateCreated` attribute removed from `Team`, `Execution`, `File` models * **BREAKING** `dateCreated` and `dateUpdated` attribute removed from `Func`, `Deployment`, `Bucket` models * **BREAKING** Realtime channels @@ -192,7 +201,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md ## 5.0.0 * Support for Appwrite 0.14 -* **BREAKING** `account.delete()` -> `account.updateStatus()` +* **BREAKING** `account.delete()` -> `account.updateStatus()` * **BREAKING** Execution model `stdout` renamed to `response` * **BREAKING** Membership model `name` renamed to `userName` and `email` renamed to `userEmail` * Added `teamName` to Membership model @@ -209,7 +218,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md * **BREAKING** **Tags** have been renamed to **Deployments** * **BREAKING** `createFile` function expects Bucket ID as the first parameter * **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile** -* **BREAKING** `list<Entity>` endpoints now contain a `total` attribute instead of `sum` +* **BREAKING** `list` endpoints now contain a `total` attribute instead of `sum` * `onProgress()` callback function for endpoints supporting file uploads * Support for synchronous function executions * Bug fixes and Improvements @@ -270,7 +279,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md ## 0.7.0 - Support for Appwrite 0.9 -- Breaking - removed order type enum, now you should pass string 'ASC' or 'DESC' +- Breaking - removed order type enum, now you should pass string 'ASC' or 'DESC' - Image Crop Gravity support in image preview service - New endpoint in Account getSession to get session by ID - Fix - issues with User-Agent when app name consisted of non-ASCII characters @@ -305,7 +314,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md - Upgraded to Null-safety, minimum Dart SDK required 2.12.0 and minimum Flutter SDK version required 2.0.0 - Upgraded all underlying dependencies to null safe version -- All of Avatars service now return Future<Response></Response> instead of String like the Storage getFilePreview, getFileView and getFileDownload +- All of Avatars service now return Future instead of String like the Storage getFilePreview, getFileView and getFileDownload - Upgraded to Null-safety, minimum Dart SDK required 2.12.0 - Upgraded all underlying dependencies to null safe version @@ -347,7 +356,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md ## 0.2.3 -- Fixed OAuth2 cookie bug, where a new session cookie couldn't overwrite an old cookie +- Fixed OAuth2 cookie bug, where a new session cookie couldn't overwrite an old cookie ## 0.2.2 diff --git a/README.md b/README.md index dee8871..b14193b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file: ```yml dependencies: - appwrite: ^17.0.1 + appwrite: ^17.0.2 ``` You can install packages from the command line: diff --git a/lib/services/databases.dart b/lib/services/databases.dart index c2ee2c5..d9be065 100644 --- a/lib/services/databases.dart +++ b/lib/services/databases.dart @@ -94,6 +94,10 @@ class Databases extends Service { return models.Document.fromMap(res.data); } + /// **WARNING: Experimental Feature** - This endpoint is experimental and not + /// yet officially supported. It may be subject to breaking changes or removal + /// in future versions. + /// /// Create or update a Document. Before using this route, you should create a /// new collection resource using either a [server /// integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) diff --git a/lib/src/client_browser.dart b/lib/src/client_browser.dart index 48cb897..a0ba12d 100644 --- a/lib/src/client_browser.dart +++ b/lib/src/client_browser.dart @@ -40,7 +40,7 @@ class ClientBrowser extends ClientBase with ClientMixin { 'x-sdk-name': 'Flutter', 'x-sdk-platform': 'client', 'x-sdk-language': 'flutter', - 'x-sdk-version': '17.0.1', + 'x-sdk-version': '17.0.2', 'X-Appwrite-Response-Format': '1.7.0', }; diff --git a/lib/src/client_io.dart b/lib/src/client_io.dart index d6b0e70..e97da39 100644 --- a/lib/src/client_io.dart +++ b/lib/src/client_io.dart @@ -58,7 +58,7 @@ class ClientIO extends ClientBase with ClientMixin { 'x-sdk-name': 'Flutter', 'x-sdk-platform': 'client', 'x-sdk-language': 'flutter', - 'x-sdk-version': '17.0.1', + 'x-sdk-version': '17.0.2', 'X-Appwrite-Response-Format': '1.7.0', }; diff --git a/lib/src/enums/image_format.dart b/lib/src/enums/image_format.dart index 120c93f..55f4c5d 100644 --- a/lib/src/enums/image_format.dart +++ b/lib/src/enums/image_format.dart @@ -6,7 +6,8 @@ enum ImageFormat { png(value: 'png'), webp(value: 'webp'), heic(value: 'heic'), - avif(value: 'avif'); + avif(value: 'avif'), + gif(value: 'gif'); const ImageFormat({required this.value}); diff --git a/lib/src/models/document.dart b/lib/src/models/document.dart index 37fb2b7..7fdb10c 100644 --- a/lib/src/models/document.dart +++ b/lib/src/models/document.dart @@ -56,5 +56,5 @@ class Document implements Model { }; } - T convertTo(T Function(Map) fromJson) => fromJson(data); + T convertTo(T Function(Map) fromJson) => fromJson(data); } diff --git a/lib/src/models/preferences.dart b/lib/src/models/preferences.dart index 48163df..7bc3abc 100644 --- a/lib/src/models/preferences.dart +++ b/lib/src/models/preferences.dart @@ -14,5 +14,5 @@ class Preferences implements Model { return {"data": data}; } - T convertTo(T Function(Map) fromJson) => fromJson(data); + T convertTo(T Function(Map) fromJson) => fromJson(data); } diff --git a/pubspec.yaml b/pubspec.yaml index 3c6850c..836b069 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: appwrite -version: 17.0.1 +version: 17.0.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-flutter