Skip to content

Commit 44533ca

Browse files
Merge pull request #172 from appwrite/dev
chore: bug fixes for Apwrite 1.4.2
2 parents e7697d5 + 7608bd2 commit 44533ca

File tree

8 files changed

+15
-7
lines changed

8 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 11.0.0
2+
3+
* Parameter `url` is now optional in the `createMembership` endpoint
4+
15
## 10.0.1
26

37
* Added a new `label` function to the `Role` helper class
@@ -18,6 +22,12 @@
1822
* The `updateFile` method now includes the ability to update the file name.
1923
* The `updateMembershipRoles` method has been renamed to `updateMembership`.
2024

25+
## 9.0.1
26+
27+
* Added documentation comments
28+
* Added unit tests
29+
* Upgraded dependencies
30+
2131
## 9.0.0
2232

2333
* Added relationships support

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: ^10.0.1
24+
appwrite: ^11.0.0
2525
```
2626
2727
You can install packages from the command line:

docs/examples/teams/create-membership.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ void main() { // Init SDK
1111
Future result = teams.createMembership(
1212
teamId: '[TEAM_ID]',
1313
roles: [],
14-
url: 'https://example.com',
1514
);
1615

1716
result

lib/services/teams.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class Teams extends Service {
156156
/// Appwrite will accept the only redirect URLs under the domains you have
157157
/// added as a platform on the Appwrite Console.
158158
///
159-
Future<models.Membership> createMembership({required String teamId, required List<String> roles, required String url, String? email, String? userId, String? phone, String? name}) async {
159+
Future<models.Membership> createMembership({required String teamId, required List<String> roles, String? email, String? userId, String? phone, String? url, String? name}) async {
160160
final String apiPath = '/teams/{teamId}/memberships'.replaceAll('{teamId}', teamId);
161161

162162
final Map<String, dynamic> apiParams = {

lib/src/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
4343
'x-sdk-name': 'Flutter',
4444
'x-sdk-platform': 'client',
4545
'x-sdk-language': 'flutter',
46-
'x-sdk-version': '10.0.1',
46+
'x-sdk-version': '11.0.0',
4747
'X-Appwrite-Response-Format': '1.4.0',
4848
};
4949

lib/src/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ClientIO extends ClientBase with ClientMixin {
6464
'x-sdk-name': 'Flutter',
6565
'x-sdk-platform': 'client',
6666
'x-sdk-language': 'flutter',
67-
'x-sdk-version': '10.0.1',
67+
'x-sdk-version': '11.0.0',
6868
'X-Appwrite-Response-Format' : '1.4.0',
6969
};
7070

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: 10.0.1
2+
version: 11.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-flutter

test/services/teams_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ void main() {
194194
final response = await teams.createMembership(
195195
teamId: '[TEAM_ID]',
196196
roles: [],
197-
url: 'https://example.com',
198197
);
199198
expect(response, isA<models.Membership>());
200199

0 commit comments

Comments
 (0)