-
Notifications
You must be signed in to change notification settings - Fork 91
chore: update mongosh #1130
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
chore: update mongosh #1130
Conversation
Updates the mongosh service provider. Among other things, this allows us to no longer be broken with mongosh VSCode tests
There was a problem hiding this comment.
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 updates mongosh dependencies to newer versions and removes the boolean parameter from service provider close() method calls to align with the updated API. This change ensures compatibility with the latest mongosh versions and fixes VSCode test issues.
- Updated mongosh packages to version 3.23.0 and related dependencies
- Removed boolean parameter from
close()method calls across the codebase - Updated service provider core dependency to version 3.6.0
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Updated mongosh package versions to 3.23.0 and service-provider-core to 3.6.0 |
| src/mcp/mcpConnectionManager.ts | Removed boolean parameter from provider close() call |
| src/language/worker.ts | Removed boolean parameter from serviceProvider close() call |
| src/language/mongoDBService.ts | Removed boolean parameter from serviceProvider close() call |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
package-lock.json
Outdated
| "version": "1.7.2", | ||
| "resolved": "https://registry.npmjs.org/mongodb-build-info/-/mongodb-build-info-1.7.2.tgz", | ||
| "integrity": "sha512-eoLFZvCIjcwijYJdxvYupj1c+55VAVm0o4gBJjrcDxxmmpm+bC4Ix9ayZbyhQdVXDZAGDi03NA0GghXjBVXnxg==", | ||
| "node_modules/mongodb-mcp-server/node_modules/@mongosh/service-provider-node-driver": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ This is probably the reason for the test failure – you basically always want @mongosh/service-provider-node-driver to be hoisted without duplicates
Updates the mongosh service provider. Among other things, this allows us to no longer be broken with mongosh VSCode tests
Blocked by mongodb-js/mongodb-mcp-server#574
See also: mongodb-js/mongosh#2538