Socket
Socket
Sign inDemoInstall

q

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

q - npm Package Versions

1
8

0.8.6

Diff

Changelog

Source

0.8.6

  • Fixed npost and ninvoke to pass the correct thisp. #74
  • Fixed various cases involving unorthodox rejection reasons. #73 #90 @ef4
  • Fixed double-resolving of misbehaved custom promises. #75
  • Sped up Q.all for arrays contain already-resolved promises or scalar values. @ForbesLindesay
  • Made stack trace filtering work when concatenating assets. #93 @ef4
  • Added warnings for deprecated methods. @ForbesLindesay
  • Added .npmignore file so that dependent packages get a slimmer node_modules directory.
kriskowal
published 0.8.5 •

Changelog

Source

0.8.5

  • Added preliminary support for long traces (@domenic)
  • Added fapply, fcall, fbind for non-thisp promised function calls.
  • Added return for async generators, where generators are implemented.
  • Rejected promises now have an "exception" property. If an object isRejected(object), then object.valueOf().exception will be the wrapped error.
  • Added Jasmine specifications
  • Support Internet Explorers 7–9 (with multiple bug fixes @domenic)
  • Support Firefox 12
  • Support Safari 5.1.5
  • Support Chrome 18
kriskowal
published 0.8.4 •

Changelog

Source

0.8.4

  • WARNING: promise.timeout is now rejected with an Error object and the message now includes the duration of the timeout in miliseconds. This doesn't constitute (in my opinion) a backward-incompatibility since it is a change of an undocumented and unspecified public behavior, but if you happened to depend on the exception being a string, you will need to revise your code.
  • Added deferred.makeNodeResolver() to replace the more cryptic deferred.node() method.
  • Added experimental Q.promise(maker(resolve, reject)) to make a promise inside a callback, such that thrown exceptions in the callback are converted and the resolver and rejecter are arguments. This is a shorthand for making a deferred directly and inspired by @gozala’s stream constructor pattern and the Microsoft Windows Metro Promise constructor interface.
  • Added experimental Q.begin() that is intended to kick off chains of .then so that each of these can be reordered without having to edit the new and former first step.
kriskowal
published 0.8.3 •

Changelog

Source

0.8.3

  • Added isFulfilled, isRejected, and isResolved to the promise prototype.
  • Added allResolved for waiting for every promise to either be fulfilled or rejected, without propagating an error. @utvara #53
  • Added Q.bind as a method to transform functions that return and throw into promise-returning functions. See an example. @domenic
  • Renamed node export to nbind, and added napply to complete the set. node remains as deprecated. @domenic #58
  • Renamed Method export to sender. Method remains as deprecated and will be removed in the next major version since I expect it has very little usage.
  • Added browser console message indicating a live list of unhandled errors.
  • Added support for msSetImmediate (IE10) or setImmediate (available via polyfill) as a browser-side nextTick implementation. #44 #50 #59
  • Stopped using the event-queue dependency, which was in place for Narwhal support: now directly using process.nextTick.
  • WARNING: EXPERIMENTAL: added finally alias for fin, catch alias for fail, try alias for call, and delete alias for del. These properties are enquoted in the library for cross-browser compatibility, but may be used as property names in modern engines.
kriskowal
published 0.8.2 •

Changelog

Source

0.8.2

  • Deprecated ref in favor of resolve as recommended by @domenic.
  • Update event-queue dependency.
kriskowal
published 0.8.1 •

Changelog

Source

0.8.1

  • Fixed Opera bug. #35 @cadorn
  • Fixed Q.all([]) #32 @domenic
kriskowal
published 0.8.0 •

Changelog

Source

0.8.0

  • WARNING: enqueue removed. Use nextTick instead. This is more consistent with NodeJS and (subjectively) more explicit and intuitive.
  • WARNING: def removed. Use master instead. The term def was too confusing to new users.
  • WARNING: spy removed in favor of fin.
  • WARNING: wait removed. Do all(args).get(0) instead.
  • WARNING: join removed. Do all(args).spread(callback) instead.
  • WARNING: Removed the Q function module.exports alias for Q.ref. It conflicts with Q.apply in weird ways, making it uncallable.
  • Revised delay so that it accepts both (value, timeout) and (timeout) variations based on arguments length.
  • Added ref().spread(cb(...args)), a variant of then that spreads an array across multiple arguments. Useful with all().
  • Added defer().node() Node callback generator. The callback accepts (error, value) or (error, ...values). For multiple value arguments, the fulfillment value is an array, useful in conjunction with spread.
  • Added node and ncall, both with the signature (fun, thisp_opt, ...args). The former is a decorator and the latter calls immediately. node optional binds and partially applies. ncall can bind and pass arguments.
published 0.7.2 •

Changelog

Source

0.7.2

  • Fixed thenable promise assimilation.
published 0.7.1 •

Changelog

Source

0.7.1

  • Stopped shimming Array.prototype.reduce. The enumerable property has bad side-effects. Libraries that depend on this (for example, QQ) will need to be revised.
published 0.7.0 •

Changelog

Source

0.7.0 - BACKWARD INCOMPATIBILITY

  • WARNING: Removed report and asap
  • WARNING: The callback argument of the fin function no longer receives any arguments. Thus, it can be used to call functions that should not receive arguments on resolution. Use when, then, or fail if you need a value.
  • IMPORTANT: Fixed a bug in the use of MessageChannel for nextTick.
  • Renamed enqueue to nextTick.
  • Added experimental view and viewInfo for creating views of promises either when or before they're fulfilled.
  • Shims are now externally applied so subsequent scripts or dependees can use them.
  • Improved minification results.
  • Improved readability.
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