Connector/Node.js 3.3.0 Release Notes

Connector/Node.js 3.3.0 is a Stable (GA) release of MariaDB Connector/Node.js, released on 2024-03-21

circle-info

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

Release date: 21 Mar 2024

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

circle-check

Notable changes

CONJS-264arrow-up-right Zero-Configuration SSL

In order to have SSL connections, there was 3 solutions:

  • Have server certificates generated with trusted node.js Certificate Authorities (CA)arrow-up-right, configuration was then like ssl: true.

  • Configure connector with server certificate like:ssl: { ca: [ fs.readFileSync('server-cert.pem') ] }

  • disable certificate ssl verification (not secured!) like:ssl: { rejectUnauthorized: true }

Since MariaDB 11.4.1 (MDEV-31855arrow-up-right), enabling SSL is super easy, with simple configuration like:ssl: true, even if server has not configure ssl certificates. The connector doesn't need to know server certificate anymore, if password is not empty. This is part of mission impossible zero configurationarrow-up-right, client validating ssl certificates using client password.

CONJS-284arrow-up-right pipeline PREPARE and EXECUTE

Previous use of connection.execute was executing PREPARE command first, read PREPARE response, then execute EXECUTE command and finally read EXECUTE response.

New implementation, when using MariaDB server 10.2+ and with pipelining option enable (default value) will execute PREPARE, execute EXECUTE, then only read PREPARE response and read EXECUTE response. This permit to avoid much of the network latency.

Benchmarking results using local database: (distant database would have even better result)

bench

This improvement is for first execution of a specific query, since PREPARE is cached by default, second execution would only execute EXECUTE command

Other changes

Issues Fixed

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

spinner

Last updated

Was this helpful?