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

Upgrade dependencies for mongodb@6 and higher #437

Closed
D0ud0v opened this issue Oct 4, 2023 · 4 comments · Fixed by #443
Closed

Upgrade dependencies for mongodb@6 and higher #437

D0ud0v opened this issue Oct 4, 2023 · 4 comments · Fixed by #443

Comments

@D0ud0v
Copy link

D0ud0v commented Oct 4, 2023

Hi guys,

Thank you for the good work you guys are providing. I am running across a small issue. At the moment I am working on a project that needs dependencies on testing mongodb using jest. We recently upgraded our altas cluster from mongo 5 to 7. And using that, we are currently using a node project to automate SearchIndexes creations. Which is only available in the [email protected] @ [email protected] packages :
Here is the build error log

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: [email protected]
npm ERR! node_modules/mongodb
npm ERR!   mongodb@"^6.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer mongodb@"3.x.x || 4.x || 5.x" from @shelf/[email protected]
npm ERR! node_modules/@shelf/jest-mongodb
npm ERR!   dev @shelf/jest-mongodb@"^4.1.7" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Is there a plan on upgrading dependencies to handle mongodb client 6+ on node ?

Here's the functionality :
https://github.com/mongodb/node-mongodb-native/tree/v6.1.0/src/operations/search_indexes

I know the package came out really early, but I'm kinda stuck with it atm.

Thanks for the reply !
Denis.

@JussiLem
Copy link

Looking forward to this as well

@jrh-exacta
Copy link

yep, I could use this functionality as well +1

@devsakae
Copy link

devsakae commented Nov 9, 2023

Same here

@rick-shar
Copy link

Same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

5 participants