node-v6.0.0
The MongoDB Node.js team is pleased to announce version 6.0.0 of the mongodb-client-encryption
package!
Release Highlights
In this release we migrated our Node.js bindings from the libmongocrypt repository into the node driver repository. As a result, this package no longer has any stand-alone functionality and is not intended to be consumed in isolation. The public API that exposes the functionality in this library is now available in the mongodb
package.
// Old import
import { MongoClient } from 'mongodb';
import { ClientEncryption } from 'mongodb-client-encryption';
const client = new MongoClient(process.env.MONGODB_URI);
const clientEncryption = new ClientEncryption(client, options);
// New import
import { MongoClient, ClientEncryption } from 'mongodb';
const client = new MongoClient(process.env.MONGODB_URI);
const clientEncryption = new ClientEncryption(client, options);
This release is also the first release where we will be tying the major version of this package to that of the driver to make compatibility between the driver and its add-on packages more straightforward to manage. Please refer to the compatibility table in our readme for more information.
Important
The minimum supported Node.js version is now v16.20.1. We strive to keep our minimum supported Node.js version in sync with the runtime's release cadence to keep up with the latest security updates and modern language features.
⚠BREAKING CHANGES
- feat(NODE-5420)!: remove JS bindings from libmongocrypt (#667)
- feat(NODE-5417)!: bump minimum Node.js version to v16.20.1 (#670)
Bug Fixes
We invite you to try the mongodb-client-encryption
library immediately, and report any issues to the NODE project.