Skip to content

Commit 065c465

Browse files
committed
changelog, pub
1 parent 019caf0 commit 065c465

File tree

4 files changed

+31
-12
lines changed

4 files changed

+31
-12
lines changed

CHANGELOG.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
## 2.1.0-dev.0 - TODO
22

3-
- Refactor `executeUpdate`:
4-
- Renamed to `update`.
5-
- Convert to named parameters.
6-
- Moved to `TransactionallyStorage`.
7-
- Update docs.
8-
- `Transformer` can return a `Future`.
3+
- Accept `Dart SDK` versions above 3.0.
4+
5+
- Refactor `executeUpdate`
6+
- Rename to `update` and convert its parameters to named parameters
7+
```dart
8+
Future<void> update<T extends Object>({
9+
required Key key,
10+
required Decoder<T?> decoder,
11+
required Transformer<T?> transformer,
12+
required Encoder<T?> encoder,
13+
Options? options,
14+
})
15+
```
16+
- Move `update` method from `RxStorage` interface to a new `TransactionallyStorage` interface.
17+
- `Transformer<T>` can return a `Future<T>`.
18+
19+
- Update dependencies
20+
- `disposebag` to `^1.5.1`.
921
1022
## 2.0.0 - Jun 1, 2022
1123

analysis_options.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
include: package:lints/recommended.yaml
22
analyzer:
3-
strong-mode:
4-
implicit-casts: false
5-
implicit-dynamic: false
3+
language:
4+
strict-casts: true
5+
strict-raw-types: true
66
linter:
77
rules:
88
- public_member_api_docs

lib/src/impl/real_storage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class RealRxStorage<Key extends Object, Options,
6969
// Internal
7070
//
7171

72-
void _setupLogger(RxStorageLogger logger) {
72+
void _setupLogger(RxStorageLogger<Key, Options> logger) {
7373
_loggerEventController = StreamController(sync: true)
7474
..disposedBy(_bag)
7575
..stream.listen(logger.log).disposedBy(_bag);

pubspec.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,18 @@ funding:
88
- https://www.buymeacoffee.com/hoc081098
99

1010
environment:
11-
sdk: '>=2.12.0 <3.0.0'
11+
sdk: '>=2.12.0 <4.0.0'
12+
13+
topics:
14+
- rxdart
15+
- hoc081098
16+
- rx-storage
17+
- reactive-storage
18+
- reactive-programming
1219

1320
dependencies:
1421
rxdart_ext: ^0.2.1
15-
disposebag: ^1.5.0
22+
disposebag: ^1.5.1
1623
meta: ^1.7.0
1724
stack_trace: ^1.10.0
1825

0 commit comments

Comments
 (0)