Skip to content

feat!: upgrade mongodb driver and all related dependencies COMPASS-11067 - #862

Draft
nbbeeken wants to merge 2 commits into
mainfrom
COMPASS-11067-rm-mongodb-6
Draft

feat!: upgrade mongodb driver and all related dependencies COMPASS-11067#862
nbbeeken wants to merge 2 commits into
mainfrom
COMPASS-11067-rm-mongodb-6

Conversation

@nbbeeken

Copy link
Copy Markdown
Collaborator

Description

Need to understand better what these ranges were serving but the intention here is to correct some npm elsproblems and remove old dependencies from our tree that show up in npm audit.

Package Why
@mongodb-js/devtools-connect 3.17.10 → 4.0.0 own ! + cascade
@mongodb-js/mongodb-constants 0.34.3 → 1.0.0 own !
@mongodb-js/mongodb-schema 12.7.5 → 13.0.0 own !
@mongodb-js/mongodb-ts-autocomplete 0.10.3 → 1.0.0 own ! + cascade
@mongodb-js/mql-typescript 0.7.6 → 1.0.0 own !
@mongodb-js/shell-bson-parser 1.5.15 → 2.0.0 own !
mongodb-build-info 1.9.12 → 2.0.0 own !
mongodb-log-writer 2.5.14 → 3.0.0 own !
mongodb-query-parser 5.0.1 → 6.0.0 own ! + cascade
mongodb-redact 1.4.12 → 2.0.0 own !
mongodb-runner 6.10.0 → 7.0.0 own !

Open Questions

Checklist

Copilot AI lite review requested due to automatic review settings August 24, 2026 20:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the MongoDB Node.js driver (and related dependencies like bson, mongodb-connection-string-url, socks, and native optional deps) across the devtools-shared workspace to address dependency/audit issues and align packages on the MongoDB driver v7 line.

Changes:

  • Tighten bson version requirements across multiple packages to ^7.3.2.
  • Upgrade MongoDB driver usage to ^7.6.0 and remove MongoDB driver v6 test coverage (mongodb6) from @mongodb-js/devtools-connect.
  • Refresh package-lock.json to reflect the upgraded dependency tree (including updated transitive @mongosh/* packages).

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/shell-bson-parser/package.json Tightens bson peer/dev dependency to ^7.3.2.
packages/query-parser/package.json Tightens bson peer/dev dependency to ^7.3.2.
packages/mql-typescript/package.json Upgrades mongodb to ^7.6.0 and tightens bson to ^7.3.2.
packages/mongodb-ts-autocomplete/package.json Upgrades mongodb to ^7.6.0 and tightens bson to ^7.3.2.
packages/mongodb-schema/package.json Tightens optional/dev dependency constraints for mongodb/bson to 7.x.
packages/mongodb-runner/package.json Upgrades mongodb to ^7.6.0 and mongodb-connection-string-url to ^7.0.2.
packages/mongodb-redact/package.json Upgrades mongodb-connection-string-url to ^7.0.2.
packages/mongodb-log-writer/package.json Tightens bson peer dependency to ^7.3.2.
packages/mongodb-constants/package.json Tightens bson peer/dev dependency to ^7.3.2.
packages/mongodb-build-info/package.json Upgrades mongodb-connection-string-url to ^7.0.2.
packages/devtools-connect/src/connect.spec.ts Drops integration test matrix coverage for driver v6.
packages/devtools-connect/package.json Upgrades mongodb peer/dev dep to ^7.6.0, updates mongodb-connection-string-url, socks, and optional native deps.
package-lock.json Updates resolved versions/metadata to match the new dependency ranges.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/devtools-connect/package.json
@nbbeeken
nbbeeken force-pushed the COMPASS-11067-rm-mongodb-6 branch from 3f56a2c to ded6d58 Compare August 25, 2026 13:41
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.

2 participants