-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates #1894
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
Open
dependabot
wants to merge
1
commit into
main
Choose a base branch
from
dependabot/npm_and_yarn/npm_and_yarn-84176cb2e3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+27
−11
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🟡 Heads-up: this catalog entry is consumed as
peerDependencies.honoinpackages/middleware/hono/package.json:47andpackages/middleware/node/package.json:50, so atpnpm publishthe next release of@modelcontextprotocol/hono/@modelcontextprotocol/nodewill shippeerDependencies.hono = "^4.12.12"instead of^4.11.4(and@hono/node-servertightens to^1.19.13). Forcing the security-patched hono is probably desirable, but narrowing a published peer range is a public-contract change — worth a deliberate ack and a changeset rather than a silent Dependabot side-effect.Extended reasoning...
What this changes beyond the lockfile
The
runtimeServerOnlycatalog is not only used for this repo's own dev/direct resolution — it is also referenced verbatim in publishedpeerDependencies:packages/middleware/hono/package.json:47→"hono": "catalog:runtimeServerOnly"underpeerDependenciespackages/middleware/node/package.json:50→"hono": "catalog:runtimeServerOnly"underpeerDependenciespackages/middleware/node/package.json:46→"@hono/node-server": "catalog:runtimeServerOnly"underdependenciespnpm's documented behavior is that the
catalog:protocol (likeworkspace:) is replaced with the literal specifier frompnpm-workspace.yamlatpnpm pack/pnpm publishtime, for all dependency fields includingpeerDependencies. So this PR doesn't just bump what the monorepo resolves locally — it changes what gets written into the tarballs published to npm.Step-by-step proof
pnpm-workspace.yamlhashono: ^4.11.4inruntimeServerOnly. Runningpnpm packinpackages/middleware/honoproduces apackage.jsonwith"peerDependencies": { "hono": "^4.11.4", ... }.hono: ^4.12.12. The samepnpm packnow emits"peerDependencies": { "hono": "^4.12.12", ... }.hono@4.11.6(or anything in4.11.4–4.12.11) installed alongside the next published@modelcontextprotocol/honowill now fail the peer check: npm prints an unmet-peer warning, and pnpm withstrict-peer-dependencies/ Yarn PnP hard-fails the install.@modelcontextprotocol/node's direct dep on@hono/node-serverfrom^1.19.9to^1.19.13— less impactful (it's a direct dep so the package manager can just resolve higher), but still a published-range change.Why nothing currently catches this
Dependabot bumped the catalog to satisfy the security advisory against the workspace's resolved versions; it has no awareness that this catalog key doubles as a public peer-range contract. The changeset-bot already noted "No Changeset found", so as-is the tightened peer range would land in the next release with no changelog entry.
Impact / severity
Low — both packages are
2.0.0-alpha.2, so semver guarantees are weak, and pushing consumers onto the security-patched hono (4.12.12fixes GHSA-wmmm-f939-6g9c et al.) is arguably the right outcome anyway. This is flagged as a nit so it's a conscious maintainer decision rather than an accidental side-effect.Suggested fix
Either (a) accept the narrowing intentionally and add a changeset for
@modelcontextprotocol/honoand@modelcontextprotocol/nodenoting the tightenedhonopeer range, or (b) keep the catalog floor wide (e.g. leavehono: ^4.11.4) and rely on the lockfile to pin the workspace to4.12.12, decoupling the published peer contract from the locally resolved version.