Skip to content

Handling MongoCompatibilityError when connect into mongodb driver 6.x#13850

Merged
nachocodoner merged 16 commits intonpm-mongo-legacyfrom
italo/npm-mongo-legacy
Jul 21, 2025
Merged

Handling MongoCompatibilityError when connect into mongodb driver 6.x#13850
nachocodoner merged 16 commits intonpm-mongo-legacyfrom
italo/npm-mongo-legacy

Conversation

@italojs
Copy link
Copy Markdown
Member

@italojs italojs commented Jul 14, 2025

Now we are able to choose between mongo 3.6 driver or latest

How it works

Packages loading

  1. I defined a connect function that receives a client and try to connect using the mongodb driver v6.x
  2. When we try to connect in a mongo <= 3.6, we got a MongoCompatibilityError error
  3. If the project already uses npm-mongo-legacy, it's fine, we use it for future connections

History -> this PR -> #13736 -> #13696 -> #13735

@italojs italojs changed the title Italo/npm mongo legacy npm mongo legacy Jul 14, 2025
@italojs italojs marked this pull request as ready for review July 15, 2025 12:35
@italojs italojs changed the title npm mongo legacy Handling MongoCompatibilityError when tries to connect into mongodb driver 6.x Jul 15, 2025
@italojs italojs changed the title Handling MongoCompatibilityError when tries to connect into mongodb driver 6.x Handling MongoCompatibilityError when connect into mongodb driver 6.x Jul 15, 2025
@nachocodoner nachocodoner merged commit 8d9bc7d into npm-mongo-legacy Jul 21, 2025
6 checks passed
@nachocodoner nachocodoner deleted the italo/npm-mongo-legacy branch July 21, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants