Releases: fluture-js/Fluture
Releases · fluture-js/Fluture
Version 12.0.0 Beta 0
- #326 The internal structure of Fluture has changed
- #326 All functions now use simple currying
- #326 All function aliases have been removed
- #326
tryP
was renamed toencaseP
- #326 Properties on the
Future
function have been removed - #326 Various functions have had their arguments flipped
- #326 Fantasy Land 0.x is no longer supported
- #326
encaseN
and friends have been removed - #326
encase2
and up have been removed - #326
encaseP2
and up have been removed - #326 The entire fluent method API has been removed
✨ New features
- #326 "Asynchronous stack traces" have been reworked to show more relevant stacks and fewer irrelevant stacks
Version 11.0.1
Corrects an issue in the TypeScript typings for the chainRej
function.
Version 11.0.0
Version 10.3.0
✨ New Features
- Implemented Fantasy Land Alt on Future instances (
alt
). As a result, theor
function is now an alias ofalt
.
Version 10.2.0
✨ New Features
- Add "async stack traces": A feature which makes caught errors have extra
stack traces appended to theirstack
property, allowing users to trace
the origin of an exception across multiple ticks. - Add
Future.debugMode
: A function to turn async stack traces on or off.
🚀 Improvements
- Reduce bundle size through dependency trimming
- Fix a bug where a Computation could settle after crashing
Version 10.1.0
✨ New Features
- Add
Future#pipe
: A method for inclusion of regular functions in a
fluent method-chain.
🚀 Improvements
- Reduce bundle size through dependency trimming
- The ConcurrentFuture type now works properly with sanctuary-show
Version 10.0.0
- #276 The "module" package file has been renamed from
index.mjs.js
to
index.mjs
. - #277 It is no longer possible to use
Future.ap
,Future.map
,
Future.bimap
,Future.chain
, orFuture.alt
on non-Fantasy Land types.
If you were using any of these functions from Fluture to treat JavaScript's
native types as Fantasy Land algebraic types, you should migrate those
call-sites to use the Ramda or Sanctuary exported dispatchers instead. - #281
Future.finally
no longer runs the cleanup Future when it is cancelled.
If you rely on this behaviour, I urge you to rewrite the relevant code with
Future.hook
(even if you don't upgrade Fluture).
✨ New features
- #276 The Fluture source is now loadable by Node's experimental module loader,
and the esm loader. - #280 The
Future.of
function now has an aliasresolve
, which is exported
statically as well as exposed as a property on the Future constructor.
🐛 Bug fixes and improvements
Version 9.0.0
- #224 Exceptions are now caught and rethrown in
fork
. - #230 Many of the TypeScript type definitions that used
never
now use a
generic instead. - #238 When unsubscribing from a Future created by
hook
, the cancellation
signal is no longer sent to the disposal Future. - #266 Exported TypeScript interfaces have been renamed to avoid naming
conflicts with exported values.
✨ New features
- #250 Included interoperability with Sanctuary Show
- #261 Added a new function,
forkCatch
, which allows for exception recovery.
8.0.0
This release updates sanctuary-type-classes, which contains a breaking change. This change will only affect you if you are using Future.map
on other Functors, specifically, Objects.
- #157 When mapping over an Object using
Future.map
, inherited properties are no longer transformed.
7.2.0
✨ New features
- All code is now published as es5, allowing front-end builds to apply tree-shaking without worrying about transpiling es6.
🐛 Bug fixes
- Corrected a mistake in the TypeScript type definitions which caused the default export from Fluture to be typed incorrectly.
- Fixed an issue where TypeScript would not recognize that the return values of generator functions conform to Fluture's Iterator interface.