redux_machine 1.0.0-rc.3 redux_machine: ^1.0.0-rc.3 copied to clipboard
Redux Store implementation which can also be used as a state machine.
1.0.0-rc.3 #
- Prepare for Dart 2 stable.
1.0.0-rc.2 #
- Added:
AsyncAction.completeAfter()
. See dartdoc for more details.
1.0.0-rc.1 #
- Added:
Store.isDisposed
getter. - Breaking: Removed
StateMachine
,MachineState
andStateMachineBuilder
classes which were deprecated in1.0.0-beta.1
. See UPGRADING.md for more details.
1.0.0-beta.1 #
- Added:
Action.next()
as a substitute to existingMachineState.nextAction
. The regularStore
class now also supports behavior ofStateMachine
, which makesStateMachine
obsolete (will be removed before stable release). - Deprecated:
StateMachine
and related classes (MachineState
,StateMachineBuilder
). RegularStore
class can now be used as a state machine. See UPGRADING.md for more details.
1.0.0-dev.1.0 #
This version is designed to work with Dart 2 and includes many changes to provide better static analysis in most cases.
- Breaking: Depends on Dart SDK 2.0.0-dev
- Breaking: Removed deprecated
ReduxMachine
and related classes. - Breaking: removed
onError
handler onStoreBuilder
andStateMachineBuilder
Unhandled errors from reducers are propagated to the newStore.errors
stream if there is an active listener on it. If there is no active listener then errors are simply rethrown synchronously. - Breaking: StateMachine now requires state objects to extend
MachineState
base class. See documentation for more details on how to use it. - Breaking: Removed
ActionDispatcher
,StateMachineReducer
interfaces. StateMachine uses regularReducer
interface now. - Breaking: Removed
StoreErrorHandler
definition. - Breaking:
ActionBuilder.call
changedpayload
argument from optional to required. Use newVoidActionBuilder
for actions without any payload. - Fixed: strong mode issues with Dart 2.
- Fixed: stack trace propagation in case of errors originated in reducers.
- Experimental:
AsyncAction
which allows dispatching code to know when it completes and if there was an error. CorrespondingAsyncActionBuilder
andAsyncVoidActionBuilder
were introduced as well.
0.1.2 #
- Added
onError
argument toStoreBuilder
andStateMachineBuilder
. - Fixed: don't swallow errors in action dispatch flow.
- Removed
StoreError
class.
0.1.1 #
- Added type argument to
StoreEvent
for the action payload type for better static analysis. - Added
store
field toStoreEvent
which contains reference to the stateStore
(orStateMachine
) which produced that event. - Added
Store.changesFor
to allow listening for changes on a part of the application state.
0.1.0 #
- Deprecated
ReduxMachine
implementation in favor of newStateMachine
class. - Added separate Redux
Store
implementation which can be used on its own. NewStateMachine
usesStore
internally for state management. - Updated readme with some details on side-effects handling in this library.
0.0.1 #
- Initial version, created by Stagehand