github mongodb/node-mongodb-native v6.12.0

5 days ago

6.12.0 (2024-12-10)

The MongoDB Node.js team is pleased to announce version 6.12.0 of the mongodb package!

Release Notes

zstd@2.0 is now supported for zstd compression

The new @mongodb-js/zstd@2.0 release can now be used with the driver for zstd compression.

Populate ServerDescription.error field when primary marked stale

We now attach an error to the newly created ServerDescription object when marking a primary as stale. This helps with debugging SDAM issues when monitoring SDAM events.

BSON upgraded to v6.10.1

See: https://github.com/mongodb/js-bson/releases/tag/v6.10.1

Socket read stream set to object mode

Socket data was being read with a stream set to buffer mode when it should be set to object mode to prevent inaccurate data chunking, which may have caused message parsing errors in rare cases.

SOCKS5: MongoNetworkError wrap fix

If the driver encounters an error while connecting to a socks5 proxy, the driver wraps the socks5 error in a MongoNetworkError. In some circumstances, this resulted in the driver wrapping MongoNetworkErrors inside MongoNetworkErrors.

The driver no longer double wraps errors in MongoNetworkErrors.

Features

Bug Fixes

Documentation

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

Don't miss a new node-mongodb-native release

NewReleases is sending notifications on new releases.