v3.0.0: Upgrade mongo driver to 5.9.x
This is a breaking change.
The new mongodb driver has breaking changes and because clients are able to use the raw mongodb connection those breaking changes will leak over. The breaking changes affecting this package come from both the v4 and v5 drivers.
To ease the migration to the new driver we use the mongodb-legacy
package which allows us to keep using the callback API. Switching over to the Promise API caused too many issue in the panoply
repo (where this package is used).