Skip to content

chore(deps): override dev-only transitive dependencies with audit advisories - #56

Merged
bvdaakster merged 1 commit into
mainfrom
chore/audit-overrides
Nov 28, 2026
Merged

bvdaakster merged 1 commit into
mainfrom
chore/audit-overrides

Conversation

@bvdaakster

Copy link
Copy Markdown
Contributor

pnpm audit reported 7 advisories (2 high, 4 moderate, 1 low), all in packages reached only through devDependencies. pnpm audit --prod was already clean, so the published plugin was never affected. After this PR pnpm audit reports none.

Package Was Now Pulled in by
happy-dom 20.14.6 21.0.4 @payloadcms/richtext-lexical > @lexical/headless
esbuild 0.18.20 0.25.12 @payloadcms/db-* > drizzle-kit > @esbuild-kit/*
file-type 20.5.0 21.3.4 @swc/cli > @xhmikosr/downloader
@eslint/plugin-kit 0.2.8 0.3.5 @payloadcms/eslint-config > eslint
minimatch 9.0.9 11.0.9 @payloadcms/eslint-config > typescript-eslint

The overrides go in a new pnpm-workspace.yaml, not in package.json: the manifest is published and stays byte-identical, and YAML allows a comment per entry saying which parent to watch. The file is not in the npm tarball. onlyBuiltDependencies in package.json is still honoured.

Checked locally

  • Full CI command set: pnpm lint (0 errors), both tsc --noEmit runs, pnpm test:int (133 passed), pnpm build, test:published-exports, test:declarations.
  • next dev dev on a fresh SQLite file (schema push goes through drizzle-kit and esbuild): admin and API answer 200.
  • happy-dom 21: withDOM from @lexical/headless/dom parses HTML.
  • file-type 21: @xhmikosr/downloader and @xhmikosr/archive-type load and detect a gzip buffer.

Not checked: an actual @swc/cli binary download (the only code path that calls file-type), which only runs when no prebuilt @swc/core binary is installed.

🤖 Generated with Claude Code

https://claude.ai/code/session_0122PV8TJ7ELGdAX7H2hdrRU

…isories

Adds pnpm overrides for happy-dom, esbuild, file-type, @eslint/plugin-kit
and minimatch, whose parents pin versions with known advisories. All five
are reachable only through devDependencies; pnpm audit --prod was already
clean. The overrides live in pnpm-workspace.yaml so package.json, which
is published, stays unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0122PV8TJ7ELGdAX7H2hdrRU
@claude

claude Bot commented Nov 28, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

@bvdaakster
bvdaakster merged commit 4c64ac0 into main Nov 28, 2026
6 checks passed
@bvdaakster
bvdaakster deleted the chore/audit-overrides branch November 28, 2026 15:08
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.

1 participant