Skip to content

Conversation

alecgibson
Copy link
Contributor

@alecgibson alecgibson commented Jul 14, 2021

This change adds support for mongodb v4. The only changes
that seem to affect us are:

  • removal of the top-level connect() function
  • removal of callbacks from MongoClient.aggregate()
  • disallowing of non-Mongo options being passed in the options object
    when connecting

Dependencies

@alecgibson alecgibson changed the base branch from test-all-drivers to master July 14, 2021 15:54
@alecgibson alecgibson changed the base branch from master to test-all-drivers July 14, 2021 15:55
@alecgibson alecgibson changed the base branch from test-all-drivers to master July 14, 2021 16:05
@coveralls
Copy link

coveralls commented Jul 14, 2021

Coverage Status

Coverage increased (+0.2%) to 92.534% when pulling a41e9c8 on mongodb-4 into a0c4fa2 on master.

This change adds support for [`mongodb` v4][1]. The only [changes][2]
that seem to affect us are:

 - removal of the top-level `connect()` function
 - removal of callbacks from `MongoClient.aggregate()`
 - disallowing of non-Mongo options being passed in the options object
   when connecting

[1]: https://github.com/mongodb/node-mongodb-native/releases/tag/v4.0.0
[2]: https://github.com/mongodb/node-mongodb-native/blob/4.0/docs/CHANGES_4.0.0.md
Copy link
Contributor

@ericyhwang ericyhwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does feel a bit weird copying and deleting the sharedb-mongo options properties before passing them in to the Mongo driver, but it's still fewer options than the Mongo driver takes, so we'll just have to remember to update the option-cleanup when we add options. Until we major-version and only allow passing via mongoOptions

@alecgibson alecgibson merged commit a993740 into master Jul 20, 2021
@alecgibson alecgibson deleted the mongodb-4 branch July 20, 2021 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants