You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sibelius opened this issue
May 10, 2023
· 3 comments
Labels
docsThis issue is due to a mistake or omission in the mongoosejs.com documentationhelpThis issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
I have searched existing issues to ensure the bug has not already been reported
Mongoose version
7.1.0
Node.js version
20.1.0
MongoDB server version
5.3.0
Typescript version (if applicable)
5.0.4
Description
2 new warnings when using mongoose v7
(node:338) [MONGODB DRIVER] Warning: keepAlive is a deprecated option: Will not be able to turn off in the future.
(node:338) [MONGODB DRIVER] Warning: keepAliveInitialDelay is a deprecated option: Will not be configurable in the future.
keepAlive
keepAliveInitialDelay
Steps to Reproduce
just use mongoose v7
Expected Behavior
do not show any warning
The text was updated successfully, but these errors were encountered:
vkarpov15
added
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
help
This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
labels
May 11, 2023
Just remove it. keepAlive: true does nothing since keepAlive is true by default, and there isn't really much need to set keepAliveInitialDelay. We had that option in the connection docs just as a copy/paste.
If you have problems with timeouts in your tests after removing these options, please post a note here and we'll help you debug.
docsThis issue is due to a mistake or omission in the mongoosejs.com documentationhelpThis issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
Prerequisites
Mongoose version
7.1.0
Node.js version
20.1.0
MongoDB server version
5.3.0
Typescript version (if applicable)
5.0.4
Description
2 new warnings when using mongoose v7
(node:338) [MONGODB DRIVER] Warning: keepAlive is a deprecated option: Will not be able to turn off in the future.
(node:338) [MONGODB DRIVER] Warning: keepAliveInitialDelay is a deprecated option: Will not be configurable in the future.
Steps to Reproduce
just use mongoose v7
Expected Behavior
do not show any warning
The text was updated successfully, but these errors were encountered: