v6.14.0
6.14.0 (2025-02-28)
The MongoDB Node.js team is pleased to announce version 6.14.0 of the mongodb package!
Release Notes
Add support for $lookup on encrypted collections
Starting in the upcoming MongoDB server 8.1, the aggregation stage $lookup can now be used with clients configured for automatic encryption after upgrading to mongodb-client-encryption@>=6.3.0! 🔒 🎉
Use isUint8Array defined in the driver rather than util/types
Some users of bundlers for next.js and our very own mongosh noticed a new import from "util/types" that would need to be supported in environments that don't have that module. We already have an internal implementation of isUint8Array so we do not need to add an import for "util/types".
Revert @aws-sdk/credential-providers compatiblity change
In v6.13.1 we inadvertantly raised the version compatibility of @aws-sdk/credential-providers, that change has been reverted.
Features
- NODE-6676: add support for
nsTypein change stream create events (#4431) (7800067) - NODE-6773: add support for $lookup with automatic encryption (#4427) (965b21a)
Bug Fixes
- NODE-6765: FindOneAndUpdateOptions supports aggregation expressions (#4423) (421ddeb)
- NODE-6792: use isUint8Array from driver's utils instead of util/types (#4436) (dfe1fba)
- NODE-6794: revert
@aws-sdk/credential-providerspeer compatibility change (#4437) (488c407)
Documentation
We invite you to try the mongodb library immediately, and report any issues to the NODE project.