Skip to content

Commit

Permalink
📝 Migration guide for 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored Aug 9, 2022
1 parent d29f4c6 commit 21101c0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,36 @@
The document only describes the equivalent changes to the API.
If you want to see the new feature support, please refer to [readme][] and [change log][].

- [2.x to 2.2](#2x-to-22)
- [1.x to 2.0](#1x-to-20)
- [0.6 to 1.0](#06-to-10)
- [0.5 To 0.6](#05-to-06)

## 2.x to 2.2

### Overall

- `AssetPathEntity.assetCount` has been deprecated, and added a new asynchronized getter `assetCountAsync`.
- `FilterOptionGroup.containsEmptyAlbum` has been removed.

#### `assetCount`

Before you can easily access total count of a path:

```dart
int get count => path.assetCount;
```

Now you can only use the new getter:

```dart
int count = await path.assetCountAsync;
```

Be aware that the change is to improve when gathering info from paths,
which means usages with the previous field should be migrated to
separate requests to improve the performance.

## 1.x to 2.0

This version mainly covers all valid issues, API deprecations, and few new features.
Expand Down

0 comments on commit 21101c0

Please sign in to comment.