Skip to content

chore(deps): clear the happy-dom, glob 7.2.3 and minimatch 11.0.9 Dependabot alerts - #39753

Draft
objectstack-fleet[bot] wants to merge 2 commits into
mainfrom
claude/issue-39747-dependabot-alerts
Draft

objectstack-fleet[bot] wants to merge 2 commits into
mainfrom
claude/issue-39747-dependabot-alerts

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #39747
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只改依赖版本与锁文件,开发者和最终用户看到的界面与接口都不变。
  • 为什么做:清掉仓库里三条开着的依赖安全告警(happy-dom、glob、minimatch),替安全巡检省掉每轮重复读告警。
  • 出错会怎样:最坏是表格导入导出或界面测试在合入后变红,不碰任何已存数据,直接回退这一个合并即可撤回。
  • 要你做什么:无。

What changes

Three Dependabot alerts on main, all three cleared in the lockfile this PR carries:

  1. happy-dom (alerts 112, 113, GHSA-834v-8h66-3h79). ui/package.json and ui/apps/console/package.json declared ^20.11.2, a range whose every version is inside the alert; both now declare ^21.0.4. The lockfile already resolved 21.0.4 through the existing floor override, so nothing installed moves. The override stays (see Acceptance notes); its comment is rewritten to say it no longer moves anything.
  2. glob 7.2.3 (alert 159, GHSA-c6wh-w8c3-cv3g, range up to 14.0.5, first patched 14.0.6). Every copy sat under exceljs@4.4.0, still exceljs's latest release. Two parent-scoped overrides in pnpm-workspace.yaml:
    • exceljs>unzipper: ^0.12.3 (resolves 0.12.5): unzipper 0.12 drops fstream, and with it rimraf@2.7.1, the holder that calls glob 7's callback form glob(p, opts, cb), which glob 9 and up no longer export. Moving rimraf's glob instead would have broken rimraf.
    • archiver-utils>glob: ^14.0.7: archiver-utils 2.1.0 and 3.0.4 call glob in one place, glob.sync(pattern, options) in file.expand; glob 14 still exports sync. The target dedupes onto the 14.0.7 copy the tree already holds.
  3. minimatch 11.0.9 (alert 160, GHSA-3924-r96c-gp9w, 11.0.6 up to 11.0.9). @microsoft/api-extractor>minimatch moves ^11.0.9 to ^11.0.10 as the card asks, and the generic 11.x floor (minimatch@ 11.0.0 to 12.0.0 selector) moves ^11.0.8 to ^11.0.10. The second lift is required: seven snapshots held 11.0.9 (eslint, @eslint/config-array, @oclif/core, @ts-morph/common, typescript-estree, glob 14 and api-extractor), so lifting only the api-extractor entry would have left 11.0.9 in the lockfile and the alert open.

Lockfile delta: +5 / -20 packages. Gone: glob@7.2.3, minimatch@11.0.9, minimatch@3.1.5, rimraf@2.7.1, fstream, unzipper@0.10.14 and their private deps. New: unzipper@0.12.5, fs-extra@11.3.1 (unzipper 0.12.5 pins it exactly), bluebird@3.7.2, node-int64@0.4.0, minimatch@11.0.10. OSV reads none of the new versions as affected.

First read

  1. pnpm-workspace.yaml, the new glob block under the api-extractor entry: the only place behaviour can move (a holder now runs on a different major of its dependency).
  2. pnpm-lock.yaml, the exceljs@4.4.0 snapshot and the removed glob@7.2.3 / rimraf@2.7.1 entries.
  3. pnpm-workspace.yaml, the happy-dom comment block: the claim that the override moves nothing.

Tests

All local readings at head 6666a997c23 (objectstack-ai/objectstack), on a shared box.

  • pnpm install --frozen-lockfile: exit 0, "Lockfile is up to date, resolution step is skipped".
  • @objectstack/rest whole suite (the exceljs export and import paths: export-integration, export-xlsx-refusal-envelope, import-integration, import-business-timezone, import-date-cell-iso-real-day, xlsx-module and the rest): 452 files passed, 9386 tests passed, 351 skipped, exit 0.
  • Console tests that select the happy-dom environment (17 files): 17 passed, 144 tests, exit 0.
  • @object-ui/plugin-grid and @object-ui/plugin-report exceljs-adjacent tests (9 files): 9 passed, 68 tests, exit 0.
  • Holder measurements, before vs after (before = a stock exceljs@4.4.0 install with unzipper 0.10.14 and glob 7.2.3):
    • exceljs stream.xlsx.WorkbookWriter (archiver path) writes 501 rows; read back through stream.xlsx.WorkbookReader (the one unzipper call, Parse({ forceStream: true })) twice and through Workbook.xlsx.load: the same three reads hash to the same digest, 545aa42c5a697f91, on unzipper 0.10.14 and on 0.12.5.
    • archiver-utils file.expand (plain, negated, filter: isFile, dot) returns identical results on glob 7.2.3 and on glob 14.0.7, for both 2.1.0 and 3.0.4.
  • No test is added: nothing here changes code this repo owns; the measurements above are the evidence and the existing suites are the pins.

Verification

Two-minute check: grep -nE "^ (glob@7|minimatch@11.0.9|minimatch@3|rimraf@2|happy-dom@)" pnpm-lock.yaml prints only happy-dom@21.0.4 (twice: packages and snapshots).

Gates derived by dispatch-gates.mjs --commands for this diff: 43 families; 42 ran locally, all exit 0 except as noted; reconciled with --ran ("43 derived famil(ies) accounted for").

Gate readings
  • pnpm check:dual-build-cjs-loads: NOT MEASURED locally, PREREQUISITE NOT MET (exit 3): it reads every package's dist and this worktree built only the rest and client closures. CI's Lint and Repo Gates runs it.
  • pnpm --dir ui exec vitest run scripts/: first run 1 failed of 174 files, a 15 s test timeout while a TypeScript program built under load (js-comment-mask-returns-interpolation-9424.test.ts); that file re-run alone: 8 of 8 passed, exit 0.
  • pnpm check:override-consistency: exit 0; it reports the three parent-scoped entries as zero published-manifest consumers, which is its reading for every parent-scoped entry (the api-extractor one read the same before).
  • Every other derived family: exit 0.

Acceptance notes

  • Changeset: none, skip-changeset. The overrides and the lockfile publish nothing. The one published manifest touched is @object-ui/console, and only its devDependencies (happy-dom is a test environment); its files list (dist, plugin entry, README) builds the same bytes, and the installed happy-dom stays 21.0.4.
  • happy-dom override kept. Measured: with the happy-dom floor removed, the lockfile still resolves 21.0.4 and only the overrides header and vitest's optional-peer text change. It is kept as the floor a future 17.x to 21.0.3 declaration lands on, as it was before the ui import; the comment now says so.
  • Dependabot PR chore(deps)(deps): Bump glob from 7.2.3 to 15.0.0 #39745 does not clear alert 159. Its head lockfile still resolves glob@7.2.3, archiver-utils@2.1.0 / 3.0.4 and rimraf@2.7.1; its diff refreshes unrelated packages (inquirer, graphql, isbot and others) and adds minimatch@11.0.10 beside 11.0.9. This PR supersedes it.
  • Alert 159's root cause is not in glob 7. The advisory describes src/ignore.ts in the TypeScript rewrite (glob 9 and up) pasting the root path into a pattern string. glob 7.2.3 resolves root with path.resolve and compiles ignore patterns from the caller's pattern alone, and no holder here passes ignore. The GitHub range (up to 14.0.5) covers 7.x anyway, so the alert could only close by removing the copy.
  • Scaffolded projects are not covered. These are workspace overrides; a project that installs @objectstack/rest from npm still resolves exceljs's own archiver ^5 and unzipper ^0.10, so glob 7.2.3, until exceljs releases or the scaffold's npm overrides gain the same two entries.
  • Removal hooks are in the comments: delete both glob entries once an exceljs release leaves archiver 5 and unzipper 0.10.

Generated by Claude Code

@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Dec 5, 2026
@github-actions github-actions Bot added size/s dependencies Pull requests that update a dependency file labels Dec 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deps: clear the open Dependabot alerts for happy-dom (stale ui range), glob 7.2.3 (under exceljs) and minimatch 11.0.9 (api-extractor override)

2 participants