unstale

npm / mongodb-memory-server-core

mongodb-memory-server-core

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

52 breaking1 security22 new APIs and options20 behavior and defaults21 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

mongodb-memory-server-core 1112 changes

Breaking changes 3

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

    7.0.0, 11.0.0release notesrelease notes

  • MongoDB versions below 4.2.0 are no longer supported.

    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

Security 1

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

    11.3.0release notes

Behavior and default changes 5

  • The MongoMemoryReplSet electionTimeoutMillis timeout is increased to 5000ms.

    11.3.0release notes

  • The default 4.4 binary is updated to 4.4.30.

    11.1.0release notes

  • The default MongoDB binary version is updated to 8.2.6.

    11.1.0release notes

  • The default MongoDB binary version is now 8.2.1.

    11.0.0release notes

  • Resume downloads is enabled by default.

    11.0.0release notes

Fixes and other changes 3

  • MongoInstance::stop now always unsets mongodProcess, changing process state after stopping.

    11.3.0release notes

  • USE_HTTP requests now use the http module.

    11.0.1release notes

  • Corrected the configuration mapping for RESUME_DOWNLOAD.

    10.4.1, 11.0.0release notesrelease notes

mongodb-memory-server-core 106 changes

Behavior and default changes 2

  • The RESUME_DOWNLOAD option is stabilized.

    10.4.0release notes

  • Updates the default MongoDB binary version to 7.0.24 and the default 4.2 and 4.4 binaries to 4.2.25 and 4.4.29.

    10.3.0release notes

Fixes and other changes 4

  • Adds a fallback version when determining the SUSE version string.

    10.3.0release notes

  • Accounts for a known compatibility issue on SUSE 12 with MongoDB versions >=8.0.0.

    10.3.0release notes

  • Accounts for known compatibility issues on SUSE 13 and 14.

    10.3.0release notes

  • Silences ECONNRESET errors during shutdown.

    10.3.0release notes

mongodb-memory-server-core 798 changes

Breaking changes 49

  • The default MongoDB version changes to 4.0.25.

    7.0.0release notes

  • The utils default export was removed; import generateDbName as a named export.

    7.0.0release notes

  • generateDbName now returns an empty string by default, affecting the database name used in generated MongoDB URIs.

    7.0.0release notes

  • Its parameter now uses an empty value by default, and the parameter definition changed to use admin by default.

    7.0.0release notes

  • Renamed to uriTemplate.

    7.0.0release notes

  • Replaces MongoBinary.getCachePath.

    7.0.0release notes

  • Removed in favor of the resolveConfig VERSION value.

    7.0.0release notes

  • downloadDir is now required when using MongoBinaryDownload.

    7.0.0release notes

  • Removed; use utils.pathExists instead.

    7.0.0release notes

  • The mongodb package is now non-optional.

    7.0.0release notes

  • Renamed to MongodOpts.

    7.0.0release notes

  • Renamed childProcess to mongodProcess.

    7.0.0release notes

  • Root values of MongodOpts are now required.

    7.0.0release notes

  • The port and dbPath values are now required.

    7.0.0release notes

  • Removed; use mongodProcess?.pid instead.

    7.0.0release notes

  • Starting no longer resets port to undefined.

    7.0.0release notes

  • Removed; replica-set primary waiting now uses events.

    7.0.0release notes

  • Lifecycle functions were renamed for clarity: create, start, and stop replace the previous names.

    7.0.0release notes

  • The servers value is no longer reset after stop.

    7.0.0release notes

  • _initReplSet is protected, restricting direct access while allowing subclasses to use it.

    7.0.0release notes

  • _initServer is protected, restricting direct access while allowing subclasses to use it.

    7.0.0release notes

  • _state is protected, restricting direct access while allowing subclasses to use it.

    7.0.0release notes

  • _waitForPrimary is protected, restricting direct access while allowing subclasses to use it.

    7.0.0release notes

  • The autoStart option was removed.

    7.0.0release notes

  • Removed.

    7.0.0release notes

  • Removed; use opts.replSet.dbName instead.

    7.0.0release notes

  • getInstanceOpts is protected, restricting direct access while allowing subclasses to use it.

    7.0.0release notes

  • Now synchronous and can be called while the replica set is in the init state.

    7.0.0release notes

  • The option was removed; add --oplogSize and its value to replSetOpts.args instead.

    7.0.0release notes

  • The event enum was renamed from MongoMemoryReplSetEventEnum.

    7.0.0release notes

  • The state enum was renamed from MongoMemoryReplSetStateEnum.

    7.0.0release notes

  • The childProcess alias was removed; it was an alias for instance.childProcess.

    7.0.0release notes

  • The uri property was removed in favor of getUri.

    7.0.0release notes

  • Adds create, which always calls MongoMemoryServer.start.

    7.0.0release notes

  • Removed; use getUri instead.

    7.0.0release notes

  • Removed; instanceInfo.dbName can be used instead.

    7.0.0release notes

  • Removed; instanceInfo.dbPath can be used instead.

    7.0.0release notes

  • Renamed to the instanceInfo getter, which returns undefined instead of false.

    7.0.0release notes

  • getInstanceInfo now returns undefined when instance information is unavailable.

    7.0.0release notes

  • Removed; instanceInfo.port can be used instead.

    7.0.0release notes

  • Now synchronous.

    7.0.0release notes

  • instanceInfo is protected, restricting direct access while allowing subclasses to use it.

    7.0.0release notes

  • Now returns undefined instead of null.

    7.0.0release notes

  • Now returns undefined instead of null.

    7.0.0release notes

  • The event enum was renamed from MongoMemoryServerEventEnum.

    7.0.0release notes

  • The state enum was renamed from MongoMemoryServerStateEnum.

    7.0.0release notes

  • The SpawnOptions type alias is removed, so TypeScript users can no longer rely on it.

    7.0.0release notes

  • Replaces getUriBase; port may be undefined to allow a host list.

    7.0.0release notes

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

    7.0.0release notes

New APIs and options 22

Behavior and default changes 13

  • Now checks that the download directory has sufficient permissions.

    7.0.0release notes

  • Adds download support for arch/manjaro and ubuntu-arm64, with support for more arm64 versions.

    7.0.0release notes

  • Now extends EventEmitter.

    7.0.0release notes

  • Now implements ManagerBase.

    7.0.0release notes

  • Supports reusing instances and dbPath values.

    7.0.0release notes

  • The method can execute while state is init.

    7.0.0release notes

  • getUri is now synchronous, so callers no longer need to await it.

    7.0.0release notes

  • Now implements ManagerAdvanced.

    7.0.0release notes

  • getDbName is now synchronous, so callers no longer need to await it.

    7.0.0release notes

  • getDbPath is now synchronous, so callers no longer need to await it.

    7.0.0release notes

  • getPort is now synchronous, so callers no longer need to await it.

    7.0.0release notes

  • The download directory and system binary are resolved relative to the found package.json.

    7.0.0release notes

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

    7.0.0release notes

Fixes and other changes 14

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

    7.0.0release notes

  • generatePaths no longer accesses the filesystem, changing how binary paths are generated.

    7.0.0release notes

  • Fedora version 34 and later receive dedicated download handling.

    7.0.0release notes

  • The global binary path is used only when it is not empty.

    7.0.0release notes

  • Binary path resolution uses INIT_CWD when available.

    7.0.0release notes

  • Debian 9.2 binaries are selected for MongoDB versions earlier than 4.2.0.

    7.0.0release notes

  • Debian testing releases are now handled when selecting MongoDB binaries.

    7.0.0release notes

  • macOS arm64 can use translated x64 archives.

    7.0.0release notes

  • The description and usage of dbName in the MongoDB URI are fixed.

    7.0.0release notes

  • getUri now waits until the replica set is running.

    7.0.0release notes

  • The server state changes to stopped when startup fails.

    7.0.0release notes

  • An otherDb is no longer generated when the corresponding setting is false.

    7.0.0release notes

  • MongoMemoryServer.stop returns false when the server is already stopped.

    7.0.0release notes

  • System binary validation also checks for execute permission.

    7.0.0release notes