Skip to content

v2.1.0

Compare
Choose a tag to compare
@joanllenas joanllenas released this 08 Dec 19:01
· 5 commits to master since this release
  • fix: The library doesn't throw exceptions when non Either values are used.

BREAKING CHANGE: Until now the library had some logic to throw exceptions when a non Either value was used. This is not the case anymore.
Now, when a non Either value is detected from the isLeft or isRight functions (which are also used internally) a Left is returned.

  • feat: Added tryCatch() function. (docs)