Skip to content

v3.0.0

Compare
Choose a tag to compare
@andreidmt andreidmt released this 01 Oct 12:26
· 177 commits to master since this release

3.0.0 (2020-10-01)

Features

  • Update "when" to pipe when passing array of functions. Add uncurried version. (3010b42)

BREAKING CHANGES

  • No longer accepts primitive values for thenFn or elseFn parameters.

// old
when(isTrue, "val is true", "value is not true", true)

// new
when(isTrue, () => "val is true", same("value is not true"), true)