Q.js

Software Screenshot:
Q.js
Software Details:
Version: 1.4.1 updated
Upload Date: 4 Jun 15
Developer: Kris Kowal
Distribution Type: Freeware
Downloads: 35

Rating: 2.0/5 (Total Votes: 2)

The term 'Promise' in JavaScript was coined with the emergence of server-side JavaScript development.

It basically represents the result of a task, which may or may not have completed yet. Or in simpler words, what to expect for a JS call.

Q.js' place in all of this is for making and composing asynchronous promises, without blocking the app and with a better error propagation.

Q.js works with client-side (browsers) and server-side (Node.js, CommonJS, RequireJS, Bower, Component) environments.

What is new in this release:

  • Address an issue that prevented Q from being used as a <script> for Firefox add-ons. Q can now be used in any environment that provides window or self globals, favoring window since add-ons have an an immutable self that is distinct from window.

What is new in version 1.2.0:

  • Added Q.any(promisesArray) method. Returns a promise fulfilled with the value of the first resolved promise in promisesArray. If all promises in promisesArray are rejected, it returns a rejected promise.

What is new in version 1.1.2:

  • Removed extraneous files from the npm package by using the "files" whitelist in package.json instead of the .npmignore blacklist.

What is new in version 1.1.1:

  • Fixed a pair of regressions in bootstrapping, one which precluded WebWorker support, and another that precluded support in <script> usage outright.

What is new in version 1.1.0:

  • Adds support for enabling long stack traces in node.js by setting environment variable Q_DEBUG=1.
  • Introduces the tap method to promises, which will see a value pass through without alteration.
  • Use instanceof to recognize own promise instances as opposed to thenables.
  • Construct timeout errors with code === ETIMEDOUT (Kornel Lesinski)
  • More descriminant CommonJS module environment detection.
  • Dropped continuous integration for Node.js 0.6 and 0.8 because of changes to npm that preclude the use of new ^ version predicate operator in any transitive dependency.

What is new in version 1.0.1:

  • Removes the console stopgap for a promise inspector. This no longer works with any degree of reliability.
  • Fixes support for content security policies that forbid eval. Now using the StopIteration global to distinguish SpiderMonkey generators from ES6 generators, assuming that they will never coexist.

What is new in version 1.0.0:

  • Q will now attempt to post a debug message in browsers regardless of whether window.Touch is defined. Chrome at least now has this property regardless of whether touch is supported by the underlying hardware.
  • Remove deprecation warning from promise.valueOf. The function is called by the browser in various ways so there is no way to distinguish usage that should be migrated from usage that cannot be altered.

What is new in version 0.9.2:

  • Pass through progress notifications when using timeout.
  • Pass through progress notifications when using delay.
  • Fixed nbind to actually bind the thisArg.

What is new in version 0.9.0:

  • Q now works in Internet Explorer 10.
  • fbind no longer hard-binds the returned function's this to undefined.
  • Q.reject no longer leaks memory.
  • npost with no arguments now works.

What is new in version 0.8.12:

  • Treats foreign promises as unresolved in Q.isFulfilled. This lets Q.all work on arrays containing foreign promises.
  • Fixes minor compliance problems with the Promises/A+ spec and test suite.

Requirements:

  • Node.js 0.6 or higher

Similar Software

$script.js
$script.js

10 Dec 15

Super Agent
Super Agent

6 Mar 16

SignalR
SignalR

28 Feb 15

Other Software of Developer Kris Kowal

Tengwar
Tengwar

13 May 15

es5-shim
es5-shim

20 Jul 15

Comments to Q.js

Comments not found
Add Comment
Turn on images!