connect-mongo breaking changes
connect-mongo 6.0.0 (November 30, 2025) is its newest release with breaking changes, 12 of them. The first: Removed create. Every breaking API change we have recorded in connect-mongo on npm: 22 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 6.0.0, released November 30, 2025. Source repository
Its 6.0.0 release requires Node.js 20.8 or later. Node.js end of life dates.
- From 5.0.0 to 6.0.0: 12 breaking changes in 1 version.
- From 4.0.0 to 6.0.0: 14 breaking changes in 2 versions.
connect-mongo 6.0.0 breaking changes
- Removed
create
create was removed in connect-mongo 6.0.0 npmjs.com - Behavior changed
The package now requires Node.js 20.8 or later, so older Node.js runtimes must be upgraded before use. github.com - Behavior changed
Legacy crypto options are auto-wrapped and cannot be combined with the new cryptoAdapter option; use cryptoAdapter alone when setting both would be needed. github.com - Behavior changed
store.clear
store.clear() uses deleteMany and keeps TTL indexes rather than dropping the collection; code relying on the collection being dropped will see different results. github.com - Signature changed
default
Was class MongoStore extends session.Store; now class MongoStore<T extends session.SessionData = session.SessionData> extends session.Store. npmjs.com - Signature changed
default.all
Was all(callback: (err: any, obj?: session.SessionData[] | {[sid: string]: session.SessionData;} | null) => void): void; now all(callback: (err: any, obj?: T[] | {[sid: string]: T;} | null) => void): void. npmjs.com - Signature changed
default.collectionP
Was collectionP: Promise<Collection<InternalSessionType>>; now collectionP: Promise<Collection<InternalSessionType<T>>>. npmjs.com - Signature changed
default.constructor
Was constructor({collectionName, ttl, mongoOptions, autoRemove, autoRemoveInterval, touchAfter, stringify, crypto, ...required}: ConnectMongoOptions); now constructor({collectionName, ttl, mongoOptions, autoRemove, autoRemoveInterval... npmjs.com - Signature changed
default.create
Was static create(options: ConnectMongoOptions): MongoStore; now static create<U extends session.SessionData = session.SessionData>(options: ConnectMongoOptions<U>): MongoStore<U>. npmjs.com - Signature changed
default.get
Was get(sid: string, callback: (err: any, session?: session.SessionData | null) => void): void; now get(sid: string, callback: (err: any, session?: T | null) => void): void. npmjs.com - Signature changed
default.set
Was set(sid: string, session: session.SessionData, callback?: (err: any) => void): void; now set(sid: string, session: T, callback?: (err: any) => void): void. npmjs.com - Signature changed
default.touch
Was touch(sid: string, session: session.SessionData & {lastModified?: Date;}, callback?: (err: any) => void): void; now touch(sid: string, session: T & {lastModified?: Date;}, callback?: (err: any) => void): void. npmjs.com
connect-mongo 5.0.0 breaking changes
- Configuration changed
The package now requires Node 12.9 or newer. Older Node versions are no longer supported. github.com - Signature changed
default.collectionP
Was collectionP: Promise<Collection>; now collectionP: Promise<Collection<InternalSessionType>>. npmjs.com
connect-mongo 4.0.0 breaking changes
- Removed
default
default was removed in connect-mongo 4.0.0 npmjs.com - Removed
DefaultOptions
DefaultOptions was removed in connect-mongo 4.0.0 npmjs.com - Removed
MongooseConnectionOptions
MongooseConnectionOptions was removed in connect-mongo 4.0.0 npmjs.com - Removed
MongoStore
MongoStore was removed in connect-mongo 4.0.0 npmjs.com - Removed
MongoStoreFactory
MongoStoreFactory was removed in connect-mongo 4.0.0 npmjs.com - Removed
MongoUrlOptions
MongoUrlOptions was removed in connect-mongo 4.0.0 npmjs.com - Removed
NativeMongoOptions
NativeMongoOptions was removed in connect-mongo 4.0.0 npmjs.com - Removed
NativeMongoPromiseOptions
NativeMongoPromiseOptions was removed in connect-mongo 4.0.0 npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.