6.4.1 (2025-03-05)
The MongoDB Node.js team is pleased to announce version 6.4.1 of the bson
package!
Release Notes
⚠️ Fixed potential data corruption bug when useBigInt64
is enabled
After refactoring to improve deserialization performance in #649, we inadvertently introduced a bug that manifested when deserializing Long
values with the useBigInt64
flag enabled. The bug would lead to negative Long
values being deserialized as unsigned integers. This issue has been resolved here.
Fixed float byte-wise handling on big-endian systems
Caution
Among the platforms BSON and the MongoDB driver support this issue impacts s390x big-endian systems. x86, ARM, and other little-endian systems are not affected. Existing versions of the driver can be upgraded to this release.
A change in BSON@6.4.0 (2024-02-29) started parsing and serializing floats using a Float64Array
. When reading the bytes from this array the ordering is dependent on the platform it is running on and we now properly account for that ordering.
Bug Fixes
- NODE-6812: incorrect negative bigint handling (#762) (ce3e544)
- NODE-6818: flip byte order depending on system endianness (#766) (8a55718)
Documentation
We invite you to try the bson
library immediately, and report any issues to the NODE project.