feat(deps): Next 15 → 16 (proxy.ts rename + native flat ESLint config)
Applied @next/codemod migrations: - middleware-to-proxy: src/middleware.ts → src/proxy.ts + function rename - remove-experimental-ppr: no hits - remove-unstable-prefix: no hits tsconfig.json picked up Next 16's autofixes: - jsx: 'preserve' → 'react-jsx' - include .next/dev/types/**/*.ts (dev-mode route types) - next-env.d.ts: triple-slash reference → ES import (TS 6 / Next 16 style) eslint-config-next@16 ships a native flat config, so dropped the @eslint/eslintrc + FlatCompat shim. eslint.config.mjs now imports eslint-config-next/core-web-vitals + eslint-config-prettier/flat directly. Note on ESLint 10: bumped + reverted. eslint-config-next@16 still has a transitive eslint-plugin-react@7 that uses the eslint-9 context API (getFilename on context); breaks under eslint 10. Audit anticipated lockstep — but the transitive isn't ready yet. Holding at eslint 9.x until upstream lands. Tracked in BACKLOG. React Compiler safety rules (react-hooks v7) shipped with config- next 16 surfaced ~89 legitimate findings (set-state-in-effect, ref-during-render, immutability). Demoted the new rules to `warn` so the codebase isn't blocked; triage tracked in BACKLOG §G. Verified: tsc 0 errors, eslint 0 errors / 105 warnings (89 new Compiler-rule warns + 16 pre-existing), next build clean, custom server build clean, vitest 1315/1315. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
"lucide-react": "^1.14.0",
|
||||
"mailparser": "^3.9.8",
|
||||
"minio": "^8.0.7",
|
||||
"next": "15.5.18",
|
||||
"next": "16.2.6",
|
||||
"next-themes": "^0.4.6",
|
||||
"nodemailer": "^8.0.7",
|
||||
"openai": "^6.37.0",
|
||||
@@ -115,7 +115,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@axe-core/playwright": "^4.11.3",
|
||||
"@eslint/eslintrc": "^3.3.5",
|
||||
"@hookform/devtools": "^4.4.0",
|
||||
"@next/bundle-analyzer": "^16.2.6",
|
||||
"@playwright/test": "^1.60.0",
|
||||
@@ -135,7 +134,7 @@
|
||||
"drizzle-zod": "^0.8.3",
|
||||
"esbuild": "^0.28.0",
|
||||
"eslint": "^9.39.4",
|
||||
"eslint-config-next": "15.5.18",
|
||||
"eslint-config-next": "16.2.6",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^17.0.4",
|
||||
|
||||
Reference in New Issue
Block a user