fix: remove production dependency vulnerabilities - #21
Merged
typefield merged 2 commits intoJul 30, 2026
Merged
Conversation
typefield
marked this pull request as ready for review
July 30, 2026 12:18
|
事后 CR 结论:LGTM,未发现阻断项或需要立即补救的合并后问题。 PR 已在评审前合并为
本地验证(macOS / Node 22.15.0 / npm 11.5.2):
GitHub CI:6/6 通过。 非阻断说明:不带 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
axiosfrom^1.4.0to^1.19.0wsfrom^8.13.0to^8.21.1follow-redirects@1.16.0andform-data@4.0.6nockdev dependency into the lockfile so a cleannpm ciworks frommainWhy
The current production lockfile reports 1 critical, 2 high, and 1 moderate vulnerability via
npm audit --omit=dev. The affected paths are rooted in the directaxiosandwsdependencies.After this update,
npm audit --omit=devreports 0 vulnerabilities. Both direct dependencies remain within their existing major versions.Validation
npm ci --registry=https://registry.npmjs.orgnpm run typechecknpm pack --dry-runnpm audit --omit=dev --registry=https://registry.npmjs.org --audit-level=low(0 vulnerabilities)Relationship to #20
This PR starts from the current
mainbranch to keep the dependency security update separate from #20. Both PRs updatepackage-lock.json, so the second PR merged should refresh its lockfile against the new base.