-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Upgrade mongoose 6.x to 8.x #377
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐣 Is your feature request related to a problem? Please describe.
I use MongoDB Atlas to host my database, and recently received an email regarding upcoming upgrade of my instance to version 7.0.
Message highlights:
💡 Describe the solution you'd like
According to the docs, MongoDB 7.0 requires mongodb npm package version 5.7 or higher. The current code uses version 4.12.1 (a dependent of [email protected]).
For maximum future compatibility, I suggest upgrading to the latest mongoose version (8.0.3). This version uses [email protected].
❓ Describe alternatives you've considered
While it was possible to use MongoDB 7.0 with [email protected], I think it is better to upgrade to the latest mongoose version. The downside of this, is that it will require changing the minimum node version to 16. (mongodb 5.7 can run on node 14).
📋 Additional context
It appears that the simple path of upgrading to latest mongoose via
yarn upgrade --latest mongoose
works out of the box. It then required fixing the minimum node versions in a few places.Local tests seems to run fine, as well as my own installation via fly.io.
It appears that tests on GitHub are extremely unstable at this point. Not sure why. After a few reties the tests are passing.
A PR will be submitted shortly
The text was updated successfully, but these errors were encountered: