Skip to content

build(deps): move the minimatch ^10 parents that accept 11, and keep exceljs's glob chain on its own minimatch majors - #38049

Draft
objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/project-thread-kc69mi
Draft

objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/project-thread-kc69mi

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Part of #36160 — this PR moves the five parents and lifts the exceljs chain off minimatch 10; the osv-scanner.toml exemption stays, because @microsoft/api-extractor still holds an exact minimatch 10.2.3 (see Acceptance notes). The card stays open for that last holder and the exemption's removal or renewal before 2026-12-21.

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只改开发依赖和锁文件,命令行工具多抬了一个底层框架的最低版本,命令、参数、输出都不变。
  • 为什么做:清理依赖安全扫描里那条 12 月 21 日到期的豁免,让还拿着有漏洞旧版匹配库的依赖尽量换到新版。
  • 出错会怎样:最可能是代码检查或命令行测试在持续集成里变红,合并前就能看到;合并后出问题直接撤回这个改动即可。
  • 要你做什么:无(剩下那个只在构建类型打包时才会用到的工具,怎么处理由席位转交决策)。

What changes

  1. The five parents that accept minimatch 11, moved where they are declared:
    • eslint ^10.13.0 to ^10.15.0 (root, packages/eslint-plugin, ui/); @eslint/config-array 0.23.5 to 0.23.6 comes with it.
    • The typescript-eslint family to 8.74.0 together: @typescript-eslint/parser ^8.74.0 (root, packages/eslint-plugin), typescript-eslint ^8.74.0 (ui/).
    • @oclif/core ^5.1.2 to ^5.1.12 in packages/cli (5.1.12 is the first 5.1 release on minimatch 11; 5.1.2 to 5.1.11 declare ^10.2.5).
    • @ts-morph/common 0.29.0 to 0.29.1 under the unchanged ts-morph ^28.0.0 (lockfile only).
    • The lockfile was resolved with pnpm 10.31.0 and --config.minimum-release-age=4320, so the same-day eslint 10.16.0 and @eslint/config-array 0.23.7 were not taken. No other package moved (an earlier pnpm update --depth Infinity attempt re-resolved unrelated packages and was discarded).
  2. The exceljs chain, by an override retarget, not an exceljs change. GHSA-g3hv-75wg-m249 affects minimatch 7.0.0 up to 11.0.1 only (read from the OSV offline npm database). glob 7.2.3 declares ^3.1.1 and readdir-glob 1.1.3 declares ^5.1.0; on their own majors they resolve 3.1.5 and 5.1.9, which carry the fixes for GHSA-3ppc-4f35-3m26, GHSA-7r86-cg39-jmmj and GHSA-23c5-xmqv-rm74 and sit below the new advisory. Only the single minimatch@<11.0.0 to ^10.2.3 override was dragging them into 10.x. It is split into one floor per line, each selector bounded at a major boundary (the pnpm-workspace.yaml selector-shape rule):
    • minimatch@<4.0.0 to ^3.1.4
    • minimatch@>=4.0.0 <6.0.0 to ^5.1.8
    • minimatch@>=6.0.0 <11.0.0 to ^10.2.3 (unchanged for everything from 6.0.0 on)
      Their brace-expansion copies resolve 1.1.22 and 2.1.8, both past every brace-expansion advisory on those lines.
  3. One test the oclif bump reddened, packages/cli/test/package-publish-error-envelope.test.ts. Run without a config root, oclif roots its config at @oclif/core and warns that its dev plugins are missing (that warning predates this PR). From 5.1.12 the warning inspects plugin options that now carry ignoreManifest: undefined, so the test's whole-console not.toContain('undefined') read the warning. The assertion is now judged on the command's own output, with Node process-warning entries ((node:PID) …) left out.
  4. A patch changeset for @objectstack/cli (its published @oclif/core range moved). The other manifests that moved are private.

osv-scanner.toml is not touched (ledger convention 3).

Tests

Lint (eslint 10.15.0, typescript-eslint 8.74.0)
  • Root pnpm lint under the verify lock: VERDICT command-exit 0, no problems printed.
  • pnpm --dir ui run lint:root: exit 0, 0 errors, 28 warnings.
  • turbo run lint --force over ui/packages/*, ui/apps/*, ui/examples/*: 40 of 40 tasks successful, 0 cached. The warnings carry only rule ids that predate the bump (@typescript-eslint/no-explicit-any, react-refresh/only-export-components, @typescript-eslint/no-unused-vars, react-hooks/*); no new rule fires.
  • The edited test file linted on its own: exit 0.
CLI on @oclif/core 5.1.12
  • pnpm --filter @objectstack/cli exec vitest run --project unit: first run 443 of 446 files passed. The three failures were the test fixed above and two published-subpath pins that need a built packages/cli (dist/index.js is absent). After building cli: the fixed file 5 of 5 passed, the two pins 29 of 29 passed.
  • pnpm --filter @objectstack/cli typecheck: exit 0 (test layer: 3 files, 28 errors, 6 pinned signatures held in the debt ledger, unchanged).
  • Built CLI smoke: os --version exit 0; os validate --help exit 0; unknown command exit 2, the same code the serve-process helper already expects.
  • The integration tier is CI's (Test Core).
exceljs zip read and write paths
  • packages/rest: the 20 test files that touch exceljs or xlsx (export, import, template, xlsx-module, rest.test.ts): 20 of 20 files, 804 of 804 tests passed.
  • ui/: plugin-grid import parsers and both ImportWizard xlsx tests, plugin-report dataset export: 4 of 4 files, 82 of 82 tests passed.
  • A direct smoke on the installed tree: exceljs streaming WorkbookWriter (archiver), buffered xlsx.load (jszip) and streaming WorkbookReader (unzipper) round-trip the rows; archiver.glob('**/*.md') (readdir-glob, minimatch 5.1.9) and archiver.directory() (archiver-utils glob 7, minimatch 3.1.5) zip the expected entries, read back with unzipper.
ts-morph and eslint-plugin
  • ts-morph is declared at the root and imported nowhere. Smoke: addSourceFilesAtPaths with a negated glob on @ts-morph/common 0.29.1 (minimatch 11.0.9) added 37 files and excluded every test file.
  • pnpm --filter @objectstack/eslint-plugin test: 4 of 4 files, 73 of 73 tests. Its typecheck and the root typecheck:root: exit 0.
OSV-Scanner v2.5.0 (the workflow's scanner), offline npm database
  • This head with its ledger: No issues found; GHSA-g3hv-75wg-m249 filtered by the exemption.
  • This head without the ledger: exactly one finding, minimatch 10.2.6, GHSA-g3hv-75wg-m249.
  • The merge base with its ledger: No issues found. So this PR introduces no advisory.
  • node scripts/check-osv-exemptions.mjs and --self-test: exit 0. pnpm check:override-consistency: exit 0, no row reported for minimatch.
Derived gate families (dispatch-gates.mjs --commands), on head 8a12fac

81 derived, 80 run with exit 0, 1 NOT MEASURED: check-plugin-teardown-shape.mjs --self-test exits 3 because its fixture is pinned to a commit this shallow clone cannot reach. --ran reconciliation: 0 unrun.

Acceptance notes

  • What still holds a minimatch 10.x copy: only @microsoft/api-extractor 7.58.2, which declares minimatch 10.2.3 exact. Its newest release, 7.60.2 (published 2026-11-27), still pins 10.2.3. It is in the graph only as an auto-installed optional peer of tsup, unplugin-dts and vite-plugin-dts. Those load it lazily, and only for bundleTypes/rollupTypes/experimentalDts, which no build in this repository enables. It calls only the minimatch named export, which minimatch 11 keeps. Whether to route it onto 11 with a scoped override, to keep it out of the install, or to renew the exemption naming it alone is the decision this card still holds.
  • The exemption's reason text now names holders that no longer hold a 10.x copy. Its renewal, or its deletion, is its own PR.
  • ts-morph is a root devDependency with no importer in the tree.
  • This PR does not touch the oclif dev-plugin warning that every in-process Command.run test prints.

Verification

Read first:

  1. pnpm-workspace.yaml, the minimatch override split: the three selectors and their bounds.
  2. pnpm-lock.yaml, the minimatch: lines under glob@7.2.3 and readdir-glob@1.1.3, and the @oclif/core@5.1.12 and eslint@10.15.0 entries.
  3. packages/cli/test/package-publish-error-envelope.test.ts, the narrowed undefined assertion.

Two-minute check: pnpm install --frozen-lockfile && pnpm why -r minimatch@10 should print one copy, minimatch@10.2.6, with @microsoft/api-extractor@7.58.2 as its only parent (pnpm why -r minimatch --depth 0 lists 3.1.5, 5.1.9, 10.2.6, 11.0.3 and 11.0.9).


Generated by Claude Code

eslint ^10.15.0 (and @eslint/config-array 0.23.6 through it),
typescript-eslint family ^8.74.0, @oclif/core ^5.1.12, and
@ts-morph/common 0.29.1 under ts-morph 28 now resolve minimatch 11.
Resolved with a three-day minimum release age, so the same-day
eslint 10.16.0 and @eslint/config-array 0.23.7 are not taken.

Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg
Co-authored-by: Claude <noreply@anthropic.com>
…tch majors

The single `minimatch@<11.0.0` override lifted glob 7.2.3 (^3.1.1) and
readdir-glob 1.1.3 (^5.1.0) into 10.x, the only lines GHSA-g3hv-75wg-m249
affects. Split it into one floor per declared line: 3.1.4 and 5.1.8 carry
the fixes for the three older advisories and sit below the new one's
7.0.0 floor. Only @microsoft/api-extractor's exact 10.2.3 still resolves
a 10.x copy.

Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg
Co-authored-by: Claude <noreply@anthropic.com>
…oclif's plugin warning

Run without a config root, oclif roots its config at @oclif/core and warns
that the dev plugins its manifest names are missing. From @oclif/core
5.1.12 that warning inspects plugin options that carry
`ignoreManifest: undefined`, so the whole-console `not.toContain('undefined')`
read the warning instead of the command's failure line.

Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

⚠️ 1 changed file(s) yielded no anchor (packages/cli/package.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files. Nothing else in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)).

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/cli/package.json) — pages documenting those are invisible to this run
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 40 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 8d34c4404f951410083a6caebd6ad8003ea3423d → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg

Red-check reading · zone o3-build · #36160 · Head-sha: 8a12fac

  • Test UI (6/16) (run 46067676424, job 140739209578) and its aggregate Test UI: one case, ui/packages/auth/src/__tests__/AuthProvider.test.tsx › "updateUser keeps the signed-in identity (objectstack#36972) › a name save … remounts nothing", expect(mounts).toBe(mountsBefore) at :693, expected 2 to be 1. The rest of the shard was green (447 files).
  • Not this PR's. The lockfile diff moves only eslint/typescript-eslint, @oclif/core, @ts-morph/common, minimatch, brace-expansion, balanced-match and concat-map (plus peer-suffix renames). None of these is on the auth DOM test's runtime path, and no globbing or lint runs in it. Timing signature: the preceding document.contains(button) passed, so the keyed MountCounter was not remounted by the click; the count rose by one from a passive effect of the session-load remount that had not run when mountsBefore was read. The file passes 5/5 locally on this tree under os-verify-lock (os-dev reading), and no other recent Test UI failure names it.
  • Judged a timing flake ⇒ one re-run of the failed jobs through rerun-failed.mjs; a second failure is real.

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 documentation Improvements or additions to documentation size/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants