Repository navigation
build(deps): route api-extractor's minimatch to 11 and delete the GHSA-g3hv-75wg-m249 exemption - #38057
Conversation
…A-g3hv-75wg-m249 exemption @microsoft/api-extractor pins minimatch 10.2.3 exact and was the last 10.x copy in the lockfile. It is only an auto-installed optional peer of tsup, unplugin-dts and vite-plugin-dts, loaded for bundleTypes, rollupTypes or experimentalDts, none of which any build here enables, and its one call is the `minimatch()` named export that v11 keeps. A parent-scoped override routes it to ^11.0.9, which leaves no minimatch 10.x copy, so the osv-scanner.toml exemption goes and the ledger is back to zero entries. Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg
|
|
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg Final green head for L1 · zone
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 ACCEPT at
Every other check is 58 success, 12 expected skip, 0 failed, 0 pending, and Against the seat's option-A ruling and the card.
Nit (not blocking). N1: the "no build here enables bundleTypes / rollupTypes / experimentalDts" premise is a fact about today. If a later build turns one of them on, api-extractor runs on minimatch 11. The comment already says the call it makes survives v11, so the risk is stated. A smoke test would only be owed then. |
|
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg Landing · zone
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46090625573 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46090937233 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Fixes #36160
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The follow-up to #38049 (merged as 39d611d), which moved the five parents that accept minimatch 11 and kept exceljs's glob chain on its own minimatch majors. The seat chose option A for the last holder. Every reading below was taken on this PR's head, 84e6e1c, rebased onto 39d611d.
pnpm-workspace.yaml: a parent-scoped override,@microsoft/api-extractor>minimatchto^11.0.9.@microsoft/api-extractordeclaresminimatch10.2.3exact (7.58.2 here; the newest release, 7.60.2, still pins it). It was the last minimatch 10.x copy in the lockfile. The comment beside the line gives the reason, and says to delete the line once an api-extractor release drops its exact 10.x pin.tsup,unplugin-dtsandvite-plugin-dts. Those load it lazily, and only forbundleTypes,rollupTypesorexperimentalDts, which no build here enables (evidence 1 below).minimatch()export, inCollector.js, which minimatch 11 keeps. The smoke below runs that exact call.pnpm-workspace.yamlselector-shape rule governspkg@rangefloors. This key names a parent and has no version range, so there is no bound to place. The exact-target rule covers packages whose export surface we compile against, and minimatch is not one of them, so the target is^.osv-scanner.toml: the GHSA-g3hv-75wg-m249 exemption is deleted. It was the only entry, so the ledger is at its intended steady state of zero exemptions. Per convention 3, removing an exemption may ride with the fix. The header and template are untouched.pnpm-lock.yaml, regenerated with pnpm 10.31.0. The only change is that api-extractor'sminimatchmoves from 10.2.6 to 11.0.9,minimatch@10.2.6drops out of the lockfile, and theoverridesheader gains the new line.No published package changes, so this PR carries no changeset. Every manifest that moved for #36160 moved in #38049.
When
@microsoft/api-extractorships a release without the exact 10.x pin, delete the override line. That needs no card.Tests
Evidence 1: no build here enables an api-extractor path
git grep -n -E 'rollupTypes|bundleTypes|experimentalDts|api-extractor|apiExtractor|ExtractorConfig|api-extractor\.json'outside the lockfile and changelogs: 6 hits. Five are the new comment and override inpnpm-workspace.yaml. One is a doc comment inpackages/spec/scripts/lib/file-description.tsthat says no typedoc or api-extractor reads the field it describes.git grepforexperimental-dts,experimentalDtsorrollup-typesin anypackage.json,.ts,.mts,.js,.mjsor.cjs: 0 hits. No trackedapi-extractor.jsonexists.vite-plugin-dtsorunplugin-dtspassdts()options from this set only:aliasesExclude,compilerOptions,exclude,include,insertTypesEntry,outDir,tsconfigPath. The one helper that spreads intodts()(ui/scripts/vite-dts-explicit-extensions.ts) adds onlybeforeWriteFileandafterBuild.unplugin-dtsimports api-extractor with a dynamicimport()inside its rollup step only;tsuploads it only forexperimentalDts.Evidence 2: OSV-Scanner v2.5.0 (the workflow's scanner), offline npm database freshly downloaded
--offline-vulnerabilities --download-offline-databases --configpointing at this head'sosv-scanner.toml(zero[[IgnoredVulns]]entries; the only match for that string is the commented template, andg3hvoccurs 0 times):No issues found, 1698 packages scanned.No issues found.node scripts/check-osv-exemptions.mjs: exit 0, "osv-scanner.toml holds zero OSV exemptions (the intended steady state)".--self-test: exit 0.Evidence 3: no minimatch 10.x copy in pnpm-lock.yaml
grep -c -E 'minimatch@10\.|minimatch: 10\.' pnpm-lock.yamlgives 0.glob7.2.3; 5.1.9 forreaddir-glob1.1.3; 11.0.3 for@oclif/core5.1.12,@typescript-eslint/typescript-estree8.74.0 andglob14.0.3; 11.0.9 foreslint10.15.0,@eslint/config-array0.23.6,@ts-morph/common0.29.1 and@microsoft/api-extractor7.58.2.api-extractor on minimatch 11, and the dts builds
minimatch@11.0.9. The fixture'sbundledPackages: ["foo-*"]against three declared dependencies drives theCollector.jsglob branch, the oneminimatch()call. With a d.ts rollup enabled:succeeded: true, 0 errors, 2 warnings (ae-missing-release-tagon the fixture's untagged exports), and the rolled file carries the fixture's API.turbo run buildover the@objectstack/cli...and@objectstack/rest...closures,@objectstack/metadata-core,@object-ui/plugin-markdown...and the i18n extract packages, under the verify lock:VERDICT command-exit 0, Tasks 78 successful of 78, 3 cached. Its tsup builds emitted their declarations, withcheck-dts-emittedpassing for metadata-core. The vite builds ran unplugin-dts: plugin-markdown printed "Declaration files built", as did the@object-uipackages in its closure.pnpm check:override-consistency: exit 0. Its consumer census reports the new key as having 0 consumers, which is a report, not a failure; see Acceptance notes.Derived gate families (dispatch-gates.mjs --commands), on head 84e6e1c
The change set is 3 paths against merge base 39d611d (
osv-scanner.toml,pnpm-lock.yaml,pnpm-workspace.yaml), giving 25 derived families. All 25 were run on head 84e6e1c, with exit codes captured before any pipe, and all 25 exited 0. Among them:check-osv-exemptions.mjsand its--self-test,check:override-consistency,check:vendor-export-contract-resolve,check:dual-build-cjs-loads,check:changeset-fixed,check:nul-bytesandosv-base-relative.mjs --self-test. The--ranreconciliation reports 25 accounted for, 25 run, 0 NOT-MEASURED and 0 UNRUN. Before the push,overlap-check.mjsreturned VERDICT clean exit 0 against origin/main 39d611d and #38043.Acceptance notes
check:override-consistencyreads an override key asname@selector, split at its last@. It does not parse aparent>childkey, so its report-only consumer census lists@microsoft/api-extractor>minimatchas having 0 consumers, although api-extractor consumes it. That is a report, never a failure, and the line must not be read as "safe to tidy".Verification
Read first:
pnpm-workspace.yaml: the new@microsoft/api-extractor>minimatchline and its comment.osv-scanner.toml: the deleted entry, and that the header and template are unchanged.pnpm-lock.yaml: the@microsoft/api-extractor@7.58.2snapshot'sminimatch: 11.0.9.Two-minute check:
grep -c -E 'minimatch@10\.|minimatch: 10\.' pnpm-lock.yamlprints0, andnode scripts/check-osv-exemptions.mjsprints that the ledger holds zero exemptions.Generated by Claude Code