> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/release-notes/connectors/node.js/2.x/2.5.0.md).

# Connector/Node.js 2.5.0 Release Notes

Release notes for MariaDB Connector/Node.js 2.5.0, a Stable (GA) release published 19 October 2020.

{% hint style="info" %}

<p align="center">The most recent release of <a href="/docs/connectors/mariadb-connector-nodejs.md">MariaDB Connector/Node.js</a> is: <a href="/docs/release-notes/connectors/node.js/3.x/3.5.5.md"><strong>3.5.5</strong></a></p>

<p align="center"><a href="https://mariadb.com/downloads/connectors/connectors-data-access/nodejs-connector" class="button primary">Download Connector/Node.js 3.5.5</a></p>
{% endhint %}

[Download](https://mariadb.com/downloads/#connectors) | [Release Notes](/docs/release-notes/connectors/node.js/2.x/2.5.0.md) | [Changelog](/docs/release-notes/connectors/node.js/changelogs/2.x/2.5.0.md) | [Connector/Node.js Overview](/docs/connectors/mariadb-connector-nodejs/mariadb-connector-node-js-guide.md)

**Release date:** 19 Oct 2020

MariaDB Connector/Node.js 2.5.0 is a [***Stable***](/docs/release-notes/community-server/about/release-criteria.md) ***(GA)*** release.

{% hint style="success" %}
**For an overview of MariaDB Connector/Node.js see the** [**About MariaDB Connector/Node.js**](/docs/connectors/mariadb-connector-nodejs/mariadb-connector-node-js-guide.md) **page**
{% endhint %}

## Notable Changes

* [CONJS-148](https://jira.mariadb.org/browse/CONJS-148) - permit setting socket keep alive (option `keepAliveDelay`)
* [CONJS-143](https://jira.mariadb.org/browse/CONJS-143) - Array parameter escaping differ from mysql/mysql2
* [CONJS-133](https://jira.mariadb.org/browse/CONJS-133) - Support ES2020 BigInt object (option `supportBigInt`)
* [CONJS-77](https://jira.mariadb.org/browse/CONJS-77) - Support MySQL caching\_sha256\_password authentication
* [CONJS-76](https://jira.mariadb.org/browse/CONJS-76) - Support MySQL sha256\_password authentication

New Options

| option                  | description                                                                                                                                                                                                                                                                                                                                                                                       | type      | default |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ------- |
| arrayParenthesis        | Indicate if array are included in parenthesis. This option permit compatibility with version < 2.5                                                                                                                                                                                                                                                                                                | *boolean* | false   |
| rsaPublicKey            | Indicate path/content to MySQL server RSA public key. use requires Node.js v11.6+                                                                                                                                                                                                                                                                                                                 | *string*  |         |
| cachingRsaPublicKey     | Indicate path/content to MySQL server caching RSA public key. use requires Node.js v11.6+                                                                                                                                                                                                                                                                                                         | *string*  |         |
| allowPublicKeyRetrieval | Indicate that if `rsaPublicKey` or `cachingRsaPublicKey` public key are not provided, if client can ask server to send public key.                                                                                                                                                                                                                                                                | *boolean* | false   |
| supportBigInt           | Whether resultset should return javascript ES2020 [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) for [BIGINT](/docs/server/reference/data-types/numeric-data-types/bigint.md) data type. This ensures having expected value even for value > 2^53 (see [safe](/docs/connectors/mariadb-connector-nodejs/node-js-connection-options.md) range). | *boolean* | false   |
| keepAliveDelay          | permit to enable socket keep alive, setting delay. 0 means not enabled. Keep in mind that this don't reset server [@@wait\_timeout](/docs/server/server-management/variables-and-modes/server-system-variables.md) (use pool option idleTimeout for that). in ms                                                                                                                                  | *int*     |         |

[CONJS-143](https://jira.mariadb.org/browse/CONJS-143) is a breaking change. Queries that have a IN parameter with array parameters format change.\
previous format did not accept parenthesis :

```js
conn.query('SELECT * FROM arrayParam WHERE id = ? AND val IN ?', [1, ['b', 'c']]);
```

now, format is

```js
conn.query('SELECT * FROM arrayParam WHERE id = ? AND val IN (?)', [1, ['b', 'c']]);
```

same than mysql/mysql2 drivers.\
previous behaviour can be reverted setting option `arrayParenthesis` to true.

## Bugs Fixed

* [CONJS-145](https://jira.mariadb.org/browse/CONJS-145) - batch rewrite error when packet reach maxAllowedPacket
* [CONJS-146](https://jira.mariadb.org/browse/CONJS-146) - Using callback API, batch, avoid return error if connection not established
* [CONJS-144](https://jira.mariadb.org/browse/CONJS-144) - TypeScript type ssl wrong definitions

## Changelog

For a complete list of changes made in this release, with links to detailed information on each push, see the [changelog](/docs/release-notes/connectors/node.js/changelogs/2.x/2.5.0.md).

<sub>*This page is: Copyright © 2026 MariaDB. All rights reserved.*</sub>

{% @marketo/form formid="4316" formId="4316" %}
