Skip to content

Commit

Permalink
Merge pull request #191 from appwrite/dev
Browse files Browse the repository at this point in the history
fix: params using enums
  • Loading branch information
TorstenDittmann authored Mar 9, 2024
2 parents 12b0f52 + 2b967bf commit 9dd03c8
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 12.0.1

* Fixed parameters using enum types

## 12.0.0

* Added enum support
Expand Down Expand Up @@ -95,7 +99,7 @@
4. `greaterEqual` renamed to `greaterThanEqual`
* `User` response model is now renamed to `Account`

**Full Changelog for Appwrite 1.0.0 can be found here**:
**Full Changelog for Appwrite 1.0.0 can be found here**:
https://github.com/appwrite/appwrite/blob/master/CHANGES.md

## 7.0.0
Expand Down Expand Up @@ -148,7 +152,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md

## 3.0.0
- Support for Appwrite 0.12
- **BREAKING** Updated database service to adapt 0.12 API
- **BREAKING** Updated database service to adapt 0.12 API
- **BREAKING** Custom ID support while creating resources
- [View all the changes](https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0120)

Expand Down Expand Up @@ -226,7 +230,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md
- Fallback Cookies for Flutter Web if 3rd party cookies are blocked
- Custom User Agent Support
- [Update membership roles](https://appwrite.io/docs/references/cloud/client-flutter/teams?sdk=flutter#updateMembershipRoles)
- New awesome image preview features, supports borderRadius, borderColor, borderWidth
- New awesome image preview features, supports borderRadius, borderColor, borderWidth

## 0.5.0-dev.1

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: ^12.0.0
appwrite: ^12.0.1
```
You can install packages from the command line:
Expand Down
2 changes: 1 addition & 1 deletion lib/services/account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class Account extends Service {
const String apiPath = '/account/mfa/challenge';

final Map<String, dynamic> apiParams = {
'factor': factor,
'factor': factor.value,
};

final Map<String, String> apiHeaders = {
Expand Down
2 changes: 1 addition & 1 deletion lib/services/functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Functions extends Service {
'body': body,
'async': xasync,
'path': path,
'method': method,
'method': method?.value,
'headers': headers,
};

Expand Down
4 changes: 2 additions & 2 deletions lib/services/storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ class Storage extends Service {

'width': width,
'height': height,
'gravity': gravity,
'gravity': gravity?.value,
'quality': quality,
'borderWidth': borderWidth,
'borderColor': borderColor,
'borderRadius': borderRadius,
'opacity': opacity,
'rotation': rotation,
'background': background,
'output': output,
'output': output?.value,

'project': client.config['project'],
};
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': '12.0.0',
'x-sdk-version': '12.0.1',
'X-Appwrite-Response-Format': '1.5.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': '12.0.0',
'x-sdk-version': '12.0.1',
'X-Appwrite-Response-Format' : '1.5.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: 12.0.0
version: 12.0.1
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

0 comments on commit 9dd03c8

Please sign in to comment.