unstale

npm / mongodb-memory-server

mongodb-memory-server

What changed in mongodb-memory-server 7 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.

76 breaking1 security29 new APIs and options21 behavior and defaults31 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.6 on npm

mongodb-memory-server 1112 changes

Breaking changes 3

  • MongoDB versions below 4.2.0 are no longer supported for binary download URLs.

    11.0.0release notes

  • The mongodb-memory-server-global-4.0 package was removed because it is unsupported by the MongoDB driver.

    11.0.0release notes

  • The lowest supported Node.js version is now 14.0.

    9.0.0, 10.0.0, 11.0.0release notesrelease notesrelease notes

Security 1

  • Binaries are checksummed during extraction and checked, helping detect invalid binaries.

    11.3.0release notes

Behavior and default changes 4

Fixes and other changes 4

mongodb-memory-server 1015 changes

Breaking changes 3

  • The deprecated boolean cleanup argument was removed from stop / cleanup.

    10.0.0release notes

  • The default elementary version was changed to 7.

    10.0.0release notes

  • The default Mint version was changed to 21.

    10.0.0release notes

New APIs and options 3

  • DryMongoBinary and all errors are now exported at the top level.

    10.0.0release notes

  • Support was added for Explicit Resource Management.

    10.0.0release notes

  • MongoMemoryServer now allows setting whether port generation is enabled.

    10.0.0release notes

Behavior and default changes 5

  • The RESUME_DOWNLOAD option is stabilized.

    10.4.0release notes

  • Updates the default 4.2 binary to 4.2.25.

    10.3.0release notes

  • Updates the default binary version to 7.0.24.

    10.3.0release notes

  • The default MongoDB binary version is now 7.0.11.

    10.0.0release notes

  • The getport functionality now uses net0listen by default.

    10.0.0release notes

Fixes and other changes 4

  • Adds a fallback version when determining the SUSE version string for MongoDB binary downloads.

    10.3.0release notes

  • Adds known compatibility handling for SUSE 12 with MongoDB versions >=8.0.0, and for SUSE 13 and 14.

    10.3.0release notes

  • Silences ECONNRESET errors during shutdown.

    10.3.0release notes

  • A download URL mapping was added for Linux Mint 22.

    10.0.0release notes

mongodb-memory-server 925 changes

Breaking changes 16

  • Authentication is only created when enable is true; disable has been removed.

    9.0.0release notes

  • NoSystemBinaryFoundError was merged into BinaryNotFoundError.

    9.0.0release notes

  • Aliases for binaryOpts properties have been removed; use binaryOpts.option instead.

    9.0.0release notes

  • cleanup(boolean) is no longer supported; use object options instead.

    9.0.0release notes

  • The devnull storage engine is no longer supported.

    9.0.0release notes

  • The directly used DryMongoBinary option legacyHomeCache was renamed to homeCache.

    9.0.0release notes

  • Translation for elementary OS has been removed.

    9.0.0release notes

  • ia32, i386, and i686 architectures are no longer supported.

    9.0.0release notes

  • instance.auth can no longer be manually set.

    9.0.0release notes

  • EnsureInstanceError was merged into InstanceInfoError.

    9.0.0release notes

  • The Linux fallback binary has been removed.

    9.0.0release notes

  • The mmapv1 storage engine is no longer supported.

    9.0.0release notes

  • Starting now errors when a mongodProcess is already defined.

    9.0.0release notes

  • The ReplSet auth option can no longer be a boolean; use an object instead.

    9.0.0release notes

  • stop(boolean) is no longer supported; use object options instead.

    9.0.0release notes

  • Translation of sunos has been removed.

    9.0.0release notes

New APIs and options 1

  • Adds the ability to overwrite the distro used for binary downloads.

    9.0.0release notes

Behavior and default changes 4

  • MD5_CHECK is enabled by default.

    9.0.0release notes

  • The “aborting after” error now includes more information.

    9.0.0release notes

  • MongoMemoryServer uses wiredTiger when the MongoDB version is 7.0.0 or higher.

    9.0.0release notes

  • The default MongoDB binary version is now 6.0.9.

    9.0.0release notes

Fixes and other changes 4

  • MD5 checking now hashes the file contents instead of the path.

    9.0.0release notes

  • Handling of falling back to the default Ubuntu version was improved.

    9.0.0release notes

  • The error text no longer has ", terminating" removed from it.

    9.0.0release notes

  • Handles stop being called multiple times while running.

    9.0.0release notes

mongodb-memory-server 814 changes

Breaking changes 4

  • The package no longer adds beforeExit listeners, changing process-exit handling for applications that relied on them.

    8.0.0release notes

  • The instanceError event now uses StdoutInstanceError.

    8.0.0release notes

  • Using Debian 10 with MongoDB versions below 4.2.0 now throws an error.

    8.0.0release notes

  • The Node.js mongodb driver was upgraded to 4.1, which may affect applications using the driver.

    8.0.0release notes

New APIs and options 4

  • Options are now parsed from DOWNLOAD_URL.

    8.0.0release notes

  • Adds the NoRegexMatchError error.

    8.0.0release notes

  • Adds the ParseArchiveRegexError error.

    8.0.0release notes

  • Adds the StdoutInstanceError error, which is also used for "instanceError" events.

    8.0.0release notes

Behavior and default changes 2

Fixes and other changes 4

  • Fixes enabling debug through resolveConfig.

    8.0.0release notes

  • The archive-name regex now includes "macos".

    8.0.0release notes

  • Architecture translation now handles more variations of the same architecture.

    8.0.0release notes

  • MongoInstance stdout handling now handles "expection in initAndListen".

    8.0.0release notes

mongodb-memory-server 792 changes

Breaking changes 50

  • The MongoMemoryServer option was removed; MongoMemoryServer.create always calls MongoMemoryServer.start.

    7.0.0release notes

  • The binary cache path changes from modulesCache/mongodb-binaries/version/binary to modulesCache/version/binary.

    7.0.0release notes

  • The binary path changed from base/version/mongod to base/mongod-arch-dist-version.

    7.0.0release notes

  • Download directory and system binary paths are now resolved relative to the found package.json.

    7.0.0release notes

  • The utils default export was removed; import generateDbName by name instead.

    7.0.0release notes

  • generateDbName now returns an empty string by default, affecting the database name used in the Mongo URI.

    7.0.0release notes

  • MongoMemoryServer.getDbName and MongoMemoryReplSet.getDbName are now synchronous.

    7.0.0release notes

  • MongoMemoryServer.getDbPath is now synchronous.

    7.0.0release notes

  • MongoMemoryServer.getInstanceInfo now returns undefined when instance information is unavailable.

    7.0.0release notes

  • MongoMemoryServer.getPort is now synchronous.

    7.0.0release notes

  • The parameter defaults to an empty value, uses the actual definition, and uses admin by default.

    7.0.0release notes

  • The value was removed in favor of the resolveConfig value VERSION.

    7.0.0release notes

  • The function was removed; use MongoBinary.cache.get instead.

    7.0.0release notes

  • The function was removed; use utils.pathExists instead.

    7.0.0release notes

  • downloadDir is now required.

    7.0.0release notes

  • The mongodb package is now non-optional.

    7.0.0release notes

  • The interface was renamed from MongodOps to MongodOpts.

    7.0.0release notes

  • MongoInstance.childProcess was renamed to mongodProcess.

    7.0.0release notes

  • The function was removed; use MongoInstance.childProcess?.pid instead.

    7.0.0release notes

  • start no longer resets port to undefined.

    7.0.0release notes

  • Its lifecycle functions were renamed to create, start, and stop instead of run, run, and kill.

    7.0.0release notes

  • The root values of MongodOpts are now required, and port and dbPath are required.

    7.0.0release notes

  • The instanceOpts, binaryOpts, and spawnOpts options are now readonly.

    7.0.0release notes

  • The function was removed.

    7.0.0release notes

  • The function was removed, and async behavior or its Promise<string> return type was changed.

    7.0.0release notes

  • The function was removed; use .opts.replSet.dbName instead.

    7.0.0release notes

  • The servers are no longer reset after stop is called on a replica set.

    7.0.0release notes

  • The event enum was renamed from MongoMemoryReplSetEventEnum to MongoMemoryReplSetEvents.

    7.0.0release notes

  • The state enum was renamed from MongoMemoryReplSetStateEnum to MongoMemoryReplSetStates.

    7.0.0release notes

  • The property was removed because it aliases .instance.childProcess.

    7.0.0release notes

  • The deprecated function was removed; use getUri instead.

    7.0.0release notes

  • The function was removed; use instanceInfo.dbName instead.

    7.0.0release notes

  • The function was removed; use instanceInfo.dbPath instead.

    7.0.0release notes

  • The function was renamed to the instanceInfo getter, which returns undefined instead of false.

    7.0.0release notes

  • The function was removed; use instanceInfo.port instead.

    7.0.0release notes

  • getUri is now synchronous.

    7.0.0release notes

  • The .uri property was removed in favor of the getUri function.

    7.0.0release notes

  • runningInstance now returns undefined instead of null; instanceInfoSync also returns undefined instead of null.

    7.0.0release notes

  • Calling stop when the server is already stopped now returns false.

    7.0.0release notes

  • The event enum was renamed from MongoMemoryServerEventEnum to MongoMemoryServerEvents.

    7.0.0release notes

  • The state enum was renamed from MongoMemoryServerStateEnum to MongoMemoryServerStates.

    7.0.0release notes

  • The default MongoDB version changes to 4.0.25.

    7.0.0release notes

  • The lowest supported NodeJS version is now 12.22.

    7.0.0release notes

  • The MongoMemoryReplSet option was removed; set the argument with .replSetOpts.args.push('--oplogSize', '1').

    7.0.0release notes

  • Configuration resolution now uses the first found package.json with a non-empty config field.

    7.0.0release notes

  • The alias was removed; use findPackageJson instead.

    7.0.0release notes

  • The SpawnOptions type alias has been removed; developers can no longer rely on it in type annotations.

    7.0.0release notes

  • The db_util function getUriBase was renamed to uriTemplate.

    7.0.0release notes

  • All USE* and SKIP* environment variables were removed in favor of improved handling.

    7.0.0release notes

  • The default export has been removed, so imports using the utils default export must change.

    7.0.0release notes

New APIs and options 21

  • The db_util assertion function was added.

    7.0.0release notes

  • DryMongoBinary and its generateOptions function were added.

    7.0.0release notes

  • The db_util ensureAsync function was added.

    7.0.0release notes

  • A generateOptions function was added to DryMongoBinary.

    7.0.0release notes

  • ManagerBase and ManagerAdvanced classes were added.

    7.0.0release notes

  • ManagerBase and ManagerAdvanced classes were added.

    7.0.0release notes

  • An option was added to disable automatic MongoDB binary downloads.

    7.0.0release notes

  • An option was added to use http instead of https for downloads.

    7.0.0release notes

  • The archiveName value can now be overridden.

    7.0.0release notes

  • The isReplSet value was added.

    7.0.0release notes

  • MongoInstance now extends EventEmitter.

    7.0.0release notes

  • MongoMemoryReplSet can now automatically create authentication.

    7.0.0release notes

  • Basic createAuth support was added.

    7.0.0release notes

  • A state getter was added.

    7.0.0release notes

  • A create function was added; MongoMemoryServer.create now always calls MongoMemoryServer.start.

    7.0.0release notes

  • MongoMemoryServer can now automatically create authentication.

    7.0.0release notes

  • The StateError error was added.

    7.0.0release notes

  • The UnknownArchitecture error was added.

    7.0.0release notes

  • The UnknownLockfileStatus error was added.

    7.0.0release notes

  • The UnknownPlatform error was added.

    7.0.0release notes

  • The pathExists function was added to utils.

    7.0.0release notes

Behavior and default changes 6

  • MongoMemoryServer.getUri and MongoMemoryReplSet.getUri are now synchronous, so callers no longer need to await them.

    7.0.0release notes

  • Download URL support was added for arch/manjaro, ubuntu-arm64, and more arm64 (aarch64) versions.

    7.0.0release notes

  • MongoInstance now implements ManagerBase.

    7.0.0release notes

  • getUri can be called while the replica set is in the init state.

    7.0.0release notes

  • Instances and dbPath values can be reused.

    7.0.0release notes

  • Instances and dbPath values can be reused.

    7.0.0release notes

Fixes and other changes 15

  • MongoDB versions below 4.2.0 use the Debian 9.2 archive.

    7.0.0release notes

  • MongoDB binary download URL handling now supports Debian testing releases.

    7.0.0release notes

  • The configured DOWNLOAD_URL is tried before generating an archive name.

    7.0.0release notes

  • MongoDB binary download URL handling adds Fedora version 34 and later.

    7.0.0release notes

  • Binary path resolution uses INIT_CWD when it is available.

    7.0.0release notes

  • On macOS arm64, archive selection supports translating to the x64 archive.

    7.0.0release notes

  • An otherDb is no longer generated when othereDb is false.

    7.0.0release notes

  • getUri now waits until the replica set is running.

    7.0.0release notes

  • A beforeExit listener is registered inside start, and is not added by MongoMemoryServer when it is in a replica set.

    7.0.0release notes

  • When replica-set startup fails, its state is changed to reflect the error.

    7.0.0release notes

  • MongoMemoryServer now implements ManagerAdvanced.

    7.0.0release notes

  • otherDb is no longer triggered when otherDbName is false.

    7.0.0release notes

  • When startup fails, the server state is changed to stopped.

    7.0.0release notes

  • System binary lookup now also checks for execute permission.

    7.0.0release notes

  • System binary version parsing uses an enhanced regular expression and semver for version comparison.

    7.0.0release notes