Comparing version 0.9.0 to 0.9.1
114
History.md
@@ -1,4 +0,18 @@ | ||
0.9.0 / 2016-08-13 | ||
0.9.1 / 2017-03-22 | ||
================== | ||
* Upgrade mongo driver to 2.1.11 | ||
Republish release for NPM. Includes fixes from 0.9.0 release: | ||
* add support for `mongoose.connection` for `agenda.mongo()`, fixes #156 | ||
* Fix for race condition in the afterEach clean up code (#355) | ||
* Fixes + protects against concurrency not being honored (#379) | ||
0.9.0 / 2016-12-28 | ||
================== | ||
* add support for `mongoose.connection` for `agenda.mongo()`, fixes #156 | ||
* Fix for race condition in the afterEach clean up code (#355) | ||
* Fixes + protects against concurrency not being honored (#379) | ||
* Bump mongodb dep version to support ssl conns (#368) | ||
* Increase Mongo compatability to 2.4 | ||
@@ -94,3 +108,3 @@ | ||
0.6.27 / 2015-02-04 | ||
0.6.27 / 2015-02-04 | ||
================== | ||
@@ -105,3 +119,3 @@ | ||
0.6.25 / 2014-11-20 | ||
0.6.25 / 2014-11-20 | ||
================== | ||
@@ -111,3 +125,3 @@ | ||
0.6.24 / 2014-10-31 | ||
0.6.24 / 2014-10-31 | ||
================== | ||
@@ -117,3 +131,3 @@ | ||
0.6.23 / 2014-10-25 | ||
0.6.23 / 2014-10-25 | ||
================== | ||
@@ -123,3 +137,3 @@ | ||
0.6.22 / 2014-10-22 | ||
0.6.22 / 2014-10-22 | ||
================== | ||
@@ -129,3 +143,3 @@ | ||
0.6.21 / 2014-10-20 | ||
0.6.21 / 2014-10-20 | ||
================== | ||
@@ -135,3 +149,3 @@ | ||
0.6.20 / 2014-10-14 | ||
0.6.20 / 2014-10-14 | ||
================== | ||
@@ -142,3 +156,3 @@ | ||
0.6.19 / 2014-09-03 | ||
0.6.19 / 2014-09-03 | ||
================== | ||
@@ -148,3 +162,3 @@ | ||
0.6.18 / 2014-08-16 | ||
0.6.18 / 2014-08-16 | ||
================== | ||
@@ -156,3 +170,3 @@ | ||
0.6.17 / 2014-08-11 | ||
0.6.17 / 2014-08-11 | ||
================== | ||
@@ -162,3 +176,3 @@ | ||
0.6.16 / 2014-06-16 | ||
0.6.16 / 2014-06-16 | ||
================== | ||
@@ -169,3 +183,3 @@ | ||
0.6.15 / 2014-06-11 | ||
0.6.15 / 2014-06-11 | ||
================== | ||
@@ -175,3 +189,3 @@ | ||
0.6.14 / 2014-06-06 | ||
0.6.14 / 2014-06-06 | ||
================== | ||
@@ -182,3 +196,3 @@ | ||
0.6.13 / 2014-06-01 | ||
0.6.13 / 2014-06-01 | ||
================== | ||
@@ -189,3 +203,3 @@ | ||
0.6.12/ 2014-05-22 | ||
0.6.12/ 2014-05-22 | ||
================== | ||
@@ -195,3 +209,3 @@ | ||
0.6.11/ 2014-05-19 | ||
0.6.11/ 2014-05-19 | ||
================== | ||
@@ -201,3 +215,3 @@ | ||
0.6.10 / 2014-05-13 | ||
0.6.10 / 2014-05-13 | ||
================== | ||
@@ -207,3 +221,3 @@ | ||
0.6.9 / 2014-05-13 | ||
0.6.9 / 2014-05-13 | ||
================== | ||
@@ -214,3 +228,3 @@ | ||
0.6.8 / 2014-05-06 | ||
0.6.8 / 2014-05-06 | ||
================== | ||
@@ -220,3 +234,3 @@ | ||
0.6.7 / 2014-04-21 | ||
0.6.7 / 2014-04-21 | ||
================== | ||
@@ -226,3 +240,3 @@ | ||
0.6.6 / 2014-04-21 | ||
0.6.6 / 2014-04-21 | ||
================== | ||
@@ -232,3 +246,3 @@ | ||
0.6.5 / 2014-04-17 | ||
0.6.5 / 2014-04-17 | ||
================== | ||
@@ -238,3 +252,3 @@ | ||
0.6.4 / 2014-04-09 | ||
0.6.4 / 2014-04-09 | ||
================== | ||
@@ -244,3 +258,3 @@ | ||
0.6.3 / 2014-04-07 | ||
0.6.3 / 2014-04-07 | ||
================== | ||
@@ -251,3 +265,3 @@ | ||
0.6.2 / 2014-03-25 | ||
0.6.2 / 2014-03-25 | ||
================== | ||
@@ -258,3 +272,3 @@ | ||
0.6.1 / 2014-03-24 | ||
0.6.1 / 2014-03-24 | ||
================== | ||
@@ -269,3 +283,3 @@ | ||
0.5.10/ 2014-03-20 | ||
0.5.10/ 2014-03-20 | ||
================== | ||
@@ -276,3 +290,3 @@ | ||
0.5.9 / 2014-03-10 | ||
0.5.9 / 2014-03-10 | ||
================== | ||
@@ -282,3 +296,3 @@ | ||
0.5.8 / 2014-03-07 | ||
0.5.8 / 2014-03-07 | ||
================== | ||
@@ -288,3 +302,3 @@ | ||
0.5.7 / 2014-03-06 | ||
0.5.7 / 2014-03-06 | ||
================== | ||
@@ -294,3 +308,3 @@ | ||
0.5.6 / 2014-02-18 | ||
0.5.6 / 2014-02-18 | ||
================== | ||
@@ -301,3 +315,3 @@ | ||
0.5.5 / 2014-01-28 | ||
0.5.5 / 2014-01-28 | ||
================== | ||
@@ -307,3 +321,3 @@ | ||
0.5.4 / 2014-01-09 | ||
0.5.4 / 2014-01-09 | ||
================== | ||
@@ -313,3 +327,3 @@ | ||
0.5.3 / 2014-01-06 | ||
0.5.3 / 2014-01-06 | ||
================== | ||
@@ -319,3 +333,3 @@ | ||
0.5.2 / 2014-01-06 | ||
0.5.2 / 2014-01-06 | ||
================== | ||
@@ -334,3 +348,3 @@ | ||
0.4.4 / 2013-12-13 | ||
0.4.4 / 2013-12-13 | ||
================== | ||
@@ -341,3 +355,3 @@ | ||
0.4.3 / 2013-12-13 | ||
0.4.3 / 2013-12-13 | ||
================== | ||
@@ -347,3 +361,3 @@ | ||
0.4.2 / 2013-12-11 | ||
0.4.2 / 2013-12-11 | ||
================== | ||
@@ -353,3 +367,3 @@ | ||
0.4.1 / 2013-12-10 | ||
0.4.1 / 2013-12-10 | ||
================== | ||
@@ -359,3 +373,3 @@ | ||
0.4.0 / 2013-12-04 | ||
0.4.0 / 2013-12-04 | ||
================== | ||
@@ -366,3 +380,3 @@ | ||
0.3.1 / 2013-11-19 | ||
0.3.1 / 2013-11-19 | ||
================== | ||
@@ -372,3 +386,3 @@ | ||
0.3.0 / 2013-11-19 | ||
0.3.0 / 2013-11-19 | ||
================== | ||
@@ -378,3 +392,3 @@ | ||
0.2.1 / 2013-11-14 | ||
0.2.1 / 2013-11-14 | ||
================== | ||
@@ -384,3 +398,3 @@ | ||
0.2.0 / 2013-11-07 | ||
0.2.0 / 2013-11-07 | ||
================== | ||
@@ -391,3 +405,3 @@ | ||
0.1.3 / 2013-11-06 | ||
0.1.3 / 2013-11-06 | ||
================== | ||
@@ -397,3 +411,3 @@ | ||
0.1.2 / 2013-10-31 | ||
0.1.2 / 2013-10-31 | ||
================== | ||
@@ -403,3 +417,3 @@ | ||
0.1.1 / 2013-10-28 | ||
0.1.1 / 2013-10-28 | ||
================== | ||
@@ -409,5 +423,5 @@ | ||
0.1.0 / 2013-10-28 | ||
0.1.0 / 2013-10-28 | ||
================== | ||
* Initial Release |
@@ -426,3 +426,4 @@ /* Code forked from https://github.com/rschmukler/agenda | ||
// Trying to resolve crash on Dev PC when it resumes from sleep. | ||
if (this._mdb.s.topology.connections().length === 0) { | ||
var s = this._mdb.s || this._mdb.db.s; | ||
if (s.topology.connections().length === 0) { | ||
cb(new Error( 'No MongoDB Connection')); | ||
@@ -678,7 +679,9 @@ } else { | ||
if (self._runningJobs.indexOf(job) == -1) throw("callback already called - job " + name + " already marked complete"); | ||
self._runningJobs.splice(self._runningJobs.indexOf(job), 1); | ||
definitions[name].running--; | ||
if (definitions[name].running > 0) definitions[name].running--; | ||
self._lockedJobs.splice(self._lockedJobs.indexOf(job), 1); | ||
definitions[name].locked--; | ||
if (definitions[name].locked > 0) definitions[name].locked--; | ||
@@ -685,0 +688,0 @@ jobProcessing(); |
{ | ||
"name": "agenda", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Light weight job scheduler for Node.js", | ||
@@ -35,3 +35,3 @@ "main": "index.js", | ||
"moment-timezone": "^0.5.0", | ||
"mongodb": "2.1.11" | ||
"mongodb": "^2.2.10" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
@@ -663,2 +663,10 @@ # Agenda | ||
### disable() | ||
Disables the `job`. Upcoming runs won't execute. | ||
### enable() | ||
Enables the `job` if it got disabled before. Upcoming runs will execute. | ||
### touch(callback) | ||
@@ -665,0 +673,0 @@ |
@@ -63,10 +63,11 @@ /* globals before, describe, it, beforeEach, after, afterEach */ | ||
afterEach(function(done) { | ||
setTimeout(function() { | ||
setTimeout(function() { | ||
jobs.stop(function() { | ||
clearJobs(function() { | ||
mongo.close(function () { | ||
jobs.stop(); | ||
mongo.close(function() { | ||
jobs._mdb.close(done); | ||
}); | ||
}); | ||
}, 50); | ||
}); | ||
}, 50); | ||
}); | ||
@@ -73,0 +74,0 @@ |
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
113589
2165
977
+ Addedbson@1.0.9(transitive)
+ Addedbuffer-shims@1.0.0(transitive)
+ Addedes6-promise@3.2.1(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedmongodb@2.2.36(transitive)
+ Addedmongodb-core@2.1.20(transitive)
+ Addedprocess-nextick-args@1.0.7(transitive)
+ Addedreadable-stream@2.2.7(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstring_decoder@1.0.3(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedbson@0.4.23(transitive)
- Removedes6-promise@3.0.2(transitive)
- Removedisarray@0.0.1(transitive)
- Removedmongodb@2.1.11(transitive)
- Removedmongodb-core@1.3.10(transitive)
- Removedreadable-stream@1.0.31(transitive)
- Removedstring_decoder@0.10.31(transitive)
Updatedmongodb@^2.2.10