Releases: typegoose/mongodb-memory-server
Releases · typegoose/mongodb-memory-server
v7.3.0
v7.2.1
v7.2.0
v7.1.0
v7.0.0
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 defaultgetUri'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...
v7.0.0-beta.52
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
7.0.0-beta.51 (2021-06-28)
Fixes
v7.0.0-beta.50
7.0.0-beta.50 (2021-06-28)
Fixes
v7.0.0-beta.49
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
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)