mongodb-memory-server-core
Advanced tools
Comparing version 5.2.4 to 5.2.5
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.2.5](https://github.com/nodkz/mongodb-memory-server/compare/v5.2.4...v5.2.5) (2019-09-23) | ||
### Bug Fixes | ||
* **ReplSet:** typescript definitions ReplSetOpts.dbName is optional ([d1e4b53](https://github.com/nodkz/mongodb-memory-server/commit/d1e4b53)) | ||
## [5.2.4](https://github.com/nodkz/mongodb-memory-server/compare/v5.2.3...v5.2.4) (2019-09-23) | ||
@@ -8,0 +19,0 @@ |
@@ -13,3 +13,3 @@ /// <reference types="node" /> | ||
* @property {number} count number of `mongod` servers to start (default: 1) | ||
* @property {string} dbName database name used in connection string | ||
* @property {string} dbName database name used in connection string (default: uuid) | ||
* @property {string} ip bind to all IP addresses specify `::,0.0.0.0`; (default '127.0.0.1') | ||
@@ -24,3 +24,3 @@ * @property {string} name replSet name (default: 'testset') | ||
count?: number; | ||
dbName: string; | ||
dbName?: string; | ||
ip?: string; | ||
@@ -41,5 +41,5 @@ name?: string; | ||
export interface MongoMemoryReplSetOptsT { | ||
instanceOpts: MongoMemoryInstancePropBaseT[]; | ||
binary: MongoBinaryOpts; | ||
replSet: ReplSetOpts; | ||
instanceOpts?: MongoMemoryInstancePropBaseT[]; | ||
binary?: MongoBinaryOpts; | ||
replSet?: ReplSetOpts; | ||
autoStart?: boolean; | ||
@@ -50,7 +50,13 @@ debug?: boolean; | ||
servers: MongoMemoryServer[]; | ||
opts: MongoMemoryReplSetOptsT; | ||
opts: { | ||
instanceOpts: MongoMemoryInstancePropBaseT[]; | ||
binary: MongoBinaryOpts; | ||
replSet: Required<ReplSetOpts>; | ||
debug: boolean; | ||
autoStart?: boolean; | ||
}; | ||
debug: DebugFn; | ||
_state: 'init' | 'running' | 'stopped'; | ||
admin?: mongodb.Admin; | ||
constructor(opts?: Partial<MongoMemoryReplSetOptsT>); | ||
constructor(opts?: MongoMemoryReplSetOptsT); | ||
getConnectionString(otherDb?: string | boolean): Promise<string>; | ||
@@ -57,0 +63,0 @@ /** |
@@ -84,2 +84,3 @@ "use strict"; | ||
storageEngine: 'ephemeralForTest', | ||
configSettings: {}, | ||
}; | ||
@@ -86,0 +87,0 @@ _this._state = 'stopped'; |
{ | ||
"name": "mongodb-memory-server-core", | ||
"version": "5.2.4", | ||
"version": "5.2.5", | ||
"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.", | ||
@@ -60,3 +60,3 @@ "main": "lib/index", | ||
}, | ||
"gitHead": "983d9a38a94c60108e69911ff1ab51b73f9e617b" | ||
"gitHead": "b5647a39a4d39b772e21db3c7cd39afd0b6181f6" | ||
} |
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
169003
2293