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

Why mongoose 5.x is not compatible with 5.x mongodb server if mongoose is using compatible version of driver? #14149

Closed
1 task done
MikeKoval opened this issue Dec 4, 2023 · 4 comments · Fixed by #14230
Closed
1 task done
Labels
help wanted help This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
Milestone

Comments

@MikeKoval
Copy link

Prerequisites

  • I have written a descriptive issue title

Mongoose version

5.x.x

Node.js version

18.x

MongoDB version

5.x

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

22

Issue

Hi! EoL of 4.4 mongo server is end of Feb.

Mongoose 5.x is using 3.7.4 mongodb driver
https://github.com/Automattic/mongoose/blob/5.x/package.json#L26
that is compatible with mongo server 5
https://www.mongodb.com/docs/drivers/node/current/compatibility/

App seems working fine also

why mongoose then states that 5.x mongoose is not compatible with mongo server 5 https://mongoosejs.com/docs/compatibility.html ?

Can you explain that statement and provide examples please and what risks we can have?

I know that the best option to update, we are in process, but not sure if can have that to the end of Feb when we have to switch to new mongo server version.

@MikeKoval MikeKoval added help This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary help wanted labels Dec 4, 2023
@heyfirst
Copy link

heyfirst commented Dec 4, 2023

+1 I'd like to learn why it's not compatible with mongo server 5

@MikeKoval
Copy link
Author

the first thing i noticed is db.collection.ensureIndex() that is removed https://www.mongodb.com/docs/manual/reference/method/db.collection.ensureIndex/ and can be handled via
mongoose.set('useCreateIndex', true);
but we dont use it at all.
are there any other reasons?

Copy link

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Dec 20, 2023
Copy link

This issue was closed because it has been inactive for 19 days and has been marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 25, 2023
@vkarpov15 vkarpov15 reopened this Jan 2, 2024
@vkarpov15 vkarpov15 modified the milestones: 5.13.22, 8.0.4 Jan 2, 2024
@github-actions github-actions bot removed the Stale label Jan 3, 2024
vkarpov15 added a commit that referenced this issue Jan 4, 2024
docs(compatibility): add note that Mongoose 5.13 is fully compatible with MongoDB server 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted help This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
Projects
None yet
3 participants