mysql2 breaking changes
mysql2 3.26.0 (November 30, 2026) is its newest release with breaking changes. The first: Requires explicit opt-in to fetch the server RSA public key without TLS in mysql2 3.26.0. Every breaking API change we have recorded in mysql2 on npm: 17 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.26.1, released December 3, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
mysql2 3.26.0 breaking changes
- Behavior changed
Retrieving the server RSA public key over a non-TLS connection now requires an explicit opt-in. Code that relied on the previous default must enable this option. github.com
mysql2 3.25.0 breaking changes
- Behavior changed
Typed array and DataView query parameters are now sent as the bytes they view, which can change stored values for existing code. github.com - Behavior changed
Named placeholder parsing now follows the session SQL mode, which can change how existing queries are escaped. github.com - Behavior changed
Passing more bind parameters than a prepared statement uses now raises an error. Remove the extra parameters. github.com - Behavior changed
A plain Uint8Array query parameter is now sent as a BLOB, which can change stored values for existing code. github.com - Behavior changed
Query parameters that have no encoding now raise an error instead of being passed through. Convert such values before binding. github.com - Behavior changed
MariaDB JSON values in binary columns are now decoded as UTF-8, which can change returned values for existing code. github.com - Behavior changed
expand
Code calling expand() must make sure the columns it may expand are present, or it will fail. github.com - Behavior changed
noBackslashEscapes
With the noBackslashEscapes option, values are now always escaped for the NO_BACKSLASH_ESCAPES SQL mode, which can change query text produced for existing code. github.com - Signature changed
ExecuteValues
Was type ExecuteValues = | TypedParameterValue | string | number | bigint | boolean | Date | null | Blob | Buffer | Uint8Array | ExecuteValues[] | {[key: string]: ExecuteValues}; now type ExecuteValues = | TypedParameterValue | string |... npmjs.com - Signature changed
QueryValues
Was type QueryValues = | string | number | bigint | boolean | Date | null | undefined | Blob | Buffer | Uint8Array | Raw | ({} | null | undefined)[] | {[key: string]: QueryValues}; now type QueryValues = | string | number | bigint |... npmjs.com
And 3 more in this version. Sign up to see every change
mysql2 3.24.3 breaking changes
- Signature changed
PoolCluster.on
Was on(event: 'offline', listener: (nodeId: number) => void): this on(event: 'online', listener: (nodeId: number) => void): this on(event: 'remove', listener: (nodeId: number) => void): this; now on(event: 'offline', listener: (nodeId... npmjs.com
mysql2 3.24.0 breaking changes
- Signature changed
ExecuteValues
Was type ExecuteValues = | string | number | bigint | boolean | Date | null | Blob | Buffer | Uint8Array | ExecuteValues[] | {[key: string]: ExecuteValues}; now type ExecuteValues = | TypedParameterValue | string | number | bigint |... npmjs.com
mysql2 3.23.4 breaking changes
- Signature changed
PoolConnection.promise
Was promise(promiseImpl?: PromiseConstructor): PromisePool; now promise(promiseImpl?: PromiseConstructor): PromisePoolConnection. 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.