416 KiB
11.2.0 (2026-05-28)
Dependencies
11.1.0 (2026-04-29)
Features
- resolveConfig: update default binary version to 8.2.6 (3876fad)
- update default-4.4-binary to 4.4.30 (119ef80)
Dependencies
- follow-redirects: upgrade to 1.16.0 (aed865f)
- mongodb: upgrade to 7.2.0 (b0a8b90)
- tar-stream: upgrade to 3.1.8 (026aa7f)
- yauzl: upgrade to 3.3.0 (ef4f38e)
Dev-Dependencies
- @types/debug: upgrade to 4.1.13 (f4d5be2)
- @types/yazl: upgrade to 3.3.1 (c329123)
- commitlint: upgrade to 20.5.2 (7640c9f)
- doctoc: upgrade to 2.4.1 (4443034)
- eslint-plugin-prettier: upgrade to 5.5.5 (f9889c4)
- eslint: upgrade to 10.2.1 (7e40e8c)
- jest: upgrade to 30.3.0 (5f7a6b2)
- lint-staged: upgrade to 16.4.0 (edd1f2d)
- prettier: upgrade to 3.8.3 (95a76d7)
- rimraf: upgrade to 6.1.3 (fddab3d)
- ts-jest: upgrade to 29.4.9 (7ed5a0f)
- typedoc: upgrade to 0.28.19 (acca60d)
11.0.1 (2025-12-23)
Fixes
11.0.0 (2025-12-15)
⚠ BREAKING CHANGES
-
resolveConfig: Default mongodb binary version is now 8.2.x
-
tsconfig: potentially breaking change upgrading "target" to "es2023" in tsconfig
-
MongoBinaryDownloadUrl: Removed support for mongodb version below 4.2.0
-
Remove "-global-4.0" package as it is now unsupported by the mongodb driver
-
Lowest supported NodeJS version is now 20.19.0
-
tsconfig: update "target" to "es2023" (391da3d)
Features
- MongoBinaryDownloadUrl: drop support for mongod versions below 4.2.0 (c4e6cf1), closes #894
- remove "mongodb-memory-server-global-4.0" (9cf7211)
- resolveConfig: enable "RESUME_DOWNLOAD" by default (5197f69)
- resolveConfig: update default binary version to 8.2.1 (fefb155)
- set lowest supported nodejs version to 20.19.0 (5c31896)
Fixes
- resolveConfig: correct the mapping for "RESUME_DOWNLOAD" (6ae3ebf)
Style
- migrate to eslint flat config (5a0e75c)
- MongoBinaryDownload::attemptDownload: remove duplicated argument (3162cc6)
- MongoBinaryDownload: document more options (ae9784c)
Dependencies
- mongodb: upgrade to 7.0.0 (8430483)
Dev-Dependencies
- @types/jest: upgrade to 30.0.0 (0bd9079)
- @types/node: upgrade to version 24.10.0 (a42df53)
- @typescript-eslint/*: upgrade to 7.18.0 (b6c462c)
- @typescript-eslint/*: upgrade to 8.31.1 (945c0ed)
- commitlint: upgrade to 20.1.0 (097237c)
- commitlint: upgrade to 20.2.0 (c10f800)
- cross-env: drop seemingly unused dependency (c1d0cdb)
- eslint-config-prettier: upgrade to 10.1.2 (0114ef2)
- eslint-config-prettier: upgrade to 10.1.8 (a103e6b)
- eslint: upgrade to 9.25.1 (c8f5b26)
- eslint: upgrade to 9.39.1 (e496a19)
- eslint: upgrade to 9.39.2 (63c9577)
- husky: upgrade to 9.1.7 (ce6b910)
- jest: upgrade to 30.2.0 (79a876a)
- lint-staged: upgrade to 15.5.1 (e2025ec)
- lint-staged: upgrade to 16.2.7 (1ea41e2)
- rimraf: upgrade to 6.1.2 (5d02ca1)
- typedoc: upgrade to 0.28.15 (0df2ded)
- typescript-eslint: upgrade to 8.48.1 (4aa9322)
- typescript-eslint: upgrade to 8.49.0 (5857d3d)
- typescript: upgrade to version 5.9.3 (0acffcd)
11.0.0-beta.4 (2025-12-15)
Features
- resolveConfig: enable "RESUME_DOWNLOAD" by default (5197f69)
Style
- MongoBinaryDownload::attemptDownload: remove duplicated argument (3162cc6)
- MongoBinaryDownload: document more options (ae9784c)
Dev-Dependencies
- commitlint: upgrade to 20.2.0 (c10f800)
- eslint-config-prettier: upgrade to 10.1.8 (a103e6b)
- eslint: upgrade to 9.39.2 (63c9577)
- typescript-eslint: upgrade to 8.49.0 (5857d3d)
11.0.0-beta.3 (2025-12-04)
Fixes
- resolveConfig: correct the mapping for "RESUME_DOWNLOAD" (6ae3ebf)
11.0.0-beta.2 (2025-12-03)
⚠ BREAKING CHANGES
- resolveConfig: Default mongodb binary version is now 8.2.x
Features
- resolveConfig: update default binary version to 8.2.1 (fefb155)
11.0.0-beta.1 (2025-12-03)
⚠ BREAKING CHANGES
-
tsconfig: potentially breaking change upgrading "target" to "es2023" in tsconfig
-
MongoBinaryDownloadUrl: Removed support for mongodb version below 4.2.0
-
Remove "-global-4.0" package as it is now unsupported by the mongodb driver
-
Lowest supported NodeJS version is now 20.19.0
-
tsconfig: update "target" to "es2023" (391da3d)
Features
- MongoBinaryDownloadUrl: drop support for mongod versions below 4.2.0 (c4e6cf1), closes #894
- remove "mongodb-memory-server-global-4.0" (9cf7211)
- set lowest supported nodejs version to 20.19.0 (5c31896)
Style
- migrate to eslint flat config (5a0e75c)
Dependencies
- mongodb: upgrade to 7.0.0 (8430483)
Dev-Dependencies
- @types/jest: upgrade to 30.0.0 (0bd9079)
- @types/node: upgrade to version 24.10.0 (a42df53)
- @typescript-eslint/*: upgrade to 7.18.0 (b6c462c)
- @typescript-eslint/*: upgrade to 8.31.1 (945c0ed)
- commitlint: upgrade to 20.1.0 (097237c)
- cross-env: drop seemingly unused dependency (c1d0cdb)
- eslint-config-prettier: upgrade to 10.1.2 (0114ef2)
- eslint: upgrade to 9.25.1 (c8f5b26)
- eslint: upgrade to 9.39.1 (e496a19)
- husky: upgrade to 9.1.7 (ce6b910)
- jest: upgrade to 30.2.0 (79a876a)
- lint-staged: upgrade to 15.5.1 (e2025ec)
- lint-staged: upgrade to 16.2.7 (1ea41e2)
- rimraf: upgrade to 6.1.2 (5d02ca1)
- typedoc: upgrade to 0.28.15 (0df2ded)
- typescript-eslint: upgrade to 8.48.1 (4aa9322)
- typescript: upgrade to version 5.9.3 (0acffcd)
10.4.1 (2025-12-04)
Fixes
- resolveConfig: correct the mapping for "RESUME_DOWNLOAD" (c0d1b4d)
10.4.0 (2025-12-03)
Features
- resolveConfig: stabilize "RESUME_DOWNLOAD" option (3fa975f)
Dev-Dependencies
10.3.0 (2025-10-31)
Features
- MongoBinaryDownloadUrl::getSuseVersionString: add fallback version (45311e7), closes #948
- resolveConfig: update default binary version to 7.0.24 (868e534)
- update default-4.2-binary to 4.2.25 (06e0d2a)
- update default-4.4-binary to 4.4.29 (f118364)
Fixes
- MongoBinaryDownloadUrl::getSuseVersionString: add known compat issue for suse 12 & >=8.0.0 (97675be)
- MongoBinaryDownloadUrl::getSuseVersionString: add known compat issue for suse 13 & 14 (f6d22b7)
- MongoInstance::stop: silence "ECONNRESET" errors on shutdown (e48f2aa), closes #900 #946
Dependencies
- debug: upgrade to version 4.4.3 (591a62f)
- follow-redirects: upgrade to version 1.15.11 (d649b1d)
- semver: upgrade to version 7.7.3 (67c6cb0)
Dev-Dependencies
- @types/semver: upgrade to version 7.7.1 (4b75634)
- eslint-config-prettier: upgrade to version 9.1.2 (8c92905)
- eslint-plugin-prettier: upgrade to version 5.5.4 (ca60b90)
- prettier: upgrade to version 3.6.2 (c1cc12d)
- ts-jest: upgrade to version 29.4.5 (26a4d8b)
10.3.0-beta.1 (2025-10-29)
Features
- MongoBinaryDownloadUrl::getSuseVersionString: add fallback version (45311e7), closes #948
- resolveConfig: update default binary version to 7.0.24 (868e534)
- update default-4.2-binary to 4.2.25 (06e0d2a)
- update default-4.4-binary to 4.4.29 (f118364)
Fixes
- MongoBinaryDownloadUrl::getSuseVersionString: add known compat issue for suse 12 & >=8.0.0 (97675be)
- MongoBinaryDownloadUrl::getSuseVersionString: add known compat issue for suse 13 & 14 (f6d22b7)
- MongoInstance::stop: silence "ECONNRESET" errors on shutdown (e48f2aa), closes #900 #946
Dependencies
- debug: upgrade to version 4.4.3 (591a62f)
- follow-redirects: upgrade to version 1.15.11 (d649b1d)
- semver: upgrade to version 7.7.3 (67c6cb0)
Dev-Dependencies
- @types/semver: upgrade to version 7.7.1 (4b75634)
- eslint-config-prettier: upgrade to version 9.1.2 (8c92905)
- eslint-plugin-prettier: upgrade to version 5.5.4 (ca60b90)
- prettier: upgrade to version 3.6.2 (c1cc12d)
- ts-jest: upgrade to version 29.4.5 (26a4d8b)
10.2.3 (2025-10-07)
Fixes
- enable npm provenance publishing (6ec4d55)
Style
10.2.2 (2025-10-04)
Fixes
Refactor
- getos: move function from utils to getos only used there (7d07e96)
10.2.1 (2025-09-15)
Fixes
- MongoBinaryDownloadUrl: add "cachyos" as arch-like (b32b3d2), closes #947
- MongoBinaryDownloadUrl: use "rhel90" before mongodb 8.0.0 (7cc91e6), closes #942 #941
10.2.1-beta.2 (2025-09-15)
Fixes
10.2.1-beta.1 (2025-09-06)
Fixes
10.2.0 (2025-08-02)
Features
- MongoBinaryDownloadUrl: adjust fedora-rhel mapping based on official documentation (4031b74), closes #928
- MongoBinaryDownloadUrl: support rhel93 binaries (dd66037)
Fixes
- add more retryable status and error codes during downloads (#936) (dc82f62)
- add retry logic for downloads with configurable retries and backoff (27c7d71)
- errors: add more properties to "DownloadError" (45007b1), closes #929
- MongoBinaryDownload::attempDownload: add experimental feature "EXP_RESUME_DOWNLOAD" (185c840)
- MongoBinaryDownload::download: print full error object to debug logs (b907cb0)
- MongoBinaryDownload: add tests for httpDownload (bbdad60)
- use DownloadError on max retries exceeded (b90e086)
Style
- utils.test: remove random non-error "ts-expect-error" (873aa6b)
Dependencies
- debug: upgrade to version 4.4.1 (93b56dd)
- https-proxy-agent: upgrade to version 7.0.6 (39a3393)
- semver: upgrade to version 7.7.2 (b7140b1)
- tslib: upgrade to version 2.8.1 (a94d970)
- yauzl: upgrade to version 3.2.0 (25b2619)
Dev-Dependencies
- @types/jest: upgrade to version 29.5.14 (5d8ae09)
- @types/semver: upgrade to version 7.7.0 (fed0d70)
- @types/tar-stream: upgrade to version 3.1.4 (1b2cba4)
- @types/yazl: upgrade to version 3.3.0 (d946c4a)
- eslint-plugin-prettier: upgrade to version 5.5.0 (7452a8d)
- prettier: upgrade to version 3.6.0 (39fe52f)
- ts-jest: upgrade to version 29.4.0 (600b708)
- yazl: upgrade to version 3.3.1 (4be97b1)
10.2.0-beta.6 (2025-07-17)
Fixes
- MongoBinaryDownload: add tests for httpDownload (bbdad60)
10.2.0-beta.5 (2025-07-17)
Fixes
- errors: add more properties to "DownloadError" (45007b1), closes #929
- MongoBinaryDownload::attempDownload: add experimental feature "EXP_RESUME_DOWNLOAD" (185c840)
- MongoBinaryDownload::download: print full error object to debug logs (b907cb0)
10.2.0-beta.4 (2025-07-15)
Fixes
10.2.0-beta.3 (2025-07-14)
Fixes
- add retry logic for downloads with configurable retries and backoff (27c7d71)
- use DownloadError on max retries exceeded (b90e086)
10.2.0-beta.2 (2025-06-24)
Reverts
- Revert "deps(mongodb): upgrade to version 6.17.0" (beba000)
10.2.0-beta.1 (2025-06-24)
Features
- MongoBinaryDownloadUrl: adjust fedora-rhel mapping based on official documentation (4031b74), closes #928
- MongoBinaryDownloadUrl: support rhel93 binaries (dd66037)
Style
- utils.test: remove random non-error "ts-expect-error" (873aa6b)
Dependencies
- debug: upgrade to version 4.4.1 (93b56dd)
- https-proxy-agent: upgrade to version 7.0.6 (39a3393)
- mongodb: upgrade to version 6.17.0 (76b6d66)
- semver: upgrade to version 7.7.2 (b7140b1)
- tslib: upgrade to version 2.8.1 (a94d970)
- yauzl: upgrade to version 3.2.0 (25b2619)
Dev-Dependencies
- @types/jest: upgrade to version 29.5.14 (5d8ae09)
- @types/semver: upgrade to version 7.7.0 (fed0d70)
- @types/tar-stream: upgrade to version 3.1.4 (1b2cba4)
- @types/yazl: upgrade to version 3.3.0 (d946c4a)
- eslint-plugin-prettier: upgrade to version 5.5.0 (7452a8d)
- prettier: upgrade to version 3.6.0 (39fe52f)
- ts-jest: upgrade to version 29.4.0 (600b708)
- yazl: upgrade to version 3.3.1 (4be97b1)
10.1.4 (2025-02-20)
Fixes
10.1.4-beta.1 (2025-02-04)
Fixes
10.1.3 (2024-12-30)
Fixes
- DryMongoBinary::getPath: always absoluteize System_Binary path (c0975c3)
- MongoBinary::getPath: check that "stdout" actually exists (613e670), closes #742 #issuecomment-2528284865
- MongoBinary: dont execute systembinary "--version" cmd if version check is false (03c8412)
10.1.3-beta.1 (2024-12-09)
Fixes
- DryMongoBinary::getPath: always absoluteize System_Binary path (c0975c3)
- MongoBinary::getPath: check that "stdout" actually exists (613e670), closes #742 #issuecomment-2528284865
- MongoBinary: dont execute systembinary "--version" cmd if version check is false (03c8412)
10.1.2 (2024-10-11)
Fixes
Refactor
- MongoBinaryDownloadUrl::getFedoraVersionString: change to use "else if" chain (194df6f)
10.1.1 (2024-10-10)
Fixes
10.1.0 (2024-10-09)
Features
- MongoBinaryDownloadUrl: support ubuntu 2404 & 8.0.0 (1a88c37)
- resolveConfig: update default binary version to 7.0.14 (946e78e)
Dependencies
- debug: upgrade to version 4.3.7 (d537118)
- follow-redirects: upgrade to version 1.15.9 (a762dd4)
- mongodb: upgrade to version 6.9.0 (3d4f898)
- tslib: upgrade to version 2.7.0 (2b702d1)
Dev-Dependencies
- @types/jest: upgrade to version 29.5.13 (4395d50)
- rimraf: upgrade to version 5.0.10 (52420ba)
- test-jest: upgrade to version 29.2.5 (8fa6918)
10.0.1 (2024-09-21)
Fixes
- getport: check new port against cache (b70d868), closes #883
- getport: update cache time when last used (a332b49), closes #883
10.0.1-beta.1 (2024-08-03)
Fixes
- getport: check new port against cache (b70d868), closes #883
- getport: update cache time when last used (a332b49), closes #883
10.0.0 (2024-07-18)
⚠ BREAKING CHANGES
-
resolveConfig: Default binary version is now "7.0.11"
-
resolveConfig: Default binary version is now "7.0.9"
-
tsconfig: potentially breaking change upgrading "target" to "es2021" in tsconfig
-
Lowest supported NodeJS version is now 16.20.1
-
tsconfig: update "target" to "es2021" (abde8ca)
Features
- add support for "Explicit Resource Management" (ab7a73c), closes #794
- getport: use net0listen by default (887f1a1), closes #827
- index: also top-level export "DryMongoBinary" and all errors (d11abaa)
- MongoMemoryServer: allow setting if port generation is enabeld or not (6c4daed), closes #816
- resolveConfig: update default binary version to 7.x (9d569ac)
- resolveConfig: update default binary version to 7.x (2436d63)
- set lowest supported nodejs version to 16.20.1 (30b302e), closes #805
Fixes
- MongoBinaryDownloadUrl: add mapping for Linux Mint 22 (2ffc024)
- MongoBinaryDownloadUrl: change default elementary version to 7 (ecc4ffe)
- MongoBinaryDownloadUrl: change default mint version to 21 (df97ea8)
- remove deprecated boolean cleanup argument (stop / cleanup) (eef706f)
Style
- MongoMemoryReplSet: fix lint (bd8941b)
Dependencies
- @types/node: upgrade to version 16.11.7 (c8a008a)
- async-mutex: upgrade to version 0.5.0 (c9f45c9)
- https-proxy-agent: upgrade to version 7.0.5 (4d5be4d)
- mongodb: upgrade to version 6.7.0 (57e575c), closes #804
- semver: upgrade to version 7.6.3 (100e571)
- typescript: upgrade to version 5.3.3 (329d79e)
Dev-Dependencies
- @typescript-eslint/*: upgrade to version 6.21.0 (b4055a7)
- eslint-plugin-prettier: upgrade to version 5.2.1 (15990b9)
- lint-staged: upgrade to version 14.0.1 (0f54d29)
- prettier: upgrade to version 3.3.0 (fe1d62d)
- prettier: upgrade to version 3.3.3 (5aba25a)
- rimraf: upgrade to version 5.0.9 (a6d706a)
- ts-jest: upgrade to version 29.2.2 (839e432)
- typedoc: upgrade to version 0.25.13 (0775c60)
10.0.0-beta.5 (2024-07-18)
⚠ BREAKING CHANGES
- resolveConfig: Default binary version is now "7.0.11"
Features
- resolveConfig: update default binary version to 7.x (9d569ac)
10.0.0-beta.4 (2024-07-18)
Features
- index: also top-level export "DryMongoBinary" and all errors (d11abaa)
Dependencies
- semver: upgrade to version 7.6.3 (100e571)
Dev-Dependencies
- eslint-plugin-prettier: upgrade to version 5.2.1 (15990b9)
10.0.0-beta.3 (2024-07-15)
Features
Style
- MongoMemoryReplSet: fix lint (bd8941b)
Dependencies
- https-proxy-agent: upgrade to version 7.0.5 (4d5be4d)
Dev-Dependencies
- prettier: upgrade to version 3.3.3 (5aba25a)
- rimraf: upgrade to version 5.0.9 (a6d706a)
- ts-jest: upgrade to version 29.2.2 (839e432)
10.0.0-beta.2 (2024-07-13)
Fixes
10.0.0-beta.1 (2024-06-24)
⚠ BREAKING CHANGES
-
resolveConfig: Default binary version is now "7.0.9"
-
tsconfig: potentially breaking change upgrading "target" to "es2021" in tsconfig
-
Lowest supported NodeJS version is now 16.20.1
-
tsconfig: update "target" to "es2021" (abde8ca)
Features
- add support for "Explicit Resource Management" (ab7a73c), closes #794
- getport: use net0listen by default (887f1a1), closes #827
- resolveConfig: update default binary version to 7.x (2436d63)
- set lowest supported nodejs version to 16.20.1 (30b302e), closes #805
Fixes
- MongoBinaryDownloadUrl: change default elementary version to 7 (ecc4ffe)
- MongoBinaryDownloadUrl: change default mint version to 21 (df97ea8)
- remove deprecated boolean cleanup argument (stop / cleanup) (eef706f)
Dependencies
- @types/node: upgrade to version 16.11.7 (c8a008a)
- async-mutex: upgrade to version 0.5.0 (c9f45c9)
- mongodb: upgrade to version 6.7.0 (57e575c), closes #804
- typescript: upgrade to version 5.3.3 (329d79e)
Dev-Dependencies
- @typescript-eslint/*: upgrade to version 6.21.0 (b4055a7)
- lint-staged: upgrade to version 14.0.1 (0f54d29)
- prettier: upgrade to version 3.3.0 (fe1d62d)
- typedoc: upgrade to version 0.25.13 (0775c60)
9.5.0 (2024-11-01)
Fixes
- MongoBinaryDownloadUrl: add mapping for Linux Mint 22 (1589600)
- MongoBinaryDownloadUrl: fix rhel8 handling for newer versions (48e99bf), closes #893
- MongoBinaryDownloadUrl: refactor fedora handling to pass through to rhel (5a0dfd3), closes #893
Refactor
- MongoBinaryDownloadUrl::getFedoraVersionString: change to use "else if" chain (4eb1440)
Dependencies
- debug: upgrade to version 4.3.7 (2acbfca)
- follow-redirects: upgrade to version 1.15.9 (62ed4cb)
- https-proxy-agent: upgrade to version 7.0.5 (fab84c2)
- semver: upgrade to version 7.6.3 (816472f)
Dev-Dependencies
- @types/jest: upgrade to version 29.5.14 (bc77bba)
- eslint-plugin-prettier: upgrade to version 5.2.1 (dcf2049)
- prettier: upgrade to version 3.3.3 (ca8af06)
- rimraf: upgrade to version 5.0.10 (749e099)
- ts-jest: upgrade to version 29.2.5 (a2fa28e)
9.4.1 (2024-07-13)
Fixes
- trigger release (8c48020)
9.4.0 (2024-06-24)
Fixes
- MongoMemoryReplSet: dont warn unless storage engine is set explicitly (582bf0a)
Refactor
- utils::removeDir: remove nodejs 12 workaround (a852513)
Dependencies
- async-mutex: upgrade to version 0.4.1 (b67c783)
- debug: upgrade to version 4.3.5 (72a0b76)
- mongodb: upgrade to version 5.9.2 (4c1ccc9)
- tslib: upgrade to version 2.6.3 (a49993b)
9.4.0-beta.1 (2024-06-05)
Fixes
- MongoMemoryReplSet: dont warn unless storage engine is set explicitly (582bf0a)
Refactor
- utils::removeDir: remove nodejs 12 workaround (a852513)
Dependencies
- async-mutex: upgrade to version 0.4.1 (b67c783)
- debug: upgrade to version 4.3.5 (72a0b76)
- tslib: upgrade to version 2.6.3 (a49993b)
9.3.0 (2024-05-30)
Fixes
- DryMongoBinary::locateBinary: check if download-lock still exists (c600609), closes #872
- DryMongoBinary: resolve modulesCache relative to config options package.json (be934a0)
Refactor
- utils: add function "lockfilePath" (9db479f)
Dependencies
- semver: upgrade to version 7.6.2 (e101c06)
Dev-Dependencies
9.3.0-beta.1 (2024-05-30)
Dependencies
- semver: upgrade to version 7.6.2 (e101c06)
Dev-Dependencies
9.2.1-beta.2 (2024-05-17)
Fixes
- DryMongoBinary: resolve modulesCache relative to config options package.json (be934a0)
9.2.1-beta.1 (2024-05-16)
Fixes
Refactor
- utils: add function "lockfilePath" (9db479f)
9.2.0 (2024-04-22)
Features
- add option "DOWNLOAD_IGNORE_MISSING_HEADER" to ignore missing response-headers (f3f7764), closes #865
- update default-4.2-binary to 4.2.24 (63fcfc2)
- update default-4.4-binary to 4.4.28 (df5eec0)
- update default-binary to 6.0.14 (47f2bb3)
Dependencies
- https-proxy-agent: upgrade to version 7.0.4 (d9dedc4)
- semver: upgrade to version 7.6.0 (d0b50aa)
- tar-stream: upgrade to version 3.1.7 (abcebd4)
- yauzl: upgrade to version 3.1.3 (ba90289)
Dev-Dependencies
- @types/jest: upgrade to version 29.5.12 (61ce778)
- @types/semver: upgrade to version 7.5.8 (c042b9a)
- commitlint:* upgrade to version 17.8.1 (08141c8)
- eslint-config-prettier: upgrade to version 9.1.0 (dc3dd4f)
- eslint-plugin-prettier: upgrade to version 5.1.3 (dc49e9c)
- eslint: upgrade to version 8.57.0 (cfe19a8)
- prettier: upgrade to version 3.2.5 (b13b13c)
9.2.0-beta.1 (2024-04-19)
Features
- add option "DOWNLOAD_IGNORE_MISSING_HEADER" to ignore missing response-headers (f3f7764), closes #865
- update default-4.2-binary to 4.2.24 (63fcfc2)
- update default-4.4-binary to 4.4.28 (df5eec0)
- update default-binary to 6.0.14 (47f2bb3)
Dependencies
- https-proxy-agent: upgrade to version 7.0.4 (d9dedc4)
- semver: upgrade to version 7.6.0 (d0b50aa)
- tar-stream: upgrade to version 3.1.7 (abcebd4)
- yauzl: upgrade to version 3.1.3 (ba90289)
Dev-Dependencies
- @types/jest: upgrade to version 29.5.12 (61ce778)
- @types/semver: upgrade to version 7.5.8 (c042b9a)
- commitlint:* upgrade to version 17.8.1 (08141c8)
- eslint-config-prettier: upgrade to version 9.1.0 (dc3dd4f)
- eslint-plugin-prettier: upgrade to version 5.1.3 (dc49e9c)
- eslint: upgrade to version 8.57.0 (cfe19a8)
- prettier: upgrade to version 3.2.5 (b13b13c)
9.1.8 (2024-03-28)
Fixes
9.1.7 (2024-03-11)
Fixes
9.1.6 (2024-01-17)
Fixes
- MongoBinaryDownloadUrl: clamp ubuntu-year to highest supported year (9a29af9), closes #846
- MongoBinaryDownloadUrl: support elementaryos 7 (064c69e)
- MongoBinaryDownloadUrl: support linux-mint 21 (e756164)
9.1.6-beta.1 (2024-01-17)
Fixes
- MongoBinaryDownloadUrl: clamp ubuntu-year to highest supported year (9a29af9), closes #846
- MongoBinaryDownloadUrl: support elementaryos 7 (064c69e)
- MongoBinaryDownloadUrl: support linux-mint 21 (e756164)
9.1.5 (2024-01-13)
Fixes
9.1.4 (2024-01-04)
Fixes
- MongoMemoryServer::getStartOptions: coerce version to semver before semver checks (427531e), closes #841
9.1.3 (2023-12-12)
Fixes
9.1.2 (2023-12-12)
Fixes
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)
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)
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)
9.1.0-beta.4 (2023-11-13)
Fixes
9.1.0-beta.3 (2023-11-09)
Features
Refactor
- getport: use "node:net" over "node:http" (c065147)
- MongoMemoryServer: try to acquire port later (f0385d6)
9.1.0-beta.2 (2023-11-04)
Features
9.1.0-beta.1 (2023-10-26)
Features
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)
9.0.1 (2023-10-12)
Fixes
Style
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 #663
Dependencies
- @google/semantic-release-replace-plugin: replace with semantic-release-replace-plugin (245a70f)
- @types/debug: upgrade to version 4.1.8 (fdaa353)
- @types/debug: upgrade to version 4.1.9 (73f265a)
- @types/follow-redirects: upgrade to version (27dd371)
- @types/jest: upgrade to version 29.5.2 (6111f36)
- @types/jest: upgrade to version 29.5.5 (4f5d25d)
- @types/node: upgrade to version 14.18.45 (f93397b)
- @types/node: upgrade to version 14.18.63 (9cf137c)
- @types/semver: upgrade to version 7.5.0 (45c6fbc)
- @types/semver: upgrade to version 7.5.3 (3942290)
- @types/tar-stream: upgrade to version 3.1.1 (b6ac2c9)
- @types/uuid: upgrade to version 9.0.0 (1a11854)
- @types/yauzl: upgrade to version 2.10.1 (ce856ec)
- @types/yazl: upgrade to version 2.4.3 (0191bb7)
- @typescript-eslint/*: upgrade to version 5.50.0 (6db8e1e)
- @typescript-eslint/*: upgrade to version 5.59.2 (834a3bf)
- @typescript-eslint/*: upgrade to version 5.59.9 (a1bf489)
- async-mutx: upgrade to version 0.4.0 (ddfebe5)
- commitlint: upgrade to version 17.4.2 (897fa12)
- commitlint: upgrade to version 17.6.3 (1248af6)
- commitlint: upgrade to version 17.6.5 (86b081b)
- commitlint: upgrade to version 17.6.6 (6d48006)
- commitlint: upgrade to version 17.7.1 (e0e3408)
- commitlint: upgrade to version 17.7.2 (60a5a30)
- conventional-changelog-conventionalcommits: upgrade to version 6.0.0 (b199421)
- conventional-changelog-conventionalcommits: upgrade to version 6.1.0 (ebd01e3)
- eslint-config-prettier: upgrade to version 8.8.0 (7980800)
- eslint-config-prettier: upgrade to version 9.0.0 (2e24d7a)
- eslint: upgrade to version 8.33.0 (7364aa9)
- eslint: upgrade to version 8.40.0 (4ab49e5)
- eslint: upgrade to version 8.42.0 (b7bbfc9)
- eslint: upgrade to version 8.44.0 (d8ae174)
- eslint: upgrade to version 8.47.0 (6df5c1d)
- eslint: upgrade to version 8.50.0 (8076a48)
- follow-redirects: upgrade to version 1.15.3 (b5a4cc6)
- get-port: remove dependency (559328b)
- https-proxy-agent: upgrade to version 6.1.0 (9e2ef8d)
- https-proxy-agent: upgrade to version 7.0.1 (d4d0c94)
- https-proxy-agent: upgrade to version 7.0.2 (3f5f457)
- husky: upgrade to version 8.0.3 (45deaca)
- jest: upgrade to version 29.4.0 (2e47534)
- jest: upgrade to version 29.5.0 (0049da6)
- jest: upgrade to version 29.6.1 (980d280)
- jest: upgrade to version 29.6.2 (ef96b98)
- jest: upgrade to version 29.6.3 (738c715)
- jest: upgrade to version 29.7.0 (90af566)
- lint-staged: upgrade to version 13.2.2 (cb81395)
- lint-staged: upgrade to version 13.2.3 (ed1df56)
- md5-file: remove package (a941c8b)
- mongodb: upgrade to version 4.16.0 (6deefda)
- mongodb: upgrade to version 5.0.0 (96e61c0)
- mongodb: upgrade to version 5.4.0 (8d9ab97)
- mongodb: upgrade to version 5.6.0 (642c274)
- mongodb: upgrade to version 5.8.0 (4bffe5a)
- mongodb: upgrade to version 5.9.0 (1e5deef)
- prettier: upgrade to version 2.8.3 (8c4c1c0)
- prettier: upgrade to version 2.8.8 (c2a5bde)
- prettier: upgrade to version 3.0.1 (1cd459b)
- prettier: upgrade to version 3.0.2 (94f9841)
- prettier: upgrade to version 3.0.3 (1145757)
- rimraf: upgrade to version 4.1.2 (d1f7b71)
- rimraf: upgrade to version 5.0.0 (05b5663)
- rimraf: upgrade to version 5.0.1 (01e39e2)
- rimraf: upgrade to version 5.0.5 (a331189)
- saslprep: add dev-dependency (db7455c)
- semantic-release-replace-plugin: downgrade to version 1.2.0 (cacf945)
- semantic-release-replace-plugin: downgrade to version 1.2.3 (3e52d32)
- semantic-release-replace-plugin: upgrade to version 1.2.6 (4530214)
- semantic-release: upgrade to version 19.0.5 (27e22a7)
- semver: upgrade to version 7.5.0 (791f6ae)
- semver: upgrade to version 7.5.1 (61d5ae8)
- tar-stream: upgrade to version 3.0.0 (ad86aec)
- ts-jest: upgrade to version 29.1.0 (4a2f2aa)
- ts-jest: upgrade to version 29.1.1 (7a82045)
- tslib: upgrade to version 2.5.0 (d0fad87)
- tslib: upgrade to version 2.5.3 (22e6cb0)
- tslib: upgrade to version 2.6.2 (ed17876)
- typedoc: upgrade to version 0.24.8 (fefab38)
- typescript: upgrade to version 4.7.4 (5a05a49), closes #588
- typescript: upgrade to version 4.9 (6a27dee)
- typescript: upgrade to version 5.0.4 (d531dde)
- uuid: remove package (41b2551)
Dev-Dependencies
- saslprep: remove dev-dependency again (c3b4bdc)
9.0.0-beta.4 (2023-10-05)
Dependencies
9.0.0-beta.3 (2023-10-05)
Fixes
- fix binary download on debian testing/unstable (#787) (1a8ac8a)
- getport: only run ".unref" if it exists (73c0c2e), closes #801
- MongoInstance::stop: handle "stop" being called multiple times while running (80e6cd8), closes #802
Style
- MongoBinaryDownloadUrl: add comment explaining pr 787 (1821135)
Dependencies
- @types/debug: upgrade to version 4.1.9 (73f265a)
- @types/follow-redirects: upgrade to version (27dd371)
- @types/jest: upgrade to version 29.5.5 (4f5d25d)
- @types/node: upgrade to version 14.18.63 (9cf137c)
- @types/semver: upgrade to version 7.5.3 (3942290)
- @types/tar-stream: upgrade to version 3.1.1 (b6ac2c9)
- @types/yauzl: upgrade to version 2.10.1 (ce856ec)
- @types/yazl: upgrade to version 2.4.3 (0191bb7)
- commitlint: upgrade to version 17.7.2 (60a5a30)
- eslint: upgrade to version 8.50.0 (8076a48)
- follow-redirects: upgrade to version 1.15.3 (b5a4cc6)
- https-proxy-agent: upgrade to version 7.0.2 (3f5f457)
- jest: upgrade to version 29.7.0 (90af566)
- mongodb: upgrade to version 5.9.0 (1e5deef)
- prettier: upgrade to version 3.0.3 (1145757)
- rimraf: upgrade to version 5.0.5 (a331189)
9.0.0-beta.2 (2023-08-22)
⚠ BREAKING CHANGES
- resolveConfig: Default binary version is now "6.0.9"
Features
- MongoMemoryServer: use storage engine "wiredTiger" if version is 7.0.0 or higher (952609b), closes #742
- resolveConfig: update default binary version to 6.x (3f5d421)
Fixes
- DryMongoBinary::generateOptions: actually use correct type for parameters (f099597)
Dependencies
- jest: upgrade to version 29.6.3 (738c715)
- mongodb: upgrade to version 5.8.0 (4bffe5a)
- prettier: upgrade to version 3.0.2 (94f9841)
- saslprep: add dev-dependency (db7455c)
- tslib: upgrade to version 2.6.2 (ed17876)
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/*: upgrade to version 5.59.2 (834a3bf)
- @typescript-eslint/*: upgrade to version 5.59.9 (a1bf489)
- async-mutx: upgrade to version 0.4.0 (ddfebe5)
- commitlint: upgrade to version 17.4.2 (897fa12)
- commitlint: upgrade to version 17.6.3 (1248af6)
- commitlint: upgrade to version 17.6.5 (86b081b)
- commitlint: upgrade to version 17.6.6 (6d48006)
- commitlint: upgrade to version 17.7.1 (e0e3408)
- conventional-changelog-conventionalcommits: upgrade to version 6.0.0 (b199421)
- conventional-changelog-conventionalcommits: upgrade to version 6.1.0 (ebd01e3)
- eslint-config-prettier: upgrade to version 8.8.0 (7980800)
- eslint-config-prettier: upgrade to version 9.0.0 (2e24d7a)
- eslint: upgrade to version 8.33.0 (7364aa9)
- eslint: upgrade to version 8.40.0 (4ab49e5)
- eslint: upgrade to version 8.42.0 (b7bbfc9)
- eslint: upgrade to version 8.44.0 (d8ae174)
- eslint: upgrade to version 8.47.0 (6df5c1d)
- get-port: remove dependency (559328b)
- https-proxy-agent: upgrade to version 6.1.0 (9e2ef8d)
- https-proxy-agent: upgrade to version 7.0.1 (d4d0c94)
- husky: upgrade to version 8.0.3 (45deaca)
- jest: upgrade to version 29.4.0 (2e47534)
- jest: upgrade to version 29.5.0 (0049da6)
- jest: upgrade to version 29.6.1 (980d280)
- jest: upgrade to version 29.6.2 (ef96b98)
- lint-staged: upgrade to version 13.2.2 (cb81395)
- lint-staged: upgrade to version 13.2.3 (ed1df56)
- md5-file: remove package (a941c8b)
- mongodb: upgrade to version 4.16.0 (6deefda)
- mongodb: upgrade to version 5.0.0 (96e61c0)
- mongodb: upgrade to version 5.4.0 (8d9ab97)
- mongodb: upgrade to version 5.6.0 (642c274)
- prettier: upgrade to version 2.8.3 (8c4c1c0)
- prettier: upgrade to version 2.8.8 (c2a5bde)
- prettier: upgrade to version 3.0.1 (1cd459b)
- rimraf: upgrade to version 4.1.2 (d1f7b71)
- rimraf: upgrade to version 5.0.0 (05b5663)
- rimraf: upgrade to version 5.0.1 (01e39e2)
- semantic-release-replace-plugin: downgrade to version 1.2.0 (cacf945)
- semantic-release-replace-plugin: downgrade to version 1.2.3 (3e52d32)
- semantic-release-replace-plugin: upgrade to version 1.2.6 (4530214)
- semantic-release: upgrade to version 19.0.5 (27e22a7)
- semver: upgrade to version 7.5.0 (791f6ae)
- semver: upgrade to version 7.5.1 (61d5ae8)
- tar-stream: upgrade to version 3.0.0 (ad86aec)
- ts-jest: upgrade to version 29.1.0 (4a2f2aa)
- ts-jest: upgrade to version 29.1.1 (7a82045)
- tslib: upgrade to version 2.5.0 (d0fad87)
- tslib: upgrade to version 2.5.3 (22e6cb0)
- typescript: upgrade to version 4.7.4 (5a05a49), closes #588
- typescript: upgrade to version 4.9 (6a27dee)
- typescript: upgrade to version 5.0.4 (d531dde)
- uuid: remove package (41b2551)
8.16.1 (2024-07-13)
Fixes
- trigger release (62f43e7)
Style
- errors: fix lint (4137d32)
8.16.0 (2023-10-05)
Dependencies
- typedoc: add dev-dependency (f8c671c)
8.15.1 (2023-08-17)
Fixes
Style
- MongoBinaryDownloadUrl: add comment explaining pr 787 (1821135)
8.15.0 (2023-08-15)
Features
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)
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)
8.14.0-beta.1 (2023-07-07)
Note: this beta was not actually merged into 8.14.0, use 8.15.0 instead
Features
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)
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)
8.12.2 (2023-04-04)
Style
Fixes
- MongoBinaryDownloadUrl: update mapping for arch to "ubuntu2204" (20dab94)
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)
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)
8.11.5 (2023-02-21)
Style
Fixes
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
8.11.3 (2023-01-19)
Fixes
8.11.2 (2023-01-18)
Fixes
- errors: add error "UnknownVersionError" (5676931)
- MongoBinaryDownload: use coerced versions for semver (10d1749), closes #734
- MongoBinaryDownloadUrl: handle cases where patch version is checked and "-latest" was requested (690aa42)
- MongoBinaryDownloadUrl::getRhelVersionString: handle versions above 8 (7c2d490)
8.11.1 (2023-01-13)
Fixes
- MongoMemoryReplSet: pass-through option "launchTimeout" correctly (575f07a)
8.11.0 (2023-01-06)
Features
Fixes
- MongoBinaryDownloadUrl::getRhelVersionString: add warning for unhandled rhel versions (ad71f21)
- MongoBinaryDownloadUrl::getRhelVersionString: refactor to better compare versions (6a38d17), closes #726
Style
- MongoBinaryDownload: add status code to "status is not 200" error (ad304ee), closes #720
- MongoBinaryDownload: rename error variables from "e" to "err" (f7d811e)
- MongoBinaryDownloadUrl: update tsdoc comments (4af629c)
- MongoMemoryReplSet: rename error variables from "e" to "err" (57d034d)
Dependencies
- @google/semantic-release-replace-plugin: upgrade to version 1.2.0 (28f13d8)
- @typescript-eslint/*: upgrade to version 5.48.0 (7a919ab)
- eslint: upgrade to version 8.31.0 (16e5a8a)
- eslint-config-prettier: upgrade to version 8.6.0 (83d0ca9)
- mongodb: change "~" to "^" again (605614d)
- mongodb: upgrade to version 4.13.0 (dfbccc3)
- prettier: upgrade to version 2.8.1 (14e3e7d)
- uuid: upgrade to version 9.0.0 (1f32d9c)
8.10.2 (2022-12-11)
Fixes
- MongoBinaryDownload::httpDownload: update 403 error message links (b9307bd)
8.10.1 (2022-11-25)
Fixes
- MongoInstance: move getting / downloading the binary before creating the launchTimeout (619d1fa), closes #719
8.10.0 (2022-11-09)
Features
Dependencies
- @types/jest: upgrade to version 28.1.8 (7eaaeb1)
- @types/semver: upgrade to version 7.3.13 (aa5ca3b)
- @typescript-eslint/*: upgrade to version 5.42.1 (038b07e)
- doctoc: upgrade to version 2.2.1 (3c1deb9)
- eslint: upgrade to version 8.27.0 (31fece5)
- mongodb: upgrade to version 4.11.0 (999bc2c)
- semver: upgrade to version 7.3.8 (9e09446)
- tslib: upgrade to version 2.4.1 (5524cf6)
8.9.5 (2022-10-31)
Fixes
8.9.4 (2022-10-28)
Fixes
8.9.3 (2022-09-25)
Style
- MongoMemoryReplSet: update log to more current implementation (256d65b)
- MongoMemoryServer.test: remove unused "ts-expect-error" directive (5020be8)
Fixes
- MongoMemoryReplSet: fix creating auth regardless of "enableAuth" (78d5aee)
- MongoMemoryServer: dont set "extraConnectionOptions" when auth-object is disabled (80d6fe1)
8.9.2 (2022-09-15)
Fixes
- errors::UnexpectedCloseError: add Error (ce6462e)
- errors::UnexpectedCloseError: add extra message on SIGILL (2c54e1f), closes #693 #692 #687
- MongoInstance::closeHandler: emit "instanceError" on non-0 (or non-12) code (fbd0747), closes #693
Style
- MongoInstance: change a arrow function to a named function for debugging (704bc64)
- MongoInstance::closeHandler: add note that "instanceError" gets emitted on signal (c01fec7)
- MongoInstance::closeHandler: correct parameter types to include "null" (e052aa1)
8.9.1 (2022-09-01)
Fixes
- MongoInstance::checkErrorInLine: handle json output of error "DBException in initAndListen" (2131df2)
8.9.0 (2022-08-22)
Features
- errors: add generic MMS Error (7fc4acc)
- MongoBinaryDownload::extract: dont include ".dll" files in the filter anymore (a7c685b)
Style
- MongoBinaryDownload::extractTarGz: rename some variables to current convention (bcb4dab)
Fixes
- MongoBinaryDownload::extractTarGz: wrap error messages in "GenericMMSError" (a8733dc)
- MongoMemoryReplSet::_initReplSet: use "extraConnectionOptions" when "_ranCreateAuth" is "true" (e116128)
- MongoMemoryReplSet::cleanup: reset "_ranCreateAuth" on cleanup (2fc87e7)
Refactor
- MongoBinaryDownloadUrl::translateArch: combine case "arm64" & "aarch64" (4eb48da)
Dependencies
- @types/jest: upgrade to version 28.1.7 (db3e729)
- @types/semver: upgrade to version 7.3.12 (8c61c71)
- @typescript-eslint/*: upgrade to version 5.33.1 (cb0e223)
- eslint: upgrade to version 8.22.0 (01591eb)
- mongodb: upgrade to version 4.9.0 (a0b5599), closes #676
- ts-jest: upgrade to version 28.0.8 (10bb530)
8.9.0-beta.3 (2022-08-21)
Dependencies
8.9.0-beta.2 (2022-08-17)
Refactor
- MongoBinaryDownloadUrl::translateArch: combine case "arm64" & "aarch64" (4eb48da)
8.9.0-beta.1 (2022-08-17)
Features
- errors: add generic MMS Error (7fc4acc)
- MongoBinaryDownload::extract: dont include ".dll" files in the filter anymore (a7c685b)
Style
- MongoBinaryDownload::extractTarGz: rename some variables to current convention (bcb4dab)
Fixes
- MongoBinaryDownload::extractTarGz: wrap error messages in "GenericMMSError" (a8733dc)
- MongoMemoryReplSet::_initReplSet: use "extraConnectionOptions" when "_ranCreateAuth" is "true" (e116128)
- MongoMemoryReplSet::cleanup: reset "_ranCreateAuth" on cleanup (2fc87e7)
Dependencies
- @types/jest: upgrade to version 28.1.7 (db3e729)
- @types/semver: upgrade to version 7.3.12 (8c61c71)
- @typescript-eslint/*: upgrade to version 5.33.1 (cb0e223)
- eslint: upgrade to version 8.22.0 (01591eb)
- ts-jest: upgrade to version 28.0.8 (10bb530)
8.8.0 (2022-07-24)
Features
- MongoBinaryDownloadUrl: change to use "aarch64" by default and map to "arm64" where needed (ddf1991), closes #678
- MongoBinaryDownloadUrl::getRhelVersionString: add support for aarch64 (62d96e6)
- make use of the "localhost exception" for creating users (b1f4dc0), closes #670 #671
Style
- MongoBinaryDownloadUrl::getFedoraVersionString: add comment about 36 (c168c62), closes #673
- MongoBinaryDownloadUrl::getLegacyVersionString: remove nonexistent parameter from tsdoc (417d946)
- MongoMemoryServer::AutomaticAuth: fix typo in tsdoc (770791b)
Fixes
Dependencies
- @types/jest: upgrade to version 28.1.4 (627a3b5)
- @types/jest: upgrade to version 28.1.6 (dff909f)
- @typescript-eslint/*: upgrade to version 5.30.5 (58cfeaf)
- @typescript-eslint/*: upgrade to version 5.30.7 (f73a26e)
- eslint: upgrade to version 8.19.0 (574c252)
- eslint: upgrade to version 8.20.0 (76a4a48)
- eslint-plugin-prettier: upgrade to version 4.2.1 (97145a8)
- jest: upgrade to version 28.1.2 (c7c7303)
- jest: upgrade to version 28.1.3 (2ade5c3)
- mongodb: set version to be "~" (8a5552a)
- ts-jest: upgrade to version 28.0.7 (fa9975d)
8.8.0-beta.3 (2022-07-24)
Features
- MongoBinaryDownloadUrl: change to use "aarch64" by default and map to "arm64" where needed (ddf1991), closes #678
- MongoBinaryDownloadUrl::getRhelVersionString: add support for aarch64 (62d96e6)
Dependencies
- @types/jest: upgrade to version 28.1.6 (dff909f)
- @typescript-eslint/*: upgrade to version 5.30.7 (f73a26e)
- eslint: upgrade to version 8.20.0 (76a4a48)
- jest: upgrade to version 28.1.3 (2ade5c3)
- mongodb: set version to be "~" (8a5552a)
- ts-jest: upgrade to version 28.0.7 (fa9975d)
8.8.0-beta.2 (2022-07-13)
Style
- MongoBinaryDownloadUrl::getFedoraVersionString: add comment about 36 (c168c62), closes #673
- MongoBinaryDownloadUrl::getLegacyVersionString: remove nonexistent parameter from tsdoc (417d946)
Fixes
8.8.0-beta.1 (2022-07-05)
Features
Style
- MongoMemoryServer::AutomaticAuth: fix typo in tsdoc (770791b)
Dependencies
- @types/jest: upgrade to version 28.1.4 (627a3b5)
- @typescript-eslint/*: upgrade to version 5.30.5 (58cfeaf)
- eslint: upgrade to version 8.19.0 (574c252)
- eslint-plugin-prettier: upgrade to version 4.2.1 (97145a8)
- jest: upgrade to version 28.1.2 (c7c7303)
8.7.2 (2022-06-29)
Style
- MongoInstance::closeHandler: add explanation in log what value is what (69f7261)
- utils::killProcess: remove duplicated function identifier from log (6d49741)
Fixes
- MongoMemoryReplSet::_initReplSet: attempt to fix "server selection timed out" when using auth (17522dc)
8.7.1 (2022-06-22)
Fixes
8.7.0 (2022-06-20)
Dependencies
- @types/jest: upgrade to version 28.1.2 (fc76c9c)
- @types/semver: upgrade to version 7.3.10 (2a41ccf)
- @typescript-eslint/*: upgrade to version 5.28.0 (d4f7d45)
- conventional-changelog-conventionalcommits: upgrade to version 5.0.0 (e4474f0)
- eslint: upgrade to version 8.18.0 (cde8a0d)
- jest: upgrade to version 28.1.1 (d53fa0f)
- mongodb: upgrade to version 4.7.0 (8abb888)
- new-find-package-json: upgrade to version 2.0.0 (a22d7cb)
- prettier: upgrade to version 2.7.1 (74196ad)
- ts-jest: upgrade to version 28.0.5 (695d367)
8.6.1 (2022-06-15)
Style
- MongoBinary::MongoBinaryOpts: remove double parameter definition (880c445)
- MongoBinaryDownloadUrl: deprecate "sunos" (5ba9835)
- MongoInstance::MongoMemoryInstanceOptsBase: fix missing argument in tsdoc (b937ce4)
- MongoInstance::ReplicaMemberConfig: change "defaultValue" to "default" in tsdoc (7b0c98e)
Fixes
- MongoInstance::checkErrorInLine: optimize "exception in initAndListen" regex (473c278), closes #560
- MongoInstance::checkErrorInLine: optimize "libsomething: cannot open shared object" regex (2b733b4), closes #560
- MongoInstance::checkErrorInLine: replace "replaceAll" with "replace" (9546cf9)
8.6.0 (2022-05-23)
Features
- MongoBinaryDownloadUrl: add archive generation for gentoo (39b0a3d)
- MongoMemoryReplSet: change generic "instanceinfo missing" errors to "InstanceInfoError" (27934a4)
- add environment variable to use archive name for binary name (2fc0e1a), closes #609
- update binary 4.0 to 4.0.28 (f26f739)
- update binary 4.2 to 4.2.18 (3a47739)
- update binary 4.4 to 4.4.12 (cde2a4a)
- update binary 4.4 to 4.4.13 (ddaf3f9)
- MongoBinaryDownloadUrl::getDebianVersionString: use debian11 when possible (8100b2f)
- update binary 5.0 to 5.0.8 (a56e02b)
Reverts
- Revert "test(MongoMemoryReplSet): enable debug for often open-handle test" (29e11e1)
Style
- DryMongoBinary: add tsdoc to interfaces (ba0349c)
- MongoBinaryDownload::makeMD5Check: change variable names to better represent what they do (f8c2f05)
- MongoBinaryDownloadUrl: add more todo notes (1a1bfa7)
- MongoBinaryDownloadUrl: add todo for ubuntu "14" default (75d8d24)
- MongoBinaryDownloadUrl: change comment to be more helpful (2f70f53)
- MongoMemoryReplSet::_initReplSet: add todo (884bda5)
- MongoMemoryReplSet::stop: rename internal variable to make more sense (a86c321)
- MongoMemoryServer::createAuth: change comment to make more sense (4df5b41)
- resolveConfig: add tsdoc to some values and interfaces (9b9f327)
- resolveConfig: remove commented out variable (ac854c9)
Refactor
- change uses of deprecated ".stop(false)" to explicit object (dbcd00a)
Fixes
- MongoBinaryDownloadUrl::translateArch: add deprecation notice for "ia32" (2614d18), closes #638
- MongoBinaryDownloadUrl.ts: Add current openSUSE Leap relase version (2904d7e)
- MongoMemoryServer::createAuth: handle connection erroring and maybe not closing (9bad913)
Dependencies
- @types/jest: upgrade to version 27.5.0 (7749b59)
- @types/jest: upgrade to version 27.5.1 (7d678c7)
- @typescript-eslint/*: upgrade to version 5.22.0 (e495884)
- @typescript-eslint/*: upgrade to version 5.26.0 (b7f53af)
- commitlint: upgrade to version 16.2.4 (ad3b242)
- doctoc: upgrade to version 2.2.0 (7591372)
- eslint: upgrade to version 8.14.0 (08fb188)
- eslint: upgrade to version 8.16.0 (1b19581)
- jest: upgrade to version 28.0.3 (1521838)
- jest: upgrade to version 28.1.0 (1ef0f1f)
- ts-jest: upgrade to version 28.0.2 (8b8a40d)
- tslib: upgrade to version 2.4.0 (0f4713d)
8.6.0-beta.8 (2022-05-23)
Reverts
- Revert "test(MongoMemoryReplSet): enable debug for often open-handle test" (29e11e1)
8.6.0-beta.7 (2022-05-23)
Dependencies
- @types/jest: upgrade to version 27.5.1 (7d678c7)
- @typescript-eslint/*: upgrade to version 5.26.0 (b7f53af)
- doctoc: upgrade to version 2.2.0 (7591372)
- eslint: upgrade to version 8.16.0 (1b19581)
- jest: upgrade to version 28.1.0 (1ef0f1f)
- ts-jest: upgrade to version 28.0.2 (8b8a40d)
8.6.0-beta.6 (2022-05-19)
Fixes
- MongoBinaryDownloadUrl::translateArch: add deprecation notice for "ia32" (2614d18), closes #638
- MongoMemoryServer::createAuth: handle connection erroring and maybe not closing (9bad913)
8.6.0-beta.5 (2022-05-19)
Features
- MongoBinaryDownloadUrl: add archive generation for gentoo (39b0a3d)
8.6.0-beta.4 (2022-05-04)
Features
- MongoMemoryReplSet: change generic "instanceinfo missing" errors to "InstanceInfoError" (27934a4)
Style
- MongoMemoryReplSet::_initReplSet: add todo (884bda5)
- MongoMemoryReplSet::stop: rename internal variable to make more sense (a86c321)
- MongoMemoryServer::createAuth: change comment to make more sense (4df5b41)
Refactor
- change uses of deprecated ".stop(false)" to explicit object (dbcd00a)
8.6.0-beta.3 (2022-05-03)
Features
- update binary 4.4 to 4.4.13 (ddaf3f9)
Style
- DryMongoBinary: add tsdoc to interfaces (ba0349c)
- MongoBinaryDownload::makeMD5Check: change variable names to better represent what they do (f8c2f05)
- resolveConfig: add tsdoc to some values and interfaces (9b9f327)
- resolveConfig: remove commented out variable (ac854c9)
8.6.0-beta.2 (2022-05-03)
Features
- MongoBinaryDownloadUrl::getDebianVersionString: use debian11 when possible (8100b2f)
- update binary 4.0 to 4.0.28 (f26f739)
- update binary 4.2 to 4.2.18 (3a47739)
- update binary 4.4 to 4.4.12 (cde2a4a)
- update binary 5.0 to 5.0.8 (a56e02b)
Style
- MongoBinaryDownloadUrl: add more todo notes (1a1bfa7)
- MongoBinaryDownloadUrl: add todo for ubuntu "14" default (75d8d24)
- MongoBinaryDownloadUrl: change comment to be more helpful (2f70f53)
8.6.0-beta.1 (2022-05-03)
Features
Dependencies
- @types/jest: upgrade to version 27.5.0 (7749b59)
- @typescript-eslint/*: upgrade to version 5.22.0 (e495884)
- commitlint: upgrade to version 16.2.4 (ad3b242)
- eslint: upgrade to version 8.14.0 (08fb188)
- jest: upgrade to version 28.0.3 (1521838)
- tslib: upgrade to version 2.4.0 (0f4713d)
8.5.3-beta.1 (2022-05-03)
Note: this release is a "error" because this change was included earlier, but had the wrong merge branch on merge
Fixes
- MongoBinaryDownloadUrl.ts: Add current openSUSE Leap relase version (2904d7e)
8.5.2 (2022-04-29)
Fixes
- MongoMemory::start:* add log of the error when async chain throws (c57da4c)
- MongoMemory::start:* change error warning to include the error (238350c)
8.5.1 (2022-04-22)
Fixes
- MongoInstance: change that stderrHandler also runs error checks (4b57634), closes #632
- MongoInstance::checkErrorInLine: fix regex for "cannot open shared object" (287bcb9)
- MongoInstance::checkErrorInLine: improve error message for "cannot open shared object" (e930248)
8.5.0 (2022-04-16)
Dependencies
- @types/jest: upgrade to version 27.4.1 (2d5a4da)
- @types/yauzl: upgrade to version 2.10.0 (a1eb48d)
- @typescript-eslint/*: upgrade to version 5.19.0 (62b115e)
- commitlint: upgrade to version 16.2.3 (2ab1d39)
- debug: upgrade to version 4.3.4 (4d99ac6)
- eslint: upgrade to version 8.13.0 (6fa2ddd)
- eslint-config-prettier: upgrade to version 8.5.0 (ff5b6cc)
- https-proxy-agent: upgrade to version 5.0.1 (0abccc4)
- mongodb: upgrade to version 4.5.0 (72501f0)
- prettier: upgrade to version 2.6.2 (6bd115b)
- semver: upgrade to version 7.3.7 (e839d72)
- ts-jest: upgrade to version 27.1.4 (aade2be)
8.4.2 (2022-03-29)
Fixes
8.4.1 (2022-03-14)
Fixes
8.4.0 (2022-02-21)
Features
Dependencies
- @typescript-eslint/*: upgrade to version 5.12.0 (96427cb)
- commitlint: upgrade to version 16.2.1 (e379d8f)
- eslint: upgrade to version 8.9.0 (84ab0a0)
- eslint-config-prettier: upgrade to version 8.4.0 (71fed0e)
- jest: upgrade to version 27.5.1 (60ac034)
- mongodb: upgrade to version 4.4.0 (124551b)
8.3.0 (2022-02-05)
Dependencies
- @types/node: upgrade to version 14.14.45 (73e408f)
- @typescript-eslint/*: upgrade to version 5.10.2 (1546e4e)
- camelcase: upgrade to version 6.3.0 (7579fda)
- commitlint: upgrade to version 16.1.0 (8fa251c)
- eslint: upgrade to version 8.8.0 (5b9fcf8)
- jest: upgrade to version 27.5.0 (3d28ded)
- mongodb: upgrade to version 4.3.1 (92e2680)
8.2.1 (2022-02-05)
Fixes
- MongoBinaryDownloadUrl.ts: Add current openSUSE Leap relase version (a9ccdbf)
8.2.0 (2022-01-16)
Features
- run "stop" when startup throws a error (235a09f)
- still run "stop" even if state is "stopped" (ca38110)
Dependencies
- @types/jest: upgrade to version 27.4.0 (bed1767)
- @types/uuid: upgrade to version 8.3.4 (3bc4fcf)
- @typescipt-eslint/*: upgrade to version 5.9.1 (9c3d950)
- commitlint: upgrade to version 16.0.2 (0c90e4d)
- conventional-changelog-conventionalcommits: upgrade to version 4.6.3 (d7758fd)
- eslint: upgrade to version 7.6.0 (904aacc)
- jest: upgrade to version 27.4.7 (b9f8a1f)
- ts-jest: upgrade to version 27.1.3 (de4e235)
8.1.0 (2021-12-22)
Features
Dependencies
- @types/jest: upgrade to version 27.0.3 (202aef2)
- @types/tmp: upgrade to version 0.2.3 (4a18cb9)
- @types/uuid: upgrade to version 8.3.3 (4ea1aef)
- @typescript-eslint/*: upgrade to version 5.8.0 (dc67374)
- camelcase: upgrade to version 6.2.1 (42e535d)
- commitlint: upgrade to version 15.0.0 (e3700d0)
- debug: upgrade to version 4.3.3 (0f2384d)
- eslint: upgrade to version 8.5.0 (5ed28f8)
- jest: upgrade to version 27.4.5 (014d42f)
- mongodb: upgrade to version 4.2.2 (d7c2430)
- prettier: upgrade to version 2.5.1 (53f574b)
- ts-jest: upgrade to version 27.1.2 (3b979d7)
8.0.4 (2021-11-30)
Fixes
8.0.3 (2021-11-25)
Fixes
- MongoMemoryServer::getStartOptions: use "forceSamePort", even when instance is not defined (1170ad5), closes #578
Refactor
- MongoMemoryServer::stop: remove assertion for typescript types (df5b888)
8.0.2 (2021-11-07)
Fixes
8.0.1 (2021-11-05)
Fixes
- MongoMemoryServer: invert
isNewfor dbPaths (6b8845e)
Style
8.0.0 (2021-11-01)
⚠ BREAKING CHANGES
- There is now no more "beforeExit" listener added
- resolveConfig: Default MongoDB Binary version is now "5.0.3"
- mongodb: Upgrade to mongodb(nodejs) 4.1
Features
- errors: add Error "StdoutInstanceError" (382e7c6)
- errors: add errors "ParseArchiveRegexError" and "NoRegexMatchError" (fb02eac)
- MongoBinaryDownloadUrl: change to throw a error when debian 10 used for versions below 4.2.0 (bfb0ec4), closes #554 #448
- MongoInstance::stdoutHandler: change "instanceError" events to use "StdoutInstanceError" (3daa5ea)
- MongoInstance::stdoutHandler: change to handle "expection in initAndListen" (7774e9e)
- remove all "beforeExit" listeners (f3d8a19), closes #563
- resolveConfig: upgrade default mongodb version to 5.0.3 (75a722a), closes #555
- resolveConfig::findPackageJson: re-write internals to be more maintainable (8f16a2a)
- replace "mkdirp" with "utils.mkdir" (7579b47)
- DryMongoBinary::generateOptions: parse options from ARCHIVE_NAME or DOWNLOAD_URL (808cc7e), closes #528
- MongoBinaryDownloadUrl::translateArch: handle more variations of the same arch (0a22679)
- utils: add function "mkdir" (44eeb53)
Reverts
- Revert "docs(test-runners): add note to mocha / chai that process exit event may not be called" (a7c3c98)
Style
- DryMongoBinary::generatePaths: log options (02befa8)
- MongoBinaryDownloadUrl: add note for debian 11 (81c85f1)
Fixes
- DryMongoBinary::parseArchiveNameRegex: change regex to include "macos" (#562) (9d5bdbf)
- resolveConfig: fix debug enable (9c8cbb7)
Dependencies
- @types/jest: upgrade to version 27.0.2 (e079f0d)
- @types/semver: upgrade to version 7.3.9 (53f0354)
- @types/tar-stream: upgrade to version 2.2.2 (babce7f)
- @typescript-eslint/*: upgrade to version 5.2.0 (41f2a9a)
- commitlint: upgrade to version 14.1.0 (5ea0921)
- conventional-changelog-conventionalcommits: upgrade to version 4.6.1 (d00f6a9)
- doctoc: upgrade to version 2.1.0 (8cb7243)
- eslint: upgrade to version 8.1.0 (6790a0c)
- husky: upgrade to version 7.0.4 (65a7042)
- jest: upgrade to version 27.3.1 (8577380)
- lint-staged: upgrade to version 11.2.6 (493d894)
- mkdirp: remove unused dependency (c078ae8)
- mongodb: upgrade to version 4.1.3 (9516bed)
- prettier: upgrade to version 2.4.1 (36cd70f)
- ts-jest: upgrade to version 27.0.7 (9b0fb3c)
- tslib: upgrade to version 2.3.1 (1a36352)
- typescript: upgrade to version 4.4.4 (63606e4)
8.0.0-beta.11 (2021-11-01)
Features
- errors: add Error "StdoutInstanceError" (382e7c6)
- MongoInstance::stdoutHandler: change "instanceError" events to use "StdoutInstanceError" (3daa5ea)
- MongoInstance::stdoutHandler: change to handle "expection in initAndListen" (7774e9e)
Dependencies
- @types/semver: upgrade to version 7.3.9 (53f0354)
- @types/tar-stream: upgrade to version 2.2.2 (babce7f)
- @types/tmp: upgrade to version 0.2.2 (8f5efe3)
- @typescript-eslint/*: upgrade to version 5.2.0 (41f2a9a)
- commitlint: upgrade to version 14.1.0 (5ea0921)
- doctoc: upgrade to version 2.1.0 (8cb7243)
- eslint: upgrade to version 8.1.0 (6790a0c)
- husky: upgrade to version 7.0.4 (65a7042)
- jest: upgrade to version 27.3.1 (8577380)
- lint-staged: upgrade to version 11.2.6 (493d894)
- mongodb: upgrade to version 3.7.3 (fcc2f70)
- mongodb: upgrade to version 4.1.3 (9516bed)
- ts-jest: upgrade to version 27.0.7 (9b0fb3c)
- typescript: upgrade to version 4.4.4 (63606e4)
8.0.0-beta.10 (2021-10-26)
⚠ BREAKING CHANGES
- There is now no more "beforeExit" listener added
Features
8.0.0-beta.9 (2021-10-22)
Fixes
8.0.0-beta.8 (2021-10-20)
Features
- upgrade default mongodb binary version to 4.0.27 (c82e56c)
- upgrade mongodb patch version for "-global-*" packages (01a6ded)
Style
Fixes
- MongoInstance: try to fix some CodeQL redos (9fc3a33)
8.0.0-beta.7 (2021-10-19)
⚠ BREAKING CHANGES
- resolveConfig: Default MongoDB Binary version is now "5.0.3"
Features
Fixes
- resolveConfig: change default version to be a constant (non-changeable) (11c9547)
8.0.0-beta.6 (2021-10-19)
Style
- MongoInstance: add more tsdoc (36c1971)
Fixes
- add "@types/mongodb" to dependencies, because of exposing a mongodb type (6346922), closes #558
- MongoMemoryServer: change that "instance.auth" is not required to be set for enabling auth (4e4a41d)
- MongoMemoryServer: change to log value "createAuth" (9c3fea0)
- resolveConfig: fix debug enable (aff6838)
- resolveConfig::findPackageJson: actually apply processing to path options (25c4119), closes #548
8.0.0-beta.5 (2021-10-08)
Features
- MongoBinaryDownloadUrl: change to throw a error when debian 10 used for versions below 4.2.0 (bfb0ec4), closes #554 #448
Style
- MongoBinaryDownloadUrl: add note for debian 11 (81c85f1)
8.0.0-beta.4 (2021-10-05)
Features
- resolveConfig::findPackageJson: re-write internals to be more maintainable (8f16a2a)
Style
- DryMongoBinary::generatePaths: log options (02befa8)
8.0.0-beta.3 (2021-09-30)
Features
Dependencies
- mkdirp: remove unused dependency (c078ae8)
8.0.0-beta.2 (2021-09-29)
Features
- DryMongoBinary::generateOptions: parse options from ARCHIVE_NAME or DOWNLOAD_URL (808cc7e), closes #528
- errors: add errors "ParseArchiveRegexError" and "NoRegexMatchError" (fb02eac)
- MongoBinaryDownloadUrl::translateArch: handle more variations of the same arch (0a22679)
Fixes
- resolveConfig: fix debug enable (9c8cbb7)
8.0.0-beta.1 (2021-09-23)
⚠ BREAKING CHANGES
- mongodb: Upgrade to mongodb(nodejs) 4.1
Dependencies
- @types/jest: upgrade to version 27.0.2 (e079f0d)
- @typescript-eslint/*: upgrade to version 4.31.2 (c8d34b1)
- conventional-changelog-conventionalcommits: upgrade to version 4.6.1 (d00f6a9)
- jest: upgrade to version 27.2.1 (695527f)
- mongodb: upgrade to version 4.1 (6cf5502)
- prettier: upgrade to version 2.4.1 (36cd70f)
- tslib: upgrade to version 2.3.1 (1a36352)
- typescript: upgrade to version 4.4.3 (84e407b)
7.6.0 (2021-10-31)
Dependencies
7.5.1 (2021-10-19)
Fixes
- MongoInstance: try to fix some CodeQL redos (9fc3a33)
7.5.0 (2021-10-19)
Features
- upgrade default mongodb binary version to 4.0.27 (c82e56c)
- upgrade mongodb patch version for "-global-*" packages (01a6ded)
Style
7.4.6 (2021-10-19)
Fixes
- resolveConfig: change default version to be a constant (non-changeable) (11c9547)
7.4.5 (2021-10-19)
Fixes
7.4.4 (2021-10-14)
Fixes
- MongoMemoryServer: change that "instance.auth" is not required to be set for enabling auth (4e4a41d)
- MongoMemoryServer: change to log value "createAuth" (9c3fea0)
Style
- MongoInstance: add more tsdoc (36c1971)
7.4.3 (2021-10-05)
Fixes
7.4.2 (2021-09-29)
Fixes
- resolveConfig: fix debug enable (aff6838)
7.4.1 (2021-09-20)
Fixes
7.4.0 (2021-09-02)
Features
- errors: add "EnsureInstanceError" (e5aaebf)
- errors: add "Md5CheckFailedError" (6ca70f0)
- errors: add "NoSystemBinaryFoundError" (e1206c7)
- errors: add "StartBinaryFailedError" (83626e0)
- errors: add "UnableToUnlockLockfileError" (c1d1426)
- errors: add error "WaitForPrimaryTimeoutError" (db1a3aa)
- errors: rename "UnknownArchitecture" to "UnknownArchitectureError" (c546ab0)
- errors: rename "UnknownLockfileStatus" to "UnknownLockfileStatusError" (f0fb208)
- errors: rename "UnknownPlatform" to "UnknownPlatformError" (2800029)
- errors: unfiy binary X_OK checking and throwing errors (4401834)
- getos: support multiple "id_like" (ce42fad), closes #525
- MongoBinary: add ability to disable SYSTEM_BINARY version check (331d820), closes #529
- MongoMemoryReplSet: add named error for "count" assertion (d67202b)
- actually change "auth" to work on non-inmemory storageEngines (7ac3758), closes #533
- MongoBinaryDownloadUrl: add support for Amazon Distro (a7e14b5), closes #527
Refactor
- MongoInstance: debug: passthrough any extra arguments to the logger to handle (5dbdded)
- MongoMemoryServer: improve logging (0326b37)
Dependencies
- @google/semantic-release-replace-plugin: upgrade to version 1.1.0 (809f6f6)
- @types/debug: upgrade to 4.1.7 (557d40c)
- @types/find-cache-dir: upgrade to version 3.2.1 (5814d48)
- @types/jest: upgrade to version 26.0.24 (387c4da)
- @types/jest: upgrade to version 27.0.1 (c26feae)
- @types/mkdirp: upgrade to version 1.0.2 (4f273db)
- @types/mongodb: upgrade to version 3.6.20 (02aef1a)
- @types/semver: upgrade to version 7.3.8 (ae728f7)
- @typescript-eslint/*: upgrade to version 4.29.0 (38b42a9)
- @typescript-eslint/*: upgrade to version 4.30.0 (efd914e)
- async-mutex: upgrade to version 0.3.2 (01e662a)
- commitlint: upgrade to version 13.1.0 (8497e9f)
- eslint: upgrade to 7.32.0 (9202186)
- eslint-plugin-prettier: upgrade to version 4.0.0 (79e1b2d)
- find-cache-dir: upgrade to version 3.3.2 (2ef3e00)
- husky: upgrade to version 7.0.1 (2b37bda)
- husky: upgrade to version 7.0.2 (3b33ff8)
- jest: upgrade to version 27.1.0 (fbe852b)
- lerna: remove dependency (1266a57), closes #537
- lint-staged: upgrade to version 11.1.2 (e8d3575)
- semantic-release: upgrade to version 17.4.7 (c67b291)
- ts-jest: upgrade to version 27.0.4 (377a0d2)
- ts-jest: upgrade to version 27.0.5 (07f3e38)
- typescript: upgrade to version 4.4.2 (e89df5a)
Fixes
- MongoInstance: change "instanceReplState" to get triggered on "transition" (923aae6)
- MongoInstance: closeHandler: also log the exit signal (a9f42ea)
- MongoInstance: fix resetting "isInstancePrimary" in the same line (c91b703)
- MongoInstance: stop: use "this.debug" over "log" (00740ac)
- MongoInstance: update nodejs version warning (forgot in 7.0) (2741434)
- MongoInstance: use "shutdown" on all replset members instead of "replSetStepDown" on primary (40af0a0)
- MongoMemoryReplset: improve logging & disable "writeConcernMajorityJournalDefault" when memory (8427df8)
- resolveConfig: enable debug mode when defined through package config (20b121f)
- utils: killProcess: use better logging (aa75e42)
- utils::assertion: change to use named fallback error (88ae810)
Style
- errors: add REFACTOR comment (e9dd68f)
- MongoBinaryDownload::download: add "@returns" tsdoc (ddb88c4)
- MongoInstance: ignore nodejs warning from coverage (68adbbf)
- MongoMemoryReplSet: add todo (0bbc346)
- MongoMemoryServer: move protected function to other protected functions (3b1dc73)
- fix some typos "an" -> "a" (ad0a930)
7.4.0-beta.8 (2021-08-31)
Features
- MongoMemoryReplSet: add named error for "count" assertion (d67202b)
Dependencies
- @google/semantic-release-replace-plugin: upgrade to version 1.1.0 (809f6f6)
- @types/jest: upgrade to version 27.0.1 (c26feae)
- @typescript-eslint/*: upgrade to version 4.30.0 (efd914e)
- async-mutex: upgrade to version 0.3.2 (01e662a)
- eslint-plugin-prettier: upgrade to version 4.0.0 (79e1b2d)
- find-cache-dir: upgrade to version 3.3.2 (2ef3e00)
- husky: upgrade to version 7.0.2 (3b33ff8)
- jest: upgrade to version 27.1.0 (fbe852b)
- lerna: remove dependency (1266a57), closes #537
- semantic-release: upgrade to version 17.4.7 (c67b291)
- ts-jest: upgrade to version 27.0.5 (07f3e38)
- typescript: upgrade to version 4.4.2 (e89df5a)
Fixes
- utils::assertion: change to use named fallback error (88ae810)
7.4.0-beta.7 (2021-08-28)
Features
7.4.0-beta.6 (2021-08-27)
Features
- errors: unfiy binary X_OK checking and throwing errors (4401834)
Fixes
- MongoInstance: update nodejs version warning (forgot in 7.0) (2741434)
Style
- MongoInstance: ignore nodejs warning from coverage (68adbbf)
7.4.0-beta.5 (2021-08-27)
Features
Refactor
- MongoInstance: debug: passthrough any extra arguments to the logger to handle (5dbdded)
- MongoMemoryServer: improve logging (0326b37)
Style
- MongoMemoryReplSet: add todo (0bbc346)
- MongoMemoryServer: move protected function to other protected functions (3b1dc73)
Fixes
- MongoInstance: change "instanceReplState" to get triggered on "transition" (923aae6)
- MongoInstance: fix resetting "isInstancePrimary" in the same line (c91b703)
- MongoMemoryReplset: improve logging & disable "writeConcernMajorityJournalDefault" when memory (8427df8)
7.4.0-beta.4 (2021-08-12)
Fixes
- resolveConfig: enable debug mode when defined through package config (20b121f)
7.4.0-beta.3 (2021-08-12)
Features
- errors: add "EnsureInstanceError" (e5aaebf)
- errors: add "Md5CheckFailedError" (6ca70f0)
- errors: add "NoSystemBinaryFoundError" (e1206c7)
- errors: add "StartBinaryFailedError" (83626e0)
- errors: add "UnableToUnlockLockfileError" (c1d1426)
- errors: add error "WaitForPrimaryTimeoutError" (db1a3aa)
- errors: rename "UnknownArchitecture" to "UnknownArchitectureError" (c546ab0)
- errors: rename "UnknownLockfileStatus" to "UnknownLockfileStatusError" (f0fb208)
- errors: rename "UnknownPlatform" to "UnknownPlatformError" (2800029)
Style
- fix some typos "an" -> "a" (ad0a930)
Fixes
- MongoInstance: closeHandler: also log the exit signal (a9f42ea)
- MongoInstance: stop: use "this.debug" over "log" (00740ac)
- MongoInstance: use "shutdown" on all replset members instead of "replSetStepDown" on primary (40af0a0)
- utils: killProcess: use better logging (aa75e42)
7.4.0-beta.2 (2021-08-09)
Features
Fixes
- MongoBinaryDownloadUrl: getRhelVersionString: fallback to "70" (55293a1)
Dependencies
- @types/debug: upgrade to 4.1.7 (557d40c)
- @types/find-cache-dir: upgrade to version 3.2.1 (5814d48)
- @types/jest: upgrade to version 26.0.24 (387c4da)
- @types/mkdirp: upgrade to version 1.0.2 (4f273db)
- @types/mongodb: upgrade to version 3.6.20 (02aef1a)
- @types/semver: upgrade to version 7.3.8 (ae728f7)
- @typescript-eslint/*: upgrade to version 4.29.0 (38b42a9)
- commitlint: upgrade to version 13.1.0 (8497e9f)
- eslint: upgrade to 7.32.0 (9202186)
- husky: upgrade to version 7.0.1 (2b37bda)
- lint-staged: upgrade to version 11.1.2 (e8d3575)
- ts-jest: upgrade to version 27.0.4 (377a0d2)
7.4.0-beta.1 (2021-08-07)
Features
7.3.6 (2021-08-09)
Fixes
- MongoBinaryDownloadUrl: getRhelVersionString: fallback to "70" (55293a1)
7.3.5 (2021-08-07)
Fixes
7.3.4 (2021-07-27)
Fixes
- MongoInstance: assert "this.mongodProcess.pid" before usage (childprocess pid can be undefined) (394ea3a)
- MongoInstance: stdoutHandler: try to apply CodeQL suggestions for CWE-730 (e17dc7c)
- utils: allow optional parameter and test if undefined (childprocess pid can be undefined) (84f59a5)
7.3.3 (2021-07-27)
Fixes
- MongoBinaryDownload: handle all options from "MongoBinaryOpts" in constructor (5ce583e), closes #514
7.3.2 (2021-07-24)
Fixes
- MongoBinaryDownload: getDownloadUrl: allow DOWNLOAD_MIRROR to add extra paths (ae7ddab), closes #512
7.3.1 (2021-07-21)
Fixes
- DryMongoBinary: generateDownloadPath: return sytemBinary if exists (91ab2b0)
- DryMongoBinary: use provided systembinary (and not ignore it) (bc89da3)
7.3.0 (2021-07-19)
Features
7.2.1 (2021-07-15)
Fixes
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)
7.1.0 (2021-07-05)
Features
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)
- MongoInstance: change root values of "MongodOpts" to be required (9779721)
- MongoInstance: extend EventEmitter (10965c7), closes #365
- MongoInstance: graceful ReplSet shutdown (017239c)
- MongoInstance: implement "ManagerBase" (e6e4e6b)
- MongoInstance: make "port" and "dbPath" required (749c3e3)
- MongoInstance: outsource "MongodOpts.instance" (d9dd6f8)
- MongoInstance: remove function "getPid" (f40da9a)
- MongoInstance: remove function "waitPrimaryReady" (1536dc2)
- MongoInstance: rename functions to unify all classes (655d295)
- MongoInstance: rename interface "MongodOps" to "MongodOpts" (edd4d39)
- MongoInstance: rename property "childProcess" to "mongodProcess" (46c56d8)
- MongoInstance: run: add check that the mongoBinary has sufficient permissions (d9c1019)
- MongoMemoryReplSet: add basic "createAuth" support (6c118a9)
- MongoMemoryReplSet: add error if replSet count is 0 or lower (0202e8f)
- MongoMemoryReplSet: add getter "state" (65135a8)
- MongoMemoryReplSet: allow re-use of instances & dbPath (3d64705)
- MongoMemoryReplSet: change more errors to "StateError" & more consistent logs (64780ee)
- MongoMemoryReplSet: getUri: allow executing while state is "init" (b3ebac2)
- MongoMemoryReplSet: remove function "getConnectionString" (dbe844e)
- MongoMemoryReplSet: remove function "getDbName" (6ebafbd)
- MongoMemoryReplSet: remove option "autoStart" (90ed578)
- MongoMemoryReplSet: remove option "oplogSize" (07937e2)
- MongoMemoryReplSet: rename "opts.*" to "*Opts" & add getters & setters (c701f09)
- MongoMemoryReplSet: replace custom errors with "StateError" (f49d7a1)
- 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 "create" (6dcb12a)
- MongoMemoryServer: add function "getStartOptions" (f057ea7)
- MongoMemoryServer: add getter function "state" (c19493f)
- MongoMemoryServer: allow re-use of instances & dbPath (e2ae879)
- MongoMemoryServer: change more errors to "StateError" & more consistent logs (b05ec44)
- MongoMemoryServer: extend EventEmitter (04ca3d7)
- MongoMemoryServer: implement "ManagerAdvanced" (709f733)
- MongoMemoryServer: remove "MongoInstanceDataT.childProcess" (c71d8d4)
- MongoMemoryServer: remove "StartupInstanceData.uri" (dec17a4)
- MongoMemoryServer: remove deprecated function "getConnectionString" (198f4c0)
- MongoMemoryServer: remove function "getDbPath" (2343771)
- MongoMemoryServer: remove function "getPort" (5eb7017)
- MongoMemoryServer: remove option "autoStart" (347085f)
- MongoMemoryServer: rename function "getInstanceInfo" into "get instanceInfo" (ae8a9f8)
- MongoMemoryServer: replace custom error with "StateError" (e965ef5)
- resolveConfig: add enum for all resolveConfig Variables (7bd9160)
- resolveConfig: remove alias "reInitializePackageJson" (acc4b0a)
- utils: add "ManagerBase" and "ManagerAdvanced" classes (40190ef)
- utils: uriTemplate: allow "port" to be undefined so that "host" can be an list of hosts (e101162)
- change binary from "base/version/mongod" to "base/mongod-arch-dist-version" (2682704), closes #256
- change package "mongodb" to be non-optional (2b14552)
- remove cross-spawn (c67ee8f)
- MongoMemoryServer: remove function "getDbName" (e2fc23f)
- utils: add function "pathExists" (4114d27)
Reverts
- Revert "dependencies(semantic-release): upgrade to 17.4.4 (and related)" (9825c63)
- "chore: remove unused file "tsconfig.test"" (cc053c7)
- "chore(codecov): add codecov config" (1e66e8c)
- "fix(MongoMemoryReplSet): add extra fail-save to the timout" (b2d63d9)
- "test(replset-single): add in-detail error printing on error" (7989082)
Refactor
- *index: use "tslib.__exportStar" (2e9faec)
- db_util: uriTemplate: change "query" to be an string-array (8dffa64)
- getos: replace "promisify" with "fs.promises" (60e184b)
- index: directly export instead of import-export (ee2e62b)
- MongoBinary: change "cache" to be an Map (74d30a0), closes #374
- MongoBinary: getSystemPath: return "undefined" instead of empty string (10039f9)
- MongoBinary: remove unused interface "MongoBinaryCache" (025df2e)
- MongoBinary: replace "promisify" with "fs.promises" (5a769f3)
- MongoBinary: use "DryMongoBinary.generateOptions" (0e7e73f)
- MongoBinaryDownload: enhance md5 regex (becac06)
- MongoBinaryDownload: extract: combine win32 and linux regex (702eaa9)
- MongoBinaryDownload: extract: combine win32 filter regex (28cfc7c)
- MongoBinaryDownload: replace "existsSync" with "utils.pathExists" (d8de1cc)
- MongoBinaryDownload: replace "promisify" with "fs.promises" (911a922)
- MongoBinaryDownload: unify path resolving (4258eb7)
- MongoBinaryDownloadUrl: add helper function for regex de-duplication (3d96e5e)
- MongoBinaryDownloadUrl: change "translateArch" to be static (ba87378)
- MongoBinaryDownloadUrl: minify "getUbuntuVersionString" (04b0ee9)
- MongoBinaryDownloadUrl: remove "async" where not needed (7970fbb)
- MongoBinaryDownloadUrl: translatePlatform: change default error (61685e0)
- MongoInstance: add debug log to "prepareCommandArgs" (64e2304)
- MongoInstance: change "null" to "undefined" for "childProcess" & "killerProcess" (232b812)
- MongoInstance: kill_internal: rename "process" to "childProcess" (1af3db2)
- MongoInstance: move "debug" into an private function (3d23d5b)
- MongoInstance: remove case for "shutting down with code" (a7e7874)
- MongoInstance: remove redundant "debug.enabled" check (104cf42)
- MongoInstance: remove splitting of value "this.instanceOpts" (6bd1b98)
- MongoInstance: remove unused return value (96cd1d9)
- MongoInstance: remove value "childProcessList" (207263b)
- MongoInstance: rename event "instanceState" to "instanceReplState" (f9aed77)
- MongoInstance: replace "instanceReady" and "instanceFailed" with events (6925c45)
- MongoInstance: shorten "constructor" (efb31d9)
- MongoInstance: split value "opts" (91edfa3)
- MongoMemoryReplSet: _initReplSet: directly use db "admin" (a335500)
- MongoMemoryReplSet: _initReplSet: reassign "adminDb" (19ae688)
- MongoMemoryReplSet: _initReplSet: remove redundant object assignment (8e6e312)
- MongoMemoryReplSet: _initReplSet: rename "conn" to "con" (335780e)
- MongoMemoryReplSet: _waitForPrimary: remove value "timeoutPromise" (18b9a58)
- MongoMemoryReplSet: "_waitForPrimary" use new events (ed4b9e9)
- MongoMemoryReplSet: add function "stateChange" (3c3d6fb)
- MongoMemoryReplSet: change "_initReplSet" to be "protected" (f46d113)
- MongoMemoryReplSet: change "_initServer" to be "protected" (4c32f45)
- MongoMemoryReplSet: change "_state" to be "protected" (415fc8f)
- MongoMemoryReplSet: change "_waitForPrimary" to be "protected" (d0d62e2)
- MongoMemoryReplSet: change "getInstanceOpts" to be "protected" (e954806)
- MongoMemoryReplSet: change "getUri" to be sync (13f3f1d)
- MongoMemoryReplSet: change "if not state 'stopped'" to switch (df1af0c)
- MongoMemoryReplSet: change if-error to "assertion" (179bdbb)
- MongoMemoryReplSet: improve "start" (c2311cb)
- MongoMemoryReplSet: refactor "_state" into an enum (e3d4678)
- MongoMemoryReplSet: refactor multiple "if" into one switch (8b8a609)
- MongoMemoryReplSet: remove "?" from "MongoMemoryReplSetOptsT" (138e21d)
- MongoMemoryReplSet: remove "async" from "getDbName" (2775b4f)
- MongoMemoryReplSet: remove commented out HACK (1ad5bdc)
- MongoMemoryReplSet: remove dynamic import "mongodb" (fb958ae)
- MongoMemoryReplSet: rename "MongoMemoryReplSetEventEnum" to "MongoMemoryReplSetEvents" (bfd5441)
- MongoMemoryReplSet: rename "MongoMemoryReplSetStateEnum" to "MongoMemoryReplSetStates" (c02e21d)
- MongoMemoryReplSet: setup proper events (644a335)
- MongoMemoryReplSet: shorten constructor (e17762d)
- MongoMemoryReplSet: small improvements (9b17925)
- MongoMemoryReplSet: stop: reset "servers" after stopping them (0aa2293)
- MongoMemoryReplSet: waitUntilRunning: shorten function (0fc27d6)
- MongoMemoryServer: add sanity check to "stop" (8aff4ef)
- MongoMemoryServer: always reset "port" to "undefined" (8ca0729)
- MongoMemoryServer: change "_state" to be "protected" (b716c2c)
- MongoMemoryServer: change "getDbName" to be sync (85a97e0)
- MongoMemoryServer: change "getDbPath" to be sync (281fa1c)
- MongoMemoryServer: change "getInstanceInfo" to return undefined (27349a3)
- MongoMemoryServer: change "getPort" to be sync (e849f2c)
- MongoMemoryServer: change "getUri" to be sync (5b53f03)
- MongoMemoryServer: change "instanceInfo" to be "protected" (7390eee)
- MongoMemoryServer: ensureInstance: move "return instanceInfo" into case "running" (4214aa5)
- MongoMemoryServer: merge "runningInstance" and "instanceInfoSync" into "instanceInfo" (7642c75)
- MongoMemoryServer: refactor "start" to be more readable (7fb31c1)
- MongoMemoryServer: remove "await" from "getUriBase" call (ca536b6)
- MongoMemoryServer: remove "null" use "undefined" (086abef)
- MongoMemoryServer: remove call to "ensureInstance" inside "stop" (57801cf)
- MongoMemoryServer: remove destructuring of "promises" (a828506)
- MongoMemoryServer: rename "instanceInfo" to "_instanceInfo" (d3ddcb4)
- MongoMemoryServer: rename "MongoMemoryServerEventEnum" to "MongoMemoryServerEvents" (251c7ed)
- MongoMemoryServer: rename "MongoMemoryServerStateEnum" to "MongoMemoryServerStates" (139d3fd)
- MongoMemoryServer: rename function "assertionInstanceInfoSync" to "assertionInstanceInfo" (03c8343)
- MongoMemoryServer: start: check "state" instead of "instanceInfo" (4fd1ede)
- postinstall: rename function "postInstall" to "postInstallEnsureBinary" (aca8262)
- resolveConfig: remove unnecessary optional chain (1c6578d)
- utils: assertion: remove error code from default error (bbad7c4)
- apply suggested changes (2a9aab7)
- 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)
- unify interface names (remove "T") (78a78cd), closes #395
- MongoMemoryServer: shorten "getUri" (f1024e5)
- MongoMemoryServer: start: remove first ".catch" (fafaa29)
- postinstall: change all packages to depend on "core" (de41060), closes #378 #174
- replset-single: shorten "state errors" (2559117)
- tsconfig.test: extend "core" tsconfig (a8081a6)
- move function "kill_internal" to "db_util" (fd27986), closes /github.com/nodkz/mongodb-memory-server/pull/389#discussion_r496997760
- normal export and default export classes & functions (33bb12c)
Style
- db_util: add link on why "ensureAsync" is needed (412e615)
- DryMongoBinary: locateBinary: simplify "if-condition" (3219315)
- DryMongoBinary: remove unused optional chaning (06cfccb)
- eslintrc: add environment "node" (8f3ed19)
- eslintrc: add rule "padding-line-between-statements" for "function" & "class" (6a0ebd4)
- eslintrc: add rule "padding-line-between-statements" for "if" (3efdb47)
- eslintrc: add rule "padding-line-between-statements" for "import" (3bfc4ef)
- eslintrc: add rule "padding-line-between-statements" for "return" (05b02d2)
- eslintrc: comma-dangle: change "functions" to "never" (0bf9c3e)
- eslintrc: set rule "no-else-return" to "warn" (cb242e9)
- eslintrc: set rule "no-unused-expressions" to warn (d08b293)
- lockfile: add log when "readout" is for not for self (1b669ad)
- lockfile: add more commentation (6d4576a)
- lockfile.test: increase timeouts (c541b0e)
- MongoBinary: add tsdoc to describe what the class is for (36f1118)
- MongoBinary: getPath: combine "defaultOptions" & "options" into single assignment (b107d54)
- MongoBinary: getPath: simplify "if-condition" (7584b56)
- MongoBinary: remove duplicated definitions from interface (87a3ca8)
- MongoBinaryDownload: makeMD5check: add more tsdoc (911a09a)
- MongoBinaryDownload: rename interface "DownloadProgress" to "MongoBinaryDownloadProgress" (2bad87c)
- MongoBinaryDownloadUrl: "Debain" to "Debian" (1879e4b), closes #424
- MongoBinaryDownloadUrl: getArchiveNameLinux: combine "name" assignments (50878b3)
- MongoBinaryDownloadUrl: getArchiveNameOsx: combine "name" assignments (c4bbf79)
- MongoBinaryDownloadUrl: getArchiveNameWin: combine "name" assignments (258a6a1)
- MongoInstance: _launchKiller: remove commented-out code (132917f)
- MongoInstance: add "@fires" to all functions that emit an event (0e2ede3)
- MongoInstance: add TODO comments (5e320ca)
- MongoInstance: add tsdoc (9896641)
- MongoInstance: add tsdoc to the variables in "Mongoinstance" (7ac9728)
- MongoInstance: change comments into tsdoc (278619c)
- MongoInstance: improve tsdoc for "waitPrimaryReady" (f3475b5)
- MongoInstance: move comment into tsdoc (d749abb)
- MongoInstance: move some comments (9832760)
- MongoInstance: overwrite EventEmitter functions to use enum (999f5e2)
- MongoInstance: remove "null" from "port" (75d805f)
- MongoInstance: rename interface to have an better name (60858b1)
- MongoInstance: rename interface to have an better name (916aa11)
- MongoInstance: simplify imports (5621da9)
- MongoInstance: unify promise variable names (73691da)
- MongoMemoryReplSet: _initReplSet: change logs to be more clear (561c883)
- MongoMemoryReplSet: _initReplSet: remove "await" from non-Promise functions (846f969)
- MongoMemoryReplSet: _waitForPrimary: add log that function got called (c5f66a3)
- MongoMemoryReplSet: add log to "stop" (d3dff26)
- MongoMemoryReplSet: add more logs (a3a911f)
- MongoMemoryReplSet: add more tsdoc (6b60a71)
- MongoMemoryReplSet: add tsdoc to "initAllServers" (ba46aee)
- MongoMemoryReplSet: remove commented-out case (8e3ae46)
- MongoMemoryReplSet: remove TODO (5645a87), closes #392
- MongoMemoryReplSet: replace templating string with normal (9add2bc)
- MongoMemoryReplSet: trim error message & add "_" to unused parameter (6be0c00)
- MongoMemoryServer: change "StartupInstanceData" to depend on "MongoMemoryInstanceOpts" (26af098)
- MongoMemoryServer: getStartOptions: use "spread" instead of many lines (9a01529)
- MongoMemoryServer: inherit type instead of redefining (eb41f81)
- MongoMemoryServer: remove comment & change log (b098941)
- README: environment variables: add legend for booleans (17b1937)
- README: fix missing "MONGOMS_" on "SKIP_OS_RELEASE" (e352495)
- resolveConfig: add "filename" to logs (7809fcd)
- resolveConfig: update tsdoc (4e5469c)
- utils: add more tsdoc to "statPath" & "pathExists" (3b36143)
- utils: authDefault: add tsdoc (aab1647)
- remove "uri" value when only used once (150494e)
- rename import "promises" (from fs) to "fspromises" everywhere (f876670)
Fixes
- DryMongoBinary: generatePaths: this function should now not hit the filesystem anymore (8aefba5)
- DryMongoBinary: only use global path when not empty (9d176b2), closes #478
- DryMongoBinary: use "INIT_CWD" when available (cc2da32), closes #478
- errors: StateError: fix type for "wantedStates" (6297275)
- MongoBinary: add information about "RUNTIME_DOWNLOAD" to no binary found error (94ee82d)
- MongoBinary: change to match with regex instead of string splitting (ab1cd36)
- MongoBinary: enhance systemBinary version regex (0d990d3)
- MongoBinary: remove using "binaryVersion" for version, because "version" cannot be undefined (72c8199)
- MongoBinary: use ".stdout.toString" for command output parsing (d8d6749), closes #487
- MongoBinary: use less variables & extend error (8b448db)
- MongoBinary: use semver for version comparison (d1f181a)
- MongoBinaryDownload: clear line before writing progress (db3796a)
- MongoBinaryDownload: download: escape paths in log & errors (5d2703e)
- MongoBinaryDownload: enhance progress message (ada4f2a)
- MongoBinaryDownload: extract: remove only once used variable & escape paths in errors (3d5e9cb)
- MongoBinaryDownload: getMongodPath: add more logging & escape path in error (962cc9f)
- MongoBinaryDownload: getPath: reduce some calls (43b746a)
- MongoBinaryDownload: httpDownload: open filestream only on successful response (57f3c7c)
- MongoBinaryDownload: makeMD5check: unlink md5 file after check (c0b707d)
- MongoBinaryDownload: unify how the downloadUrl is represented (23f057e)
- MongoBinaryDownloadUrl: add fedora version 34+ handling (8f33ef4), closes #304
- MongoBinaryDownloadUrl: change interface to actual needs (a906acb)
- MongoBinaryDownloadUrl: getArchiveName: change tsdoc & simplify "if-condition" (aaab616)
- MongoBinaryDownloadUrl: getDownloadUrl: try "DOWNLOAD_URL" before getArchiveName (7a8a4c3)
- MongoBinaryDownloadUrl: use debian92 for versions <4.2.0 (79306c5), closes #448
- MongoBinaryUrl: getDownloadUrl: try to create an "URL" to check if the url is valid (25c865c)
- MongoInstance: change logs to be more up-to-date (d421e01)
- MongoInstance: debug: change to be "protected" instead of "private" (633a35e)
- MongoInstance: remove interface "MongoInstanceOpts" in favor of "MongoMemoryInstanceProp" (7efb4ff)
- MongoInstance: start: update logs to reflect actual function name (1e5a2d7)
- MongoInstance: stdoutHandler: dont use "else if" (03184d4)
- MongoInstance: stop: fix log & remove double "con.close" (bb2697c)
- MongoInstance: update tsdoc & enhance logging (2d9e8f5)
- MongoMemoryReplSet: _initReplSet: add more logs (952fbf5)
- MongoMemoryReplSet: dont generate an "otherDb" if "othereDb" is false (63497c0)
- MongoMemoryReplSet: getUri: loop over less arrays (dec9bac)
- MongoMemoryReplSet: getUri: use "uriTemplate" instead of re-doing (c6c9321)
- MongoMemoryReplSet: implement "ManagerAdvanced" & add logging to "create" (94e3092)
- MongoMemoryReplSet: start: change state on error (20433b5)
- MongoMemoryReplSet: start: move "beforeExit" listener setup before starting instances (d1cc648)
- MongoMemoryServer: add some tsdoc & change an if-throw to assertion (5c7acb4)
- MongoMemoryServer: change options instead of creating new instance for auth creation (171f1fb)
- MongoMemoryServer: change state to stopped when start fails (e9134a7)
- MongoMemoryServer: createAuth: fix typo in "customData" & add "customData" to extra users (31c98c9)
- MongoMemoryServer: dont trigger "otherDb" if "otherDbName" is false (ffb096d)
- MongoMemoryServer: ensureInstance: change logs to be consistent with others (3d430c1)
- MongoMemoryServer: fix typo in warning (532bc09)
- MongoMemoryServer: resolve nodejs warning "DEP0147" (c498e22)
- MongoMemoryServer: start: dont add "beforeExit" listener if being in an replset (f9c555d)
- MongoMemoryServer: stop: change log to be better sounding (a009693)
- postinstallHelper: reduce variables (b42bac3)
- resolveConfig: envToBool: return "false" if input is somehow not an string (6d78971)
- resolveConfig: move executing "findPackageJson" after enabling debug (7e4c8dc)
- resolveConfig: resolveConfig: always convert any value to string (27f1f5c)
- change "generateDbName" to return an empty string by default (840be19), closes #141
- change default version to "4.0.25" (ffe2875)
- fix description & usage of "dbName" in mongo URI (7b986e1), closes #141
- -global: change "mongodb_version" to latest patch version (adcbdcf)
- db_util: killProcess: fix "SIGINT"-"SIGKILL" warn condition (4113d94)
- DryBinary: use "modulesCache/version/binary" instead of "modulesCache/mongodb-binaries/version/binary" (072abde)
- DryMongoBinary: only use "resolveConfigValue" when not empty (08e71cf)
- getos: add lsb-release file pattern to regex (0cc7dd5)
- getos: add tests for "parseOS" and "parseLSB" (6cdf482)
- getos: replace "not undefined" with "envToBool" (7fde8be)
- getos: tryFirstReleaseFile: simplify file match (7a46fac)
- global: use an absolute module path to core in global index scripts (2428fd8)
- lockfile: add uuid to lock instance (75574a1)
- lockfile: checkLock: handle ENOENT (7d3e998)
- lockfile: ignore lockfile unlink fail (ceea1a7)
- MongoBinary: add more logs (e980a79), closes #434
- MongoBinary: change "LATEST_VERSION" to latest patch version "4.0.20" (23e6eaa)
- MongoBinary: ensure lockfile gets unlocked in case of error (e81db43)
- MongoBinary: getSystemPath: also check for execute permission (a501842)
- MongoBinaryDownload: add more logging (b63f629)
- MongoBinaryDownload: change "downloadDir" to be required (d2f2e30)
- MongoBinaryDownload: force an status print on download finish (62337fd)
- MongoBinaryDownload: use "mkdirp" over "fs.mkdir" (c64a321)
- MongoBinaryDownload: use "MongoBinaryOpts" over "MongoBinaryDownloadOpts" (ce193ce)
- MongoBinaryDownload: use new "URL" class instead of deprecated "url.parse" (70af5d2)
- MongoBinaryDownloadUrl: getArchiveName: throw error if platform is unkown (9fc358b)
- MongoBinaryDownloadUrl: handle Debian "testing" release (#430) (9c2c834)
- MongoBinaryDownloadUrl: remove unused parameter (d72ed42)
- MongoBinaryDownloadUrl: support macos arm64 to x64 archive translation (2aa9b38)
- MongoBinaryDownloadUrl: use DryBinary.generateOptions's "os" instead of calling "getOS" directly (ac025d9)
- MongoInstance: add more logs (e8d2d4b), closes #434
- MongoInstance: give better error reporting when library file is missing (692455a), closes #408
- MongoInstance: handle code "12" on windows (718aed7), closes #411
- MongoInstance: kill: ensure only error ignored is the actual error to be ignored (5e377fa)
- MongoInstance: remove resetting "port" inside "start" (7861a6f), closes #393
- MongoInstance: reset "childProcess" and "killerProcess" after "kill" (49c710d)
- MongoInstance: run: reset all booleans on (188d333)
- MongoMemoryReplSet: _initReplSet: check if there is already an PRIMARY (a1c9264)
- MongoMemoryReplSet: _initReplSet: throw error if "this.servers.length" is "<= 0" (019b118)
- MongoMemoryReplSet: _waitForPrimary: check if instance is already primary (8f65696)
- MongoMemoryReplSet: "getUri" now uses "waitUntilRunning" (18428d5)
- MongoMemoryReplSet: add more logs (41a0be0), closes #434
- MongoMemoryReplSet: change "_waitForPrimary" timout message to be an error (89c8af6)
- MongoMemoryReplSet: ensure "start" is async (765b5b1)
- MongoMemoryReplSet: initAllServers: execute "stateChange" with "init" (28bcf5b)
- MongoMemoryReplSet: move "removeListener" before "_state" check (60646eb)
- MongoMemoryReplSet: register listener for event "beforeExit" inside "start" (7859d6c)
- MongoMemoryReplSet: remove unnecessary default to empty array (2035845)
- MongoMemoryReplSet: throw error if state is not "running" or "init" (27f6215)
- MongoMemoryReplSet: update when "cleanup" is run and added (836dc9c)
- MongoMemoryServer: add more logs (9d12b04), closes #434
- MongoMemoryServer: stop: return "false" if already stopped (b3c868e)
- postinstall: use an absolute module path to core in postinstall scripts (d71ea48)
- resolveConfig: add helper function to add the prefix to an variable name (8334c45)
- resolveConfig: change to use the first found package.json with an non-empty config field (4d9de37), closes #439
- resolveConfig: findPackageJson: resolve file paths directly (0bec0bf), closes #440
- resolveConfig: resolve download dir and system binary relative to found package.json (bc6ee8e)
- resolveConfig: simplify packageJson type (fac363d)
- "infomation" to "information" (da6c89d), closes #424
- "unkown" to "unknown" (798b0db), closes #424
- broken build (Cannot find module 'mongodb-memory-server') (3c7d102)
- types: remove alias "SpawnOptions" (8b963c5)
- types: remove unused types (ab2944b)
- utils: ensureAsync: change from "setImmediate" to "process.nextTick" (3da59cc)
- utils: getHost: reduce calls by combining regex (1b46769)
- utils: killProcess: check if the childProcess PID is still alive (96c30de)
- utils: killProcess: unify log and variable names with other code (5605ea0)
- utils: remove default export (102e4b0)
- remove unused file "deprecate" (bb3e0f4)
Dependencies
- @types/debug: upgrade to 4.1.6 (dd112af)
- @types/dedent: remove unused dependency (1cb479d)
- @types/find-package-json: upgrade to 1.2.0 (d2dc5c6)
- @types/find-package-json: upgrade to 1.2.1 (8103713)
- @types/jest: upgrade to 26.0.23 (f804224)
- @types/lockfile: remove unused dependency (fa3d6c8)
- @types/md5-file: remove stub types package (ad8aec4)
- @types/mongodb: upgrade to 3.6.18 (2adc43e)
- @types/mongodb: upgrade to 3.6.19 (a539022)
- @types/node: change from "^" to "~" (000d601)
- @types/semver: upgrade to 7.3.6 (754c565)
- @typescript-eslint/*: upgrade to 4.28.1 (87e98e6)
- commitlint: upgrade to 12.1.4 (and related) (935e460)
- conventional-changelog-conventionalcommits: upgrade to 4.6.0 (d8a22a4)
- cross-env: upgrade to 7.0.3 (b412ce2)
- doctoc: upgrade to 2.0.0 (8e1a091)
- doctoc: upgrade to 2.0.1 (b40dfdc)
- eslint: upgrade to 7.18.0 (6dc0b75)
- eslint: upgrade to 7.20.0 (and related) (715fdbd)
- eslint: upgrade to 7.29.0 (and related) (e118e7d)
- eslint-config-prettier: upgrade to 6.15.0 (7bbcc33)
- husky: upgrade to 5.1.1 (4e93d29)
- husky: upgrade to 6.0.0 (3fdf792)
- husky: upgrade to 7.0.0 (c58a9ec)
- jest: upgrade to 26.6.3 (8adf360)
- jest: upgrade to 27.0.5 (and related) (e7f43a3)
- jest: upgrade to 27.0.6 (7a6e051)
- lerna: upgrade to 4.0.0 (9176e50)
- lint-staged: upgrade to 10.5.1 (6339aaa)
- lint-staged: upgrade to 11.0.0 (3429e69)
- mongodb: upgrade to 3.6.5 (d0eabf6)
- mongodb: upgrade to 3.6.9 (bfc4b5e)
- os: remove unused dependency (ab027c7)
- prettier: upgrade to 2.3.1 (abff587)
- prettier: upgrade to 2.3.2 (21efc3d)
- semantic-release: upgrade to 17.2.2 (1cb1fec)
- semantic-release: upgrade to 17.3.9 (and related) (d433278)
- semantic-release: upgrade to 17.4.4 (and related) (16ccef1)
- semver: upgrade to 7.3.5 (b4d30a4)
- ts-jest: upgrade to 26.4.4 (b8f1fae)
- ts-jest: upgrade to 26.5.2 (5c07ee7)
- tslib: include tslib dependency in non-core packages (6125d2f)
- tslib: upgrade to 2.3.0 (2dccb71)
- typescript: upgrade to 4.1.3 (30ea057)
- typescript: upgrade to 4.3.4 (efebaa8)
- typescript: upgrade to 4.3.5 (b778965)
- allow "^" range for all type packages (37c01d8)
- pin all non-types devDependencies (b647153)
- remove devDependency "mongodb" (dbd82a7)
- update lockfile (7ca52da)
- upgrade subdependencies (yarn upgrade) (b7030ae)
- uuid: add "^" (e12396e)
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)
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)
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)
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)
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)
7.0.0-beta.47 (2021-06-25)
Fixes
- MongoBinary: enhance systemBinary version regex (0d990d3)
- MongoBinary: use ".stdout.toString" for command output parsing (d8d6749), closes #487
7.0.0-beta.46 (2021-06-17)
⚠ BREAKING CHANGES
getUri's parameter got changed to use ""(empty) by default
Fixes
7.0.0-beta.45 (2021-06-17)
⚠ BREAKING CHANGES
getUri's parameter got changed to what the actual definition is, and uses "admin" by default
Fixes
7.0.0-beta.44 (2021-06-13)
Features
7.0.0-beta.43 (2021-06-02)
Fixes
- DryMongoBinary: only use global path when not empty (9d176b2), closes #478
- DryMongoBinary: use "INIT_CWD" when available (cc2da32), closes #478
7.0.0-beta.42 (2021-05-10)
Fixes
- MongoMemoryServer: resolve nodejs warning "DEP0147" (c498e22)
7.0.0-beta.41 (2021-05-09)
Fixes
- MongoBinaryDownload: clear line before writing progress (db3796a)
7.0.0-beta.40 (2021-05-06)
Fixes
- resolveConfig: resolve download dir and system binary relative to found package.json (bc6ee8e)
7.0.0-beta.39 (2021-05-05)
Fixes
7.0.0-beta.38 (2021-03-23)
⚠ BREAKING CHANGES
- MongoMemoryServer: "MongoMemoryServer" now implements "ManagerAdvanced"
- MongoInstance: "MongoInstance" now implements "ManagerBase"
- MongoInstance: renaming "MongoInstance.childProcess" to "MongoInstance.mongodProcess" can break some api's
Features
- DryMongoBinary: combineBinaryName: remove unused parameter (edee483)
- MongoInstance: implement "ManagerBase" (e6e4e6b)
- MongoInstance: rename property "childProcess" to "mongodProcess" (46c56d8)
- MongoMemoryServer: implement "ManagerAdvanced" (709f733)
- utils: add "ManagerBase" and "ManagerAdvanced" classes (40190ef)
Style
- DryMongoBinary: locateBinary: simplify "if-condition" (3219315)
- MongoBinary: getPath: combine "defaultOptions" & "options" into single assignment (b107d54)
- MongoBinary: getPath: simplify "if-condition" (7584b56)
- MongoBinaryDownloadUrl: getArchiveNameLinux: combine "name" assignments (50878b3)
- MongoBinaryDownloadUrl: getArchiveNameOsx: combine "name" assignments (c4bbf79)
- MongoBinaryDownloadUrl: getArchiveNameWin: combine "name" assignments (258a6a1)
- MongoInstance: change comments into tsdoc (278619c)
- MongoInstance: move some comments (9832760)
- MongoInstance: simplify imports (5621da9)
- MongoInstance: unify promise variable names (73691da)
Fixes
- MongoBinaryDownload: download: escape paths in log & errors (5d2703e)
- MongoBinaryDownload: extract: remove only once used variable & escape paths in errors (3d5e9cb)
- MongoBinaryDownload: getMongodPath: add more logging & escape path in error (962cc9f)
- MongoBinaryDownload: httpDownload: open filestream only on successful response (57f3c7c)
- MongoBinaryDownload: makeMD5check: unlink md5 file after check (c0b707d)
- MongoBinaryDownloadUrl: change interface to actual needs (a906acb)
- MongoBinaryDownloadUrl: getArchiveName: change tsdoc & simplify "if-condition" (aaab616)
- MongoInstance: debug: change to be "protected" instead of "private" (633a35e)
- MongoInstance: start: update logs to reflect actual function name (1e5a2d7)
- MongoInstance: stop: fix log & remove double "con.close" (bb2697c)
- MongoInstance: update tsdoc & enhance logging (2d9e8f5)
- MongoMemoryReplSet: implement "ManagerAdvanced" & add logging to "create" (94e3092)
7.0.0-beta.37 (2021-03-22)
Style
- MongoMemoryServer: getStartOptions: use "spread" instead of many lines (9a01529)
- resolveConfig: update tsdoc (4e5469c)
- utils: authDefault: add tsdoc (aab1647)
Fixes
- MongoMemoryReplSet: start: change state on error (20433b5)
- MongoMemoryReplSet: start: move "beforeExit" listener setup before starting instances (d1cc648)
- MongoMemoryServer: add some tsdoc & change an if-throw to assertion (5c7acb4)
- MongoMemoryServer: createAuth: fix typo in "customData" & add "customData" to extra users (31c98c9)
- MongoMemoryServer: ensureInstance: change logs to be consistent with others (3d430c1)
- MongoMemoryServer: fix typo in warning (532bc09)
- MongoMemoryServer: start: dont add "beforeExit" listener if being in an replset (f9c555d)
- MongoMemoryServer: stop: change log to be better sounding (a009693)
- postinstallHelper: reduce variables (b42bac3)
- utils: ensureAsync: change from "setImmediate" to "process.nextTick" (3da59cc)
- utils: killProcess: unify log and variable names with other code (5605ea0)
7.0.0-beta.36 (2021-03-20)
Features
- MongoMemoryReplSet: change more errors to "StateError" & more consistent logs (64780ee)
- MongoMemoryServer: change more errors to "StateError" & more consistent logs (b05ec44)
Fixes
- errors: StateError: fix type for "wantedStates" (6297275)
- utils: getHost: reduce calls by combining regex (1b46769)
7.0.0-beta.35 (2021-03-19)
Fixes
- MongoBinaryDownload: getPath: reduce some calls (43b746a)
7.0.0-beta.34 (2021-03-19)
Fixes
- MongoInstance: change logs to be more up-to-date (d421e01)
- MongoMemoryReplSet: _initReplSet: add more logs (952fbf5)
- MongoMemoryServer: change options instead of creating new instance for auth creation (171f1fb)
Dependencies
- mongodb: upgrade to 3.6.5 (d0eabf6)
7.0.0-beta.33 (2021-03-17)
Fixes
- MongoBinary: add information about "RUNTIME_DOWNLOAD" to no binary found error (94ee82d)
- MongoBinary: change to match with regex instead of string splitting (ab1cd36)
- MongoBinary: remove using "binaryVersion" for version, because "version" cannot be undefined (72c8199)
- MongoBinary: use less variables & extend error (8b448db)
- MongoBinary: use semver for version comparison (d1f181a)
7.0.0-beta.32 (2021-03-16)
Fixes
- MongoMemoryServer: change state to stopped when start fails (e9134a7)
7.0.0-beta.31 (2021-03-15)
Features
- errors: add error "StateError" (e582407)
- errors: add error "UnknownArchitecture" (e2c39d6)
- errors: add error "UnknownLockfileStatus" (186df5b)
- errors: add error "UnknownPlatform" (747d893)
- lockfile: replace custom errors with "UnknownLockfileStatus" (5ea5662)
- MongoBinaryDownloadUrl: replace custom errors with "UnknownArchitecture" (6755554)
- MongoBinaryDownloadUrl: replace custom errors with "UnknownPlatform" (86aac73)
- MongoMemoryReplSet: replace custom errors with "StateError" (f49d7a1)
- MongoMemoryServer: replace custom error with "StateError" (e965ef5)
7.0.0-beta.30 (2021-03-14)
⚠ BREAKING CHANGES
- utils: Default-export from "utils" got removed, import it now with "{ generateDbName }"
Fixes
- MongoBinaryDownloadUrl: getDownloadUrl: try "DOWNLOAD_URL" before getArchiveName (7a8a4c3)
- MongoBinaryUrl: getDownloadUrl: try to create an "URL" to check if the url is valid (25c865c)
- utils: remove default export (102e4b0)
7.0.0-beta.29 (2021-03-12)
Features
- utils: uriTemplate: allow "port" to be undefined so that "host" can be an list of hosts (e101162)
Fixes
- MongoInstance: remove interface "MongoInstanceOpts" in favor of "MongoMemoryInstanceProp" (7efb4ff)
- MongoMemoryReplSet: dont generate an "otherDb" if "othereDb" is false (63497c0)
- MongoMemoryReplSet: getUri: loop over less arrays (dec9bac)
- MongoMemoryReplSet: getUri: use "uriTemplate" instead of re-doing (c6c9321)
- MongoMemoryServer: dont trigger "otherDb" if "otherDbName" is false (ffb096d)
Style
- MongoInstance: move comment into tsdoc (d749abb)
- MongoInstance: remove "null" from "port" (75d805f)
- MongoInstance: rename interface to have an better name (60858b1)
- MongoInstance: rename interface to have an better name (916aa11)
- MongoMemoryReplSet: add tsdoc to "initAllServers" (ba46aee)
- MongoMemoryServer: change "StartupInstanceData" to depend on "MongoMemoryInstanceOpts" (26af098)
- MongoMemoryServer: inherit type instead of redefining (eb41f81)
7.0.0-beta.28 (2021-03-10)
Dependencies
- @types/dedent: remove unused dependency (1cb479d)
- @types/lockfile: remove unused dependency (fa3d6c8)
- os: remove unused dependency (ab027c7)
7.0.0-beta.27 (2021-03-10)
Features
Style
- DryMongoBinary: remove unused optional chaning (06cfccb)
7.0.0-beta.26 (2021-03-09)
Reverts
- "test(replset-single): add in-detail error printing on error" (7989082)
Style
- MongoMemoryReplSet: _waitForPrimary: add log that function got called (c5f66a3)
- MongoMemoryReplSet: trim error message & add "_" to unused parameter (6be0c00)
Fixes
- MongoInstance: stdoutHandler: dont use "else if" (03184d4)
7.0.0-beta.25 (2021-03-08)
Fixes
7.0.0-beta.24 (2021-03-08)
Dependencies
- @types/find-package-json: upgrade to 1.2.0 (d2dc5c6)
7.0.0-beta.23 (2021-03-02)
Features
- DryMongoBinary: add new "DryMongoBinary" (3841312)
- DryMongoBinary: add new function "generateOptions" (2d89ba1)
- MongoBinary: add option to disable automatic download (2c0639b)
- MongoBinary: implement usage of "DryMongoBinary" (4a13cea)
- MongoBinaryDownload: add option to use "http" over "https" (b178a97), closes #172
Refactor
- MongoBinary: use "DryMongoBinary.generateOptions" (0e7e73f)
- MongoBinaryDownload: enhance md5 regex (becac06)
- MongoBinaryDownload: extract: combine win32 and linux regex (702eaa9)
- MongoBinaryDownload: extract: combine win32 filter regex (28cfc7c)
- MongoBinaryDownloadUrl: change "translateArch" to be static (ba87378)
Style
- MongoBinary: add tsdoc to describe what the class is for (36f1118)
- MongoBinary: remove duplicated definitions from interface (87a3ca8)
Fixes
- DryBinary: use "modulesCache/version/binary" instead of "modulesCache/mongodb-binaries/version/binary" (072abde)
- DryMongoBinary: only use "resolveConfigValue" when not empty (08e71cf)
- MongoBinaryDownload: add more logging (b63f629)
- MongoBinaryDownload: change "downloadDir" to be required (d2f2e30)
- MongoBinaryDownload: enhance progress message (ada4f2a)
- MongoBinaryDownload: force an status print on download finish (62337fd)
- MongoBinaryDownload: unify how the downloadUrl is represented (23f057e)
- MongoBinaryDownload: use "mkdirp" over "fs.mkdir" (c64a321)
- MongoBinaryDownload: use "MongoBinaryOpts" over "MongoBinaryDownloadOpts" (ce193ce)
- MongoBinaryDownload: use new "URL" class instead of deprecated "url.parse" (70af5d2)
- MongoBinaryDownloadUrl: remove unused parameter (d72ed42)
- MongoBinaryDownloadUrl: use DryBinary.generateOptions's "os" instead of calling "getOS" directly (ac025d9)
- resolveConfig: add helper function to add the prefix to an variable name (8334c45)
7.0.0-beta.22 (2021-02-26)
Fixes
- MongoBinaryDownloadUrl: support macos arm64 to x64 archive translation (2aa9b38)
7.0.0-beta.21 (2021-02-25)
⚠ BREAKING CHANGES
- MongoInstance: MongoInstance's functions got renamed to make more clear what they do (create,start,stop - instead of run,run,kill)
Features
- MongoInstance: rename functions to unify all classes (655d295)
Dependencies
- update lockfile (7ca52da)
- cross-env: upgrade to 7.0.3 (b412ce2)
- doctoc: upgrade to 2.0.0 (8e1a091)
- eslint: upgrade to 7.20.0 (and related) (715fdbd)
- husky: upgrade to 5.1.1 (4e93d29)
- semantic-release: upgrade to 17.3.9 (and related) (d433278)
- ts-jest: upgrade to 26.5.2 (5c07ee7)
Fixes
- lockfile: add uuid to lock instance (75574a1)
- MongoInstance: give better error reporting when library file is missing (692455a), closes #408
7.0.0-beta.20 (2021-02-24)
Features
Style
- lockfile: add log when "readout" is for not for self (1b669ad)
Refactor
- MongoBinaryDownload: unify path resolving (4258eb7)
Fixes
- lockfile: checkLock: handle ENOENT (7d3e998)
- MongoBinary: ensure lockfile gets unlocked in case of error (e81db43)
7.0.0-beta.19 (2021-02-24)
Fixes
- global: use an absolute module path to core in global index scripts (2428fd8)
- postinstall: use an absolute module path to core in postinstall scripts (d71ea48)
Dependencies
- tslib: include tslib dependency in non-core packages (6125d2f)
7.0.0-beta.18 (2021-02-22)
Fixes
- resolveConfig: change to use the first found package.json with an non-empty config field (4d9de37), closes #439
Style
- resolveConfig: add "filename" to logs (7809fcd)
7.0.0-beta.17 (2021-02-20)
Fixes
- lockfile: ignore lockfile unlink fail (ceea1a7)
- resolveConfig: findPackageJson: resolve file paths directly (0bec0bf), closes #440
- resolveConfig: simplify packageJson type (fac363d)
7.0.0-beta.16 (2021-02-19)
⚠ BREAKING CHANGES
- getos: All "USE*" and "SKIP*" Environment Variables got removed in favor of an better handling
Features
- getos: remove all "USE*" and "SKIP*" environment variables (e389c3e)
- getos: simplify reading an release file (e5e6521)
- MongoBinaryDownloadUrl: add support for "arch/manjaro" (ubuntu workaround) (21449d6)
- MongoBinaryDownloadUrl: refactor getUbuntuVersionString (fc08c25)
- MongoBinaryDownloadUrl: remove function "getMintVersionString" (d66e28a)
Fixes
- getos: add lsb-release file pattern to regex (0cc7dd5)
- getos: add tests for "parseOS" and "parseLSB" (6cdf482)
- getos: tryFirstReleaseFile: simplify file match (7a46fac)
Refactor
- MongoBinaryDownloadUrl: add helper function for regex de-duplication (3d96e5e)
7.0.0-beta.15 (2021-02-10)
Features
- lockfile: add custom lockfile implementation (e6a2237)
Dependencies
- eslint: upgrade to 7.18.0 (6dc0b75)
- jest: upgrade to 26.6.3 (8adf360)
- ts-jest: upgrade to 26.4.4 (b8f1fae)
- typescript: upgrade to 4.1.3 (30ea057)
Fixes
- MongoBinary: add more logs (e980a79), closes #434
- MongoInstance: add more logs (e8d2d4b), closes #434
- MongoMemoryReplSet: add more logs (41a0be0), closes #434
- MongoMemoryServer: add more logs (9d12b04), closes #434
Style
7.0.0-beta.14 (2021-01-20)
Fixes
- "infomation" to "information" (da6c89d), closes #424
- "unkown" to "unknown" (798b0db), closes #424
- MongoMemoryReplSet: update when "cleanup" is run and added (836dc9c)
- MongoMemoryServer: stop: return "false" if already stopped (b3c868e)
Style
7.0.0-beta.13 (2021-01-13)
Fixes
7.0.0-beta.12 (2020-12-16)
⚠ BREAKING CHANGES
- MongoInstance: remove function "MongoInstance.getPid", replace with "MongoInstance.childProcess?.pid"
Features
- MongoInstance: remove function "getPid" (f40da9a)
Fixes
- MongoMemoryReplSet: remove unnecessary default to empty array (2035845)
Style
- MongoMemoryReplSet: remove commented-out case (8e3ae46)
- MongoMemoryReplSet: remove TODO (5645a87), closes #392
Refactor
- MongoBinary: getSystemPath: return "undefined" instead of empty string (10039f9)
- MongoBinary: remove unused interface "MongoBinaryCache" (025df2e)
7.0.0-beta.11 (2020-11-11)
Features
- remove cross-spawn (c67ee8f)
Style
- MongoInstance: _launchKiller: remove commented-out code (132917f)
7.0.0-beta.10 (2020-11-06)
⚠ BREAKING CHANGES
- 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"
Features
- MongoBinary: remove function "getCachePath" (af164c1)
- MongoBinary: remove value "LATEST_VERSION" (22c6dfd)
- MongoBinaryDownload: remove function "locationExists" (0ba071a)
- MongoBinaryDownload: startDownload: add check that the downloadDir has sufficient permissions (310cdae)
- MongoInstance: run: add check that the mongoBinary has sufficient permissions (d9c1019)
- resolveConfig: add enum for all resolveConfig Variables (7bd9160)
- resolveConfig: remove alias "reInitializePackageJson" (acc4b0a)
- utils: add function "pathExists" (4114d27)
Refactor
- getos: replace "promisify" with "fs.promises" (60e184b)
- MongoBinary: replace "promisify" with "fs.promises" (5a769f3)
- MongoBinaryDownload: replace "existsSync" with "utils.pathExists" (d8de1cc)
- MongoBinaryDownload: replace "promisify" with "fs.promises" (911a922)
- resolveConfig: remove unnecessary optional chain (1c6578d)
- utils: assertion: remove error code from default error (bbad7c4)
Fixes
- getos: replace "not undefined" with "envToBool" (7fde8be)
- MongoBinary: getSystemPath: also check for execute permission (a501842)
Style
- README: environment variables: add legend for booleans (17b1937)
- rename import "promises" (from fs) to "fspromises" everywhere (f876670)
- eslintrc: add environment "node" (8f3ed19)
- eslintrc: add rule "padding-line-between-statements" for "function" & "class" (6a0ebd4)
- eslintrc: add rule "padding-line-between-statements" for "if" (3efdb47)
- eslintrc: add rule "padding-line-between-statements" for "import" (3bfc4ef)
- eslintrc: add rule "padding-line-between-statements" for "return" (05b02d2)
- eslintrc: comma-dangle: change "functions" to "never" (0bf9c3e)
- eslintrc: set rule "no-else-return" to "warn" (cb242e9)
- eslintrc: set rule "no-unused-expressions" to warn (d08b293)
- MongoBinaryDownload: makeMD5check: add more tsdoc (911a09a)
- README: fix missing "MONGOMS_" on "SKIP_OS_RELEASE" (e352495)
- utils: add more tsdoc to "statPath" & "pathExists" (3b36143)
7.0.0-beta.9 (2020-11-02)
Dependencies
- upgrade subdependencies (yarn upgrade) (b7030ae)
- eslint-config-prettier: upgrade to 6.15.0 (7bbcc33)
- lint-staged: upgrade to 10.5.1 (6339aaa)
- semantic-release: upgrade to 17.2.2 (1cb1fec)
- allow "^" range for all type packages (37c01d8)
- pin all non-types devDependencies (b647153)
- remove devDependency "mongodb" (dbd82a7)
7.0.0-beta.8 (2020-11-01)
Features
Style
- README: update "packages/*/README.md" to new bages (3acd086)
Fixes
- MongoBinaryDownloadUrl: add case for Linux Mint 20 (01a6bc6)
- MongoBinaryDownloadUrl: detect "linuxmint" and "linux mint" as linux mint (fda4f72), closes #403
- MongoBinaryDownloadUrl: fix win32 download generation (d62b489), closes #399
- MongoBinaryDownloadUrl: getArchiveName: throw error if platform is unknown (9fc358b)
- MongoInstance: handle code "12" on windows (718aed7), closes #411
Refactor
- MongoBinaryDownloadUrl: minify "getUbuntuVersionString" (04b0ee9)
- MongoBinaryDownloadUrl: remove "async" where not needed (7970fbb)
- MongoBinaryDownloadUrl: translatePlatform: change default error (61685e0)
- MongoMemoryReplSet: rename "MongoMemoryReplSetEventEnum" to "MongoMemoryReplSetEvents" (bfd5441)
- MongoMemoryReplSet: rename "MongoMemoryReplSetStateEnum" to "MongoMemoryReplSetStates" (c02e21d)
- MongoMemoryReplSet: setup proper events (644a335)
- MongoMemoryServer: rename "MongoMemoryServerEventEnum" to "MongoMemoryServerEvents" (251c7ed)
- MongoMemoryServer: rename "MongoMemoryServerStateEnum" to "MongoMemoryServerStates" (139d3fd)
7.0.0-beta.7 (2020-10-27)
Fixes
- broken build (Cannot find module 'mongodb-memory-server') (3c7d102)
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)
7.0.0-beta.5 (2020-10-12)
⚠ BREAKING CHANGES
- 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
Features
- change package "mongodb" to be non-optional (2b14552)
- db_util: add function "ensureAsync" (971b02d)
- MongoInstance: add value "isReplSet" (3ba31e2)
- MongoInstance: graceful ReplSet shutdown (017239c)
- MongoMemoryReplSet: add error if replSet count is 0 or lower (0202e8f)
- MongoMemoryReplSet: add getter "state" (65135a8)
- MongoMemoryReplSet: remove function "getConnectionString" (dbe844e)
- MongoMemoryReplSet: remove function "getDbName" (6ebafbd)
- MongoMemoryReplSet: remove option "autoStart" (90ed578)
- MongoMemoryReplSet: remove option "oplogSize" (07937e2)
- MongoMemoryReplSet: rename "opts.*" to "*Opts" & add getters & setters (c701f09)
- MongoMemoryServer: add function "create" (6dcb12a)
Style
- MongoMemoryReplSet: add more tsdoc (6b60a71)
- remove "uri" value when only used once (150494e)
- db_util: add link on why "ensureAsync" is needed (412e615)
- MongoMemoryReplSet: add log to "stop" (d3dff26)
- MongoMemoryReplSet: add more logs (a3a911f)
- MongoMemoryReplSet: replace templating string with normal (9add2bc)
Dependencies
- uuid: add "^" (e12396e)
Refactor
- MongoMemoryReplSet: _initReplSet: directly use db "admin" (a335500)
- MongoMemoryReplSet: _initReplSet: remove redundant object assignment (8e6e312)
- MongoMemoryReplSet: _initReplSet: rename "conn" to "con" (335780e)
- MongoMemoryReplSet: _waitForPrimary: remove value "timeoutPromise" (18b9a58)
- MongoMemoryReplSet: add function "stateChange" (3c3d6fb)
- MongoMemoryReplSet: change "_initReplSet" to be "protected" (f46d113)
- MongoMemoryReplSet: change "_initServer" to be "protected" (4c32f45)
- MongoMemoryReplSet: change "_state" to be "protected" (415fc8f)
- MongoMemoryReplSet: change "_waitForPrimary" to be "protected" (d0d62e2)
- MongoMemoryReplSet: change "getInstanceOpts" to be "protected" (e954806)
- MongoMemoryReplSet: change "getUri" to be sync (13f3f1d)
- MongoMemoryReplSet: change "if not state 'stopped'" to switch (df1af0c)
- MongoMemoryReplSet: change if-error to "assertion" (179bdbb)
- MongoMemoryReplSet: improve "start" (c2311cb)
- MongoMemoryReplSet: refactor "_state" into an enum (e3d4678)
- MongoMemoryReplSet: refactor multiple "if" into one switch (8b8a609)
- MongoMemoryReplSet: remove "?" from "MongoMemoryReplSetOptsT" (138e21d)
- MongoMemoryReplSet: remove "async" from "getDbName" (2775b4f)
- MongoMemoryReplSet: remove commented out HACK (1ad5bdc)
- MongoMemoryReplSet: remove dynamic import "mongodb" (fb958ae)
- MongoMemoryReplSet: shorten constructor (e17762d)
- MongoMemoryReplSet: small improvements (9b17925)
- MongoMemoryReplSet: waitUntilRunning: shorten function (0fc27d6)
- replset-single: shorten "state errors" (2559117)
Fixes
- MongoMemoryReplSet: _initReplSet: throw error if "this.servers.length" is "<= 0" (019b118)
- MongoMemoryReplSet: "getUri" now uses "waitUntilRunning" (18428d5)
- MongoMemoryReplSet: change "_waitForPrimary" timout message to be an error (89c8af6)
- MongoMemoryReplSet: ensure "start" is async (765b5b1)
- MongoMemoryReplSet: move "removeListener" before "_state" check (60646eb)
- MongoMemoryReplSet: register listener for event "beforeExit" inside "start" (7859d6c)
- MongoMemoryReplSet: throw error if state is not "running" or "init" (27f6215)
7.0.0-beta.4 (2020-10-12)
Fixes
- -global: change "mongodb_version" to latest patch version (adcbdcf)
- MongoBinary: change "LATEST_VERSION" to latest patch version "4.0.20" (23e6eaa)
- MongoMemoryReplSet: _initReplSet: check if there is already an PRIMARY (a1c9264)
Refactor
- postinstall: rename function "postInstall" to "postInstallEnsureBinary" (aca8262)
- apply suggested changes (2a9aab7)
- *index: use "tslib.__exportStar" (2e9faec)
- postinstall: change all packages to depend on "core" (de41060), closes #378 #174
7.0.0-beta.3 (2020-10-08)
⚠ BREAKING CHANGES
- 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"
Features
- MongoInstance: change options to be readonly (e599372)
- MongoMemoryServer: add getter function "state" (c19493f)
- MongoMemoryServer: extend EventEmitter (04ca3d7)
- MongoMemoryServer: remove "MongoInstanceDataT.childProcess" (c71d8d4)
- MongoMemoryServer: remove "StartupInstanceData.uri" (dec17a4)
- MongoMemoryServer: remove deprecated function "getConnectionString" (198f4c0)
- MongoMemoryServer: remove function "getDbName" (e2fc23f)
- MongoMemoryServer: remove function "getDbPath" (2343771)
- MongoMemoryServer: remove function "getPort" (5eb7017)
- MongoMemoryServer: remove option "autoStart" (347085f)
- MongoMemoryServer: rename function "getInstanceInfo" into "get instanceInfo" (ae8a9f8)
Reverts
- "chore: remove unused file "tsconfig.test"" (cc053c7)
Style
- MongoMemoryServer: remove comment & change log (b098941)
Fixes
- db_util: killProcess: fix "SIGINT"-"SIGKILL" warn condition (4113d94)
- MongoInstance: remove resetting "port" inside "start" (7861a6f), closes #393
Refactor
- MongoMemoryReplSet: stop: reset "servers" after stopping them (0aa2293)
- MongoMemoryServer: add sanity check to "stop" (8aff4ef)
- MongoMemoryServer: always reset "port" to "undefined" (8ca0729)
- MongoMemoryServer: change "_state" to be "protected" (b716c2c)
- MongoMemoryServer: change "getDbName" to be sync (85a97e0)
- MongoMemoryServer: change "getDbPath" to be sync (281fa1c)
- MongoMemoryServer: change "getInstanceInfo" to return undefined (27349a3)
- MongoMemoryServer: change "getPort" to be sync (e849f2c)
- MongoMemoryServer: change "getUri" to be sync (5b53f03)
- MongoMemoryServer: change "instanceInfo" to be "protected" (7390eee)
- MongoMemoryServer: merge "runningInstance" and "instanceInfoSync" into "instanceInfo" (7642c75)
- MongoMemoryServer: refactor "start" to be more readable (7fb31c1)
- MongoMemoryServer: remove "await" from "getUriBase" call (ca536b6)
- MongoMemoryServer: remove "null" use "undefined" (086abef)
- MongoMemoryServer: remove call to "ensureInstance" inside "stop" (57801cf)
- MongoMemoryServer: rename "instanceInfo" to "_instanceInfo" (d3ddcb4)
- MongoMemoryServer: rename function "assertionInstanceInfoSync" to "assertionInstanceInfo" (03c8343)
- MongoMemoryServer: shorten "getUri" (f1024e5)
- MongoMemoryServer: start: remove first ".catch" (fafaa29)
7.0.0-beta.2 (2020-10-07)
Bug Fixes
- types: remove alias "SpawnOptions" (8b963c5)
- types: remove unused types (ab2944b)
- remove unused file "deprecate" (bb3e0f4)
7.0.0-beta.1 (2020-10-01)
Bug Fixes
- MongoInstance: reset "childProcess" and "killerProcess" after "kill" (49c710d)
Code Refactoring
- MongoInstance: change "null" to "undefined" for "childProcess" & "killerProcess" (232b812)
- MongoInstance: move "debug" into an private function (3d23d5b)
- MongoInstance: replace "instanceReady" and "instanceFailed" with events (6925c45)
- MongoMemoryReplSet: "_waitForPrimary" use new events (ed4b9e9)
Features
- db_util: add function "assertion" (c059500)
- MongoInstance: change root values of "MongodOpts" to be required (9779721)
- MongoInstance: extend EventEmitter (10965c7), closes #365
- MongoInstance: make "port" and "dbPath" required (749c3e3)
- MongoInstance: outsource "MongodOpts.instance" (d9dd6f8)
- MongoInstance: remove function "waitPrimaryReady" (1536dc2)
- MongoInstance: rename interface "MongodOps" to "MongodOpts" (edd4d39)
BREAKING CHANGES
- 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
6.9.6 (2021-03-08)
Bug Fixes
6.9.5 (2021-03-08)
Bug Fixes
6.9.4 (2021-03-08)
Bug Fixes
6.9.3 (2021-01-13)
Bug Fixes
6.9.2 (2020-10-09)
Bug Fixes
- MongoBinaryDownloadUrl: add case for Linux Mint 20 (01a6bc6)
- MongoBinaryDownloadUrl: detect "linuxmint" and "linux mint" as linux mint (fda4f72), closes #403
6.9.1 (2020-10-07)
Bug Fixes
6.9.0 (2020-09-30)
Bug Fixes
- MongoInstance: try "SIGKILL" after timeout (f2a06bc)
- MongoMemoryReplSet: change "process.on" to "process.once" for "beforeExit" (0e07953)
- MongoMemoryReplSet: remove "beforeExit" listener inside "stop" (c7328c9)
- MongoMemoryServer: remove double check (b99f3a4)
Features
- MongoInstance: warn if nodejs version is below "10.15.0" (8693b46), closes #379
- MongoMemoryReplSet: deprecate "getConnectionString" (b088af2)
- MongoMemoryServer: deprecate "getConnectionString" (9abf04f)
6.9.0-beta.2 (2020-09-30)
Features
- MongoMemoryReplSet: deprecate "getConnectionString" (b088af2)
- MongoMemoryServer: deprecate "getConnectionString" (9abf04f)
6.9.0-beta.1 (2020-09-29)
Bug Fixes
- MongoInstance: try "SIGKILL" after timeout (f2a06bc)
- MongoMemoryReplSet: change "process.on" to "process.once" for "beforeExit" (0e07953)
- MongoMemoryReplSet: remove "beforeExit" listener inside "stop" (c7328c9)
- MongoMemoryServer: remove double check (b99f3a4)
Features
6.8.1 (2020-09-28)
Bug Fixes
- explicitly re-export "default" (d3a1f6e), closes nodkz/mongodb-memory-server#386
- MongoInstance: add call to "instanceFailed" to "closeHandler" (c6010f4), closes #385
- MongoInstance: fix log in "run" (38b2f0d)
6.8.1-beta.2 (2020-09-28)
Bug Fixes
- explicitly re-export "default" (d3a1f6e), closes nodkz/mongodb-memory-server#386
6.8.1-beta.1 (2020-09-26)
Bug Fixes
- MongoInstance: add call to "instanceFailed" to "closeHandler" (c6010f4), closes #385
- MongoInstance: fix log in "run" (38b2f0d)
6.8.0 (2020-09-21)
Features
- skip binary download when binary tar exists (31ac64c)
6.7.6 (2020-09-16)
Bug Fixes
- MongoBinary: change "LockFile.unlock" to be async (87c7b33)
- MongoBinary: improve code (39ca575)
- resolve-config: improve code (22d765d)
6.7.5 (2020-09-12)
Bug Fixes
6.7.4 (2020-09-11)
Bug Fixes
6.7.3 (2020-09-11)
Bug Fixes
6.7.2 (2020-09-10)
Bug Fixes
- MongoBinaryDownload: extend 404 error (4a034f0)
- MongoInstance: modify "kill"'s debug logs (d00a96e)
- use "db_util.isNullOrUndefined" (83ce9fe)
- MongoMemoryReplSet: remove unused variable (d32aec1)
6.7.1 (2020-09-09)
Bug Fixes
- MongoBinaryDownload: print used URL in 404 Error (788c12d)
6.7.0 (2020-09-08)
Features
- add packages
mongodb-memory-server-global-4.2,mongodb-memory-server-global-4.4(7c97997)
6.6.9 (2020-09-08)
Bug Fixes
- mongo_killer: refactor mongo_killer to make more sense (2dd1fae)
- MongoInstance: de-duplicate killer code & actually log output from "mongo_killer" (76889a6)
- MongoInstance: use environment variable "NODE" before "argv[0]" (611f227), closes #177
6.6.8 (2020-09-08)
Bug Fixes
6.6.7 (2020-08-29)
Bug Fixes
6.6.6 (2020-08-25)
Bug Fixes
6.6.5 (2020-08-24)
Bug Fixes
- change mongodb version tests to use semver (31183dd), closes nodkz/mongodb-memory-server#340 nodkz/mongodb-memory-server#318
6.6.4 (2020-08-17)
Bug Fixes
6.6.3 (2020-07-28)
Bug Fixes
- remove stub package "@types/get-port" (#328) (c49c582), closes nodkz/mongodb-memory-server#298
- MongoBinaryDownload: add debug log for url (#327) (d4c9edb)
6.6.2 (2020-07-27)
Bug Fixes
6.6.1 (2020-05-20)
Bug Fixes
6.6.0 (2020-05-11)
Features
6.5.2 (2020-04-05)
Bug Fixes
6.5.1 (2020-04-02)
Bug Fixes
- change "waiting for connections on port" to "waiting for connections" (02228c3)
6.5.0 (2020-03-24)
Features
6.4.1 (2020-03-19)
Bug Fixes
- MongoBinaryDownload: Resolve in extractTarGz (58faef2)
6.4.0 (2020-03-19)
Bug Fixes
- set timeout per test (b3f9a10)
Features
- add try/catch for reinit of repl set (ab7f5f6)
6.3.3 (2020-03-11)
Bug Fixes
6.3.2 (2020-03-03)
Bug Fixes
6.3.1 (2020-02-28)
Note: Version bump only for package lerna-monorepo
6.3.0 (2020-02-28)
Features
6.2.4 (2020-01-27)
Bug Fixes
6.2.3 (2020-01-20)
Bug Fixes
- change import for
tmppackage (4477b9b)
6.2.2 (2020-01-15)
Bug Fixes
6.2.1 (2019-12-30)
Bug Fixes
- ArchLinux: binary not downloaded when no release file is found. Plus other code fixes and cleanups (tnx @hasezoey) (8723187), closes #248 #255
6.2.0 (2019-12-26)
Features
- add static async
MongoMemoryServer.create(); improve Example code & add TSDoc (tnx @hasezoey) (a2b0fc4), closes #211 /github.com/nodkz/mongodb-memory-server/issues/184#issuecomment-568782496
6.1.1 (2019-12-20)
Note: Version bump only for package lerna-monorepo
6.1.0 (2019-12-20)
Features
6.0.2 (2019-12-03)
Bug Fixes
- compatibility with debian 10 (works for Mongo >= v4.2.1) (837d98e)
6.0.1 (2019-10-22)
Bug Fixes
- MongoMemoryServer: add
?character to the connection string (uri) by default (hotfix for v6.0.0) (505b7c2)
6.0.0 (2019-10-22)
Bug Fixes
- MongoMemoryReplSet:
getConnectionString()now returns uri with?replicaSet=option. (401441c)
chore
- update cross-spawn (c99fda8)
BREAKING CHANGES
- drop support for Node.js < 8
- MongoMemoryReplSet:
getConnectionString()now returns uri with?replicaSet=option.
5.2.11 (2019-10-22)
Bug Fixes
- upgrade https-proxy-agent till 3.0.0 (c554faa)
5.2.10 (2019-10-22)
Bug Fixes
- ReplSet: add HACK for "Maximum call stack size exceeded" in MongoClient topology (470f094), closes #221
5.2.9 (2019-10-22)
Bug Fixes
- upgrade
https-proxy-agentpackage due high sev. vulnerability (f44ebe4)
5.2.8 (2019-10-09)
Bug Fixes
- revert add debian v10 downloads (ffa95cd)
5.2.7 (2019-10-08)
Bug Fixes
5.2.6 (2019-09-30)
Bug Fixes
- using "useUnifiedTopology" to avoid deprecation msg (00e022d)
5.2.5 (2019-09-23)
Bug Fixes
- ReplSet: typescript definitions ReplSetOpts.dbName is optional (d1e4b53)
5.2.4 (2019-09-23)
Note: Version bump only for package lerna-monorepo
5.2.3 (2019-09-11)
Bug Fixes
- clearTimeout when waiting for primary (08aa26f)
5.2.2 (2019-09-09)
Bug Fixes
- download url exception for win32 & v4.2.0 (bf8ff9e)
5.2.1 (2019-09-04)
Bug Fixes
- URL for macos change for 4.2.0 (0452cbd)
5.2.0 (2019-08-10)
Features
- add MONGOMS_DOWNLOAD_URL env variable for downloading binary from url (8b31ff5)
5.1.10 (2019-08-02)
Bug Fixes
- ReplicaSet: detect primary from stdout instead of admin call (c081ece)
5.1.9 (2019-07-24)
Bug Fixes
- add fail message when mongod cannot find CURL_OPENSSL_3 (2ba4ae5)
- avoid infinite loop when waiting Primary (b19c4bf)
5.1.8 (2019-07-23)
Bug Fixes
- wait until primary is transitioned from secondary for replicaSet (596fed8)
5.1.7 (2019-07-19)
Note: Version bump only for package lerna-monorepo
5.1.6 (2019-07-16)
Bug Fixes
- global-3.4, global-3.6, global-4.0 now properly set default mongod version (5fc1652)
5.1.5 (2019-06-18)
Bug Fixes
- re-initialise configuration using INIT_CWD in postinstall.js (9641bf4)
5.1.4 (2019-06-11)
Bug Fixes
- simplify postinstall path check for Windows' users (0b010bf)
5.1.3 (2019-06-06)
Bug Fixes
- resolve to config from closest package.json (34b6e27)
- use cross-spawn to help with Windows issues (efad669)
5.1.2 (2019-05-16)
Note: Version bump only for package lerna-monorepo
5.1.1 (2019-05-09)
Bug Fixes
5.1.0 (2019-04-21)
Features
- configure installation from package.json (c8dbbb9)
5.0.4 (2019-04-15)
Note: Version bump only for package lerna-monorepo
5.0.3 (2019-04-14)
Bug Fixes
- downloadUrl: elementaryOS support fixed for versions up to 0.3 (232c33f)
5.0.2 (2019-04-11)
Bug Fixes
5.0.1 (2019-04-10)
Note: Version bump only for package lerna-monorepo
5.0.0 (2019-04-10)
Code Refactoring
- using Lerna multiple packages (e80e0f2), closes /github.com/nodkz/mongodb-memory-server/issues/159#issuecomment-474398550
Features
- add additional packages with specific default configs (9cca8f6)
BREAKING CHANGES
- Remove
MomgoMemoryServer.getInstanceData()method. UseMomgoMemoryServer.ensureInstance()instead.
Change Log
0.0.0-semantically-released (May 11, 2017)
This package publishing automated by semantic-release. Changelog is generated automatically and can be found here: https://github.com/nodkz/mongodb-memory-server/releases
0.0.1 (May 11, 2017)
- First commit