Skip to content

Releases: mongodb/js-bson

v4.7.1

05 Jan 15:16
5465c33
Compare
Choose a tag to compare

The MongoDB Node.js team is pleased to announce version v4.7.1 of the bson package!

Bug Fixes

Documentation

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

v5.0.0-alpha.1

19 Dec 18:14
7596086
Compare
Choose a tag to compare
v5.0.0-alpha.1 Pre-release
Pre-release

🚧 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

19 Dec 16:18
c0ce081
Compare
Choose a tag to compare
v5.0.0-alpha.0 Pre-release
Pre-release

🚧 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

18 Aug 17:25
853bbb0
Compare
Choose a tag to compare

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


Documentation

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

v4.6.5

07 Jul 16:21
32f5f2c
Compare
Choose a tag to compare

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

Documentation

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

v4.6.4

19 May 16:14
210fc11
Compare
Choose a tag to compare

The MongoDB Node.js team is pleased to announce version 4.6.4 of the bson package!

Performance

  • perf(NODE-4194): improve objectId constructor performance (#498)

Documentation

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

v4.6.3

20 Apr 15:49
dfd14e4
Compare
Choose a tag to compare

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

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

v4.6.2

22 Mar 18:32
cae95ff
Compare
Choose a tag to compare

The MongoDB Node.js team is pleased to announce version 4.6.2 of the bson package!

Release Highlights

This release includes a few fixes to the ObjectId class, including performance improvements in ObjectId.equals.

Bug Fixes

Documentation

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

v4.6.1

06 Jan 22:55
1e705f6
Compare
Choose a tag to compare

The MongoDB Node.js team is pleased to announce version 4.6.1 of the bson package!

Release Highlights

This release includes a few fixes to the validation checks in some of our constructors.

Bug Fixes

Documentation

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

v4.6.0

23 Nov 17:03
Compare
Choose a tag to compare

The MongoDB Node.js team is pleased to announce version 4.6.0 of the bson package!

Release Highlights

This release adds a new BSON validation option that allows top-level keys to have utf-8 validation disabled or enabled, either on a global or key-specific scale, rather than defaulting to automatic utf-8 validation across all keys. Additionally, it includes a bug fix which allows BSONError and BSONTypeError to be checked with instanceof checks.

Features

Bug Fixes

Documentation

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