when v3.2.0 Release Notes
-
- ๐ 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](docs/api.md#debugging-promises) for more info. - 0๏ธโฃ [
promise.timeout
](docs/api.md#promisetimeout) now rejects with a [TimeoutError
](docs/api.md#timeouterror) by default (unless you specify a custom reason) for better pattern matching with [promise.catch
](docs/api.md#promisecatch). - Performance improvements across the board, especially to
when.all
(andPromise.all
in the [ES6-shim](docs/es6-promise-shim.md)) andnode.lift
: lifted functions and lift*ing* are faster now. - ๐ New [
promise.fold
](docs/api.md#promisefold) 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 dedicated [promise.progress
](docs/api.md#promiseprogress) API to listen to promise progress events.when.some
. See https://github.com/cujojs/when/issues/288when/callbacks.promisify
See https://github.com/cujojs/when/issues/318
- Using
- ๐ Potentially unhandled rejections are now logged to