v4.2.0 - Accept plain functions in all combinators 🧘🏽
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
- Tighten function types by @diogob in #156
- Documentation for new Plain-functions feature by @gustavoguichard in #158
- Accept Plain functions in every combinator by @gustavoguichard in #155
- Accept plain functions in
branch
Resolver by @gustavoguichard in #159 - We want to be able to throw arbitrary values when using fromSuccess by @diogob in #160
Full Changelog: v4.1.0...v4.2.0