Documentation Home
MySQL Connector/Node.js Release Notes
Download these Release Notes
PDF (US Ltr) - 119.8Kb
PDF (A4) - 119.5Kb


MySQL Connector/Node.js Release Notes  /  Changes in MySQL Connector/Node.js 8.0  /  Changes in MySQL Connector/Node.js 8.0.30 (2022-07-26, General Availability)

Changes in MySQL Connector/Node.js 8.0.30 (2022-07-26, General Availability)

Functionality Added or Changed

  • Updated internal collation and character set mapping to include the new language-specific utf8mb4 collations added in MySQL Server 8.0.30. (WL #15227)

  • The minimum required Node.js engine is now v14.0.0. This means that it's not guaranteed that Connector/Node.js will function with older Node.js versions. Previously the minimum version was v12.0.0 which has since reached EOL status (April 2022). (WL #15029)

  • Added TypeScript support by introducing type definition files that include type declarations for the most relevant parts of the public API. This allows TypeScript applications to seamlessly use Connector/Node.js; and ensures proper support for TypeScript-enabled tooling available on IDEs (such as Visual Studio Code) to provide integrated type hints, contextual auto-completion, and development-time type errors. (WL #14631)

Bugs Fixed

  • Now ensure that DECIMAL values are returned as JavaScript strings instead of numbers if there's a chance of losing precision. (Bug #34016587)

  • Updated the client placeholder assignment logic to ensure that undefined placeholder values are ignored; and to externalize validation tasks to the server where the X Plugin yields errors. Those errors are then relayed to the application in a more consistent feedback loop.

    For example, mixing conventions between single placeholder assignment and assignment maps with bind() resulted in the following unexpected error: "TypeError: Cannot read property 'valueOf' of undefined". (Bug #33940584)