Skip to content

0.5.0

Compare
Choose a tag to compare
@meech-ward meech-ward released this 02 Oct 17:23
· 62 commits to main since this release

[0.5.0] - 2024-10-2

Added

  • mightFail.any support
  • mightFail.race support
  • mightFail.all support
  • mightFail.allSettled support

[0.4.0] - 2024-09-29

Added

  • /go folder for a Go-style tuple implementation. const [result, error] = mightFail(promise)
  • /tuple folder for a tuple implementation. const [error, result] = mightFail(promise)

Changed

  • If a function throws a string, the string will be the message of the new Error object.
  • If a function throws an object with a message property, the message will be the message of the new Error object.
  • If a function throws an object it will be passed to the Error object constructor as is.