github mongodb/js-bson v4.4.0

latest releases: v7.0.0, v7.0.0-alpha.2, v7.0.0-alpha.1...
4 years ago

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

Release Highlights

This release of the BSON library brings some additional convenience to our Decimal128 and Long classes.
Users can now specify the construction of these types as shown below:

const longFromBigInt = new Long(23n)
const d128FromString = new Decimal128('4.23')

Here is the new API specification:

  • [new] Decimal128(string)
  • [new] Long(string[, unsigned])
  • [new] Long(bigint[, unsigned])

Thanks so much to @addaleax to contributing a number of the fixes listed below! 🚀

Features

Bug Fixes

Documentation

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

Don't miss a new js-bson release

NewReleases is sending notifications on new releases.