v2.0.0
Breaking changes
- A new API for specifying the default case (using key
default
in the cases object) (#19) - Specify
tag
andvalue
property names via a config object instead of positional arguments (#22)
Other enhancements
- Uncurried variants of
match
(#21) - A simplified version of
match
,transform
, for creating functions of the union type to itself (#23) - Creation functions for variants of value type
{}
no longer require an argument (#31) - Hygienic type operators
UnionOf
,RecordOf
,TagsOf
for extracting the types associated with a unionized object (#32)
Bug fixes
- Fix issue where
_Record
wasn't using the actual object that was passed in (#20)
See the README for more details. Thanks to @twop for his significant contributions to this release!