Skip to content

Releases: mongodb/js-bson

v4.6.5

07 Jul 16:21
32f5f2c

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

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

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

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

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

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.

v4.5.4

03 Nov 19:31
0aa8967

Choose a tag to compare

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

Release Highlights

This release notably includes a fix to the ObjectId constructor ensuring correct handling of invalid input.

Bug Fixes

Documentation

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

v4.5.3

05 Oct 20:24
6894bae

Choose a tag to compare

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

Release Highlights

This release includes a few minor changes for spec compliance, primarily around validation, as detailed below:

Bug Fixes

Documentation

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

v4.5.2

14 Sep 17:31
71c6513

Choose a tag to compare

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

Release Highlights

Some APIs were marked internal that should've been public. We've also add toString methods to our Int32 and Double classes that wrap Javascript's Number.toString() method.

Additionally a bug in Decimal128 was corrected where the representation string was wrongly used to find the significant digits. This impacted negative numbers of pattern -0.00XX.

Bug Fixes

Documentation

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

v4.5.1

24 Aug 15:42
6dcd46e

Choose a tag to compare

The MongoDB Node.js team is pleased to announce version 4.5.1 of the bson module!

In react native environments there was an issue where the bundler attempted to import the Node.js polyfill for 'util'.
We no longer depend on the package.

Bug Fixes

Documentation

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