Releases: mongodb/js-bson
v5.0.0-alpha.3
🚧 Testing Build Only
This alpha build is intended for internal testing only. Adopt at your own risk.
Changes listed in HISTORY.md.
5.0.0-alpha.2 diff v5.0.0-alpha.3 (2023-01-20)
v5.0.0-alpha.2
🚧 Testing Build Only
This alpha build is intended for internal testing only. Adopt at your own risk.
Changes listed in HISTORY.md.
5.0.0-alpha.1 diff v5.0.0-alpha.2 (2023-01-10)
v4.7.2
The MongoDB Node.js team is pleased to announce version v4.7.2 of the bson package!
Bug Fixes
Documentation
- API: https://github.com/mongodb/js-bson#readme
- Changelog: https://github.com/mongodb/js-bson/blob/4.0/HISTORY.md#change-log
We invite you to try the bson library immediately, and report any issues to the NODE project.
v4.7.1
The MongoDB Node.js team is pleased to announce version v4.7.1 of the bson package!
Bug Fixes
Documentation
- API: https://github.com/mongodb/js-bson#readme
- Changelog: https://github.com/mongodb/js-bson/blob/4.0/HISTORY.md#change-log
We invite you to try the bson library immediately, and report any issues to the NODE project.
v5.0.0-alpha.1
🚧 Testing Build Only
This alpha build is intended for internal testing only. Adopt at your own risk.
Changes listed in HISTORY.md.
5.0.0-alpha.0 diff v5.0.0-alpha.1 (2022-12-19)
v5.0.0-alpha.0
🚧 Testing Build Only
This alpha build is intended for internal testing only. Adopt at your own risk.
Changes listed in HISTORY.md.
5.0.0-alpha.0 diff 4.7.0 (2022-12-16)
v4.7.0
The MongoDB Node.js team is pleased to announce version 4.7.0 of the bson package!
Release Highlights
This release adds automatic UUID support. Now when serializing or deserializing BSON you can work directly with the UUID type without explicit conversion methods. The UUID class is now a subclass of binary so all existing code will continue to work (including the explicit conversion methods .toUUID
/.toBinary
). The same automatic support for UUID is also present in EJSON .parse
/.stringify
.
Take a look at the following for the expected behavior:
const document = BSON.deserialize(bytes)
// { uuid: UUID('xxx') }
BSON.serialize(document)
// Buffer < document with uuid (binary subtype 4) >
Special thanks to @aditi-khare-mongoDB for all her hard work on this feature!! 🎉
Features
- NODE-4405: support serializing UUID class (#508) (f5dc9ed)
- NODE-4419: UUID class deserialization (#509) (ff2b975)
- NODE-4506: Make UUID a subclass of binary (#512) (e9afa9d)
- NODE-4535: automatically promote UUIDs when deserializing and parsing UUIDs (#513) (1dc7eae)
Documentation
- API: https://github.com/mongodb/js-bson#readme
- Changelog: https://github.com/mongodb/js-bson/blob/main/HISTORY.md#change-log
We invite you to try the bson library immediately, and report any issues to the NODE project.
v4.6.5
The MongoDB Node.js team is pleased to announce version 4.6.5 of the bson package!
Release Highlights
Along with some other bug fixes listed below in this release we've fixed the float parser logic for both deserialize and serialize to use JS Dataview APIs. The most delightful part of this change is an improvement to performance of serializing 64-bit floats. 🎉 🐎
- cpu: Apple M1
- cores: 8
- os: darwin
- ram: 16GB
- iterations: 1,000,000
testing: Double Serialization
current - v 4.6.5 - avg 0.00024913ms
previous release - v 4.6.4 - avg 0.00036335ms
previous major - v 1.1.6 - avg 0.00036459ms
Bug Fixes
- NODE-3630: remove float parser and test edge cases for Double (#502) (54ca603)
- NODE-4211: Do not require crypto in browser builds (#500) (b32ab40)
- NODE-4302: remove downlevel ts and typesVersions (#501) (651b60e)
- NODE-4381: handle
__proto__
well in EJSON (#506) (4bda57d)
Documentation
- API: https://github.com/mongodb/js-bson#readme
- Changelog: https://github.com/mongodb/js-bson/blob/main/HISTORY.md#change-log
We invite you to try the bson library immediately, and report any issues to the NODE project.
v4.6.4
The MongoDB Node.js team is pleased to announce version 4.6.4 of the bson package!
Performance
Documentation
- API: https://github.com/mongodb/js-bson#readme
- Changelog: https://github.com/mongodb/js-bson/blob/main/HISTORY.md#change-log
We invite you to try the bson library immediately, and report any issues to the NODE project.
v4.6.3
The MongoDB Node.js team is pleased to announce version 4.6.3 of the bson package!
Release Highlights
This release improves documentation for BSON type classes by adding an @category
tag to the doc comments.
Documentation
- API: https://github.com/mongodb/js-bson#readme
- Changelog: https://github.com/mongodb/js-bson/blob/main/HISTORY.md#change-log
We invite you to try the bson library immediately, and report any issues to the NODE project.