Skip to content

Update dependencies and restore the security overrides - #43

Merged
emilwareus merged 1 commit into
mainfrom
chore/update-dependencies
Oct 6, 2026
Merged

emilwareus merged 1 commit into
mainfrom
chore/update-dependencies

Conversation

@emilwareus

Copy link
Copy Markdown
Owner

What

  • Security overrides work again. pnpm ignores the pnpm.overrides field in package.json (it warned on every install), so none of the transitive security floors applied. They now live in pnpm-workspace.yaml, raised to the current patched versions.
  • Minor and patch updates for everything, including Next.js 16.2.12 → 16.4.0 (two critical advisories), React 19.3, Radix, PostHog, Zod, mermaid 11.17 and AI SDK 6.
  • Install scripts: esbuild and sharp are allowed to run their install scripts; core-js is explicitly ignored.

pnpm audit: 28 vulnerabilities (3 critical, 10 high) → 2. Neither has an upstream fix (braces via eslint-config-next, sprintf-js via gray-matter), and both run only at build time on our own files.

Not in this PR

Major upgrades, each needing its own migration:

  • ESLint 10: tried it; the React and import plugins bundled in eslint-config-next don't support it yet and lint crashes.
  • framer-motion 14, AI SDK 7 (with @ai-sdk/openai 4, OpenRouter 3), mermaid 12, TypeScript 7: breaking API changes across many slides and routes.
  • @types/node 26: CI runs Node 20.
  • dotenv 18: a breaking major, deferred with the others.

Verification

  • pnpm typecheck passes.
  • Lint: 0 errors in tracked code. Plain pnpm lint also scans two git-ignored local folders, which produce the same errors on main.
  • Build: pnpm build passes and generates all 183 static pages.
  • Smoke test: on next start, /, /presentations, /brain, /status and the deck slides return 200 with no page errors. The chat-to-workflow animation runs.

The Vercel deploy check fails for the same reason as #42: PRIVATE_GITHUB_TOKEN (and YC_GITHUB_TOKEN) in the Vercel environment have expired, so /status gets a 401 at build time.

🤖 Generated with Claude Code

pnpm no longer reads the "pnpm.overrides" field in package.json, so the
security floors for transitive dependencies were silently ignored. They now
live in pnpm-workspace.yaml, raised to the current patched versions, which
also allows the esbuild and sharp install scripts explicitly.

Updates every dependency to its latest minor or patch release, including
Next.js 16.4 (fixes two critical advisories), React 19.3, Radix, PostHog,
Zod, mermaid 11.17 and the AI SDK 6 line. pnpm audit goes from 28
vulnerabilities to 2, both without an upstream fix and build-time only.

Majors are left for separate changes: ESLint 10 breaks the plugins bundled in
eslint-config-next, and framer-motion 14, AI SDK 7, mermaid 12, TypeScript 7,
@types/node 26 and dotenv 18 each need their own migration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emilwareus
emilwareus merged commit 38d4421 into main Oct 6, 2026
1 check failed
@emilwareus
emilwareus deleted the chore/update-dependencies branch October 6, 2026 20:35
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