6.10.2 (2025-01-29)
The MongoDB Node.js team is pleased to announce version 6.10.2 of the bson
package!
Release Notes
Fix calculateObjectSize
not accounting for BigInt
value size
BSON.calculateObjectSize
was missing a condition for BigInt
values, meaning it did not account for them in the same way that it would for Long
values. This has been corrected.
We also added a new default condition that will catch any new values that may be returned by typeof
in the future and will throw an error rather than returning an inaccurate size.
Bug Fixes
Documentation
We invite you to try the bson
library immediately, and report any issues to the NODE project.