MariaDB Connector/Node.js 3.3.0 Release Notes
Download Release Notes Changelog Connector/Node.js Overview
Note: This page describes features in an unreleased version of MariaDB Connector/Node.js.
Unreleased means there are no official packages or
binaries available for download which contain the features.
The source code is available on GitHub.
Release date: 08 Feb 2023
MariaDB Connector/Node.js 3.3.0 is a Stable (GA) release.
For an overview of MariaDB Connector/Node.js see the About MariaDB Connector/Node.js page
Notable changes
CONJS-284 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 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).
This improvement is for first execution of a specific query, since PREPARE is cached by default, second execution would only execute EXECUTE command
CONJS-264 validate ssl certificates using client password
In order to have SSL connections, there was 3 solutions:
- Have server certificats generated with trusted node.js Certificate Authorities (CA).
- 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 and MDEV-31855, ssl: true
is enough if password is not empty. This permit easier client configuration.
Other changes
- CONJS-279 Improve text encoding decoding
Issues Fixed
- CONJS-281 cannot connect to 11.3+ server with character-set-collations = utf8mb4=uca1400_ai_ci
- CONJS-277 using connection.importFile when connection is not connected to database result in error
- CONJS-278 Possible buffer overwrite when sending query bigger than 16M
- CONJS-282 error when using mysql_clear_test password authentication plugin