Skip to content

deps: move the dev environment to Next 16.4 and Payload 3.94 - #68

Merged
bvdaakster merged 3 commits into
mainfrom
deps/next-16
Nov 27, 2026
Merged

bvdaakster merged 3 commits into
mainfrom
deps/next-16

Conversation

@bvdaakster

Copy link
Copy Markdown
Contributor

Dev dependencies only; the published peerDependencies are unchanged. Supersedes #61 (next 15.4.11 → 15.5.29, a version @payloadcms/next does not accept).

Changes

Package From To
next 15.4.11 16.4.6
payload, @payloadcms/next, @payloadcms/ui, @payloadcms/db-sqlite, @payloadcms/richtext-lexical 3.90.0 3.94.2
vite (new direct devDependency, was only resolved through vitest) 7.1.5 ^7.3.8

vitest was already on 4.1.12. Payload moves along because 3.90.0 pins undici 7.29.0 exactly, and 3.94.2 is the release that both accepts Next 16.4 and ships the patched undici.

Next 16 follow-ups in the dev app:

  • dev/next-env.d.ts is rewritten by every next dev / next build (it now imports generated route types from .next/), so it is untracked, git-ignored and no longer listed in the root tsconfig.json.
  • agentRules: false in dev/next.config.mjs, otherwise next dev writes a dev/AGENTS.md.
  • pnpm dev drops --turbo: Turbopack is the default.
  • Import map regenerated for Payload 3.94 (CollectionCards).

pnpm audit

Before: 76 advisories (3 critical, 28 high, 38 moderate, 7 low). After: 7 (0 critical, 2 high, 4 moderate, 1 low), none from Next:

Severity Package Comes from Why it stays
high (2) happy-dom 20.14.6 @payloadcms/richtext-lexical → @lexical/headless Fixed only in happy-dom 21, outside the range lexical allows
moderate esbuild 0.18.20 @payloadcms/db-sqlite → drizzle-kit → @esbuild-kit/esm-loader Deprecated loader pinned by drizzle-kit
moderate (2) file-type 20.5.0 @swc/cli → @xhmikosr/downloader Needs a newer @swc/cli
moderate minimatch 9.0.9 @payloadcms/eslint-config → @typescript-eslint Needs a newer eslint config
low @eslint/plugin-kit 0.2.8 @payloadcms/eslint-config → eslint 9.14 Same

All are in dev tooling; none ship with the package.

Checks

  • pnpm lint (0 errors), npx tsc --noEmit, pnpm build, pnpm test (85 passing) on the new versions.
  • Dev app started with pnpm dev on Next 16.4.6: login, /admin, /admin/feature-flags-overview, /admin/collections/feature-flags, / and /api/feature-flags/evaluate all answer 200 with the seeded flags, with no import map warnings.
  • The Playwright e2e test was not run locally (no browser installed on this machine).

🤖 Generated with Claude Code

https://claude.ai/code/session_0122PV8TJ7ELGdAX7H2hdrRU

bvdaakster and others added 2 commits November 27, 2026 13:52
next 15.4.11 -> 16.4.6, payload and @payloadcms/* 3.90.0 -> 3.94.2 (pulls
undici 7.30.1), and vite pinned to ^7.3.8 as a direct devDependency so the
copy vitest uses is a patched one. pnpm audit goes from 76 advisories
(3 critical, 28 high) to 7 (0 critical, 2 high).

Next 16 follow-ups in the dev app: next-env.d.ts is rewritten by every
dev/build run and is no longer tracked, AGENTS.md generation is turned off,
the import map is regenerated for Payload 3.94, and the dev script drops the
--turbo flag because Turbopack is the default.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0122PV8TJ7ELGdAX7H2hdrRU
@claude

claude Bot commented Nov 27, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

The type-level tests compare the exported types with this file, so it is
kept in step with the installed Payload version.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0122PV8TJ7ELGdAX7H2hdrRU
@bvdaakster
bvdaakster merged commit 0aa1444 into main Nov 27, 2026
6 checks passed
@bvdaakster
bvdaakster deleted the deps/next-16 branch November 27, 2026 12:54
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.

1 participant