Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Chore/update mongodb package #206

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adieuadieu
Copy link
Contributor

@adieuadieu adieuadieu commented Jan 30, 2018

Updates the mongodb npm package to it's latest version.

Some small changes were made to Mongorito's code. Specifically:

  • MongoClient.connect() was deprecated, now using new MongoClient().connect()
  • MongoClient.collections no longer exists. You have to create a db instance with MongoClient.db() on which the collections() function now exists.

While none of the Mongorito APIs or methods have changes, the update to mongobd@3 package may result in breaking changes if someone used Mongorito with use of private/undocumented Mongorito properties (e.g. mongorito's database._connection property). Therefore might make sense to release this (in conjunction with #205) as a major version release, just in case.

/cc @vadimdemedes 😄

Specifically:
- MongoClient.connect() was deprecated, now using `new MongoClient().connect()`
- MongoClient.collections no longer exists. You have to create a db instance with MongoClient.db() on which the collections() function now exists.

The update to mongobd@3 package may result in breaking changes if someone used Mongorito and made use of private/undocuments Mongorito properties (e.g. mongorito's database._connection property)
@jamescorbett
Copy link

This pull request is great, and I agree with the major version change. I was using the undocumented _connection for example.

Please can you bump the version further to "mongodb": "^3.1.2" because of a bug in mongodb's driver. See meteor/meteor#9944 (comment) for detail, although it's regarding Meteor, I've run into the same issue on Mongorito.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants