Skip to content

Releases: typegoose/mongodb-memory-server

v9.1.2

12 Dec 17:50
Compare
Choose a tag to compare

9.1.2 (2023-12-12)

Fixes

  • postinstallHelper: set "PREFER_GLOBAL_PATH" if "local" (9f523de), closes #833

v9.1.1

16 Nov 17:07
Compare
Choose a tag to compare

9.1.1 (2023-11-16)

Reverts

  • Revert "chore(website): upgrade docusaurus version to 3.0.0" (c8f628f)
  • Revert "chore(website/yarn.lock): lockfile maintenance" (96ede53)

v9.1.0

16 Nov 16:55
Compare
Choose a tag to compare

9.1.0 (2023-11-16)

Features

  • getport: add experimental "EXP_NET0LISTEN" option (631ec28), closes #827
  • MongoBinaryDownloadUrl: re-work rhel to support 9.0 (c582829), closes #821
  • MongoDownloadUrl: add support for amazon linux 2023 (#826) (ec1ea68)

Fixes

  • getport: ignore "ports.has()" if EXP_NET0LISTEN and port == 0 (682dac6)
  • MongoInstance::stop: should not wait too long to open a connection to ReplSet (#813) (668b42a)

Style

  • getport: add log whether "EXP_NET0LISTEN" is active or not (b309a18)
  • MongoMemoryServer: log instance started log after assigning port (4a5eacc)

Refactor

  • getport: use "node:net" over "node:http" (c065147)
  • MongoMemoryServer: try to acquire port later (f0385d6)

Dependencies

  • mongodb: upgrade to version 5.9.1 (d328d65)

Dev-Dependencies

  • @types/debug: upgrade to version 4.1.10 (7da745a)
  • @types/debug: upgrade to version 4.1.12 (0aa128f)
  • @types/follow-redirects: upgrade to version (b65e643)
  • @types/follow-redirects: upgrade to version 1.14.4 (d651684)
  • @types/jest: upgrade to version 29.5.6 (b8acbb3)
  • @types/jest: upgrade to version 29.5.8 (f258247)
  • @types/semver: upgrade to version 7.5.4 (9d430b9)
  • @types/semver: upgrade to version 7.5.5 (c6e3953)
  • @types/tar-stream: upgrade to version 3.1.2 (5ca4ee3)
  • @types/tar-stream: upgrade to version 3.1.3 (ceff457)
  • @types/yauzl: upgrade to version 2.10.2 (31301dc)
  • @types/yauzl: upgrade to version 2.10.3 (6832d85)
  • @types/yazl: upgrade to version 2.4.4 (921aec1)
  • @types/yazl: upgrade to version 2.4.5 (a3062ad)
  • eslint-plugin-prettier: upgrade to version 5.0.1 (0885a5f)
  • eslint: upgrade to version 8.52.0 (e2c267d)
  • eslint: upgrade to version 8.53.0 (5eb0bbe)
  • prettier: upgrade to version 3.1.0 (3c53d48)

v9.1.0-beta.5

13 Nov 15:17
Compare
Choose a tag to compare
v9.1.0-beta.5 Pre-release
Pre-release

9.1.0-beta.5 (2023-11-13)

Fixes

  • getport: ignore "ports.has()" if EXP_NET0LISTEN and port == 0 (682dac6)

Dev-Dependencies

  • @types/debug: upgrade to version 4.1.12 (0aa128f)
  • @types/follow-redirects: upgrade to version 1.14.4 (d651684)
  • @types/jest: upgrade to version 29.5.8 (f258247)
  • @types/semver: upgrade to version 7.5.5 (c6e3953)
  • @types/tar-stream: upgrade to version 3.1.3 (ceff457)
  • @types/yauzl: upgrade to version 2.10.3 (6832d85)
  • @types/yazl: upgrade to version 2.4.5 (a3062ad)
  • eslint: upgrade to version 8.53.0 (5eb0bbe)
  • prettier: upgrade to version 3.1.0 (3c53d48)

v9.1.0-beta.4

13 Nov 13:16
Compare
Choose a tag to compare
v9.1.0-beta.4 Pre-release
Pre-release

9.1.0-beta.4 (2023-11-13)

Fixes

  • MongoInstance::stop: should not wait too long to open a connection to ReplSet (#813) (668b42a)

v9.1.0-beta.3

09 Nov 18:03
Compare
Choose a tag to compare
v9.1.0-beta.3 Pre-release
Pre-release

9.1.0-beta.3 (2023-11-09)

Features

  • getport: add experimental "EXP_NET0LISTEN" option (631ec28), closes #827

Refactor

  • getport: use "node:net" over "node:http" (c065147)
  • MongoMemoryServer: try to acquire port later (f0385d6)

v9.1.0-beta.2

04 Nov 17:20
Compare
Choose a tag to compare
v9.1.0-beta.2 Pre-release
Pre-release

9.1.0-beta.2 (2023-11-04)

Features

  • MongoDownloadUrl: add support for amazon linux 2023 (#826) (ec1ea68)

v9.1.0-beta.1

26 Oct 13:32
Compare
Choose a tag to compare
v9.1.0-beta.1 Pre-release
Pre-release

9.1.0-beta.1 (2023-10-26)

Features

  • MongoBinaryDownloadUrl: re-work rhel to support 9.0 (c582829), closes #821

Style

  • MongoMemoryServer: log instance started log after assigning port (4a5eacc)

Dependencies

  • mongodb: upgrade to version 5.9.1 (d328d65)

Dev-Dependencies

  • @types/debug: upgrade to version 4.1.10 (7da745a)
  • @types/follow-redirects: upgrade to version (b65e643)
  • @types/jest: upgrade to version 29.5.6 (b8acbb3)
  • @types/semver: upgrade to version 7.5.4 (9d430b9)
  • @types/tar-stream: upgrade to version 3.1.2 (5ca4ee3)
  • @types/yauzl: upgrade to version 2.10.2 (31301dc)
  • @types/yazl: upgrade to version 2.4.4 (921aec1)
  • eslint-plugin-prettier: upgrade to version 5.0.1 (0885a5f)
  • eslint: upgrade to version 8.52.0 (e2c267d)

v9.0.1

12 Oct 17:53
Compare
Choose a tag to compare

9.0.1 (2023-10-12)

Fixes

  • kill: should not try to open a connection to a not running ReplSet (#811) (fefa869)

Style

  • errors: typo "Could not corece VERSION" (#808) (c1f2333)

v9.0.0

06 Oct 18:18
Compare
Choose a tag to compare

9.0.0 (2023-10-06)

⚠ BREAKING CHANGES

  • resolveConfig: Default binary version is now "6.0.9"

  • DryMongoBinary: "legacyHomeCache" has been renamed to "homeCache" when using "DryMongoBinary" directly

  • MongoMemoryReplSet: ReplSet option "auth" can now not be a boolean anymore, use as a object instead

  • Authentication now is only created when "{ enable: true }" is given
    also "disable" has been removed

  • MongoBinaryDownload: aliases for ".binaryOpts.*" have been removed, use ".binaryOpts.option" instead

  • ".cleanup(boolean)" is now no longer supported, use object options instead

  • ".stop(boolean)" is now no longer supported, use object options instead

  • tsconfig: potentially breaking change upgrading "target" to "es2020" in tsconfig

  • Lowest supported NodeJS version is now 14.0

  • MongoBinaryDownloadUrl::translateArch: "ia32" ("i386" / "i686") are now unsupported by mongodb-memory-server

  • tsconfig: potentially breaking change upgrading "target" to "es2019" in tsconfig

  • MongoInstance::checkErrorInLine: potentially breaking change not removing ", terminating" from error

  • MongoBinaryDownloadUrl::translatePlatform: potentially breaking change removing "sunos" from translation

  • tsconfig: update "target" to "es2019" (df41101)

  • tsconfig: update "target" to "es2020" (ff20382)

Features

  • change authentication to only happen when "enable" is "true" (66a5ad3)
  • DryMongoBinary: rename "legacyHomeCache" to "homeCache" (eb7b691)
  • enable "MD5_CHECK" by default (26cc408)
  • merge "EnsureInstanceError" into "InstanceInfoError" (6962cbe)
  • merge "NoSystemBinaryFoundError" into "BinaryNotFoundError" (d4e4d63)
  • MongoBinaryDownload: remove aliases for "binaryOpts" (4bb3420)
  • MongoBinaryDownloadUrl::getUbuntuVersionString: handle falling back to default version better (8bf3d88)
  • MongoBinaryDownloadUrl::translateArch: remove ia32 translation and support (a827a28), closes #638
  • MongoBinaryDownloadUrl::translatePlatform: remove translation of "elementary OS" (ca75ef5)
  • MongoBinaryDownloadUrl::translatePlatform: remove translation of "sunos" (31060b2), closes #661
  • MongoBinaryDownloadUrl: add ability to overwrite distro used (f2b1c62), closes #753
  • MongoBinaryDownloadUrl: remove linux fallback binary (fe76b56), closes #761
  • MongoInstance::checkErrorInLine: dont remove ", terminating" from error (793aa0d), closes #664
  • MongoInstance::start: error when already having a "mongodProcess" defined (cb80073), closes #662
  • MongoInstance: remove storage engine "devnull" (6e38f99)
  • MongoInstance: remove storage engine "mmapv1" (f689bdd)
  • MongoMemoryReplSet: change "auth" to not be able to be a boolean anymore (0c6b574)
  • MongoMemoryServer: change "instance.auth" to not be manually set-able (840584b)
  • MongoMemoryServer: use storage engine "wiredTiger" if version is 7.0.0 or higher (952609b), closes #742
  • remove support for ".cleanup(boolean)" (9bff82e)
  • remove support for ".stop(boolean)" (f925498)
  • resolveConfig: update default binary version to 6.x (3f5d421)
  • set lowest supported nodejs version to 14.0 (edc3a31)
  • util: add module "getport" (4d139a2)

Fixes

  • DryMongoBinary::generateOptions: actually use correct type for parameters (f099597)
  • getport: only run ".unref" if it exists (73c0c2e), closes #801
  • MongoBinaryDownload::makeMD5check: actually hash the content of the file, not the path (c71dbf3)
  • MongoBinaryDownload: change "_downloadingUrl" to be protected (67ae260)
  • MongoInstance::checkErrorinLine: add more info to "aborting after" error (12fca33)
  • MongoInstance::stop: handle "stop" being called multiple times while running (80e6cd8), closes #802
  • MongoInstance: change to call ".unref" on the mongodb process (59ec785), closes #696
  • MongoMemoryServer: add log for when "instance.auth" is "false" but "opts.auth" is also defined (7463fdc)
  • remove usage of "md5-file" (8096884)
  • remove usage of "uuid" package (e30209a)
  • replace "get-port" usage with "getport" module (9bffeea)

Style

  • apply prettier 3.0.1 formatting (815a585)
  • DryMongoBinary: remove todo comment (08353b4)
  • MongoBinaryDownload: fix comment (49eb8fc)
  • MongoBinaryDownload: remove unused comment (ba26346)
  • MongoBinaryDownload: rename error variables from "e" to "err" (4bc2b22)
  • MongoBinaryDownloadUrl: update tsdoc comments (2c9c6fe)
  • MongoMemoryReplSet: rename error variables from "e" to "err" (99d556d)
  • MongoMemoryServer: remove todo comment (ea93afb)

Refactor

  • MongoMemoryServer::CreateUserMongoDB: update "roles" to use from mongodb directly (274499a), closes [#6...
Read more