async_redux 3.0.0 async_redux: ^3.0.0 copied to clipboard
A Redux version which is easy to learn, to use, to test, and has no boilerplate. Allows for both sync and async reducers. Tailored for Flutter.
[3.0.0] - 2020/07/27 #
- Works for Web.
[2.13.1] - 2020/07/17 #
- WrapError may now convert to any error type.
- UserException hardCause() and withoutHardCause() methods.
[2.13.0] - 2020/07/16 #
- typedef Reducer.
- ReduxAction.wrapReduce().
[2.12.3] - 2020/07/08 #
- Docs improvement.
[2.12.2] - 2020/06/30 #
- Global WrapError now gets error, stackTrace, and action (none of them optional).
- MockStore (still experimental, in
mock_store.dart
), lets you mock or disable actions/reducers during tests. (See sectionMocking actions and reducers
in README.md). - ReduxAction.status and ReduxAction.hasFinished. (Search for "Action status" in README.md).
- ReduxAction.reduceWithState deprecated (will be removed).
[2.11.1] - 2020/06/12 #
- Added cache/reselector functions with 1 or 2 states and zero parameters:
cache1
andcache2
. - Breaking change: Other cache/reselector functions are now named
cache1_1
,cache1_2
,cache2_1
, andcache2_2
. - Breaking change: Dispatch/DispatchFuture with
notify: false
will change the state but not rebuild widgets.
[2.10.0] - 2020/06/01 #
- BaseModel now doesn't give direct access to the store, and doesn't read the state from the store anymore. The state is now copied and kept constant in the view-model, as it should.
[2.9.0] - 2020/05/25 #
- Stacktrace in WrapError.
- EventMultiple (Event.map).
[2.8.11] - 2020/05/19 #
[2.8.7] - 2020/05/15 #
- Store.stateTimestamp now records the timestamp when the current state in the store was created.
[2.8.6] - 2020/05/13 #
- Fixed corner case for StoreTester.waitAll.
[2.8.5] - 2020/05/12 #
- Small fixes: better generics; Better waitCondition stream close.
[2.8.4] - 2020/05/08 #
- Fix LocalPersist imports.
- Fix abortDispatch not getting the state.
[2.8.1] - 2020/05/01 #
- A filesystem may be injected into LocalPersist (usually to be used with MemoryFileSystem).
- Fix: LocalPersist.subDirs.
[2.8.0] - 2020/04/30 #
-
Store.waitCondition() returns a future which will complete when the state meets a given condition.
-
Breaking change: StoreTester.waitCondition() now accepts a parameter called testImmediately. When testImmediately is true (now the default), it will test the condition immediately when the method is called. If the condition is true, the method will return immediately, without waiting for any actions to be dispatched. When testImmediately is false (the old behavior), it will only test the condition once an action is dispatched.
[2.7.3] - 2020/04/30 #
- Fix: When dbName is a String, LocalPersist doesn't break it in the dot anymore.
- LocalPersist subDirs.
[2.7.2] - 2020/04/24 #
- WaitAction now has dynamic generic type in TestInfo.type (compatible with the StoreTester).
[2.7.1] - 2020/04/15 #
- WaitAction is now compatible with BuiltValue and Freezed packages.
[2.7.0] - 2020/04/14 #
- WaitAction (Search for "Progress indicators" in README.md).
- Example: main_wait_action_simple.dart
- Example: main_wait_action_advanced_1.dart
- Example: main_wait_action_advanced_2.dart
[2.6.0] - 2020/04/01 #
- The default timeout for the StoreTester wait functions can now be globally changed.
- The default debug information printed to the console can now be changed or turned off globally.
[2.5.8] - 2020/03/17 #
- NavigateAction.push(Route).
[2.5.7] - 2020/03/09 #
- Action.abortDispatch.
[2.5.6] - 2020/03/05 #
- Fixed orElse in TestInfo operator [].
[2.5.5] - 2020/02/18 #
- StoreTester.lastInfo (Search for "lastInfo" in README.md).
- PersistorPrinterDecorator: saveInitialState linked to the correct method.
- Fix failing tests by ensuring initialization.
[2.5.4] - 2020/02/18 #
- Docs improvement.
[2.5.3] - 2020/01/29 #
- Removes the generic type from PersistAction in tests.
[2.5.2] - 2020/01/28 #
- Errors queue is cloned in TestInfo.
[2.5.1] - 2020/01/26 #
- NavigateAction.pushNamedAndRemoveUntil.
[2.5.0] - 2020/01/20 #
- Breaking change: The StoreConnector's shouldUpdateModel parameter now functions properly. If you are using this, make sure you return true to apply changes (the default when the parameter is not defined), and false to ignore model changes.
[2.4.4] - 2019/01/13 #
- StoreTester dispatchFuture.
[2.4.3] - 2019/01/11 #
- Small UserExceptionDialog web fix.
[2.4.2] - 2019/12/18 #
- TestInfo.type now returns generic NavigateAction and UserExceptionAction, to play well with the StoreTester.
[2.4.1] - 2019/12/10 #
- Breaking change: Global WrapError, if defined, now receives all errors, including UserExceptions.
[2.3.3] - 2019/12/07 #
- iOS specific dialog for UserExceptions.
[2.3.2] - 2019/11/28 #
- Docs improvement.
[2.3.0] - 2019/11/19 #
- Global ignore in the StoreTester constructor.
- Better treatment of wrap-errors that throw.
- Breaking change: LocalPersist (instead of Saver/Loader).
[2.2.0] - 2019/11/15 #
- Breaking change: PersistObserver became Persistor (and other renames).
- PersistorPrinterDecorator. PersistorDummy.
[2.1.9] - 2019/11/12 #
- Saver/Loader.
[2.1.4] - 2019/11/10 #
- PersistObserver.
[2.1.3] - 2019/10/30 #
- Removed deprecated ignoreChange. Use shouldUpdateModel instead.
[2.1.0] - 2019/10/27 #
- Better translations support for UserException.
- Global WrapError in the store.
[2.0.6] - 2019/10/07 #
- Added sync_async_test.dart
- Doc warning about async reducer returning completed future (missing await).
[2.0.5] - 2019/10/05 #
- Better typing of StoreProvider.dispatch and StoreProvider.dispatchFuture.
[2.0.4] - 2019/10/01 #
- StoreTester.waitUntilError and waitUntilErrorGetLast.
[2.0.3] - 2019/09/21 #
- NavigateAction tests.
- Navigation arguments.
[2.0.2] - 2019/09/21 #
- UserExceptionAction.
[2.0.1] - 2019/09/19 #
- Fix: UserException.dialogContent accepts String as cause.
[2.0.0] - 2019/09/17 #
- Breaking change: ErrorObserver API.
- StoreTester parameter: shouldThrowUserExceptions (see issue).
[1.4.3] - 2019/09/15 #
- Alternative: Use AsyncRedux with Provider (package provider_for_redux).
[1.4.1] - 2019/09/06 #
- Flutter Awesome badge, and Pub badge.
[1.4.0] - 2019/09/02 #
- Fix: dispatchFuture getter in ReduxAction.
[1.3.9] - 2019/08/31 #
- NavigateAction.navigatorKey getter.
[1.3.8] - 2019/08/30 #
- Alternatives to the Connector (StoreProvider static methods).
- Waiting until an Action is finished (dispatchFuture).
[1.3.7] - 2019/08/28 #
- ModelObserver and DefaultModelObserver.
[1.3.5] - 2019/08/27 #
- README improvement.
[1.3.3] - 2019/08/26 #
- StoreConnector's converter and model parameters.
[1.2.3] - 2019/08/23 #
- StoreTester timeout message.
[1.2.0] - 2019/08/22 #
- Doc improvement. StoreTester improvements.
[1.1.3] - 2019/08/21 #
- StoreTester: waitCondition and waitConditionGetLast.
[1.1.2] - 2019/08/13 #
- README improvement.
[1.1.1] - 2019/08/10 #
- Ignore actions in the StoreTester.
[1.1.0] - 2019/08/07 #
- Correct stacktrace for unwrapped action errors.
[1.0.9] - 2019/08/07 #
- Error message improvement.
[1.0.4] - 2019/08/05 #
- Store tester.
[1.0.0] - 2019/08/05 #
- Initial commit.