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

Make mongoose adapter compatible with mongoose 6, 7 and 8 #397

Merged
merged 4 commits into from
Jan 29, 2025

Conversation

Freezystem
Copy link
Contributor

I'm recreating this PR as the preceding one has been automatically closed while resyncing my fork.

I've refactorized connect() and disconnect() methods from mongoose adapter to be compatible with mongoose 6, 7 and 8.

I've checked that it worked properly by running the tests after installing each versions (6, 7, 8) of mongoose locally in the adapter repo.

I have tried to make tests run against mongoose 7 and 8 but it's a complete mess using old version of lerna.

I propose to merge it like that and add mongoose 7 and 8 tests once the npm workspaces refacto is done.

@Freezystem
Copy link
Contributor Author

@icebob I'd love to have your review on this one if you've got some time to spare 🙏🏼

Copy link

@Ajitpatil92002 Ajitpatil92002 left a comment

Choose a reason for hiding this comment

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

Compatible changes look great, +1 for merge

@amysgemini
Copy link

Changes look good, +1 for merge.

@bcavlin
Copy link

bcavlin commented Jan 21, 2025

@icebob can you review these changes?

Copy link
Member

@icebob icebob left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@icebob icebob merged commit 1306a4e into moleculerjs:master Jan 29, 2025
6 of 7 checks passed
@Freezystem Freezystem deleted the feat/upgrade-to-mongoose-8 branch January 29, 2025 20:03
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

Successfully merging this pull request may close these issues.

5 participants