Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default defineConfig([
"eslint.config.js",
"vitest.config.ts",
"src/types/*.d.ts",
"tests/integration/fixtures/",
]),
eslintPluginPrettierRecommended,
]);
97 changes: 82 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@
"@ai-sdk/openai": "^1.3.23",
"@eslint/js": "^9.30.1",
"@modelcontextprotocol/inspector": "^0.16.0",
"@mongodb-js/oidc-mock-provider": "^0.11.3",
"@redocly/cli": "^1.34.4",
"@types/express": "^5.0.1",
"@types/http-proxy": "^1.17.16",
"@types/node": "^24.0.12",
"@types/proper-lockfile": "^4.1.4",
"@types/semver": "^7.7.0",
"@types/simple-oauth2": "^5.0.7",
"@types/yargs-parser": "^21.0.3",
"@vitest/coverage-v8": "^3.2.4",
Expand All @@ -81,6 +83,7 @@
"openapi-typescript": "^7.8.0",
"prettier": "^3.6.2",
"proper-lockfile": "^4.1.2",
"semver": "^7.7.2",
"simple-git": "^3.28.0",
"tsx": "^4.20.3",
"typescript": "^5.8.3",
Expand Down
7 changes: 4 additions & 3 deletions src/common/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ function getLocalDataPath(): string {
: path.join(os.homedir(), ".mongodb");
}

export const defaultDriverOptions: ConnectionInfo["driverOptions"] = {
export type DriverOptions = ConnectionInfo["driverOptions"];
export const defaultDriverOptions: DriverOptions = {
readConcern: {
level: "local",
},
Expand Down Expand Up @@ -345,8 +346,8 @@ export function setupDriverConfig({
defaults,
}: {
config: UserConfig;
defaults: ConnectionInfo["driverOptions"];
}): ConnectionInfo["driverOptions"] {
defaults: Partial<DriverOptions>;
}): DriverOptions {
const { driverOptions } = generateConnectionInfoFromCliArgs(config);
return {
...defaults,
Expand Down
Loading
Loading