Permalink
Browse files

Upgrade Node Mongo Native to 1.3.6

v0.3.2
* Upgraded to latest (1.3.6) version of Mongo Node Native
* Fixed typo in lib.js for inclusion of Logging (changed Logging to
logging)
* Locked dependency versions so breaking shouldn't happen again when the
dependency chain changes
  • Loading branch information...
1 parent a69647a commit 281b5ba3ea186be1c63d075f2b76f620cbad7e5b @jdarling committed May 28, 2013
Showing with 19 additions and 5 deletions.
  1. +8 −1 examples/hello/greeter.js
  2. +3 −1 lib/MongoConnection.js
  3. +3 −3 package.json
  4. +5 −0 readme.md
@@ -1,7 +1,14 @@
var MC = require('../../lib/lib').MongoConnection;
var MQ = require('../../lib/lib').MongoMQ;
-var options = {host: 'localhost', databaseName: 'tests', queueCollection: 'capped_collection', autoStart: true};
+var options = {host: 'localhost', databaseName: 'tests', queueCollection: 'capped_collection', autoStart: true,
+ serverOptions: {
+ socketOptions: {
+ connectTimeoutMS: 15000,
+ socketTimeoutMS: 15000
+ }
+ }
+};
//var options = {servers: ['ndcsrvcdep601', 'ndcsrvcdep602'], databaseName: 'tests', queueCollection: 'capped_collection', autoStart: true};
var mq = module.exports = new MQ(options);
View
@@ -207,9 +207,11 @@ MongoConnection.prototype.use = function(databaseName, callback){
if(self.databaseName !== databaseName){
self.checkConnection(function(err){
if(self.emitter.checkNoError(err, callback)){
+ /*
if(self.db){
- self.db.close();
+ self.db.close(); // This line causes a problem with 1.3.6
}
+ */
self.db = self.db.db(databaseName);
if(self.options.databaseName){
self.options.databaseName = databaseName;
View
@@ -4,7 +4,7 @@
"email": "jeremy.darling@gmail.com"
},
"name": "mongomq",
- "version": "0.3.1",
+ "version": "0.3.2",
"repository": {
"type": "git",
"url": "git://github.com/jdarling/MongoMQ.git"
@@ -22,7 +22,7 @@
"node": ">= v0.8.2"
},
"dependencies": {
- "mongodb": ">= 1.2.8",
- "node-uuid": ">= 1.4.0"
+ "mongodb": "1.3.*",
+ "node-uuid": "1.4.0"
}
}
View
@@ -235,6 +235,11 @@ Update History
v0.3 Update History
-------------------
+v0.3.2
+ * Upgraded to latest (1.3.6) version of Mongo Node Native
+ * Fixed typo in lib.js for inclusion of Logging (changed Logging to logging)
+ * Locked dependency versions so breaking shouldn't happen again when the dependency chain changes
+
v0.3.1
* Added setTimeout to nextTick on startup to give Mongo a chance to get connceted to
* Minor bug fix due to EventEmitter treating 'error' events specially

0 comments on commit 281b5ba

Please sign in to comment.