Skip to content

fix: upgrade Next.js to 16.2.10 + migrate ESLint to v9 flat config#89

Draft
caimanoliveira wants to merge 2 commits into
mainfrom
claude/kind-keller-5nhrki
Draft

fix: upgrade Next.js to 16.2.10 + migrate ESLint to v9 flat config#89
caimanoliveira wants to merge 2 commits into
mainfrom
claude/kind-keller-5nhrki

Conversation

@caimanoliveira

Copy link
Copy Markdown
Owner

Summary

  • Security: Upgrade next from 16.2.016.2.10, patching 14 CVEs (high/moderate) including DoS via Server Components, middleware/proxy bypass, cache poisoning, SSRF via WebSocket upgrades, and XSS with CSP nonces.
  • Lint breakage fixed: next lint was removed in Next.js 16. Replaced "lint": "next lint" with "lint": "eslint ." and added eslint + eslint-config-next as devDependencies; created eslint.config.mjs using the new v9 flat config format (eslint-config-next/core-web-vitals).
  • React Compiler purity fix (PlanoAcaoWidget.tsx): Moved Date.now() call from top-level render into a useState lazy initializer, eliminating the react-hooks/purity lint error. mentoria-crm/ is excluded from root ESLint since it has its own config.

What changed

File Change
package.json next 16.2.0 → 16.2.10; lint script; add eslint devDeps
package-lock.json Updated lockfile
eslint.config.mjs New ESLint v9 flat config (replaces the broken next lint)
src/components/trilhas/widgets/PlanoAcaoWidget.tsx Fix Date.now() called during render → moved to useState lazy initializer

Remaining notes

Two moderate postcss advisories remain — their only available fix would downgrade Next.js to 9.3.3 (a breaking regression). These are bundled inside Next.js itself and require an upstream release to resolve.


Generated by Claude Code

- Upgrade next from 16.2.0 to 16.2.10 to patch 14 high/moderate CVEs
  (DoS via Server Components, middleware bypass, cache poisoning, SSRF)
- Fix broken `npm run lint`: next lint was removed in Next.js 16; replace
  with eslint CLI + eslint-config-next/core-web-vitals flat config
- Add eslint + eslint-config-next as devDependencies
- Fix react-hooks/purity lint error in PlanoAcaoWidget: move Date.now()
  call into useState lazy initializer (runs only on mount)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gq6FZKsniPF1FVXVzt6Yu3
@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mentoria-crm Error Error Jul 19, 2026 7:20am
splinter Ready Ready Preview, Comment Jul 19, 2026 7:20am
splinter-yhcm Ready Ready Preview, Comment Jul 19, 2026 7:20am

Python 3.9 is no longer available on GitHub Actions runners (only 3.10+).
Upgrade to 3.12 and setup-python@v5 (v1 targets deprecated Node 20).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gq6FZKsniPF1FVXVzt6Yu3
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.

2 participants