---
title: "mysql2 3.26.0 Breaking Changes on npm | Since.dev"
description: "What each mysql2 release removed, renamed or changed: 17 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/mysql2
last_updated: 2026-12-04
---

# 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

Latest version `3.26.1`, released December 3, 2026. [Source repository](https://github.com/sidorares/node-mysql2)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.23.4](#v-3-23-4) to [3.26.0](#v-3-26-0): 16 breaking changes in 4 versions.

## mysql2 3.26.0 breaking changes

mysql2 3.26.0, released November 30, 2026: 1 breaking change.

- **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](https://github.com/sidorares/node-mysql2/releases/tag/v3.26.0)

## mysql2 3.25.0 breaking changes

mysql2 3.25.0, released November 29, 2026: 13 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](https://github.com/sidorares/node-mysql2/releases/tag/v3.25.0)
- **Behavior changed**  

Named placeholder parsing now follows the session SQL mode, which can change how existing queries are escaped. [github.com](https://github.com/sidorares/node-mysql2/releases/tag/v3.25.0)
- **Behavior changed**  

Passing more bind parameters than a prepared statement uses now raises an error. Remove the extra parameters. [github.com](https://github.com/sidorares/node-mysql2/releases/tag/v3.25.0)
- **Behavior changed**  

A plain Uint8Array query parameter is now sent as a BLOB, which can change stored values for existing code. [github.com](https://github.com/sidorares/node-mysql2/releases/tag/v3.25.0)
- **Behavior changed**  

Query parameters that have no encoding now raise an error instead of being passed through. Convert such values before binding. [github.com](https://github.com/sidorares/node-mysql2/releases/tag/v3.25.0)
- **Behavior changed**  

MariaDB JSON values in binary columns are now decoded as UTF-8, which can change returned values for existing code. [github.com](https://github.com/sidorares/node-mysql2/releases/tag/v3.25.0)
- **Behavior changed** `expand`  

Code calling expand() must make sure the columns it may expand are present, or it will fail. [github.com](https://github.com/sidorares/node-mysql2/releases/tag/v3.25.0)
- **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](https://github.com/sidorares/node-mysql2/releases/tag/v3.25.0)
- **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](https://www.npmjs.com/package/mysql2/v/3.25.0)
- **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](https://www.npmjs.com/package/mysql2/v/3.25.0)

And 3 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## mysql2 3.24.3 breaking changes

mysql2 3.24.3, released September 2, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/mysql2/v/3.24.3)

## mysql2 3.24.0 breaking changes

mysql2 3.24.0, released August 23, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/mysql2/v/3.24.0)

## mysql2 3.23.4 breaking changes

mysql2 3.23.4, released August 20, 2026: 1 breaking change.

- **Signature changed** `PoolConnection.promise`  

Was promise(promiseImpl?: PromiseConstructor): PromisePool; now promise(promiseImpl?: PromiseConstructor): PromisePoolConnection. [npmjs.com](https://www.npmjs.com/package/mysql2/v/3.23.4)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
