Comparing version 2.0.0 to 2.0.1
@@ -15,3 +15,3 @@ /* Copyright (c) 2012-2013 Brian Cavalier */ | ||
enqueue = typeof setImmediate === 'function' ? setImmediate.bind(global) | ||
: typeof process === 'object' ? process.nextTick // Node < 0.9 | ||
: typeof process === 'object' && process.nextTick ? process.nextTick | ||
: typeof vertx === 'object' ? vertx.runOnLoop // vert.x | ||
@@ -18,0 +18,0 @@ : function(task) { setTimeout(task, 0); }; // fallback |
@@ -5,3 +5,3 @@ Open Source Initiative OSI - The MIT License | ||
Copyright (c) 2012 Brian Cavalier | ||
Copyright (c) 2012-2013 Brian Cavalier | ||
@@ -8,0 +8,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
{ | ||
"name": "avow", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Example Promises/A+ implementation. Simple, tiny, fast, fully async", | ||
"keywords": ["promise", "promises", "async", "asynchronous", "deferred"], | ||
"keywords": ["promise", "promises", "promises-aplus", "Promises/A+", "async", "asynchronous", "deferred"], | ||
"contributors": { | ||
@@ -7,0 +7,0 @@ "name": "Brian Cavalier", |
@@ -18,3 +18,3 @@ # avow | ||
Again, probably not. I have no plans to support it in any way. I'll probably change the API without warning like I did. You're on your own. | ||
Again, probably not. I have no plans to support it in any way. I'll probably change the API without warning like I did from 1.0.0 to 2.0.0. You're on your own. | ||
@@ -45,12 +45,12 @@ ## Ok, ok, if you want to try it out | ||
// Create a fulfilled promise | ||
vow = avow.lift(nonPromiseValue); | ||
promise = avow.lift(nonPromiseValue); | ||
// Create a promise whose fate follows another promise | ||
vow = avow.lift(anotherPromise); | ||
promise = avow.lift(anotherPromise); | ||
// Attempt to assimilate and follow a well-behaved thenable's fate | ||
vow = avow.lift(thenable); | ||
promise = avow.lift(thenable); | ||
// Create a rejected promise that will use | ||
vow = avow.rejected(reason); | ||
promise = avow.rejected(reason); | ||
``` | ||
@@ -68,3 +68,3 @@ | ||
* `nextTick` - specify your own nextTick function | ||
* `enqueue` - specify your own nextTick function | ||
* `unhandled` - callback to be notified when a promise becomes rejected, but has no rejection handler. | ||
@@ -81,2 +81,7 @@ * `handled` - callback to be notified if, at some point, a previously unhandled rejected promise become handled. Since promises are temporal, this can happen if a consumer adds a rejection handler using `then()` at some point after the promise has been rejected. | ||
### 2.0.1 | ||
* Dodge Mocha `process` global | ||
* Fix typo in Promises/A+ test adapter. Test results not affect. | ||
### 2.0.0 | ||
@@ -83,0 +88,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*jshint es5:true*/ | ||
/* Copyright (c) 2012-2013 Brian Cavalier */ | ||
var avow = require('../avow'); | ||
@@ -14,3 +14,3 @@ | ||
}; | ||
exports.fulfilled = avow.from; | ||
exports.rejected = avow.rejected; | ||
exports.fulfilled = avow.lift; | ||
exports.rejected = avow.reject; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11583
13
96
0