6.0.1
- #80 The ES5 import has been moved from
fluture/es5
tofluture
. - #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
andArray.isArray
. - #96 The arguments to the
ap
-method have been flipped back. - #97
and
andor
no longer run the two Futures in parallel. - #98
fromPromise
has been renamed toencaseP
. - 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 ofencaseP
.
🐛 Bug fixes and improvements
- #98 Errors thrown while transforming Futures produced by
tryP
orencaseP
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
andencaseP
.