Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mongoose and useNewUrlParser #353

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

leoj3n
Copy link
Contributor

@leoj3n leoj3n commented Jul 10, 2018

Upgrading to latest mongoose version fixes that warning:

Without connecting using useNewUrlParser there would be this new warning:

  • DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.

Upgrading to latest mongoose and using useNewUrlParser eliminates any warnings from showing when running npm run develop for this project.

Upgrading to latest mongoose version fixes that warning:

  - DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/4.x/docs/connections.html#use-mongo-client

Without connecting using `useNewUrlParser` there would be this new warning:

  - DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.

Upgrading to latest mongoose and using `useNewUrlParser` eliminates any warnings from showing when running `npm run develop` for this project.
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.

1 participant