Changelog
0.6.0 - BACKWARD INCOMPATIBILITY
spy
and
the name fin
were useful. I've removed the old
fin
implementation and renamed/aliased spy
.ref
function as a "Q"
constructor, with module systems that support exports
assignment including NodeJS, RequireJS, and when used as
a <script>
tag. Notably, strictly compliant CommonJS
does not support this, but UncommonJS does.async
decorator for generators that use yield
to "trampoline" promises. In engines that support
generators (SpiderMonkey), this will greatly reduce the
need for nested callbacks.when
chainable.all
chainable.Changelog
0.5.3
all
and refactored join
and wait
to use
it. All of these will now reject at the earliest
rejection.Changelog
0.5.1
join
,
wait
, and report
into Q API methods.apply
and call
to the Q API, and apply
as a promise handler.fail
, fin
, and spy
to Q and the promise
prototype for convenience when observing rejection,
fulfillment and rejection, or just observing without
affecting the resolution.def
(although def
remains shimmed until
the next major release) to master
.MessageChannel
for next tick task
enqueue in browsers that support it.Changelog
0.5.0 - MINOR BACKWARD INCOMPATIBILITY
error
from the API. Since exceptions are
getting consumed, throwing them in an errback causes the
exception to silently disappear. Use end
.end
as both an API method and a promise-chain
ending method. It causes propagated rejections to be
thrown, which allows Node to write stack traces and
emit uncaughtException
events, and browsers to
likewise emit onerror
and log to the console.join
and wait
as promise chain functions,
so you can wait for variadic promises, returning your own
promise back, or join variadic promises, resolving with a
callback that receives variadic fulfillment values.Changelog
0.4.4
end
no longer returns a promise. It is the end of the
promise chain.when
callbacks
and errbacks. These must be explicitly reported through
.end()
, .then(null, Q.error)
, or some other
mechanism.report
as an API method, which can be used as
an errback to report and propagate an error.report
as a promise-chain method, so an error
can be reported if it passes such a gate.Changelog
0.4.1
Changelog
0.4.0 - BACKWARD INCOMPATIBLE*