Skip to content

Commit 7debaae

Browse files
Merge pull request #75 from appwrite/dev
chore: regenerate sdks
2 parents cd1cb3d + 87af174 commit 7debaae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3675
-3521
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 14.0.0
2+
3+
* Breaking changes:
4+
* Changed the typing of `AppwriteException`'s response parameter from a `dynamic` object to an optional string (`?String`).
5+
6+
## 13.0.0
7+
8+
* Fixed realtime pong response.
9+
* Fixed issues with `chunkedUpload` method.
10+
* Fixed type mismatch bug where `List<dynamic>` was incorrectly causing runtime type errors.
11+
* Updated return type of `updateMfaChallenge()` from raw data to properly typed `models.Session` object.
12+
113
## 12.0.0
214

315
* Support for Appwrite 1.6

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

2424
```yml
2525
dependencies:
26-
dart_appwrite: ^13.0.0
26+
dart_appwrite: ^14.0.0
2727
```
2828
2929
You can install packages from the command line:

lib/query.dart

+11-7
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class Query {
99
Query._(this.method, [this.attribute = null, this.values = null]);
1010

1111
Map<String, dynamic> toJson() {
12-
final map = <String, dynamic>{
13-
'method': method,
14-
};
12+
final map = <String, dynamic>{'method': method};
1513

1614
if (attribute != null) {
1715
map['attribute'] = attribute;
@@ -85,12 +83,18 @@ class Query {
8583
Query._('contains', attribute, value).toString();
8684

8785
static String or(List<String> queries) =>
88-
Query._('or', null, queries.map((query) => jsonDecode(query)).toList())
89-
.toString();
86+
Query._(
87+
'or',
88+
null,
89+
queries.map((query) => jsonDecode(query)).toList(),
90+
).toString();
9091

9192
static String and(List<String> queries) =>
92-
Query._('and', null, queries.map((query) => jsonDecode(query)).toList())
93-
.toString();
93+
Query._(
94+
'and',
95+
null,
96+
queries.map((query) => jsonDecode(query)).toList(),
97+
).toString();
9498

9599
/// Specify which attributes should be returned by the API call.
96100
static String select(List<String> attributes) =>

0 commit comments

Comments
 (0)