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

Compatibility - MongoDB 8.0 #14934

Closed
2 tasks done
lokacoding opened this issue Oct 4, 2024 · 4 comments
Closed
2 tasks done

Compatibility - MongoDB 8.0 #14934

lokacoding opened this issue Oct 4, 2024 · 4 comments
Milestone

Comments

@lokacoding
Copy link

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

Hi,
is mongoose 8.7.0 already compatible with MongoDB 8.0?
On the mongoose Website onlx 7.X Version from 2023 are listed.

@hunkydoryrepair
Copy link

This is primarily a feature of the underlying mongodb driver.

Mongodb nodejs driver 6.9 added full support for MongoDB 8.0, but it has been compatible since version 5.
Mongoose 8.7 uses mongodb driver 6.9, and all versions release in 2024 have used mongodb driver 5.9.2 or higher.
The older versions won't support all the new features, however.

It's a bit bleeding edge, and both Mongoose 8.7 and mongodb driver 6.9 have showstopper bugs (IMO), since they hang indefinitely in some situations (writing large documents when under load). I would wait another month until those issues are ironed out before moving beyond mongoose 8.2.x

@vkarpov15
Copy link
Collaborator

Yes, Mongoose 8.7 is compatible with MongoDB server 8.0. For full MongoDB server 8.0 support, you should use Mongoose ^8.7.

https://www.mongodb.com/docs/drivers/node/current/compatibility/ indicates that MongoDB Node driver 6.9 is required for full MongoDB server 8 support, so that's Mongoose 8.7.

@vkarpov15 vkarpov15 added this to the 8.6.5 milestone Oct 6, 2024
vkarpov15 added a commit that referenced this issue Oct 7, 2024
@lawrenceong
Copy link

Mongoose 8.7.0 is hanging sometimes for me when using transactions. Downgrading to 8.6.x fixes it. May create a separate issue for it, but it looks a little unstable with mongodb 6.9.0.

@vkarpov15
Copy link
Collaborator

@lawrenceong please open a separate issue with a repro script or some code samples that demonstrate the code that's hanging

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

No branches or pull requests

4 participants