Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Fix Deprecation Warning for Server Discovery and Monitoring #2

Merged
merged 1 commit into from Oct 14, 2019
Merged

Fix Deprecation Warning for Server Discovery and Monitoring #2

merged 1 commit into from Oct 14, 2019

Conversation

pirakleous
Copy link

When using the module we are getting a DeprecationWarning that current Server Discovery and Monitoring engine is deprecated and will be removed in a future version. To disable the warning, we need to pass the option { useUnifiedTopology: true } on the constructor, howver, since the module uses Connection.openUri we need to update mongoose to a newer version as per the link on mongoose github.

When using the module we are getting a DeprecationWarning that current Server Discovery and Monitoring engine is deprecated and will be removed in a future version. To disable the warning, we need to pass the option { useUnifiedTopology: true } on the constructor, howver, since the module uses Connection.openUri we need to update mongoose to a newer version as per the link on mongoose github.
- Automattic/mongoose#8146
@South-Paw South-Paw merged commit d05af78 into South-Paw:master Oct 14, 2019
@South-Paw
Copy link
Owner

Awesome, thanks for contributing 👍

I'll publish a new package to npm this evening.

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.

None yet

2 participants