security: upgrade Next.js to 16.4.3

KH
15h ago
+661-44

Summary

  • upgrade Next.js from 16.4.0 to the security-fixed 16.4.3 patch release selected by next upgrade --agent=security
  • set experimental.agentUpgrade to security so future builds retain security upgrade reminders
  • refresh the npm lockfile for the exact Next.js release and its transitive packages

Verification

  • npm ci — passed from the workspace root
  • npx --workspace web next --version — Next.js v16.4.3
  • npm run typecheck — passed
  • npm run lint — passed with two pre-existing warnings
  • npm test — 50 web files / 568 tests and 11 router files / 118 tests passed
  • npm run build — passed; 244 static pages generated
  • npm audit --json — no finding for next; 20 unrelated existing dependency findings remain

Duplicate-work check

Checked local and remote branches, commit history, upgrade markers, and all open pull requests before and after the change. No equivalent Next.js 16.4.3 security upgrade was in progress.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Upgrades Next.js in the web workspace from 16.4.0 to the security-fixed 16.4.3 patch release and relaxes the OpenNext version assertion so the upgrade builds in Cloudflare.

  • Pins next to 16.4.3 in web/package.json and updates the OpenNext compatibility check in web/scripts/prepare-opennext.mjs.
  • Sets experimental.agentUpgrade to security in web/next.config.mjs so future builds keep security upgrade reminders.
  • Refreshes the lockfile: Next.js now nests sharp 0.35.5 and its wasm32 packages, and the previous 0.35.4 sharp becomes dev-only.

Typecheck, lint, tests, and a production build all pass; no next finding in npm audit.


Agent Relay sessions

  • codex session 01a18883 · opened via gh pr create · last active 2026-10-30