Skip to content

Releases: typegoose/mongodb-memory-server

v7.3.0

19 Jul 10:45

Choose a tag to compare

7.3.0 (2021-07-19)

Features

  • MongoMemoryReplSet: add replicaMemberConfig to replica instance (#508) (3752c72)

v7.2.1

15 Jul 11:35

Choose a tag to compare

7.2.1 (2021-07-15)

Fixes

  • utils: statPath: do not throw on EACCES (#506) (d07eb3b)

v7.2.0

06 Jul 11:38

Choose a tag to compare

7.2.0 (2021-07-06)

Features

  • MongoMemoryServer: getUri: throw StateError instead of assertionError (2e632ab), closes #501 #497 #458

Fixes

  • errors: StateError: add link to migration guide (d1be861)

v7.1.0

05 Jul 15:46

Choose a tag to compare

7.1.0 (2021-07-05)

Features

  • resolveConfig: replace "find-package-json" with "new-find-package-json" (90b6d1b), closes #495 #494

v7.0.0

01 Jul 11:22

Choose a tag to compare

7.0.0 (2021-07-01)

⚠ BREAKING CHANGES

  • Lowest supported NodeJS version is now 12.22
  • getUri's parameter got changed to use ""(empty) by default
  • getUri's parameter got changed to what the actual definition is, and uses "admin" by default
  • MongoMemoryServer: "MongoMemoryServer" now implements "ManagerAdvanced"
  • MongoInstance: "MongoInstance" now implements "ManagerBase"
  • MongoInstance: renaming "MongoInstance.childProcess" to "MongoInstance.mongodProcess" can break some api's
  • utils: Default-export from "utils" got removed, import it now with "{ generateDbName }"
  • MongoInstance: MongoInstance's functions got renamed to make more clear what they do
    (create,start,stop - instead of run,run,kill)
  • getos: All "USE*" and "SKIP*" Environment Variables got removed in favor of an better handling
  • MongoInstance: remove function "MongoInstance.getPid", replace with "MongoInstance.childProcess?.pid"
  • MongoBinary: remove function "MongoBinary.getCachePath", replace with "MongoBinary.cache.get"
  • MongoBinaryDownload: remove "MongoBinaryDownload.locationExists", replace with "utils.pathExists"
  • MongoBinary: remove value "LATEST_VERSION" in favor of using resolveConfig Value "VERSION"
  • resolveConfig: removing alias "reInitializePackageJson", replace with "findPackageJson"
  • 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
  • MongoMemoryReplSet: change "getUri" to be sync (dosnt wait until running anymore)
  • MongoMemoryReplSet: remove option "oplogSize", replace with ".replSetOpts.args.push('--oplogSize', '1')"
  • MongoMemoryReplSet: remove function "getDbName", replace with ".opts.replSet.dbName"
  • MongoMemoryReplSet: removing function "getConnectionString" could break some code
  • MongoMemoryReplSet: removing "async" / modifing return type "Promise" can break code
  • 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"
  • MongoInstance: changing "null" to "undefined" can break some code
  • MongoInstance: throwing an error if 2 values are now undefined/null can break some code
  • MongoInstance: removing the possibility to overwrite 2 functions this can break some use-cases
  • MongoInstance: removing an function can break some use-cases
  • MongoMemoryReplSet: "_waitForPrimary" now uses events instead of calling function "waitPrimaryReady"
  • MongoInstance: because of changing values to "required" this can break some use-cases
  • MongoInstance: removing the "dynamic" part can break some code with custom debug-logging
  • MongoInstance: because of the rename it can break some use-cases

Features

  • set lowest supported nodejs version to 12.22 (7d6d018)
  • db_util: add function "assertion" (c059500)
  • db_util: add function "ensureAsync" (971b02d)
  • db_util: rename function "getUriBase" to "uriTemplate" (c888b95), closes #404
  • DryMongoBinary: add new "DryMongoBinary" (3841312)
  • DryMongoBinary: add new function "generateOptions" (2d89ba1)
  • DryMongoBinary: combineBinaryName: remove unused parameter (edee483)
  • errors: add error "StateError" (e582407)
  • errors: add error "UnknownArchitecture" (e2c39d6)
  • errors: add error "UnknownLockfileStatus" (186df5b)
  • errors: add error "UnknownPlatform" (747d893)
  • getos: remove all "USE*" and "SKIP*" environment variables (e389c3e)
  • getos: simplify reading an release file (e5e6521)
  • lockfile: add custom lockfile implementation (e6a2237)
  • lockfile: replace custom errors with "UnknownLockfileStatus" (5ea5662)
  • MongoBinary: add option to disable automatic download (2c0639b)
  • MongoBinary: implement usage of "DryMongoBinary" (4a13cea)
  • MongoBinary: remove function "getCachePath" (af164c1)
  • MongoBinary: remove value "LATEST_VERSION" (22c6dfd)
  • MongoBinaryDownload: add option to use "http" over "https" (b178a97), closes #172
  • MongoBinaryDownload: remove function "locationExists" (0ba071a)
  • MongoBinaryDownload: startDownload: add check that the downloadDir has sufficient permissions (310cdae)
  • MongoBinaryDownloadUrl: add support for "arch/manjaro" (ubuntu workaround) (21449d6)
  • MongoBinaryDownloadUrl: add support for ubuntu-arm64 (5733a0f), closes #443
  • MongoBinaryDownloadUrl: allow overwrite of archiveName (c19d216), closes #295
  • MongoBinaryDownloadUrl: refactor getUbuntuVersionString (fc08c25)
  • MongoBinaryDownloadUrl: remove function "getMintVersionString" (d66e28a)
  • MongoBinaryDownloadUrl: replace custom errors with "UnknownArchitecture" (6755554)
  • MongoBinaryDownloadUrl: replace custom errors with "UnknownPlatform" (86aac73)
  • MongoBinaryDownloadUrl: support more arm64 (aarch64) versions (8b5434c), closes #482
  • MongoInstance: add value "isReplSet" (3ba31e2)
  • MongoInstance: change options to be readonly ([e599372](e599372...
Read more

v7.0.0-beta.52

01 Jul 10:29

Choose a tag to compare

v7.0.0-beta.52 Pre-release
Pre-release

7.0.0-beta.52 (2021-07-01)

Dependencies

  • @types/debug: upgrade to 4.1.6 (dd112af)
  • @types/mongodb: upgrade to 3.6.19 (a539022)
  • @types/node: change from "^" to "~" (000d601)
  • @typescript-eslint/*: upgrade to 4.28.1 (87e98e6)
  • husky: upgrade to 7.0.0 (c58a9ec)
  • jest: upgrade to 27.0.6 (7a6e051)
  • prettier: upgrade to 2.3.2 (21efc3d)
  • typescript: upgrade to 4.3.5 (b778965)

v7.0.0-beta.51

28 Jun 15:41

Choose a tag to compare

v7.0.0-beta.51 Pre-release
Pre-release

7.0.0-beta.51 (2021-06-28)

Fixes

  • resolveConfig: move executing "findPackageJson" after enabling debug (7e4c8dc)
  • resolveConfig: resolveConfig: always convert any value to string (27f1f5c)

v7.0.0-beta.50

28 Jun 12:51

Choose a tag to compare

v7.0.0-beta.50 Pre-release
Pre-release

7.0.0-beta.50 (2021-06-28)

Fixes

  • DryMongoBinary: generatePaths: this function should now not hit the filesystem anymore (8aefba5)
  • resolveConfig: envToBool: return "false" if input is somehow not an string (6d78971)

v7.0.0-beta.49

25 Jun 12:20

Choose a tag to compare

v7.0.0-beta.49 Pre-release
Pre-release

7.0.0-beta.49 (2021-06-25)

⚠ BREAKING CHANGES

  • Lowest supported NodeJS version is now 12.22

Features

  • set lowest supported nodejs version to 12.22 (7d6d018)

Dependencies

  • lint-staged: upgrade to 11.0.0 (3429e69)
  • semantic-release: upgrade to 17.4.4 (and related) (16ccef1)

Fixes

  • change default version to "4.0.25" (ffe2875)

v7.0.0-beta.48

25 Jun 11:21

Choose a tag to compare

v7.0.0-beta.48 Pre-release
Pre-release

7.0.0-beta.48 (2021-06-25)

Reverts

  • Revert "dependencies(semantic-release): upgrade to 17.4.4 (and related)" (9825c63)

Fixes

  • dependencies: allow patch versions (237177b), closes #433
  • MongoBinaryDownloadUrl: add support for ubuntu-arm64 (c432e24), closes #443
  • MongoBinaryDownloadUrl: handle Debian "testing" release (#430) (e4ffecf)
  • MongoBinaryDownloadUrl: use debian92 for versions <4.2.0 (7bb5097), closes #448

Dependencies

  • @types/find-package-json: upgrade to 1.2.1 (8103713)
  • @types/jest: upgrade to 26.0.23 (f804224)
  • @types/md5-file: remove stub types package (ad8aec4)
  • @types/mongodb: upgrade to 3.6.18 (2adc43e)
  • @types/semver: upgrade to 7.3.6 (754c565)
  • commitlint: upgrade to 12.1.4 (and related) (935e460)
  • conventional-changelog-conventionalcommits: upgrade to 4.6.0 (d8a22a4)
  • doctoc: upgrade to 2.0.1 (b40dfdc)
  • eslint: upgrade to 7.29.0 (and related) (e118e7d)
  • husky: upgrade to 6.0.0 (3fdf792)
  • jest: upgrade to 27.0.5 (and related) (e7f43a3)
  • lerna: upgrade to 4.0.0 (9176e50)
  • mongodb: upgrade to 3.6.9 (bfc4b5e)
  • prettier: upgrade to 2.3.1 (abff587)
  • semver: upgrade to 7.3.5 (b4d30a4)
  • tslib: upgrade to 2.3.0 (2dccb71)
  • typescript: upgrade to 4.3.4 (efebaa8)