v4.0.0
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.