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

Mark Mongoose 6 as compatible with MongoDB 4 #11320

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

JavaScriptBach
Copy link
Contributor

Based on the conversation in #11302, I assume Mongoose 6 is compatible with MongoDB 4. Update docs so people know that a safe upgrade is possible.

* MongoDB Server 4.0.x: mongoose `^5.2.0`
* MongoDB Server 4.2.x: mongoose `^5.7.0`
* MongoDB Server 4.4.x: mongoose `^5.10.0`
* MongoDB Server 4.0.x: mongoose `^5.2.0` or `6.x`
Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez Feb 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, we don't drop support for older MongoDB versions as we upgrade versions, so I assume it's safe to change this with:

Suggested change
* MongoDB Server 4.0.x: mongoose `^5.2.0` or `6.x`
* MongoDB Server 4.0.x: mongoose >= `^5.2.0`

Correct me if I'm wrong @vkarpov15

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that ^5.2.0 or 6.x is less brittle, because otherwise what happens with Mongoose 7?

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

* MongoDB Server 4.0.x: mongoose `^5.2.0`
* MongoDB Server 4.2.x: mongoose `^5.7.0`
* MongoDB Server 4.4.x: mongoose `^5.10.0`
* MongoDB Server 4.0.x: mongoose `^5.2.0` or `6.x`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that ^5.2.0 or 6.x is less brittle, because otherwise what happens with Mongoose 7?

@vkarpov15 vkarpov15 added this to the 6.2.1 milestone Feb 7, 2022
@vkarpov15 vkarpov15 added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Feb 7, 2022
@vkarpov15 vkarpov15 merged commit 92963f0 into Automattic:master Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants