Skip to content

node-v6.0.0

Compare
Choose a tag to compare
@mongo-node-bot mongo-node-bot released this 28 Aug 15:48
· 221 commits to master since this release
8e7f69f

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

  • fix(NODE-5516): allow undefined values for optional Uint8Arrays arguments (#683)

We invite you to try the mongodb-client-encryption library immediately, and report any issues to the NODE project.