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.finallynot waiting on returned promises.
3.4.0: Add when.filter
- New
when.filterfor filtering arrays of promises. when.mapandwhen.filternow provide the array index as the second param to their mapping and filtering functions.when/keys.mapnow 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/nodeintroduced 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.stringifyexceptions when formatting unhandled rejection output.
3.2.0
- Potentially unhandled rejections are now logged to
console.errorby default, even without usingdoneorwhen/monitor/console. As before, enablingwhen/monitor/consolestill adds long async stack traces, and usingdonestill makes errors fatal. See Debugging Promises for more info. promise.timeoutnow rejects with aTimeoutErrorby default (unless you specify a custom reason) for better pattern matching withpromise.catch.- Performance improvements across the board, especially to
when.all(andPromise.allin the ES6-shim) andnode.lift: lifted functions and lift_ing_ are faster now. - New
promise.foldfor combining two promises to generate a new promise. - Deprecated:
- Using
when/node.lift,when/function.lift, andwhen/callbacks.liftto provide partial arguments promise.then's 3rd argument, andwhen()'s 4th argument. Use the dedicatedpromise.progressAPI to listen to promise progress events.when.some. See #288when/callbacks.promisifySee #318
- Using