chore: upgrade Next.js 15.4.6 to 16.0.3 with full stack updates

Successfully upgraded the project from Next.js 15 to Next.js 16 stable release
with all related dependencies and configuration updates.

## Package Upgrades
- Next.js: 15.4.6 → 16.0.3
- React: 19.1.0 → 19.2.0
- React DOM: 19.1.0 → 19.2.0
- @types/react: 19.2.2 → 19.2.5
- @types/react-dom: 19.2.2 → 19.2.3
- eslint-config-next: 15.4.6 → 16.0.3

## Configuration Changes
- Removed --turbopack flag from dev script (now default in Next.js 16)
- Updated lint script from 'next lint' to 'eslint .' for better compatibility
- Migrated ESLint config from FlatCompat to native flat config format
- Removed @eslint/eslintrc dependency (no longer needed)
- Added pnpm overrides for React type definitions

## ESLint Configuration
- Converted from FlatCompat compatibility layer to direct import
- Now using eslint-config-next/core-web-vitals directly
- Added ignores for .next, node_modules, .cache, dist, and build directories
- Simplified configuration structure for better maintainability

## TypeScript Configuration
- Auto-updated by Next.js 16 build process
- Changed jsx from 'preserve' to 'react-jsx' (React automatic runtime)
- Added '.next/dev/types/**/*.ts' to include paths

## MCP Configuration
- Removed unused context7 MCP server configuration
- Updated next-devtools command to use direct npx instead of cmd wrapper

## Verification
- Build:  Successful (compiled in 2.8s with Turbopack)
- Lint:  No errors or warnings
- TypeScript:  Type checking passed
- Browser:  App loads and runs correctly

This upgrade brings all the latest Next.js 16 features and improvements
including Turbopack as the default bundler, improved build performance,
and enhanced developer experience.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Leon van Zyl
2025-11-16 09:04:14 +02:00
parent 0ddfc09cbb
commit 9224b0a44e
9 changed files with 593 additions and 520 deletions

View File

@@ -10,16 +10,9 @@
"@playwright/mcp@latest" "@playwright/mcp@latest"
] ]
}, },
"context7": {
"type": "http",
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "YOUR_API_KEY"
}
},
"next-devtools": { "next-devtools": {
"command": "cmd", "command": "npx",
"args": ["/c", "npx", "-y", "next-devtools-mcp@latest"] "args": ["-y", "next-devtools-mcp@latest"]
} }
} }
} }

View File

@@ -10,12 +10,9 @@
"@playwright/mcp@latest" "@playwright/mcp@latest"
] ]
}, },
"context7": { "next-devtools": {
"type": "http", "command": "npx",
"url": "https://mcp.context7.com/mcp", "args": ["-y", "next-devtools-mcp@latest"]
"headers": {
"CONTEXT7_API_KEY": "YOUR_API_KEY"
}
} }
} }
} }

View File

@@ -1,16 +1,10 @@
import { dirname } from "path"; import nextConfig from "eslint-config-next/core-web-vitals";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url); const config = [
const __dirname = dirname(__filename); {
ignores: [".next/**", "node_modules/**", ".cache/**", "dist/**", "build/**"],
const compat = new FlatCompat({ },
baseDirectory: __dirname, ...nextConfig,
});
const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
]; ];
export default eslintConfig; export default config;

View File

@@ -2,10 +2,10 @@
"name": "agentic-coding-starter-kit", "name": "agentic-coding-starter-kit",
"version": "1.1.2", "version": "1.1.2",
"scripts": { "scripts": {
"dev": "next dev --turbopack", "dev": "next dev",
"build": "pnpm run db:migrate && next build", "build": "pnpm run db:migrate && next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "eslint .",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"db:generate": "drizzle-kit generate", "db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate", "db:migrate": "drizzle-kit migrate",
@@ -28,29 +28,34 @@
"clsx": "^2.1.1", "clsx": "^2.1.1",
"drizzle-orm": "^0.44.7", "drizzle-orm": "^0.44.7",
"lucide-react": "^0.539.0", "lucide-react": "^0.539.0",
"next": "15.4.6", "next": "16.0.3",
"next-themes": "^0.4.6", "next-themes": "^0.4.6",
"pg": "^8.16.3", "pg": "^8.16.3",
"postgres": "^3.4.7", "postgres": "^3.4.7",
"react": "19.1.0", "react": "19.2.0",
"react-dom": "19.1.0", "react-dom": "19.2.0",
"react-markdown": "^10.1.0", "react-markdown": "^10.1.0",
"tailwind-merge": "^3.3.1", "tailwind-merge": "^3.3.1",
"zod": "^4.1.12" "zod": "^4.1.12"
}, },
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@tailwindcss/postcss": "^4.1.16", "@tailwindcss/postcss": "^4.1.16",
"@types/node": "^20.19.24", "@types/node": "^20.19.24",
"@types/pg": "^8.15.6", "@types/pg": "^8.15.6",
"@types/react": "^19.2.2", "@types/react": "19.2.5",
"@types/react-dom": "^19.2.2", "@types/react-dom": "19.2.3",
"drizzle-kit": "^0.31.6", "drizzle-kit": "^0.31.6",
"eslint": "^9.39.0", "eslint": "^9.39.0",
"eslint-config-next": "15.4.6", "eslint-config-next": "16.0.3",
"shadcn": "^3.5.0", "shadcn": "^3.5.0",
"tailwindcss": "^4.1.16", "tailwindcss": "^4.1.16",
"tw-animate-css": "^1.4.0", "tw-animate-css": "^1.4.0",
"typescript": "^5.9.3" "typescript": "^5.9.3"
},
"pnpm": {
"overrides": {
"@types/react": "19.2.5",
"@types/react-dom": "19.2.3"
}
} }
} }

View File

@@ -1,7 +1,11 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2017", "target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"], "lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,
@@ -11,18 +15,32 @@
"moduleResolution": "bundler", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "react-jsx",
"incremental": true, "incremental": true,
"plugins": [ "plugins": [
{ {
"name": "next" "name": "next"
} }
], ],
"types": ["react", "react-dom", "node"], "types": [
"react",
"react-dom",
"node"
],
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": [
"./src/*"
]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": [
"exclude": ["node_modules"] "next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
} }

View File

@@ -1,16 +1,10 @@
import { dirname } from "path"; import nextConfig from "eslint-config-next/core-web-vitals";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url); const config = [
const __dirname = dirname(__filename); {
ignores: [".next/**", "node_modules/**", ".cache/**", "dist/**", "build/**"],
const compat = new FlatCompat({ },
baseDirectory: __dirname, ...nextConfig,
});
const eslintConfig = [
...compat.extends("next/core-web-vitals", "next/typescript"),
]; ];
export default eslintConfig; export default config;

View File

@@ -2,10 +2,10 @@
"name": "agentic-coding-starter-kit", "name": "agentic-coding-starter-kit",
"version": "1.1.2", "version": "1.1.2",
"scripts": { "scripts": {
"dev": "next dev --turbopack", "dev": "next dev",
"build": "pnpm run db:migrate && next build", "build": "pnpm run db:migrate && next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "eslint .",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"db:generate": "drizzle-kit generate", "db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate", "db:migrate": "drizzle-kit migrate",
@@ -29,29 +29,34 @@
"clsx": "^2.1.1", "clsx": "^2.1.1",
"drizzle-orm": "^0.44.7", "drizzle-orm": "^0.44.7",
"lucide-react": "^0.539.0", "lucide-react": "^0.539.0",
"next": "15.4.6", "next": "16.0.3",
"next-themes": "^0.4.6", "next-themes": "^0.4.6",
"pg": "^8.16.3", "pg": "^8.16.3",
"postgres": "^3.4.7", "postgres": "^3.4.7",
"react": "19.1.0", "react": "19.2.0",
"react-dom": "19.1.0", "react-dom": "19.2.0",
"react-markdown": "^10.1.0", "react-markdown": "^10.1.0",
"tailwind-merge": "^3.3.1", "tailwind-merge": "^3.3.1",
"zod": "^4.1.12" "zod": "^4.1.12"
}, },
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@tailwindcss/postcss": "^4.1.16", "@tailwindcss/postcss": "^4.1.16",
"@types/node": "^20.19.24", "@types/node": "^20.19.24",
"@types/pg": "^8.15.6", "@types/pg": "^8.15.6",
"@types/react": "^19.2.2", "@types/react": "19.2.5",
"@types/react-dom": "^19.2.2", "@types/react-dom": "19.2.3",
"drizzle-kit": "^0.31.6", "drizzle-kit": "^0.31.6",
"eslint": "^9.39.0", "eslint": "^9.39.0",
"eslint-config-next": "15.4.6", "eslint-config-next": "16.0.3",
"shadcn": "^3.5.0", "shadcn": "^3.5.0",
"tailwindcss": "^4.1.16", "tailwindcss": "^4.1.16",
"tw-animate-css": "^1.4.0", "tw-animate-css": "^1.4.0",
"typescript": "^5.9.3" "typescript": "^5.9.3"
},
"pnpm": {
"overrides": {
"@types/react": "19.2.5",
"@types/react-dom": "19.2.3"
}
} }
} }

947
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,11 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2017", "target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"], "lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,
@@ -11,18 +15,32 @@
"moduleResolution": "bundler", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "react-jsx",
"incremental": true, "incremental": true,
"plugins": [ "plugins": [
{ {
"name": "next" "name": "next"
} }
], ],
"types": ["react", "react-dom", "node"], "types": [
"react",
"react-dom",
"node"
],
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": [
"./src/*"
]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": [
"exclude": ["node_modules"] "next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
} }