Skip to content

6.0.1

Compare
Choose a tag to compare
@Avaq Avaq released this 13 May 12:42
· 729 commits to master since this release
e1b664e

⚠️ Breaking changes

  • #80 The ES5 import has been moved from fluture/es5 to fluture.
  • #80 The Future#hook method (but not the function) has been removed.
  • #80 The Future#cache method (but not the function) has been removed.
  • #80 Old environments are asked to bring their own polyfills for
    Object.create, Object.assign and Array.isArray.
  • #96 The arguments to the ap-method have been flipped back.
  • #97 and and or no longer run the two Futures in parallel.
  • #98 fromPromise has been renamed to encaseP.
  • 1a636d5 chainRec is no longer curried and direct use is now discouraged.

New features

  • #80 Added an ES6 module for use with tools like Rollup.
  • #80 All transformations, including recursive chain, are now stack safe!
  • #80 Added isNever.
  • #98 Added tryP, the nullary version of encaseP.

🐛 Bug fixes and improvements

  • #98 Errors thrown while transforming Futures produced by tryP or encaseP
    no longer get caught (and silenced) by the Promise.
  • #80 User-supplied functions no longer have strict arity requirements.
  • #80 Future.hook no longer cancels the acquire Future after it has settled.
  • #80 Future.hook now always cancels running Futures appropriately.
  • #80 Added aliases attempt = try, go = do, lastly = finally.
  • #102 Supplying incompatible or outdated instances of Fluture now throws more
    sensible error messages.
  • 192c34b Added fast failure to encase and encaseP.