Skip to content

Commit

Permalink
2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed May 10, 2021
1 parent e313524 commit 7f0884e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.3.0 - May 10, 2021

- Update `distinct_value_connectable_stream` to `1.3.0`.
- Update `rxdart` to `0.27.0`.

## 2.2.0 - May 1, 2021

- Stable release for null safety.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ extension GetStateExtension<A, S> on RxReduxStore<A, S> {
/// return LoginWidget(state); // build widget based on state.
/// },
/// );
S get state => stateStream.requireValue;
S get state => stateStream.value;
}

/// Dispatch this action to [store].
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: rx_redux
description: Redux implementation based on Dart Stream, with the power of RxDart. Reactive redux store for Dart & Flutter.
version: 2.2.0
version: 2.3.0
author: Petrus Nguyen Thai Hoc <hoc081098@gmail.com>
homepage: https://github.com/hoc081098/rx_redux.git
repository: https://github.com/hoc081098/rx_redux.git
Expand All @@ -11,12 +11,12 @@ environment:

dependencies:
meta: ^1.3.0
distinct_value_connectable_stream: ^1.2.0
distinct_value_connectable_stream: ^1.3.0
disposebag: ^1.5.0

dev_dependencies:
pedantic: ^1.11.0
test: ^1.17.3
rxdart: ^0.26.0
rxdart: ^0.27.0
built_collection: ^5.0.0
tuple: ^2.0.0
8 changes: 4 additions & 4 deletions test/store_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ void main() {
prev == next,
);

expect(filtered.requireValue, <String>[].build());
expect(filtered.value, <String>[].build());
final future = expectLater(
filtered,
emitsInOrder(<Object>[
Expand Down Expand Up @@ -651,7 +651,7 @@ void main() {
equals3: (int prev, int next) => prev == next,
);

expect(filtered.requireValue, <String>[].build());
expect(filtered.value, <String>[].build());
final future = expectLater(
filtered,
emitsInOrder(<Object>[
Expand Down Expand Up @@ -1752,7 +1752,7 @@ void main() {
},
);

expect(filtered.requireValue, <String>[].build());
expect(filtered.value, <String>[].build());
final future = expectLater(
filtered,
emitsInOrder(<Object>[
Expand Down Expand Up @@ -1859,7 +1859,7 @@ void main() {
},
);

expect(filtered.requireValue, <String>[].build());
expect(filtered.value, <String>[].build());
final future = expectLater(
filtered,
emitsInOrder(<Object>[
Expand Down

0 comments on commit 7f0884e

Please sign in to comment.