Files
botsmann/package.json
T
Mao NakamotoandClaude Opus 4.8 122f4b6779 chore(deps): upgrade Next.js 15 → 16 + React 18 → 19
Framework major upgrade, stacked on #111 (Next 14 → 15).

Dependencies:
- next 15.5.21 → 16.2.12
- react / react-dom 18 → 19.2.8, @types/react(-dom) → 19
- eslint 8 → 9 (flat config), eslint-config-next → 16, @typescript-eslint 6 → 8
  (also clears the lingering ts-eslint Dependabot alert)

Config migrations required by Next 16:
- `next lint` removed → lint scripts use `eslint .`; migrated .eslintrc.json to
  eslint.config.mjs (flat) composing eslint-config-next 16's native flat configs
  (FlatCompat crashes on the react plugin's circular flat object)
- typedRoutes graduated from `experimental` to a stable top-level option
- tsconfig target es5 → ES2017 (Next 16 drops es5; noEmit, so type-check only)

React 19 type-tightening fixes (behaviour unchanged):
- ImgHTMLAttributes['src'] widened to string | Blob → narrow before string ops
  (MDXComponents, ServerMDXContent)
- ReactElement['props'] is now unknown → annotate read shape (guides pre block)
- useRef<T>(null) returns RefObject<T | null> → widen ChatMessageList prop

Deferred (out of scope for a framework upgrade, tracked as follow-up):
eslint-plugin-react-hooks v6 (bundled with Next 16) adds React-Compiler-era
rules (set-state-in-effect, error-boundaries, immutability) that flag 30
pre-existing intentional patterns; disabled here. no-unused-vars caughtErrors
pinned to 'none' to preserve the pre-upgrade contract (v8 flipped the default).

Verified: tsc --noEmit, next build (Turbopack, all pages), eslint ., jest 227 pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-26 11:45:50 +02:00

83 lines
2.3 KiB
JSON

{
"name": "botsmann",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"build:ci": "npm ci && npm run build",
"start": "next start",
"test": "jest",
"test:e2e": "NODE_ENV=test playwright test",
"test:watch": "jest --watch",
"test:db": "tsx scripts/test-db-connection.ts",
"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"prepare": "husky install",
"lint-staged": "lint-staged"
},
"dependencies": {
"@aws-sdk/client-ses": "^3.980.0",
"@giscus/react": "^3.1.0",
"@headlessui/react": "^2.2.0",
"@supabase/ssr": "^0.8.0",
"@supabase/supabase-js": "^2.47.10",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.16",
"@xenova/transformers": "^2.17.2",
"autoprefixer": "^10.4.17",
"date-fns": "^4.1.0",
"gray-matter": "^4.0.3",
"next": "^16.2.12",
"next-mdx-remote": "^6.0.0",
"pdf-parse": "^2.4.5",
"postcss": "^8.4.35",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"react-hook-form": "^7.54.2",
"react-icons": "^5.5.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.1",
"sonner": "^2.0.7",
"tailwindcss": "^3.4.1",
"zod": "^3.24.1"
},
"overrides": {
"glob": "^10.5.0",
"fast-xml-parser": "^5.3.4"
},
"devDependencies": {
"@playwright/test": "^1.49.0",
"@testing-library/jest-dom": "^6.6.3",
"@types/jest": "^29.5.14",
"@types/node": "^20.17.17",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@typescript-eslint/eslint-plugin": "^8.65.0",
"@typescript-eslint/parser": "^8.65.0",
"daisyui": "^5.0.43",
"eslint": "^9.39.5",
"eslint-config-next": "^16.2.12",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.6",
"husky": "^9.1.6",
"jest": "^29.7.0",
"jest-environment-jsdom": "^30.2.0",
"lint-staged": "^15.2.10",
"node-mocks-http": "^1.17.2",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"typescript": "^5.7.3"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --cache --fix",
"prettier --write"
],
"*.{json,md,css,scss,html,yml,yaml}": "prettier --write"
}
}