Skip to content

Releases: typegoose/mongodb-memory-server

v9.0.0-beta.1

15 Aug 12:42
Compare
Choose a tag to compare
v9.0.0-beta.1 Pre-release
Pre-release

9.0.0-beta.1 (2023-08-15)

⚠ BREAKING CHANGES

  • 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)
  • remove support for ".cleanup(boolean)" (9bff82e)
  • remove support for ".stop(boolean)" (f925498)
  • set lowest supported nodejs version to 14.0 (edc3a31)
  • util: add module "getport" (4d139a2)

Fixes

  • 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: 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 #663

Dependencies

  • @google/semantic-release-replace-plugin: replace with semantic-release-replace-plugin (245a70f)
  • @types/debug: upgrade to version 4.1.8 (fdaa353)
  • @types/jest: upgrade to version 29.5.2 (6111f36)
  • @types/node: upgrade to version 14.18.45 (f93397b)
  • @types/semver: upgrade to version 7.5.0 (45c6fbc)
  • @types/uuid: upgrade to version 9.0.0 (1a11854)
  • @typescript-eslint/*: upgrade to version 5.50.0 (6db8e1e)
  • @typescript-eslint/*: up...
Read more

v8.15.0

15 Aug 11:06
Compare
Choose a tag to compare

8.15.0 (2023-08-15)

Features

  • MongoBinaryDownloadUrl: add ability to overwrite distro used (826c72e), closes #753

Dependencies

  • @typescript-eslint/*: upgrade to version 5.61.0 (121f0fc)
  • eslint: upgrade to version 8.44.0 (f7487b1)
  • semver: upgrade to version 7.5.3 (3498c33)
  • tslib: upgrade to version 2.6.0 (2cbd3dc)

Style

  • MongoBinaryDownload: fix comment (615b681)

v8.14.0

04 Aug 17:47
Compare
Choose a tag to compare

8.14.0 (2023-08-04)

Features

  • update default-binary 5.0.19 (296b2f6)
  • MongoBinaryDownload: add option to configure max amount of redirects (0d81c81)
  • MongoBinaryDownload: follow redirects (9ec4aee), closes #785

Dependencies

  • eslint: upgrade to version 8.46.0 (713b1a5)
  • eslint-config-prettier: upgrade to version 8.10.0 (097077f)
  • semver: upgrade to version 7.5.4 (f7c4837)
  • tslib: upgrade to version 2.6.1 (db16d8f)

v8.14.0-beta.1

07 Jul 20:09
Compare
Choose a tag to compare
v8.14.0-beta.1 Pre-release
Pre-release

8.14.0-beta.1 (2023-07-07)

Features

  • MongoBinaryDownloadUrl: add ability to overwrite distro used (826c72e), closes #753

Dependencies

  • @typescript-eslint/*: upgrade to version 5.61.0 (121f0fc)
  • eslint: upgrade to version 8.44.0 (f7487b1)
  • semver: upgrade to version 7.5.3 (3498c33)
  • tslib: upgrade to version 2.6.0 (2cbd3dc)

Style

  • MongoBinaryDownload: fix comment (615b681)

v8.13.0

09 Jun 12:39
Compare
Choose a tag to compare

8.13.0 (2023-06-09)

Features

  • errors: add "DownloadError" (29cfe8c)
  • MongoBinaryDownload: make use of "DownloadError" (88a7cce)
  • update binary 4.2 to 4.2.23 (49816ee)
  • update binary 4.4 to 4.4.22 (81acdfe)
  • update default-binary 5.0.18 (ba37680)

Dependencies

  • @types/debug: upgrade to version 4.1.8 (93e7656)
  • @types/semver: upgrade to version 7.5.0 (3ca7b73)
  • @types/uuid: upgrade to version 9.0.2 (53062cf)
  • @typescript-eslint/*: upgrade to version 5.59.2 (ddecab4)
  • @typescript-eslint/*: upgrade to version 5.59.9 (9e06e33)
  • eslint: upgrade to version 8.40.0 (a81a1e1)
  • eslint: upgrade to version 8.42.0 (e9bc6e6)
  • eslint-config-prettier: upgrade to version 8.8.0 (aa54d30)
  • mongodb: upgrade to version 4.16.0 (b3932d0)
  • prettier: upgrade to version 2.8.8 (8d87060)
  • semver: upgrade to version 7.5.0 (ea87f23)
  • semver: upgrade to version 7.5.1 (2856cfd)
  • tslib: upgrade to version 2.5.3 (f297cb2)

v8.12.2

04 Apr 13:40
Compare
Choose a tag to compare

8.12.2 (2023-04-04)

Style

Fixes

  • MongoBinaryDownloadUrl: update mapping for arch to "ubuntu2204" (20dab94)

v8.12.1

17 Mar 12:08
Compare
Choose a tag to compare

8.12.1 (2023-03-17)

Fixes

  • errors: add helper message if exit code is large on windows for "UnexpectedCloseError" (d066643), closes #748
  • MongoInstance::closeHandler: actually dont error with code 12 on windows (0668c35)

v8.12.0

08 Mar 15:17
Compare
Choose a tag to compare

8.12.0 (2023-03-08)

Features

  • MongoMemoryReplSet: remove usage of "tmp" package (3690a00)
  • MongoMemoryServer: remove usage of "tmp" package (6911daf)
  • utils: add function "createTmpDir" and "removeDir" (62d7876)

Dependencies

  • @types/uuid: upgrade to version 9.0.1 (5fb105c)
  • @typescript-eslint/*: upgrade to version 5.54.1 (db3d2b5)
  • eslint: upgrade to version 8.35.0 (665f90f)
  • eslint-config-prettier: upgrade to version 8.7.0 (7260324)
  • prettier: upgrade to version 2.8.4 (07196a9)
  • tslib: upgrade to version 2.5.0 (26166e7)
  • remove "tmp" and "@types/tmp" (5e718ee)

Refactor

  • MongoMemoryServer::cleanup: use "utils.removeDir" instead of custom (2f1f2e8)

v8.11.5

21 Feb 13:10
Compare
Choose a tag to compare

8.11.5 (2023-02-21)

Style

  • resolveConfig: dont enable debug mode twice (6ae0c73), closes #745

Fixes

  • MongoBinaryDownloadUrl: add support for Oracle Linux (75fa22e), closes #746

v8.11.4

23 Jan 18:56
Compare
Choose a tag to compare

8.11.4 (2023-01-23)

Fixes

  • getos: check if given os is also not UNKNOWN and try different formats (66541de), closes #735
  • MongoBinaryDownloadUrl::getUbuntuVersionString: change "os" for elementary to be optional (0e90784), closes #735