diff --git a/CHANGELOG.md b/CHANGELOG.md index c0aa30b8..6a0e1f6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 10.0.0 + +* Parameter `url` is now optional in the `createMembership` endpoint +* Parameter `runtime` is now optional in the `update` endpoint of the `Functions` class + ## 9.0.1 * Added a new `label` function to the `Role` helper class diff --git a/README.md b/README.md index b2baee95..aeef201d 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file: ```yml dependencies: - dart_appwrite: ^9.0.1 + dart_appwrite: ^10.0.0 ``` You can install packages from the command line: diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md index 839c6f6e..73d84fcf 100644 --- a/docs/examples/functions/create.md +++ b/docs/examples/functions/create.md @@ -13,7 +13,7 @@ void main() { // Init SDK Future result = functions.create( functionId: '[FUNCTION_ID]', name: '[NAME]', - runtime: 'node-14.5', + runtime: 'node-18.0', ); result diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md index 86295b4e..2b92f553 100644 --- a/docs/examples/functions/update.md +++ b/docs/examples/functions/update.md @@ -13,7 +13,6 @@ void main() { // Init SDK Future result = functions.update( functionId: '[FUNCTION_ID]', name: '[NAME]', - runtime: 'node-14.5', ); result diff --git a/docs/examples/teams/create-membership.md b/docs/examples/teams/create-membership.md index 6a98fea0..cc861181 100644 --- a/docs/examples/teams/create-membership.md +++ b/docs/examples/teams/create-membership.md @@ -13,7 +13,6 @@ void main() { // Init SDK Future result = teams.createMembership( teamId: '[TEAM_ID]', roles: [], - url: 'https://example.com', ); result diff --git a/lib/services/functions.dart b/lib/services/functions.dart index 56f1f950..5ab2a292 100644 --- a/lib/services/functions.dart +++ b/lib/services/functions.dart @@ -121,7 +121,7 @@ class Functions extends Service { /// Update Function /// /// Update function by its unique ID. - Future update({required String functionId, required String name, required String runtime, List? execute, List? events, String? schedule, int? timeout, bool? enabled, bool? logging, String? entrypoint, String? commands, String? installationId, String? providerRepositoryId, String? providerBranch, bool? providerSilentMode, String? providerRootDirectory}) async { + Future update({required String functionId, required String name, String? runtime, List? execute, List? events, String? schedule, int? timeout, bool? enabled, bool? logging, String? entrypoint, String? commands, String? installationId, String? providerRepositoryId, String? providerBranch, bool? providerSilentMode, String? providerRootDirectory}) async { final String apiPath = '/functions/{functionId}'.replaceAll('{functionId}', functionId); final Map apiParams = { diff --git a/lib/services/teams.dart b/lib/services/teams.dart index 8c471516..7bc7827c 100644 --- a/lib/services/teams.dart +++ b/lib/services/teams.dart @@ -173,7 +173,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 createMembership({required String teamId, required List roles, required String url, String? email, String? userId, String? phone, String? name}) async { + Future createMembership({required String teamId, required List roles, String? email, String? userId, String? phone, String? url, String? name}) async { final String apiPath = '/teams/{teamId}/memberships'.replaceAll('{teamId}', teamId); final Map apiParams = { diff --git a/lib/src/client_browser.dart b/lib/src/client_browser.dart index acb0a753..48cebd26 100644 --- a/lib/src/client_browser.dart +++ b/lib/src/client_browser.dart @@ -33,7 +33,7 @@ class ClientBrowser extends ClientBase with ClientMixin { 'x-sdk-name': 'Dart', 'x-sdk-platform': 'server', 'x-sdk-language': 'dart', - 'x-sdk-version': '9.0.1', + 'x-sdk-version': '10.0.0', 'X-Appwrite-Response-Format' : '1.4.0', }; diff --git a/lib/src/client_io.dart b/lib/src/client_io.dart index ab54cbf9..035165f0 100644 --- a/lib/src/client_io.dart +++ b/lib/src/client_io.dart @@ -42,8 +42,8 @@ class ClientIO extends ClientBase with ClientMixin { 'x-sdk-name': 'Dart', 'x-sdk-platform': 'server', 'x-sdk-language': 'dart', - 'x-sdk-version': '9.0.1', - 'user-agent' : 'AppwriteDartSDK/9.0.1 (${Platform.operatingSystem}; ${Platform.operatingSystemVersion})', + 'x-sdk-version': '10.0.0', + 'user-agent' : 'AppwriteDartSDK/10.0.0 (${Platform.operatingSystem}; ${Platform.operatingSystemVersion})', 'X-Appwrite-Response-Format' : '1.4.0', }; diff --git a/pubspec.yaml b/pubspec.yaml index 929d53eb..72436e4d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: dart_appwrite -version: 9.0.1 +version: 10.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-dart diff --git a/test/services/functions_test.dart b/test/services/functions_test.dart index c4bc2257..c38d0682 100644 --- a/test/services/functions_test.dart +++ b/test/services/functions_test.dart @@ -105,7 +105,7 @@ void main() { final response = await functions.create( functionId: '[FUNCTION_ID]', name: '[NAME]', - runtime: 'node-14.5', + runtime: 'node-18.0', ); expect(response, isA()); @@ -200,7 +200,6 @@ void main() { final response = await functions.update( functionId: '[FUNCTION_ID]', name: '[NAME]', - runtime: 'node-14.5', ); expect(response, isA()); diff --git a/test/services/teams_test.dart b/test/services/teams_test.dart index 930c1c33..2ffec715 100644 --- a/test/services/teams_test.dart +++ b/test/services/teams_test.dart @@ -194,7 +194,6 @@ void main() { final response = await teams.createMembership( teamId: '[TEAM_ID]', roles: [], - url: 'https://example.com', ); expect(response, isA());