Skip to content

Commit 4af5da4

Browse files
authored
Merge pull request #259 from appwrite/dev-chirag
chore: regenerate sdk
2 parents 582ad9e + 1cbcab0 commit 4af5da4

File tree

9 files changed

+30
-16
lines changed

9 files changed

+30
-16
lines changed

CHANGELOG.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change Log
22

3+
## 17.0.2
4+
5+
* Add `gif` support to `ImageFormat` enum
6+
* Fix `convertTo()` method in `Document` and `Preferences` models to correctly accept `Map<String, dynamic>`
7+
8+
## 17.0.1
9+
10+
* Fix `devKeys` support by conditionally including credentials during requests
11+
312
## 17.0.0
413

514
* Update `flutter_web_auth_2` dependency to version 4.1.0
@@ -22,7 +31,7 @@
2231
## 15.0.2
2332

2433
* Avoid setting empty `User-Agent` header and only encode it when present.
25-
* Update doc examples to use new multi-region endpoint: `https://&lt;REGION&gt;.cloud.appwrite.io/v1`.
34+
* Update doc examples to use new multi-region endpoint: `https://<REGION>.cloud.appwrite.io/v1`.
2635

2736
## 15.0.1
2837

@@ -34,7 +43,7 @@
3443

3544
* Encode `User-Agent` header to fix invalid HTTP header field value error.
3645
* Breaking changes:
37-
* Changed the typing of `AppwriteException`&#039;s response parameter from a `dynamic` object to an optional string (`?String`).
46+
* Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`).
3847

3948
## 14.0.0
4049

@@ -180,8 +189,8 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md
180189
## 6.0.0
181190
* Support for Appwrite 0.15
182191
* **NEW** Phone authentication `account.createPhoneSession()`
183-
* **BREAKING** `Database` -&gt; `Databases`
184-
* **BREAKING** `account.createSession()` -&gt; `account.createEmailSession()`
192+
* **BREAKING** `Database` -> `Databases`
193+
* **BREAKING** `account.createSession()` -> `account.createEmailSession()`
185194
* **BREAKING** `dateCreated` attribute removed from `Team`, `Execution`, `File` models
186195
* **BREAKING** `dateCreated` and `dateUpdated` attribute removed from `Func`, `Deployment`, `Bucket` models
187196
* **BREAKING** Realtime channels
@@ -192,7 +201,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md
192201

193202
## 5.0.0
194203
* Support for Appwrite 0.14
195-
* **BREAKING** `account.delete()` -&gt; `account.updateStatus()`
204+
* **BREAKING** `account.delete()` -> `account.updateStatus()`
196205
* **BREAKING** Execution model `stdout` renamed to `response`
197206
* **BREAKING** Membership model `name` renamed to `userName` and `email` renamed to `userEmail`
198207
* Added `teamName` to Membership model
@@ -209,7 +218,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md
209218
* **BREAKING** **Tags** have been renamed to **Deployments**
210219
* **BREAKING** `createFile` function expects Bucket ID as the first parameter
211220
* **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile**
212-
* **BREAKING** `list&lt;Entity&gt;` endpoints now contain a `total` attribute instead of `sum`
221+
* **BREAKING** `list<Entity>` endpoints now contain a `total` attribute instead of `sum`
213222
* `onProgress()` callback function for endpoints supporting file uploads
214223
* Support for synchronous function executions
215224
* Bug fixes and Improvements
@@ -270,7 +279,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md
270279

271280
## 0.7.0
272281
- Support for Appwrite 0.9
273-
- Breaking - removed order type enum, now you should pass string &#039;ASC&#039; or &#039;DESC&#039;
282+
- Breaking - removed order type enum, now you should pass string 'ASC' or 'DESC'
274283
- Image Crop Gravity support in image preview service
275284
- New endpoint in Account getSession to get session by ID
276285
- 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
305314

306315
- Upgraded to Null-safety, minimum Dart SDK required 2.12.0 and minimum Flutter SDK version required 2.0.0
307316
- Upgraded all underlying dependencies to null safe version
308-
- All of Avatars service now return Future&lt;Response&gt;&lt;/Response&gt; instead of String like the Storage getFilePreview, getFileView and getFileDownload
317+
- All of Avatars service now return Future<Response></Response> instead of String like the Storage getFilePreview, getFileView and getFileDownload
309318
- Upgraded to Null-safety, minimum Dart SDK required 2.12.0
310319
- Upgraded all underlying dependencies to null safe version
311320

@@ -347,7 +356,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md
347356

348357
## 0.2.3
349358

350-
- Fixed OAuth2 cookie bug, where a new session cookie couldn&#039;t overwrite an old cookie
359+
- Fixed OAuth2 cookie bug, where a new session cookie couldn't overwrite an old cookie
351360

352361
## 0.2.2
353362

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^17.0.1
24+
appwrite: ^17.0.2
2525
```
2626
2727
You can install packages from the command line:

lib/services/databases.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ class Databases extends Service {
9494
return models.Document.fromMap(res.data);
9595
}
9696

97+
/// **WARNING: Experimental Feature** - This endpoint is experimental and not
98+
/// yet officially supported. It may be subject to breaking changes or removal
99+
/// in future versions.
100+
///
97101
/// Create or update a Document. Before using this route, you should create a
98102
/// new collection resource using either a [server
99103
/// integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)

lib/src/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
4040
'x-sdk-name': 'Flutter',
4141
'x-sdk-platform': 'client',
4242
'x-sdk-language': 'flutter',
43-
'x-sdk-version': '17.0.1',
43+
'x-sdk-version': '17.0.2',
4444
'X-Appwrite-Response-Format': '1.7.0',
4545
};
4646

lib/src/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ClientIO extends ClientBase with ClientMixin {
5858
'x-sdk-name': 'Flutter',
5959
'x-sdk-platform': 'client',
6060
'x-sdk-language': 'flutter',
61-
'x-sdk-version': '17.0.1',
61+
'x-sdk-version': '17.0.2',
6262
'X-Appwrite-Response-Format': '1.7.0',
6363
};
6464

lib/src/enums/image_format.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ enum ImageFormat {
66
png(value: 'png'),
77
webp(value: 'webp'),
88
heic(value: 'heic'),
9-
avif(value: 'avif');
9+
avif(value: 'avif'),
10+
gif(value: 'gif');
1011

1112
const ImageFormat({required this.value});
1213

lib/src/models/document.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ class Document implements Model {
5656
};
5757
}
5858

59-
T convertTo<T>(T Function(Map) fromJson) => fromJson(data);
59+
T convertTo<T>(T Function(Map<String, dynamic>) fromJson) => fromJson(data);
6060
}

lib/src/models/preferences.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ class Preferences implements Model {
1414
return {"data": data};
1515
}
1616

17-
T convertTo<T>(T Function(Map) fromJson) => fromJson(data);
17+
T convertTo<T>(T Function(Map<String, dynamic>) fromJson) => fromJson(data);
1818
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: appwrite
2-
version: 17.0.1
2+
version: 17.0.2
33
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
44
homepage: https://appwrite.io
55
repository: https://github.com/appwrite/sdk-for-flutter

0 commit comments

Comments
 (0)