Skip to content

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