Skip to content

Releases: locphan87/match-values

v2.1.1

16 Jun 15:22
Compare
Choose a tag to compare

What's Changed

  • Fix the source map issue

Commits

Full Changelog: v2.1.0...v2.1.1

v2.1.0

06 Mar 18:34
f81212d
Compare
Choose a tag to compare

What's Changed

  • Update dependencies, remove unused packages
  • Improve type safety
  • Improve unit tests

Breaking Changes

  • The _ symbol is replaced by last for the last branch

Commits

Full Changelog: v2.0.0...v2.1.0

Match conditions

31 Jul 04:15
e637ab8
Compare
Choose a tag to compare
  • Add new feature matchCond to allow matching values based on its conditions (predicate functions)
  • Remove match arrays and objects
  • Update test cases

Match structural values

25 Apr 08:19
Compare
Choose a tag to compare

New features

  • match an array
  • match an object

Breaking changes

  • force the default branch as the last branch

v1.0.1

05 Jan 06:58
Compare
Choose a tag to compare

Fix bugs:

  • allow null/undefined as a match result #1