The MongoDB Node.js team is pleased to announce version 4.5.0 of the bson
module!
Release Highlights
The Timestamp
constructor can now be called with a more convenient object parameter: new Timestamp({ t: number, i: number })
; the existing new Timestamp(increment, timestamp)
option has been deprecated.
Furthermore, this minor version significantly improves deserialization performance for buffer inputs and corrects an issue with our ESM bundles resulting from a reference to global
which does not exist in web environments.
Features
Bug Fixes
- NODE-3451: fix performance regression from v1 (#451) (2330ab1)
- NODE-3520: global not defined in esm bundles (#452) (cb82a80)
Documentation
- API: https://github.com/mongodb/js-bson#readme
- Changelog: https://github.com/mongodb/js-bson/blob/master/HISTORY.md#change-log
We invite you to try the bson library immediately, and report any issues to the NODE project.