Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

DSL version 2

Compare
Choose a tag to compare
@Rosomack Rosomack released this 12 Nov 10:45
2c1a440

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 and sideEffect were merged into one. Use sideEffect { post(something) } to post events to the side effect relay.
  • ignoringEvents is removed as it's unnecessary
  • withReducer renamed to reduce
  • 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 as this in transform. Use eventObservable 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