npm mongodb-memory-server 7.0.0-beta.6
v7.0.0-beta.6

latest releases: 9.2.0, 9.2.0-beta.1, 9.1.8...
3 years ago

7.0.0-beta.6 (2020-10-27)

⚠ BREAKING CHANGES

  • MongoMemoryReplSet: not resetting "servers" after calling "stop" on an replSet can be breaking for some cases
  • MongoMemoryServer: allow the re-use of instances & dbPath's meant to change some things internally, which could be breaking

Features

  • db_util: rename function "getUriBase" to "uriTemplate" (c888b95), closes #404
  • MongoMemoryReplSet: add basic "createAuth" support (6c118a9)
  • MongoMemoryReplSet: allow re-use of instances & dbPath (3d64705)
  • MongoMemoryReplSet: getUri: allow executing while state is "init" (b3ebac2)
  • MongoMemoryServer: add (protected) function "getNewPort" (662a69b)
  • MongoMemoryServer: add ability to automatically create auth (d5bf77a), closes #299
  • MongoMemoryServer: add ability to force same port on restart (18c77e2)
  • MongoMemoryServer: add function "getStartOptions" (f057ea7)
  • MongoMemoryServer: allow re-use of instances & dbPath (e2ae879)

Fixes

  • MongoInstance: kill: ensure only error ignored is the actual error to be ignored (5e377fa)
  • MongoInstance: run: reset all booleans on (188d333)
  • MongoMemoryReplSet: _waitForPrimary: check if instance is already primary (8f65696)
  • MongoMemoryReplSet: initAllServers: execute "stateChange" with "init" (28bcf5b)
  • utils: killProcess: check if the childProcess PID is still alive (96c30de)

Refactor

  • MongoMemoryReplSet: _initReplSet: reassign "adminDb" (19ae688)
  • MongoMemoryServer: ensureInstance: move "return instanceInfo" into case "running" (4214aa5)
  • MongoMemoryServer: remove destructuring of "promises" (a828506)
  • MongoMemoryServer: start: check "state" instead of "instanceInfo" (4fd1ede)
  • remove file "types.ts" (23cdc65), closes #406
  • rename "-test.ts" to ".test.ts" (deb0098)
  • rename file "db_util" to "utils" (f3df9c8)
  • rename file "postinstall-helper" to "postinstallHelper" (fdf2d09)
  • rename file "resolve-config" to "resolveConfig" (7ee646c)
  • db_util: uriTemplate: change "query" to be an string-array (8dffa64)
  • unify interface names (remove "T") (78a78cd), closes #395
  • MongoBinary: change "cache" to be an Map (74d30a0), closes #374

Style

  • MongoBinaryDownload: rename interface "DownloadProgress" to "MongoBinaryDownloadProgress" (2bad87c)
  • MongoInstance: add TODO comments (5e320ca)
  • MongoMemoryReplSet: _initReplSet: change logs to be more clear (561c883)
  • MongoMemoryReplSet: _initReplSet: remove "await" from non-Promise functions (846f969)

Don't miss a new mongodb-memory-server release

NewReleases is sending notifications on new releases.