Skip to content

chore(deps): clear 9 high-severity npm-audit advisories - #4

Merged
MichaelTaylor3d merged 2 commits into
mainfrom
chore/1843-npm-audit-clean
Jul 31, 2026
Merged

chore(deps): clear 9 high-severity npm-audit advisories#4
MichaelTaylor3d merged 2 commits into
mainfrom
chore/1843-npm-audit-clean

Conversation

@MichaelTaylor3d

Copy link
Copy Markdown
Contributor

What

Clears the 9 high-severity npm-audit advisories in the dependency tree (#1843) — all pre-existing transitive/dev-tooling deps, surfaced while shipping #1842. Dependency-hygiene only; no app-feature/behavior change.

Advisory breakdown

  • postcss — path traversal; non-breaking fix.
  • vitest/coverage chain (@vitest/coverage-v8, glob, test-exclude) — bump vitest + @vitest/coverage-v8 → ^4.
  • eslint chain (eslint, @eslint/config-array, @eslint/eslintrc, minimatch, brace-expansion) — cleared via a targeted overrides: { minimatch: ^10 } (routes onto patched brace-expansion 5.0.9) rather than a breaking eslint@10 bump. Same pattern proven in bugreport.dig.net#16.

Verification (before ready-for-review)

  • npm audit → 0 (or documented no-fix remainder)
  • full §2.4a gate green: lint, typecheck, tests, coverage ≥80%, build, a11y, SEO/JSON-LD gates
  • version bump per SemVer

Closes #1843

🤖 Generated with Claude Code


Generated by Claude Code

MichaelTaylor3d and others added 2 commits July 31, 2026 04:06
Stub anchor for clearing the 9 high-severity npm-audit advisories in the
dependency tree (postcss, the vitest/coverage chain, and the eslint/
minimatch/brace-expansion chain). Work follows.

Refs #1843
Co-Authored-By: Claude <noreply@anthropic.com>
Resolve the 9 high-severity npm audit findings (superproject #1843):
postcss (npm audit fix), the vitest/coverage-v8/test-exclude/glob chain
(bump to vitest 4.1.10), and the eslint/@eslint/config-array/eslintrc/
minimatch/brace-expansion chain via a targeted `minimatch` override
(avoids the breaking eslint 10 bump npm suggests).

The vitest 4 bump changed the v8 coverage provider's branch-detection
accuracy (AST-aware remapping replaces the old v8-to-istanbul mapping),
surfacing real, previously-masked branch-coverage gaps in locales.ts,
I18nProvider.tsx, and version.ts. Added tests for detectBrowserLocale,
initialLocale, persistLocale, the 4-letter script-subtag path, and the
no-`initial`-prop I18nProvider path to close those gaps with real
coverage rather than lowering the threshold.

tsconfig.app.json also needed "node" added to `types` — vitest 4 no
longer leaks ambient @types/node into the app program the way vitest 3
did, and build-scripts.test.ts uses Buffer.

npm audit: 0 vulnerabilities (was 9 high).

Co-Authored-By: Claude <noreply@anthropic.com>
@MichaelTaylor3d
MichaelTaylor3d marked this pull request as ready for review July 31, 2026 04:23
@MichaelTaylor3d
MichaelTaylor3d merged commit a871ea5 into main Jul 31, 2026
5 checks passed
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