Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

v4.0.0

Compare
Choose a tag to compare
@nbbeeken nbbeeken released this 25 May 17:51
4cde30a

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

Release Highlights

This major version brings bson-ext in sync with js-bson v4. As before the bson-ext library uses the javascript types from js-bson to initialize the values deserialized from BSON so a breaking change is necessary in this library to make them compatible. We decided to sync the major version numbers to reflect as such. bson@4 works with bson-ext@4 (and soon mongodb@4, check out our beta here)

The most significant change is the way you import the library:

const BSON = require('bson-ext')
// or ...
const { serialize, deserialize } = require('bson-ext')

Users no longer need to initialize the bson-ext library with a list of BSON types, this is done internally to the library.

⚠BREAKING CHANGES

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