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

2.3.0

Diff

Changelog

Source

2.3.0

cujojs
published 2.2.1 •

Changelog

Source

2.2.1

  • Fix for when.defer().reject() bypassing the unhandled rejection monitor. (#166)
  • Fix for when/function, when/callbacks, and when/node/function not preserving thisArg. (#162)
  • Doc clarifications for promise.yield. (#164)
cujojs
published 2.2.0 •

Changelog

Source

2.2.0

  • New experimental promise monitoring and debugging via when/monitor/console.
  • New when.promise(resolver) promise creation API. A lighter alternative to the heavier when.defer()
  • New bindCallback and liftCallback in when/node/function for more integration options with node-style callbacks.
cujojs
published 2.1.1 •

Changelog

Source

2.1.1

  • Quote internal usages of promise.yield to workaround .NET minifier tools that don't yet understand ES5 identifier-as-property rules. See #157
cujojs
published 2.1.0 •

Changelog

Source

2.1.0

  • New when.settle that settles an array of promises, regardless of whether the fulfill or reject.
  • New when/guard generalized concurrency guarding and limiting
  • New promise.inspect for synchronously getting a snapshot of a promise's state at a particular instant.
  • Significant performance improvements when resolving promises with non-primitives (Arrays, Objects, etc.)
  • Experimental vert.x support
  • DEPRECATED: onFulfilled, onRejected, onProgress handler arguments to when.all, when.any, when.some. Use the returned promise's then() (or otherwise(), ensure(), etc) to register handlers instead.
    • For example, do this: when.all(array).then(onFulfilled, onRejected) instead of this: when.all(array, onFulfilled, onRejected). The functionality is equivalent.
cujojs
published 2.0.1 •

Changelog

Source

2.0.1

  • Account for the fact that Mocha creates a global named process. Thanks Narsul
cujojs
published 2.0.0 •

Changelog

Source

2.0.0

  • Fully asynchronous resolutions.
  • Promises/A+ compliance.
  • New when/keys module with all() and map() for object keys/values.
  • New promise.ensure as a better, and safer, replacement for promise.always. See discussion as to why promise.always is mistake-prone.
    • DEPRECATED: promise.always
  • lift() is now the preferred name for what was bind() in when/function, when/node/function, and when/callbacks.
    • DEPRECATED: bind() in when/function, when/node/function, and when/callbacks. Use lift() instead.
cujojs
published 1.8.1 •

Changelog

Source

1.8.1

cujojs
published 1.8.0 •

Changelog

Source

1.8.0

cujojs
published 1.7.1 •

Changelog

Source

1.7.1

  • Removed leftover internal usages of deferred.then.
  • when/debug allows configuring the set of "fatal" error types that will be rethrown to the host env.
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