Skip to content

chore: 升级可修补的传递依赖(需所有者审批) - #240

Draft
chicogong wants to merge 1 commit into
masterfrom
cursor/npm-audit-transitive-bumps-7051
Draft

chicogong wants to merge 1 commit into
masterfrom
cursor/npm-audit-transitive-bumps-7051

Conversation

@chicogong

Copy link
Copy Markdown
Owner

描述 / Description

仅升级 package-lock.json 中已有补丁的传递依赖,不改 CI、不改产品代码:

  • brace-expansion 1.1.18 → 1.1.21,以及 glob 下的 5.0.9 → 5.0.12
  • fast-uri 3.1.7 → 3.1.8
  • source-map-js 1.2.1 → 1.2.2
  • undici 7.29.0 → 7.30.0

需要仓库所有者审批。 这些升级能清掉部分高危公告,但 不能 让全量 npm audit --audit-level=high 变绿:stylelint → braces 仍命中 GHSA-vfj7-8cjw-p6xm,npm 上没有已发布补丁。npm audit fix --force 会把 stylelint 降到 7.7.0,本 PR 不会那样做。

是否把 CI 改成 --omit=dev、加 overrides,或等上游补丁,请所有者决定。本 PR 没有改 .github/workflows。

与「Agent 权限清单生成器」工具页无关,请勿和该工具 PR 绑在一起合并。

请勿合并到 master,除非所有者明确批准。

验证 / Validation

  • 变更仅限 package-lock.json。
  • 未修改 lint.yml / 其他工作流。
  • 本地对照:npm audit --audit-level=high --omit=dev 为 0 漏洞;全量 npm audit --audit-level=high 仍会因 braces 失败。

检查清单 / Checklist

  • 我已经进行了自我代码审查。
  • 我已运行 npm run build && npm test && npm run lint && npm run format:check。
  • 我已检查 git diff / git status --short,差异只包含本 PR 预期改动。
Open in Web Open in Cursor 

仅升级锁文件中的 brace-expansion、fast-uri、source-map-js、undici。不改 CI。stylelint 依赖的 braces 仍无上游补丁,全量 npm audit 会继续失败,是否放宽门禁需所有者决定。

Co-authored-by: chico gong <chicogong@users.noreply.github.com>
@netlify

netlify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for localtools ready!

Name Link
🔨 Latest commit 808359a
🔍 Latest deploy log https://app.netlify.com/projects/localtools/deploys/6ac8a1545faa280008be2ef3
😎 Deploy Preview https://deploy-preview-240--localtools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
html-tools Ready Ready Preview Oct 9, 2026 8:10am UTC

This branch was successfully deployed

1 active deployment
Preview — 808359a1 Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants