Comparing version 1.8.2 to 1.8.3
1.8.3 / 2011-08-19 | ||
=================== | ||
* Fixed; regression in connection#open [jshaw86] | ||
1.8.2 / 2011-08-17 | ||
@@ -3,0 +8,0 @@ =================== |
@@ -91,10 +91,9 @@ | ||
switch (arguments.length) { | ||
case 2: | ||
port = 27017; | ||
case 3: | ||
switch (typeof port) { | ||
case 'function': | ||
callback = port, port = 27017, options = {}; | ||
callback = port, port = 27017; | ||
break; | ||
case 'number': | ||
options = {}; | ||
break; | ||
case 'object': | ||
@@ -112,10 +111,9 @@ options = port, port = 27017; | ||
case 'function': | ||
callback = database, options = {}; | ||
callback = database, database = undefined; | ||
break; | ||
case 'object': | ||
options = database; | ||
database = undefined; | ||
callback = port; | ||
break; | ||
case 'undefined': | ||
options = {}; | ||
} | ||
@@ -122,0 +120,0 @@ |
@@ -292,3 +292,3 @@ | ||
exports.version = '1.8.2'; | ||
exports.version = '1.8.3'; | ||
@@ -295,0 +295,0 @@ /** |
{ | ||
"name": "mongoose" | ||
, "description": "Mongoose MongoDB ORM" | ||
, "version": "1.8.2" | ||
, "version": "1.8.3" | ||
, "author": "Guillermo Rauch <guillermo@learnboost.com>" | ||
@@ -6,0 +6,0 @@ , "keywords": ["mongodb", "mongoose", "orm", "data", "datastore", "nosql"] |
@@ -229,2 +229,13 @@ | ||
db.close(); | ||
db = mongoose.createConnection('127.0.0.1', 'faker'); | ||
db.options.should.be.a('object'); | ||
db.options.server.should.be.a('object'); | ||
db.options.server.auto_reconnect.should.be.false; | ||
db.options.db.should.be.a('object'); | ||
db.options.db.forceServerObjectId.should.be.false; | ||
db.name.should.equal('faker'); | ||
db.host.should.equal('127.0.0.1'); | ||
db.port.should.equal(27017); | ||
db.close(); | ||
}, | ||
@@ -231,0 +242,0 @@ |
15076
726044
117