Skip to content

v1.7.0 - feat(Switch): tick implementation like a switch statement

Compare
Choose a tag to compare
@joeycumines joeycumines released this 24 Apr 08:29
· 16 commits to master since this release

Adds a stateless Switch function that may be used directly as a Tick. Since all cases are defined as children, tick wrappers are typically compatible, notably including Memorize, which works as one might expect (see the example).

This release also changes the way Sequence handles invalid statuses, treating them as Failure rather than Success, which brings it in line with other implementations in this package, as well as it's own documentation.