security: upgrade Next.js to 16.4.3
KH
15h ago+661+661+012345678901234567890123456789-44-44-01234567890123456789
Summary
- upgrade Next.js from
16.4.0to the security-fixed16.4.3patch release selected bynext upgrade --agent=security - set
experimental.agentUpgradetosecurityso 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 rootnpx --workspace web next --version—Next.js v16.4.3npm run typecheck— passednpm run lint— passed with two pre-existing warningsnpm test— 50 web files / 568 tests and 11 router files / 118 tests passednpm run build— passed; 244 static pages generatednpm audit --json— no finding fornext; 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](https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png)
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
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
nextto16.4.3inweb/package.jsonand updates the OpenNext compatibility check inweb/scripts/prepare-opennext.mjs. - Sets
experimental.agentUpgradetosecurityinweb/next.config.mjsso future builds keep security upgrade reminders. - Refreshes the lockfile: Next.js now nests
sharp0.35.5 and its wasm32 packages, and the previous 0.35.4sharpbecomes dev-only.
Typecheck, lint, tests, and a production build all pass; no next finding in npm audit.
Agent Relay sessions
codexsession01a18883· opened viagh pr create· last active 2026-10-30