Skip to content

Commit 89e862a

Browse files
fix: changes for 0.13.0
1 parent 567bac1 commit 89e862a

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 4.0.0
2+
* Support for Appwrite 0.13
3+
* **BREAKING** **Tags** have been renamed to **Deployments**
4+
* **BREAKING** `createFile` function expects Bucket ID as the first parameter
5+
* **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile**
6+
* **BREAKING** `list<Entity>` endpoints now contain a `total` attribute instead of `sum`
7+
* `onProgress()` callback function for endpoints supporting file uploads
8+
* Support for synchronous function executions
9+
* Bug fixes and Improvements
10+
11+
**Full Changelog for Appwrite 0.13 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0130
12+
113
## 3.0.2
214
- String Attribute Type got fixed
315

example/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ Upload File:
4141
```dart
4242
Storage storage = Storage(client);
4343
44-
MultipartFile file = MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg');
44+
InputFile file = InputFile(path: './path-to-file/image.jpg', fileName: 'image.jpg');
4545
4646
storage.createFile(
47-
fileId: '[FILE_ID]',
47+
bucketId: '[BUCKET_ID]',
48+
fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID
4849
file: file,
4950
read: ['role:all'],
5051
write: []

lib/services/functions.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Functions extends Service {
6060

6161
/// List the currently active function runtimes.
6262
///
63-
/// Get a list of all runtimes that are currently active in your project.
63+
/// Get a list of all runtimes that are currently active on your instance.
6464
///
6565
Future<models.RuntimeList> listRuntimes() async {
6666
final String path = '/functions/runtimes';

0 commit comments

Comments
 (0)