manager 0.4.1
manager: ^0.4.1 copied to clipboard
A dart package for predictable synchronous and asynchronous state management.
0.4.1 #
Calling super.onEventCallback in the beginning of onEventCallback method of ObservableManagerMixin;
0.4.0+1 #
Removed deleteRecordEventSnapshot to keep a linear architecture.
0.4.0 #
BREAKING CHANGE: Deprecated RecordTaskEventsMixin and moved all the methods of the mixin to Manager.
0.3.3 #
Calling onEventCallback before passing the event to the stream controllers in _passEvent method.
0.3.2 #
Reverting 0.3.1.
Fixed an issue of successfull task events returning TaskProgressStatus.error.
0.3.1 #
Exposing progressStatus getter of TaskEvent.
0.3.0 #
Fixed an issue when the observers' onStateMutated exposed only the new state.
0.2.0 #
Fix: Changing a type from ManagerObserver to ManagerObserverBase of ObservableManagerMixin's methods.
0.1.9 #
Fix: Providing type parameters to SingleManagerObserver.
0.1.8 #
Added SingleManagerObserver to observe a specific manager.
0.1.7 #
Cleared an example folder and README.md
0.1.6 #
Updated the README.md and the API reference of the package
0.1.5 #
CastedValueCallback<T> will be required for the following type check static methods:
ManagerObserver.doIfManagerIsManagerObserver.doIfValueIsManagerObserver.doIfManagerIsManagerObserver.doIfEventIsManagerObserver.doIfTaskIs
0.1.2 #
BREAKING CHANGES:
- In order to make the observers be able to bind to multiple managers, the type parameters of
ManagerObserverandObservableManagerMixin. Instead, the following static semantic methods were added to do a type check.ManagerObserver.doIfManagerIsManagerObserver.doIfValueIsManagerObserver.doOnStateMutatedIfValuesAreManagerObserver.doIfManagerIsManagerObserver.doIfEventIsManagerObserver.doIfTaskIs
ObservableManagerMixin's.addObserverand.removeObservermethods are now public.
0.1.0 #
BREAKING CHANGES:
ObservableManagerMixin'sinitializewas renamed toinitializeObserversManager'sonStateChangedgetter was reformed to a method acceptingwithLatestoptional argument.
Other changes:
Manager'sonmethod has now an optional parameterwithLatestusing which will returnBehaviourSubject's value stream to get the latest event emitted when listening to it.
0.0.7 #
Fixed an issue of mixins overriding methods of each other without calling super
0.0.6 #
- Added new structures:
ObservableManagerMixinandManagerObserver - Added new tests for the structures in
manager_observer_test - Regrouped the library structure
0.0.5 #
Added following methods to RecordTaskEventsMixin:
recordEventdeleteRecordEventeventTable(exposing it asprotectedmember)
Behaviour of instances extending RecordTaskEventsMixin was overriden:
Record of the event being killed - will be immediately removed from _eventTable
0.0.4 #
Fixed repository link in pubscpec.yaml
0.0.3 #
Added RecordTaskEventsMixin to enable recording of events.
0.0.2+1 #
Downgraded async dependency to be compatible with flutter
0.0.2 #
- Added
onUpdatestream to track both events firing and the state changes.
0.0.1 #
- Initial version.