mongodb-memory-server-core
Advanced tools
Comparing version 5.2.11 to 6.0.0
@@ -6,2 +6,24 @@ # Change Log | ||
# [6.0.0](https://github.com/nodkz/mongodb-memory-server/compare/v5.2.11...v6.0.0) (2019-10-22) | ||
### Bug Fixes | ||
* **MongoMemoryReplSet:** `getConnectionString()` now returns uri with `?replicaSet=` option. ([401441c](https://github.com/nodkz/mongodb-memory-server/commit/401441c)) | ||
### chore | ||
* update cross-spawn ([c99fda8](https://github.com/nodkz/mongodb-memory-server/commit/c99fda8)) | ||
### BREAKING CHANGES | ||
* drop support for Node.js < 8 | ||
* **MongoMemoryReplSet:** `getConnectionString()` now returns uri with `?replicaSet=` option. | ||
## [5.2.11](https://github.com/nodkz/mongodb-memory-server/compare/v5.2.10...v5.2.11) (2019-10-22) | ||
@@ -8,0 +30,0 @@ |
@@ -194,3 +194,3 @@ "use strict"; | ||
hosts = ports.map(function (port) { return "127.0.0.1:" + port; }).join(','); | ||
return [2 /*return*/, "mongodb://" + hosts + "/" + dbName]; | ||
return [2 /*return*/, "mongodb://" + hosts + "/" + dbName + "?replicaSet=" + this.opts.replSet.name]; | ||
} | ||
@@ -197,0 +197,0 @@ }); |
@@ -26,7 +26,7 @@ /// <reference types="node" /> | ||
killerProcess: ChildProcess | null; | ||
instanceReady: Function; | ||
waitForPrimaryResolveFns: Function[]; | ||
isInstancePrimary: boolean; | ||
instanceFailed: Function; | ||
isInstanceReady: boolean; | ||
instanceReady: () => void; | ||
instanceFailed: (err: any) => void; | ||
constructor(opts: MongodOps); | ||
@@ -33,0 +33,0 @@ static run(opts: MongodOps): Promise<MongoInstance>; |
@@ -58,8 +58,10 @@ "use strict"; | ||
function MongoInstance(opts) { | ||
this.isInstancePrimary = false; | ||
this.isInstanceReady = false; | ||
this.instanceReady = function () { }; | ||
this.instanceFailed = function () { }; | ||
this.opts = opts; | ||
this.isInstanceReady = false; | ||
this.childProcess = null; | ||
this.killerProcess = null; | ||
this.waitForPrimaryResolveFns = []; | ||
this.isInstancePrimary = false; | ||
if (this.opts.debug) { | ||
@@ -66,0 +68,0 @@ if (!this.opts.instance) |
{ | ||
"name": "mongodb-memory-server-core", | ||
"version": "5.2.11", | ||
"version": "6.0.0", | ||
"description": "MongoDB Server for testing (core package, without autodownload). The server will allow you to connect your favourite ODM or client library to the MongoDB Server and run parallel integration tests isolated from each other.", | ||
@@ -47,3 +47,3 @@ "main": "lib/index", | ||
"camelcase": "^5.3.1", | ||
"cross-spawn": "^6.0.5", | ||
"cross-spawn": "^7.0.1", | ||
"debug": "^4.1.1", | ||
@@ -76,3 +76,3 @@ "decompress": "^4.2.0", | ||
}, | ||
"gitHead": "7eb36ea9dcbd4b247cbedee4a6c0febc9bc99182" | ||
"gitHead": "a5b419052547395c20e21d7ed4656a6b412c225b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
173894
2319
+ Addedcross-spawn@7.0.3(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedwhich@2.0.2(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removednice-try@1.0.5(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedwhich@1.3.1(transitive)
Updatedcross-spawn@^7.0.1