7.0.0-beta.3 (2020-10-08)
⚠ BREAKING CHANGES
- MongoMemoryServer: remove function "getDbName", can be replaced with "instanceInfo.dbName"
- MongoMemoryServer: remove function "getDbPath", can be replaced with "instanceInfo.dbPath"
- MongoMemoryServer: remove function "getPort", can be replaced with "instanceInfo.port"
- MongoInstance: change "start" to not reset "port" to "undefined"
- MongoInstance: change "instanceOpts" to be readonly and Readonly
change "binaryOpts" to be readonly and Readonly
change "spawnOpts" to be readonly and Readonly - MongoMemoryServer: removing ".uri" because of function "getUri"
- MongoMemoryServer: removing ".childProcess" because it is an alias for ".instance.childProcess"
- MongoMemoryServer: remove option "autoStart"
change "MongoMemoryServer.create" to always call "MongoMemoryServer.start" - MongoMemoryServer: change "MongoMemoryServer.getInstanceInfo" to return "undefined" instead of "false"
- MongoMemoryServer: change "MongoMemoryServer.getUri" to be sync
- MongoMemoryServer: remove deprecated function "getConnectionString" (replace with "getUri")
- MongoMemoryServer: change "MongoMemoryServer.getDbName" to be sync
- MongoMemoryServer: change "MongoMemoryServer.getDbPath" to be sync
- MongoMemoryServer: change "MongoMemoryServer.getPort" to be sync
- MongoMemoryServer: change "MongoMemoryServer.runningInstance" to be "undefined" instead of "null"
change "MongoMemoryServer.instanceInfoSync" to be "undefined" instead of "null"
Features
- MongoInstance: change options to be readonly (e599372)
- MongoMemoryServer: add getter function "state" (c19493f)
- MongoMemoryServer: extend EventEmitter (04ca3d7)
- MongoMemoryServer: remove "MongoInstanceDataT.childProcess" (c71d8d4)
- MongoMemoryServer: remove "StartupInstanceData.uri" (dec17a4)
- MongoMemoryServer: remove deprecated function "getConnectionString" (198f4c0)
- MongoMemoryServer: remove function "getDbName" (e2fc23f)
- MongoMemoryServer: remove function "getDbPath" (2343771)
- MongoMemoryServer: remove function "getPort" (5eb7017)
- MongoMemoryServer: remove option "autoStart" (347085f)
- MongoMemoryServer: rename function "getInstanceInfo" into "get instanceInfo" (ae8a9f8)
Reverts
- "chore: remove unused file "tsconfig.test"" (cc053c7)
Style
- MongoMemoryServer: remove comment & change log (b098941)
Fixes
- db_util: killProcess: fix "SIGINT"-"SIGKILL" warn condition (4113d94)
- MongoInstance: remove resetting "port" inside "start" (7861a6f), closes #393
Refactor
- MongoMemoryReplSet: stop: reset "servers" after stopping them (0aa2293)
- MongoMemoryServer: add sanity check to "stop" (8aff4ef)
- MongoMemoryServer: always reset "port" to "undefined" (8ca0729)
- MongoMemoryServer: change "_state" to be "protected" (b716c2c)
- MongoMemoryServer: change "getDbName" to be sync (85a97e0)
- MongoMemoryServer: change "getDbPath" to be sync (281fa1c)
- MongoMemoryServer: change "getInstanceInfo" to return undefined (27349a3)
- MongoMemoryServer: change "getPort" to be sync (e849f2c)
- MongoMemoryServer: change "getUri" to be sync (5b53f03)
- MongoMemoryServer: change "instanceInfo" to be "protected" (7390eee)
- MongoMemoryServer: merge "runningInstance" and "instanceInfoSync" into "instanceInfo" (7642c75)
- MongoMemoryServer: refactor "start" to be more readable (7fb31c1)
- MongoMemoryServer: remove "await" from "getUriBase" call (ca536b6)
- MongoMemoryServer: remove "null" use "undefined" (086abef)
- MongoMemoryServer: remove call to "ensureInstance" inside "stop" (57801cf)
- MongoMemoryServer: rename "instanceInfo" to "_instanceInfo" (d3ddcb4)
- MongoMemoryServer: rename function "assertionInstanceInfoSync" to "assertionInstanceInfo" (03c8343)
- MongoMemoryServer: shorten "getUri" (f1024e5)
- MongoMemoryServer: start: remove first ".catch" (fafaa29)