Connector/Node.js 2.1.0 Release Notes

circle-info

Downloadarrow-up-right | Release Notes | Changelog | Connector/Node.js Overview

Release date: 12 Jul 2019

MariaDB Connector/Node.js 2.1.0 is a Stable (GA) release.

circle-check

Notable Changes

New Options

Option
Description
Type
Default

collation

(used in replacement of charset) Permit to define the collation used for connection. This will define the charset encoding used for exchanges with the database and define the order used when comparing strings. It's mainly used for micro-optimizations

string

UTF8MB4_UNICODE_CI

permitConnectionWhenExpired

Permit a user with an expired password to connect. Only possible operation in this case will be to change the password ('SET PASSWORD=PASSWORD('XXX')')

boolean

false

The option charset now corresponds to charset, still permitting collation for compatibility, but then a warning is thrown to the console.

Pool events

Pools now emit events.

event
Description

acquire

This event indicates that a connection has been acquired from pool.

connection

This event is emitted when a new connection is added to the pool. Has a connection object parameter

enqueue

This event is emitted when a command cannot be satisfied immediately by the pool and is queued.

release

This event is emitted when a connection is released back into the pool. Has a connection object parameter

Example:

This page is: Copyright © 2025 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?