Skip to content

3.2.0

Compare
Choose a tag to compare
@briancavalier briancavalier released this 15 May 15:38
· 267 commits to master since this release
  • Potentially unhandled rejections are now logged to console.error by default, even without using done or when/monitor/console. As before, enabling when/monitor/console still adds long async stack traces, and using done still makes errors fatal. See Debugging Promises for more info.
  • promise.timeout now rejects with a TimeoutError by default (unless you specify a custom reason) for better pattern matching with promise.catch.
  • Performance improvements across the board, especially to when.all (and Promise.all in the ES6-shim) and node.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, and when/callbacks.lift to provide partial arguments
    • promise.then's 3rd argument, and when()'s 4th argument. Use the dedicated promise.progress API to listen to promise progress events.
    • when.some. See #288
    • when/callbacks.promisify See #318