Socket
Socket
Sign inDemoInstall

when

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

when - npm Package Versions

1
7

3.4.3

Diff

Changelog

Source

3.4.3

  • Improve error handling for predicate catch
  • Simplify internals and reduce code size
cujojs
published 3.4.2 •

Changelog

Source

3.4.2

cujojs
published 3.4.1 •

Changelog

Source

3.4.1

  • Fix for promise.finally not waiting on returned promises.
cujojs
published 3.4.0 •

Changelog

Source

3.4.0

  • New when.filter for filtering arrays of promises.
  • when.map and when.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.
cujojs
published 3.3.1 •

Changelog

Source

3.3.1

  • Fix argument ordering bug in when/node introduced in 3.3.0.
cujojs
published 3.3.0 •

Changelog

Source

3.3.0

  • Promote when.race to public API.
  • when.any and when.some now reject with a RangeError if the race is obviously unwinnable, for example: when.some([1,2,3], 4). See the when.any and when.some docs for more info.
cujojs
published 3.2.3 •

Changelog

Source

3.2.3

  • Updated debugging 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.
cujojs
published 3.2.2 •

Changelog

Source

3.2.2

  • More mem and perf improvements
  • Improvements to unhandled rejection reporting
cujojs
published 3.2.1 •

Changelog

Source

3.2.1

  • Minor mem and perf tweaks for when.all
  • Defend against JSON.stringify exceptions when formatting unhandled rejection output.
cujojs
published 3.2.0 •

Changelog

Source

3.2.0

  • 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 lifting 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 https://github.com/cujojs/when/issues/288
    • when/callbacks.promisify See https://github.com/cujojs/when/issues/318
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc