v4.3.0
What's Changed
We made applySchema
work with plain functions. You don't have to wrap a function in composable
anymore to apply a schema on it.
That means applySchema
is virtually the same as withSchema
which also means we can remove one of them.
In this version we decided to deprecate withSchema
so we recommend that you start using applySchema
instead. We will still export a deprecated version of withSchema
which is just an alias to applySchema
.
@diogob has also tweaked the types a lil bit so compositions should be more readable from this version onwards.
PRs
- Deprecate the environment namespace in favor of context by @gustavoguichard in #161
- Make the Composable type easier on the eyes by @diogob in #162
- Accept plain functions in
applySchema
and deprecateswithSchema
by @gustavoguichard in #164
Full Changelog: v4.2.0...v4.3.0