Skip to content

Releases: joanllenas/ts.data.either

v3.0.0

13 Dec 23:59
b214600
Compare
Choose a tag to compare
  • Removed Left type parameter.
  • Fixed / improved / added test.
  • Fixed / improved / added test.

BREAKING CHANGES:

  • Modified caseOf signature so it returns <T> instead of a Promise<T>.

v2.1.0

08 Dec 19:01
Compare
Choose a tag to compare
  • 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)

Improved docs, types and encapsulation

24 Nov 18:43
Compare
Choose a tag to compare

Improved docs, types and encapsulation

BREAKING CHANGE:

  • All Either type parametrizations have changed.
  • Right and Left constructors have been hidden, use right() and left() functions instead.
  • caseOf function signature has changed.

v0.9.2

21 Dec 21:28
Compare
Choose a tag to compare

Stable API