Skip to content

v2.0.0

Compare
Choose a tag to compare
@pelotom pelotom released this 23 Apr 21:08
· 30 commits to master since this release

Breaking changes

  • A new API for specifying the default case (using key default in the cases object) (#19)
  • Specify tag and value 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!