Comparing version 4.4.4 to 4.4.5
@@ -0,1 +1,5 @@ | ||
## 4.4.5/2019-09-16 | ||
- add `useUnifiedTopology` | ||
## 4.4.4/2019-09-16 | ||
@@ -2,0 +6,0 @@ |
@@ -42,3 +42,3 @@ const _ = require('lodash') | ||
this._client = await mongodb.MongoClient.connect(this._url, _.assign({ useNewUrlParser: true }, _.omit(this._opts, 'dbName'))) | ||
this._client = await mongodb.MongoClient.connect(this._url, _.assign({ useNewUrlParser: true, useUnifiedTopology: true }, _.omit(this._opts, 'dbName'))) | ||
this._db = this._client.db(this._opts.dbName || muri(this._url).db) | ||
@@ -45,0 +45,0 @@ debug(`Connected ${this._url}`) |
{ | ||
"name": "mongolass", | ||
"version": "4.4.4", | ||
"version": "4.4.5", | ||
"description": "Elegant MongoDB driver for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -66,3 +66,3 @@ const MONGODB = process.env.MONGODB || 'mongodb://localhost:27017/test' | ||
assert.deepStrictEqual(error.name, 'MongoNetworkError') | ||
assert.deepStrictEqual(error.message, 'failed to connect to server [localhost:27018] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27018]') | ||
assert.deepStrictEqual(error.message, 'connect ECONNREFUSED 127.0.0.1:27018') | ||
}) | ||
@@ -69,0 +69,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
113450