# Connector/Node.js 2.0.5 Release Notes

{% hint style="info" %}
<p align="center">The most recent release of <a href="https://app.gitbook.com/s/CjGYMsT2MVP4nd3IyW2L/mariadb-connector-nodejs">MariaDB Connector/Node.js</a> is:</p>

<p align="center"><a href="../mariadb-connector-nodejs-3x-release-notes/mariadb-connector-node-js-3-4-5-release-notes" class="button secondary">Connector/Node.js 3.4.5</a> <a href="https://mariadb.com/downloads/connectors/connectors-data-access/nodejs-connector" class="button primary">Download Now</a></p>
{% endhint %}

[Download](https://mariadb.com/downloads/#connectors) | [Release Notes](mariadb-connector-nodejs-205-release-notes) | [Changelog](../changelogs/mariadb-connector-nodejs-2x-changelogs/mariadb-connector-nodejs-205-changelog) | [Connector/Node.js Overview](https://app.gitbook.com/s/CjGYMsT2MVP4nd3IyW2L/mariadb-connector-nodejs/mariadb-connector-node-js-guide)

**Release date:** 13 May 2019

MariaDB Connector/Node.js 2.0.5 is a [_**Stable**_](../../../community-server/about/release-criteria) _**(GA)**_ release.

{% hint style="success" %}
**For an overview of MariaDB Connector/Node.js see the** [**About MariaDB Connector/Node.js**](https://app.gitbook.com/s/CjGYMsT2MVP4nd3IyW2L/mariadb-connector-nodejs/mariadb-connector-node-js-guide) **page**
{% endhint %}

## Notable Changes

* \[[CONJS-69](https://jira.mariadb.org/browse/CONJS-69)] permit set numeric parameter bigger than javascript 2^53-1 limitation
* \[[CONJS-68](https://jira.mariadb.org/browse/CONJS-68)] error when reading datetime data and timezone option is set
* \[[CONJS-58](https://jira.mariadb.org/browse/CONJS-58)] parse Query when receiving LOAD LOCAL INFILE, to prevent man in the middle attack
* \[[CONJS-62](https://jira.mariadb.org/browse/CONJS-62)] support named timezones and daylight savings time
* \[[CONJS-63](https://jira.mariadb.org/browse/CONJS-63)] add type definitions for typescript
* \[[CONJS-64](https://jira.mariadb.org/browse/CONJS-64)] handle Error packet during resultset to permit query timeout with SET STATEMENT max\_statement\_time= FOR
* \[[CONJS-66](https://jira.mariadb.org/browse/CONJS-66)] SET datatype handling (returning array)
* \[[CONJS-67](https://jira.mariadb.org/browse/CONJS-67)] Changing user does not takes in account connector internal state (transaction status)

### Pool improvement

New Options

| Option        | Description                                                                                                                                                                                                                                                | Type      | Default                        |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ------------------------------ |
| `idleTimeout` | Indicate idle time after which a pool connection is released. Value must be lower than [@@wait\_timeout](https://app.gitbook.com/s/SsmexDFPv2xG2OTyO5yV/server-management/variables-and-modes/server-system-variables). In seconds (0 means never release) | _integer_ | 1800                           |
| `minimumIdle` | Permit to set a minimum number of connection in pool. Recommendation is to use fixed pool, so not setting this value.                                                                                                                                      | _integer_ | _set to connectionLimit value_ |

This permits to set a minimum pool size, meaning that after a period of inactivity, the pool will decrease the inner number of connection to a minimum number of connections (defined with `minimumIdle`).\
By default, connections not used after `idleTimeout` (default to 30 minutes) will be discarded, avoiding reaching server [@@wait\_timeout](https://app.gitbook.com/s/SsmexDFPv2xG2OTyO5yV/server-management/variables-and-modes/server-system-variables).

Pool handle connection creation automatically, with now some delayed after failing to establish a connection, to avoid using CPU unnecessary.\
Authentication error in pool have now a better handling.

## Changelog

For a complete list of changes made in this release, with links to detailed information\
on each push, see the [changelog](../changelogs/mariadb-connector-nodejs-2x-changelogs/mariadb-connector-nodejs-205-changelog).

<sub>_This page is: Copyright © 2025 MariaDB. All rights reserved._</sub>

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