Releases: cujojs/when
Releases · cujojs/when
3.4.3: Simplify some internals
- Improve internal error handling for predicate catch
- Simplify core promise internals and reduce code size
3.4.2: Minor unhandled rejection fix
- Fix for rare false negative in unhandled rejection reporting.
3.4.1: promise.finally bug fix
- Fix for
promise.finally
not waiting on returned promises.
3.4.0: Add when.filter
- New
when.filter
for filtering arrays of promises. when.map
andwhen.filter
now provide the array index as the second param to their mapping and filtering functions.when/keys.map
now provides the associated key to its mapping function.- Smaller ES6 shim.
3.3.1: Bug fix for when/node
- Fix argument ordering bug in
when/node
introduced in 3.3.0.
3.3.0: Improved races
3.2.3 Improved unhandled rejection reporting
- Updated Debugging Promises docs.
- Report when previously unhandled rejections become handled, with an ID to correlate the two messages.
- Improve unhandled rejection reporting for cases where multiple different promise implementations interleave.
3.2.2
- More mem and perf improvements
- Improvements to unhandled rejection reporting
3.2.1
- Minor mem and perf tweaks for
when.all
- Defend against
JSON.stringify
exceptions when formatting unhandled rejection output.
3.2.0
- Potentially unhandled rejections are now logged to
console.error
by default, even without usingdone
orwhen/monitor/console
. As before, enablingwhen/monitor/console
still adds long async stack traces, and usingdone
still makes errors fatal. See Debugging Promises for more info. promise.timeout
now rejects with aTimeoutError
by default (unless you specify a custom reason) for better pattern matching withpromise.catch
.- Performance improvements across the board, especially to
when.all
(andPromise.all
in the ES6-shim) andnode.lift
: lifted functions and lift_ing_ are faster now. - New
promise.fold
for combining two promises to generate a new promise. - Deprecated:
- Using
when/node.lift
,when/function.lift
, andwhen/callbacks.lift
to provide partial arguments promise.then
's 3rd argument, andwhen()
's 4th argument. Use the dedicatedpromise.progress
API to listen to promise progress events.when.some
. See #288when/callbacks.promisify
See #318
- Using