Skip to content

Commit

Permalink
fix: changes for 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Mar 3, 2022
1 parent 567bac1 commit 89e862a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 4.0.0
* Support for Appwrite 0.13
* **BREAKING** **Tags** have been renamed to **Deployments**
* **BREAKING** `createFile` function expects Bucket ID as the first parameter
* **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile**
* **BREAKING** `list<Entity>` endpoints now contain a `total` attribute instead of `sum`
* `onProgress()` callback function for endpoints supporting file uploads
* Support for synchronous function executions
* Bug fixes and Improvements

**Full Changelog for Appwrite 0.13 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0130

## 3.0.2
- String Attribute Type got fixed

Expand Down
5 changes: 3 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ Upload File:
```dart
Storage storage = Storage(client);
MultipartFile file = MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg');
InputFile file = InputFile(path: './path-to-file/image.jpg', fileName: 'image.jpg');
storage.createFile(
fileId: '[FILE_ID]',
bucketId: '[BUCKET_ID]',
fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID
file: file,
read: ['role:all'],
write: []
Expand Down
2 changes: 1 addition & 1 deletion lib/services/functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Functions extends Service {

/// List the currently active function runtimes.
///
/// Get a list of all runtimes that are currently active in your project.
/// Get a list of all runtimes that are currently active on your instance.
///
Future<models.RuntimeList> listRuntimes() async {
final String path = '/functions/runtimes';
Expand Down

0 comments on commit 89e862a

Please sign in to comment.