Skip to content

v6.13.1

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 20 Feb 19:09
21f2cb9

6.13.1 (2025-02-20)

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

Release Notes

Remove extraneous Promise<Document> in Collection.replaceOne return type

The return type signature of the replaceOne method no longer includes the general Promise<Document> type. Thanks to @arturmuller, the replaceOne type signature is now more accurate! 🎉

Fix writeConcern omitted when timeoutMS is provided

When timeoutMS and a write concern were provided, the writeConcern was incorrectly omitted from the final command executed by the driver.

Thanks @stepanho for contributing the fix!

Update BSON version requirement to 6.10.3

This pulls in fixes made in bson versions 6.10.3 and 6.10.2 into the driver.

BSON 6.10.2 fixed an issue in calculateObjectSize ignoring the size contributed by BigInt values to a BSON document. This impacted batch splitting logic in bulkWrite operations: if the actual BSON was over the size returned by calculateObjectSize the server would return an error.

Warning

BSON 6.10.3 addresses a potential data corruption risk with the use of useBigInt64 flag introduced in BSON 6.4.0, where negative Long values would be deserialized into BigInt as unsigned integers when the useBigInt64 flag was enabled. (Thanks to @rkistner for reporting this issue!)

Bug Fixes

Documentation

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