Skip to content

Commit

Permalink
Merge pull request #172 from appwrite/dev
Browse files Browse the repository at this point in the history
chore: bug fixes for Apwrite 1.4.2
  • Loading branch information
christyjacob4 authored Sep 8, 2023
2 parents e7697d5 + 7608bd2 commit 44533ca
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 11.0.0

* Parameter `url` is now optional in the `createMembership` endpoint

## 10.0.1

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

## 9.0.1

* Added documentation comments
* Added unit tests
* Upgraded dependencies

## 9.0.0

* Added relationships support
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:

```yml
dependencies:
appwrite: ^10.0.1
appwrite: ^11.0.0
```
You can install packages from the command line:
Expand Down
1 change: 0 additions & 1 deletion docs/examples/teams/create-membership.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ void main() { // Init SDK
Future result = teams.createMembership(
teamId: '[TEAM_ID]',
roles: [],
url: 'https://example.com',
);

result
Expand Down
2 changes: 1 addition & 1 deletion lib/services/teams.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class Teams extends Service {
/// Appwrite will accept the only redirect URLs under the domains you have
/// added as a platform on the Appwrite Console.
///
Future<models.Membership> createMembership({required String teamId, required List<String> roles, required String url, String? email, String? userId, String? phone, String? name}) async {
Future<models.Membership> createMembership({required String teamId, required List<String> roles, String? email, String? userId, String? phone, String? url, String? name}) async {
final String apiPath = '/teams/{teamId}/memberships'.replaceAll('{teamId}', teamId);

final Map<String, dynamic> apiParams = {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client_browser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
'x-sdk-name': 'Flutter',
'x-sdk-platform': 'client',
'x-sdk-language': 'flutter',
'x-sdk-version': '10.0.1',
'x-sdk-version': '11.0.0',
'X-Appwrite-Response-Format': '1.4.0',
};

Expand Down
2 changes: 1 addition & 1 deletion lib/src/client_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ClientIO extends ClientBase with ClientMixin {
'x-sdk-name': 'Flutter',
'x-sdk-platform': 'client',
'x-sdk-language': 'flutter',
'x-sdk-version': '10.0.1',
'x-sdk-version': '11.0.0',
'X-Appwrite-Response-Format' : '1.4.0',
};

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: appwrite
version: 10.0.1
version: 11.0.0
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
Expand Down
1 change: 0 additions & 1 deletion test/services/teams_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ void main() {
final response = await teams.createMembership(
teamId: '[TEAM_ID]',
roles: [],
url: 'https://example.com',
);
expect(response, isA<models.Membership>());

Expand Down

0 comments on commit 44533ca

Please sign in to comment.