imapflow breaking changes
imapflow 2.12.0 (November 15, 2026) is its newest release with breaking changes, 3 of them. The first: Behavior changed search. Every breaking API change we have recorded in imapflow on npm: 268 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.12.2, released November 20, 2026. Source repository
Its 2.0.0 release requires Node.js 20 or later. Node.js end of life dates.
imapflow 2.12.0 breaking changes
- Behavior changed
search
Memory a SEARCH answer or a BODYSTRUCTURE can take is now bounded, so unusually large server answers may be rejected where they previously were accepted. github.com - Signature changed
ImapFlow.search
Was search(query: SearchObject, options?: MessageRangeOptions | undefined): Promise<number[] | false | undefined>; now search(query: SearchObject, options?: Omit<SearchOptions, 'returnOptions'> | undefined): Promise<number[] | false |... npmjs.com - Signature changed
ImapFlowErrorCode
Was const ImapFlowErrorCode: {readonly NoConnection: "NoConnection"; readonly EConnectionClosed: "EConnectionClosed"; readonly StateLogout: "StateLogout"; readonly ClosedAfterConnectText: "ClosedAfterConnectText"; readonly... npmjs.com
imapflow 2.8.0 breaking changes
- Signature changed
ImapFlow.idle
Was idle(): Promise<boolean | undefined>; now idle(options?: IdleOptions | undefined): Promise<boolean | undefined>. npmjs.com
imapflow 2.6.0 breaking changes
- Behavior changed
fetch
Calling fetch() without a selected mailbox now rejects with an error. Code that relied on it silently returning nothing must handle the rejection. github.com - Signature changed
ImapFlow.fetchOne
Was fetchOne(seq: SequenceString, query: FetchQueryObject, options?: FetchOptions | undefined): Promise<FetchMessageObject | false | undefined>; now fetchOne(seq: SequenceString, query: FetchQueryObject, options?: FetchOptions |... npmjs.com - Signature changed
ImapFlowErrorCode
Was const ImapFlowErrorCode: {readonly NoConnection: "NoConnection"; readonly EConnectionClosed: "EConnectionClosed"; readonly StateLogout: "StateLogout"; readonly ClosedAfterConnectText: "ClosedAfterConnectText"; readonly... npmjs.com
imapflow 2.5.9 breaking changes
- Signature changed
ImapFlowErrorCode
Was const ImapFlowErrorCode: {readonly NoConnection: "NoConnection"; readonly EConnectionClosed: "EConnectionClosed"; readonly StateLogout: "StateLogout"; readonly ClosedAfterConnectText: "ClosedAfterConnectText"; readonly... npmjs.com
imapflow 2.5.6 breaking changes
- Behavior changed
search
search() now rejects when the SEARCH command did not complete, where it previously returned a result. Code that does not handle rejections should catch the error. SEARCH answers are now read into a number array. github.com
imapflow 2.5.1 breaking changes
- Signature changed
ImapFlowErrorCode
Was const ImapFlowErrorCode: {readonly NoConnection: "NoConnection"; readonly EConnectionClosed: "EConnectionClosed"; readonly StateLogout: "StateLogout"; readonly ClosedAfterConnectText: "ClosedAfterConnectText"; readonly... npmjs.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
imapflow 2.5.0 breaking changes
- Signature changed
ImapFlowErrorCode
Was const ImapFlowErrorCode: {readonly NoConnection: "NoConnection"; readonly EConnectionClosed: "EConnectionClosed"; readonly StateLogout: "StateLogout"; readonly ClosedAfterConnectText: "ClosedAfterConnectText"; readonly... npmjs.com - Signature changed
ImapSocket
Was type ImapSocket = net.Socket & {getCipher?: (() => tls.CipherNameAndProtocol) | undefined; authorized?: boolean | undefined;}; now type ImapSocket = ImapTransportSocket. npmjs.com
imapflow 2.4.3 breaking changes
- Signature changed
ImapFlowErrorCode
Was const ImapFlowErrorCode: {readonly NoConnection: "NoConnection"; readonly EConnectionClosed: "EConnectionClosed"; readonly StateLogout: "StateLogout"; readonly ClosedAfterConnectText: "ClosedAfterConnectText"; readonly... npmjs.com
imapflow 2.0.0 breaking changes
- Removed
Node.js 20 or newer is now required. Users on older Node.js must upgrade their runtime before using this release. github.com - Removed
DownloadObject.meta.charset
DownloadObject.meta.charset was removed in imapflow 2.0.0 npmjs.com
And 253 more in this version.
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.