Skip to content

v4.2.0 - Accept plain functions in all combinators 🧘🏽

Compare
Choose a tag to compare
@gustavoguichard gustavoguichard released this 27 Jun 20:41
· 32 commits to main since this release
2a15ad5

A step up in DX 🤌

From this version onwards we don't need to wrap every function in composable anymore.
Every combinator will accept plain functions and make composables out of them.

const add = (a: number, b: number) => a + b

// Before v4.2:
const fn = collect({ add: composable(add), toString: map(composable(add), String) })

// From v.4.2:
const fn = collect({ add, toString: map(add, String) })

PRs

Full Changelog: v4.1.0...v4.2.0