Skip to content

Commit 2aa8f85

Browse files
chore: downgrade yargs-parser to v21 (#618)
1 parent 071fc3b commit 2aa8f85

File tree

3 files changed

+23
-27
lines changed

3 files changed

+23
-27
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
ignore:
8+
# We are ignoring major updates on yargs-parser because yargs-parser@22
9+
# does not play nicely when bundled using webpack. Our VSCode extension
10+
# bundles MCP server with the extension code and yargs-parser from MCP
11+
# server ends up on the final bundle which leads to issues such as -
12+
# https://github.com/mongodb-js/vscode/issues/1149.
13+
#
14+
# This was reported to yargs-parser as well -
15+
# https://github.com/yargs/yargs-parser/issues/517 and we already tried
16+
# their suggestion about disabling the meta resolution in webpack,
17+
# alongside others (dependency overrides, disabling the bundling of
18+
# yargs-parser), and none of the solutions yield a working extension. So
19+
# until we figure out a fix for this we need to keep mongodb-mcp-server
20+
# working with v21 of yargs-parser.
21+
- dependency-name: "yargs-parser"
22+
update-types: ["version-update:semver-major"]
723
- package-ecosystem: "github-actions"
824
directory: "/"
925
schedule:

package-lock.json

Lines changed: 5 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"@types/yargs-parser": "^21.0.3",
7575
"@typescript-eslint/parser": "^8.44.0",
7676
"@vitest/coverage-v8": "^3.2.4",
77+
"@vitest/eslint-plugin": "^1.3.4",
7778
"ai": "^4.3.17",
7879
"duplexpair": "^1.0.2",
7980
"eslint": "^9.34.0",
@@ -93,7 +94,6 @@
9394
"tsx": "^4.20.5",
9495
"typescript": "^5.9.2",
9596
"typescript-eslint": "^8.41.0",
96-
"@vitest/eslint-plugin": "^1.3.4",
9797
"uuid": "^13.0.0",
9898
"vitest": "^3.2.4"
9999
},
@@ -115,7 +115,7 @@
115115
"oauth4webapi": "^3.8.0",
116116
"openapi-fetch": "^0.14.0",
117117
"ts-levenshtein": "^1.0.7",
118-
"yargs-parser": "^22.0.0",
118+
"yargs-parser": "21.1.1",
119119
"zod": "^3.25.76"
120120
},
121121
"engines": {

0 commit comments

Comments
 (0)