This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
Releases: babylonhealth/orbit-mvi
Releases · babylonhealth/orbit-mvi
Removed autodispose
- Removed dependency on
autodispose
, now using Android Lifecycle Observer to unsubscribe the view models - Added initial state seeding to
BaseOrbitContainer
to enable #18 and have better support for unit testing.
DSL version 2
This release focuses on further simplifying, improving and stabilising the DSL. The DSL can now be considered stable and we will avoid making as many breaking changes between releases going forward.
- #20 Added javadoc to the DSL
- #24
ignoringEvents
DSL function removed - #25 Added many unit tests for core functionality and corner cases
- #28 Added a readme documentation for lifecycle events
- #31 Allowed posting side effects conditionally
DSL improvements:
postSideEffect
andsideEffect
were merged into one. UsesideEffect { post(something) }
to post events to the side effect relay.ignoringEvents
is removed as it's unnecessarywithReducer
renamed toreduce
loopBack
,reduce
no longer terminate the flow chain.- It is now allowed to chain as many operators on a flow as you wish.
- Many changes to the naming of receiver fields to make them more consistent
- Added
TransformerReceiver
, the event observable is no longer exposed asthis
intransform
. UseeventObservable
instead. ActionState
has been removed- Current state is now available in every DSL lambda by calling
getCurrentState()
In a reducer this is guaranteed to always return the same instance, in other operators it's not. - Side effect caching is now configurable within a middleware.
Bug fixes:
- Side effect caching worked only for one subscriber
DSL improvements 2
Removed the need to provide an observable of actions to simplify the setup.
DSL improvements
Various quality-of-life improvements to the DSL and documentation updates.
This release makes a lot of small improvements to make the library easier and more sensible to consume, off the back of our recent public release we looked at this from an external point of view.
Public release
First public release of the MVI library we've been using for 2,5 years at babylon.