Skip to content

Commit 53189f0

Browse files
committed
Updates for 1.3.x
1 parent c4b7901 commit 53189f0

6 files changed

+33
-18
lines changed

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 8.0.0
2+
3+
* Added relationships support
4+
* Added support for new queries: `isNull`, `isNotNull`, `startsWith`, `notStartsWith`, `endsWith`, `between` and `select`.
5+
* Added update attribute support
6+
* Added team prefs support
7+
* Changed function create/update `execute` parameter to optional
8+
* Changed team `update` to `updateName`
9+
* Changed `Account` service to use the `User` model instead of `Account`
10+
11+
## 7.3.0
12+
13+
* Improve helper classes
14+
* Deprecated `InputFile` default constructor and introduced `InputFile.fromPath` and `InputFile.fromBytes` for consistency with other SDKs
15+
116
## 7.2.0
217

318
* Support for GraphQL

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![pub package](https://img.shields.io/pub/v/dart_appwrite.svg?style=flat-square)](https://pub.dartlang.org/packages/dart_appwrite)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-dart.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.2.1-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.3.0-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

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

lib/query.dart

+13-13
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,41 @@ part of dart_appwrite;
33
class Query {
44
Query._();
55

6-
static equal(String attribute, dynamic value) =>
6+
static String equal(String attribute, dynamic value) =>
77
_addQuery(attribute, 'equal', value);
88

9-
static notEqual(String attribute, dynamic value) =>
9+
static String notEqual(String attribute, dynamic value) =>
1010
_addQuery(attribute, 'notEqual', value);
1111

12-
static lessThan(String attribute, dynamic value) =>
12+
static String lessThan(String attribute, dynamic value) =>
1313
_addQuery(attribute, 'lessThan', value);
1414

15-
static lessThanEqual(String attribute, dynamic value) =>
15+
static String lessThanEqual(String attribute, dynamic value) =>
1616
_addQuery(attribute, 'lessThanEqual', value);
1717

18-
static greaterThan(String attribute, dynamic value) =>
18+
static String greaterThan(String attribute, dynamic value) =>
1919
_addQuery(attribute, 'greaterThan', value);
2020

21-
static greaterThanEqual(String attribute, dynamic value) =>
21+
static String greaterThanEqual(String attribute, dynamic value) =>
2222
_addQuery(attribute, 'greaterThanEqual', value);
2323

24-
static search(String attribute, String value) =>
24+
static String search(String attribute, String value) =>
2525
_addQuery(attribute, 'search', value);
2626

27-
static isNull(String attribute) => 'isNull("$attribute")';
27+
static String isNull(String attribute) => 'isNull("$attribute")';
2828

29-
static isNotNull(String attribute) => 'isNotNull("$attribute")';
29+
static String isNotNull(String attribute) => 'isNotNull("$attribute")';
3030

31-
static between(String attribute, dynamic start, dynamic end) =>
31+
static String between(String attribute, dynamic start, dynamic end) =>
3232
_addQuery(attribute, 'between', [start, end]);
3333

34-
static startsWith(String attribute, String value) =>
34+
static String startsWith(String attribute, String value) =>
3535
_addQuery(attribute, 'startsWith', value);
3636

37-
static endsWith(String attribute, String value) =>
37+
static String endsWith(String attribute, String value) =>
3838
_addQuery(attribute, 'endsWith', value);
3939

40-
static select(List<String> attributes) => 'select([${attributes.map((attr) => "\"$attr\"").join(",")}])';
40+
static String select(List<String> attributes) => 'select([${attributes.map((attr) => "\"$attr\"").join(",")}])';
4141

4242
static String orderAsc(String attribute) => 'orderAsc("$attribute")';
4343

lib/src/client_browser.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
3333
'x-sdk-name': 'Dart',
3434
'x-sdk-platform': 'server',
3535
'x-sdk-language': 'dart',
36-
'x-sdk-version': '7.3.0',
36+
'x-sdk-version': '8.0.0',
3737
'X-Appwrite-Response-Format' : '1.0.0',
3838
};
3939

lib/src/client_io.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ClientIO extends ClientBase with ClientMixin {
4242
'x-sdk-name': 'Dart',
4343
'x-sdk-platform': 'server',
4444
'x-sdk-language': 'dart',
45-
'x-sdk-version': '7.3.0',
45+
'x-sdk-version': '8.0.0',
4646
'X-Appwrite-Response-Format' : '1.0.0',
4747
};
4848

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dart_appwrite
2-
version: 7.3.0
2+
version: 8.0.0
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-dart

0 commit comments

Comments
 (0)