BuildWithMatija
  1. Home
  2. Blog
  3. Payload
  4. Payload CMS 4.0 Beta Is Here: Try It Now and What Changed

Payload CMS 4.0 Beta Is Here: Try It Now and What Changed

Updated November 19: Payload 4 beta.10, MCP OAuth and access controls, resumable S3 uploads, security fixes and migration requirements.

27th May 2026·Updated on:19th November 2026·MŽMatija Žiberna·
Payload

Evaluating Payload CMS Implementation Costs?

Scope design, content structure, and migration hours to estimate a realistic production timeline and hosting setup.

Try the Cost EstimatorGet a Second Opinion

📚 Comprehensive Payload CMS Guides

Detailed Payload guides with field configuration examples, custom components, and workflow optimization tips to speed up your CMS development process.

No spam. Unsubscribe anytime.

Related Posts:

  • •Payload DAM: What Exists Today and What's Coming 4.0
  • •Payload CMS and Structured Autonomy: Fix Your Website Model
  • •Next.js & Payload CMS Multi-Tenant Architecture: Complete Production Guide
  • •Payload CMS for Publishing Teams: Honest Review — 2026
  • •How to Build E‑commerce with Payload CMS: Collections, Products, Variants
📄View markdown version
20

Comments

About the author

Matija Žiberna

Matija Žiberna

Full-stack developer, co-founder

AboutResume

Self-taught full-stack developer sharing lessons from building software and startups.

I'm Matija Žiberna, a self-taught full-stack developer and co-founder passionate about building products, writing clean code, and figuring out how to turn ideas into businesses. I write about web development with Next.js, lessons from entrepreneurship, and the journey of learning by doing. My goal is to provide value through code—whether it's through tools, content, or real-world software.

You might be interested in

Payload DAM: What Exists Today and What's Coming 4.0
Payload DAM: What Exists Today and What's Coming 4.0

12th July 2026

Payload CMS and Structured Autonomy: Fix Your Website Model
Payload CMS and Structured Autonomy: Fix Your Website Model

15th August 2026

Next.js & Payload CMS Multi-Tenant Architecture: Complete Production Guide
Next.js & Payload CMS Multi-Tenant Architecture: Complete Production Guide

12th December 2025

Payload CMS for Publishing Teams: Honest Review — 2026
Payload CMS for Publishing Teams: Honest Review — 2026

22nd March 2026

How to Build E‑commerce with Payload CMS: Collections, Products, Variants
How to Build E‑commerce with Payload CMS: Collections, Products, Variants

10th August 2025

Contents

  • What changed in Payload 4 during November 2026
  • Payload CMS 4 in short
  • At a glance (v4 beta & migration tracker)
  • 1. Breaking API changes and security defaults
  • `overrideAccess: false` by default in Local API
  • Default relationship depth drops from 2 to 1
  • Request creation API cleanup
  • Truthful configuration types (removal of `DeepRequired`)
  • Synchronous sanitization
  • `payload.validate()` and the new `'validate'` hook operation
  • 2. Database architecture: versions and authorship by default
  • `versions: true` by default across collections and globals
  • `readVersions` permission inheritance risk
  • Authorship enabled by default (`createdBy` and `updatedBy`)
  • Database adapter type exports
  • 3. Auth, security, and request typing
  • Unified user types and typed `req.user`
  • Versioned JWT tokens (`authVersion: 1`)
  • Legacy API key regeneration (removal of SHA-1 fallback)
  • 4. Admin UI, semantic tokens, and framework-neutral component architecture
  • Component configuration alignment for Globals
  • Elimination of Sass in favor of semantic CSS tokens
  • Tailwind CSS reset isolation
  • Native hierarchies, folders, and tags
  • Framework-neutral admin components and navigation hooks
  • Breaking APIs for custom admin and plugin developers
  • 5. Lexical modernization and the removal of Slate
  • `@payloadcms/richtext-slate` and migration utilities are removed
  • Lexical 0.52.0 upgrade and schema enhancements
  • 6. List view performance and the Select API
  • List View Select API enabled by default
  • `forceSelect` replaced by Collection/Global `select()` function
  • 7. Uploads, storage transformers, and file versioning
  • Sharp extracted to `@payloadcms/transformer-sharp`
  • `imageSizes` renamed to `variants` (`doc.sizes` → `doc.variants`)
  • Native file versioning and original preservation
  • Top-level storage adapters and `/api/upload-instructions`
  • Strict upload limits (`upload.abortOnLimit: true`)
  • 8. Developer tooling, CLI, codemods, and JSON Schema
  • The official migration codemods (`npx @payloadcms/codemod@beta`)
  • Redesigned custom CLI commands (`config.cli.commands`)
  • Runtime `jsonSchema` and schema synthesis
  • 9. Model Context Protocol (MCP) and agent workflows
  • Rewritten authentication and transport architecture
  • 10. Framework ecosystem and TanStack Start
  • `@payloadcms/tanstack-start` beta adapter
  • Minimum runtime baselines
  • 11. Jobs, localization, and operational breaking changes
  • Jobs API security and schema hardening
  • Localization: active-locale publishing
  • Nodemailer 10 and transactional email
  • The Production Upgrade Checklist: 10 Critical Checks
  • Recommended upgrade path
  • 1. Complete prerequisites on Payload 3.x
  • 2. Branch cleanly and upgrade packages
  • 3. Run the automated codemods
  • 4. Run TypeScript verification
  • 5. Apply predefined and custom migrations
  • 6. Validate access control and storage uploads
  • Need help with the Payload 3 to 4 migration?
  • Payload CMS 4 FAQ
  • Is Payload CMS 4 released yet?
  • What are the biggest breaking changes in Payload 4?
  • Should I upgrade to Payload 4 now?
  • What do I need to run Payload 4?
  • Is there a tool that automates the migration?
On this page:
  • What changed in Payload 4 during November 2026
  • Payload CMS 4 in short
  • At a glance (v4 beta & migration tracker)
  • 1. Breaking API changes and security defaults
  • 2. Database architecture: versions and authorship by default
Build with Matija logo

Build with Matija

Senior-led B2B websites, applications, content systems, and digital infrastructure. Business-first, full-stack, AI-assisted, no handoffs.

Services

  • B2B Website Development
  • CMS Architecture Review & Platform Blueprint
  • Next.js + Payload Advisory
  • AI Integration & Implementation

Resources

  • CMS Hub
  • B2B Website Strategy
  • E-commerce Hub
  • Blog
  • Case Studies
  • About Matija

Payload CMS

  • Payload CMS Developer
  • Payload CMS Migration
  • Payload CMS Demos
  • All Payload CMS Resources

Discuss your project

Planning a rebuild, migration, application, workflow change, or platform decision? Start with the business problem and the system behind it.

Book a discovery callContact me →
© 2026Build with Matija•All rights reserved•Privacy Policy•Terms of Service
BuildWithMatija
Get In Touch

Payload CMS 4.0 is available to try now. The public beta launched on October 9, 2026. You can start a new Payload 4 project today with the official command:

bash
npx create-payload-app@beta

As of November 19, 2026, the latest verified public prerelease is Payload 4.0.0-beta.10 (November 17), while Payload 3.94.0 is the latest stable 3.x release. Start a separate development project to explore the redesigned admin, hierarchies, TanStack support, and MCP integration. For existing production deployments, use the patched 3.x release and evaluate the beta in staging.

Payload CMS 4.0 beta video preview

Watch the Payload CMS 4.0 beta video

What changed in Payload 4 during November 2026

Since my October 29 update, Payload has progressed from beta.5 to beta.10, with changes that affect production architecture and migration planning:

  • November 4, beta.7: security hardening. Payload flagged vital security updates, including checks on remote URL uploads, block access rules and allowed block types. Review the release notes and update affected projects promptly.
  • November 10, beta.8: MCP OAuth and on-demand media transformations. The MCP plugin gained built-in OAuth server and client login support, expanding beyond its earlier API-key-only integration. The media pipeline can apply saved transformations and generate declared sizes on request.
  • November 17, beta.10: MCP access controls and resumable uploads. An MCP access option limits who can use the integration. S3 and Azure storage adapters gained resumable upload sessions, while the admin UI can continue large uploads in the background.
  • Beta.10 compatibility and migration changes. The Next.js minimum increased to 16.4.5. Projects with custom cookiePrefix settings need to review normalisation: an empty prefix now defaults to payload, changing the auth cookie name.

These updates are particularly relevant if you use Payload as a digital asset management system or expose content operations to AI assistants. MCP authentication and permissions now deserve a fresh audit, and upload workflows should be tested against the exact storage adapter you deploy. These are beta capabilities, so validate behaviour in a disposable project before changing production infrastructure.

Sources: beta.7 release, beta.8 release, and beta.10 release.

Read Payload's official beta announcement and the Payload 3-to-4 migration guide for the primary sources. Below, I break down the changes that affect real Next.js and Payload codebases, including access control, versions, uploads, types, and framework adapters.

Tip

Product manager, designer, or business owner? This technical guide focuses on implementation. For budgeting, staffing, and upgrade risks, read Payload 4 for business owners.

Note

This guide is continuously maintained against the official Payload v4 migration guide, beta releases, and active RFCs. It reflects the architecture being finalized for the stable release.

Payload CMS 4 in short

  • Status: Payload 4 is available to try in public beta with npx create-payload-app@beta. Latest verified prerelease: v4.0.0-beta.10 (November 17, 2026). Latest stable 3.x: v3.94.0.
  • What is new: overrideAccess: false by default in the Local API, versions: true and authorship (createdBy / updatedBy) by default, Lexical 0.52 with Slate removed, sharp extracted to @payloadcms/transformer-sharp, a beta @payloadcms/tanstack-start adapter, and a rewritten MCP plugin.
  • Runtime baselines for v4: Node.js 24.22.1+, Next.js 16.4.5+ (Next adapter), TypeScript 6.0.3+. Check the version-specific migration guide before installing.
  • Should you upgrade? Keep client production sites on Payload 3.x while v4 is in prerelease, but audit your schemas, Local API queries, storage configs and auth types now.
  • Not technical? The business owner's guide to Payload 4 covers budget, team and risk without code.
Interactive Assessment Tool
Takes ~90 seconds•No sign-up required

Payload 4 Upgrade Readiness & Cost Estimator

Planning a Payload 3 to 4 migration? Answer 5 quick questions about your custom code, database state and runtime constraints to get a readiness verdict, an effort breakdown and a realistic budget range in under 90 seconds.

Launch 90-Second Estimator →

At a glance (v4 beta & migration tracker)

  • Current release train: v4.0.0-beta.10 (public beta since October 9, 2026; latest verified November 19, 2026). Try it with npx create-payload-app@beta.
  • Latest stable 3.x release: Payload v3.94.0 (recommended production baseline while v4 remains in beta).
  • Official migration guide: Payload 3.0 to 4.0 Migration Guide (GitHub main)
  • Automated codemod: Available via npx @payloadcms/codemod@beta (with interactive agent upgrade via npx @payloadcms/codemod@beta upgrade)
  • Minimum v4 runtime baselines: Node.js 24.22.1+, Next.js 16.4.5+, TypeScript 6.0.3+. Review beta.10 compatibility notes before upgrading.
  • Production recommendation: Run Payload 3.x for current client production deployments while Payload 4 is in prerelease beta, but audit schemas, Local API queries, storage configs, and auth types against the breaking changes outlined below.

Below is the practical technical breakdown of what is changing in Payload 4.0 across core architectural pillars, followed by a comprehensive production migration checklist and recommended upgrade workflow.


1. Breaking API changes and security defaults

The most consequential changes in Payload 4 involve subtle shifts in default behavior that directly affect application security and query performance.

overrideAccess: false by default in Local API

In Payload 3, invoking Local API methods (payload.find, payload.findByID, payload.create, etc.) without specifying overrideAccess effectively defaulted to bypassing access control. Local code executed with implicit superadmin privileges unless you explicitly passed overrideAccess: false alongside a user object.

In Payload 4, overrideAccess defaults to false:

typescript
// Payload 3 behavior:
// Executed as superadmin, ignoring collection access rules
const results = await payload.find({
  collection: 'orders',
});

// Payload 4 behavior:
// Enforces access control! If no user is present in req,
// this query runs as unauthenticated / public access.
const results = await payload.find({
  collection: 'orders',
  overrideAccess: true, // Required if you intend to bypass access control
});

The same Local API call follows different defaults depending on the Payload version:

Diagram

Without a user, access rules evaluate a public request. Use an explicit bypass only for trusted server-side work such as seeds and migrations.

This is a massive security hardening step. It prevents accidental data exposure in custom Next.js server actions, Route Handlers, and API endpoints where developers forgot to enforce user access. However, it will break existing cron jobs, migrations, seed scripts, and internal APIs that omitted overrideAccess: true.

Default relationship depth drops from 2 to 1

In Payload 3, relationship fields populated related documents up to a depth of 2 by default. While convenient for rapid prototyping, this frequently caused catastrophic query cascades on nested schemas, dragging database response times down on high-traffic sites.

In Payload 4, the default query depth is reduced from 2 to 1:

typescript
// Payload 3: populated post -> author -> author's avatar
// Payload 4: populates post -> author (author's avatar remains an ID string)
const post = await payload.findByID({
  collection: 'posts',
  id: '123',
});

// To restore deeper nesting on a specific query:
const postWithDeepRelations = await payload.findByID({
  collection: 'posts',
  id: '123',
  depth: 2,
});

One fewer populated level changes the response shape as well as the amount of database work:

Diagram

Solid arrows show populated relationships; the dashed arrow shows an ID reference. IDs may be strings or numbers depending on the adapter and ID configuration. Set depth: 2 on queries that need the avatar document.

You can restore the global default across your entire application in payload.config.ts:

typescript
export default buildConfig({
  defaultDepth: 2, // Restores Payload 3 global depth behavior
  // ...
});

Request creation API cleanup

The utility functions used to construct mock or synthetic Payload requests in custom endpoints and background workers have been standardized:

  • createLocalReq is removed and replaced by createPayloadRequest.
  • The old web-request-oriented createPayloadRequest is renamed to createPayloadRequestFromWebRequest.

Truthful configuration types (removal of DeepRequired)

In Payload 3, internal sanitized types like SanitizedConfig and SanitizedCollectionConfig wrapped properties in DeepRequired. This created a false sense of security in TypeScript, masking fields that were actually undefined at runtime.

Payload 4 removes DeepRequired from sanitized config types. If your plugins or custom admin components inspect config or collection settings, TypeScript may now flag properties that require explicit optional chaining (config.admin?.user).

Synchronous sanitization

Config sanitization and rich-text schema sanitization routines that previously returned Promises in multiple lifecycle stages have been refactored into synchronous functions, reducing asynchronous overhead during application bootstrap.

payload.validate() and the new 'validate' hook operation

Payload 4 adds first-class, on-demand document validation via payload.validate(). While useful for multi-step wizards, draft preflighting, and headless validation endpoints, it introduces a critical hook lifecycle change:

beforeValidate and beforeChange hooks can now receive:

typescript
operation === 'validate'

If your hooks trigger external side effects—such as charging a customer via Stripe, sending emails, dispatching webhooks, or syncing documents to Algolia or Meilisearch—you must guard those hooks against running during validation:

typescript
const syncToSearchIndex: CollectionBeforeChangeHook = async ({ data, operation }) => {
  // Guard against on-demand validation calls:
  if (operation === 'validate') {
    return data;
  }

  // Safe to execute side effects during create or update:
  await searchIndex.saveObject(data);
  return data;
};

Without this guard, validating user input in an admin form or API route will unintentionally fire external webhooks and third-party mutations.


2. Database architecture: versions and authorship by default

Payload 4 makes a fundamental shift in how document history, auditing, and database schemas are handled.

versions: true by default across collections and globals

In Payload 3, collections and globals did not maintain document versions unless you explicitly configured versions: { drafts: true } or versions: true.

In Payload 4, versioning is enabled by default for all collections and globals, while drafts remain disabled by default. The default maximum history is capped at 100 versions. Auth collections are the critical exception and remain unversioned by default.

Warning

If you upgrade an existing project without modifying your config, Payload 4 will generate migration scripts to create _versions database tables for every single collection and global in your schema!

If you operate a high-volume database or prefer lean, unversioned tables, you must explicitly opt out:

typescript
export const Invoices: CollectionConfig = {
  slug: 'invoices',
  versions: false, // Explicitly disable versions to prevent _invoices_versions table creation
  fields: [/* ... */],
};

For a relational adapter, the versioning decision determines which tables a migration must create:

Diagram

This shows the main and version-history tables, not every auxiliary table. MongoDB uses collections instead. Review generated migrations before applying them; the built-in Users collection explicitly disables versions.

To manage this transition cleanly across large codebases, Payload provides two dedicated codemods:

bash
# 1. Preserves existing v3 schemas by inserting versions: false across unversioned collections:
npx @payloadcms/codemod --transform migrate-versions-default

# 2. Cleans up redundant bare versions: true declarations once upgraded:
npx @payloadcms/codemod --transform remove-versions-true

For teams managing production PostgreSQL instances, read our guide on why you should stop running Payload CMS in push mode and switch to migration-only workflows.

readVersions permission inheritance risk

Previously, if a collection enabled versions without defining a specific readVersions access control function, version queries defaulted to requiring full authentication.

In Payload 4, if readVersions is undefined, it inherits the collection's standard read access rule. If a collection has public read access, its published historical versions share that read access unless explicitly restricted with a dedicated readVersions rule:

typescript
export const Articles: CollectionConfig = {
  slug: 'articles',
  access: {
    read: () => true, // Publicly readable articles
    readVersions: ({ req: { user } }) => Boolean(user), // Restrict version history to authenticated staff!
  },
  fields: [/* ... */],
};

Without an explicit readVersions rule, anonymous visitors could potentially inspect draft revisions or historical snapshots through version query endpoints.

Authorship enabled by default (createdBy and updatedBy)

Payload 4 introduces automatic document authorship tracking. When authentication is configured on the instance, Payload automatically injects createdBy and updatedBy relationship fields into all non-internal collections and globals.

  • Schema impact: For relational/SQL databases (PostgreSQL, SQLite), this adds new foreign key columns (created_by_id, updated_by_id), requiring a generated schema migration.
  • Initial data: Existing documents migrated from Payload 3 will initially have null values for these authorship fields until updated.
  • Opting out: If you run high-throughput event logs, anonymous collections, or want to prevent schema changes on existing tables, you can disable authorship per-collection or across your config with authorship: false:
typescript
export const WebhookLogs: CollectionConfig = {
  slug: 'webhook-logs',
  authorship: false, // Prevents injecting createdBy and updatedBy fields
  fields: [/* ... */],
};

Payload provides an automated codemod to freeze existing Payload 3 collection behaviors:

bash
npx @payloadcms/codemod --transform migrate-authorship-default

Database adapter type exports

Import paths for database adapters have been flattened. Subpath imports like @payloadcms/db-postgres/types and @payloadcms/db-mongodb/types have been eliminated. All types and utilities now export directly from the package root:

typescript
// Payload 3:
import type { DrizzleConfig } from '@payloadcms/db-postgres/types';

// Payload 4:
import type { DrizzleConfig } from '@payloadcms/db-postgres';

3. Auth, security, and request typing

Authentication in Payload 4 undergoes both architectural hardening and a major TypeScript overhaul.

Unified user types and typed req.user

In Payload 3, user typing was fragmented across TypedUser, UntypedUser, and ClientUser. Access control functions and custom hooks frequently forced developers to cast req.user as User to avoid lint and compiler errors.

Payload 4 consolidates these types into two primary constructs:

  • User: The generic representation of a user document in your system.
  • AuthenticatedUser: The strongly-typed user attached to an authenticated request.

Via PR #17151, req.user is now properly typed as AuthenticatedUser throughout all hooks, endpoints, and access control callbacks. Crucially, req.user now natively includes runtime authentication metadata:

typescript
// Access control function in Payload 4:
export const canEditTenant: Access = ({ req }) => {
  if (!req.user) return false;

  // Strongly typed runtime auth properties:
  const strategy = req.user._strategy; // e.g., 'jwt', 'api-key'
  const sessionId = req.user._sid;     // Active session identifier

  return req.user.role === 'admin';
};

This eliminates the need for manual type assertions in multi-tenant authorization hooks and audit logging workflows. For real-world implementation patterns, see our guide on building a production-ready multi-tenant architecture with Next.js and Payload.

Versioned JWT tokens (authVersion: 1)

JWT tokens issued by Payload 4 now include an authVersion: 1 field embedded directly within the signed protected JWT header. The token payload shape remains compact and performant, but header versioning establishes strict token lifecycle rules:

  1. Token rejection & re-authentication: Payload 4 rejects tokens lacking the supported version marker. However, tokens issued by patched Payload 3 releases already include this marker; if your secrets and auth configuration remain identical, active sessions can persist across the upgrade. Tokens from unpatched or older releases will be rejected, requiring users to sign in again and headless client integrations to reissue stored bearer tokens.
  2. External JWT validation: If your edge middlewares, microservices, or external APIs validate Payload JWTs independently, import and verify against Payload's exported JWT_AUTH_VERSION constant rather than hardcoding numeric values.
  3. Safe strategy rotations: In-flight token rotations and authentication strategy migrations can be performed without session corruption or silent deserialization failures.

Legacy API key regeneration (removal of SHA-1 fallback)

Payload 4 completely removes the legacy SHA-1 hashing fallback for API keys.

Warning

Any user or collection API keys created prior to Payload 3.46.0 that have not been re-saved or updated must be regenerated before or immediately after upgrading. Requests using un-migrated SHA-1 keys will fail authentication in Payload 4.


4. Admin UI, semantic tokens, and framework-neutral component architecture

Payload's admin panel receives its most substantial design refresh since the 3.0 launch, focusing on visual density, custom branding, modern frontend styling, and complete framework decoupling.

Diagram

The sidebar organizes content; drawers keep related editing in context. CSS tokens control the presentation, reset isolation supports custom Tailwind views, and framework-neutral UI primitives eliminate direct Next.js dependencies.

Component configuration alignment for Globals

In Payload 3, configuring custom admin components for globals used a different property structure than collections (admin.components.elements vs admin.components.edit).

Payload 4 unifies globals with collections:

  • globalConfig.admin.components.elements is renamed to globalConfig.admin.components.edit.
  • Globals gain full parity with collections for defining custom views, tabs, and action bars.

Elimination of Sass in favor of semantic CSS tokens

The legacy Sass (scss) build pipeline has been completely removed from @payloadcms/ui. All admin styling now relies on pure CSS and semantic design tokens configured via CSS variables.

This provides two major wins:

  1. Effortless admin theming: Agencies and platform builders can rebrand the Payload admin interface by overriding standard tokens (brand colors, neutral scales, surface radiuses, borders) without compiling Sass assets or overriding deeply nested CSS classes.
  2. Faster build times: Removing Sass eliminates heavy preprocessing steps during local development and containerized deployments.

Tailwind CSS reset isolation

In Payload 3, using Tailwind CSS or component libraries like shadcn/ui inside custom admin views was prone to style pollution: the admin panel's base styles bled into Tailwind elements, while Tailwind's Preflight reset broke default Payload field styling.

Payload 4 adopts an isolated CSS reset strategy. Custom admin views, custom fields, and dashboard widgets can now use modern Tailwind classes without conflict, making it seamless to construct bespoke client experiences.

Native hierarchies, folders, and tags

Payload 4 brings hierarchical content organization into core:

  • Folders: Single-parent containment for grouping pages, documents, and media assets.
  • Tags: Multi-dimensional categorization across collections.
  • Sidebar tabs & grid view: The admin sidebar supports expandable tabs and custom navigational panels, allowing editors to browse documents via content trees or visual grid views rather than flat, paginated tables.

This reduces the need for community plugins like nested-docs and aligns with how enterprise editorial teams organize large publishing corpuses. For an assessment of editor workflows, see our Payload CMS for publishing teams review.

Framework-neutral admin components and navigation hooks

The most significant structural change for custom admin views is that @payloadcms/ui is now completely framework-neutral.

In Payload 3, custom admin components routinely imported routing and navigation utilities directly from Next.js (next/navigation or next/link). In Payload 4, these direct Next.js dependencies are removed:

  • Replace useRouter, usePathname, useParams, and useSearchParams from next/navigation with the corresponding hooks imported from @payloadcms/ui.
  • Replace <Link> from next/link with the universal Link component from @payloadcms/ui.
  • Legacy subpaths under @payloadcms/next/client, @payloadcms/next/rsc, and @payloadcms/next/templates have been relocated directly into @payloadcms/ui.

This abstraction allows identical custom fields, views, and dashboards to render seamlessly across both Next.js and TanStack Start runtimes.

Breaking APIs for custom admin and plugin developers

Developers authoring custom plugins or bespoke admin fields should audit their components against several renamed APIs:

Payload 3 APIPayload 4 APINotes
admin.components.elements (Globals)admin.components.editAligns globals with collection component structure
Field *Component types*Props (e.g. TextFieldClientProps)Component prop types standardize on explicit props interfaces
Diff comparisonValue / versionValuevalueFrom / valueToCleaner semantics in version comparison components
AdminContext.headersAdminContext.req.headersRequest headers are grouped under the inner req object
AdminContext.languageCodereq.i18n.languageStandardized localization access
useField().readOnlyUse component readOnly propForm state hook no longer tracks readOnly directly
DiffMethod and diffMethod propRemovedDiff calculation has been unified

The official codemod (npx @payloadcms/codemod@beta) includes automated transforms for the majority of these component renames.


5. Lexical modernization and the removal of Slate

Rich text editing in Payload 4 takes a definitive step forward, retiring legacy architectures in favor of modern AST standards.

@payloadcms/richtext-slate and migration utilities are removed

The legacy Slate rich-text adapter is officially deleted in Payload 4, and @payloadcms/richtext-lexical is now the sole official, built-in rich-text engine.

Crucially, Payload 4 also removes the legacy Slate-to-Lexical migration utilities. Projects still using Slate cannot migrate their data directly within a Payload 4 installation.

[!IMPORTANT] Projects still using Slate must complete their rich-text data migration on the latest patched Payload 3.x release (v3.94.0 as of November 19, 2026). Verify the converted Lexical documents in staging before upgrading to Payload 4.

bash
# Complete this migration while still on Payload 3.x:
pnpm remove @payloadcms/richtext-slate
pnpm add @payloadcms/richtext-lexical

Once all rich-text fields have been converted to Lexical node trees on Payload 3, the codebase is ready for the v4 upgrade.

Lexical 0.52.0 upgrade and schema enhancements

Payload 4 upgrades the underlying Lexical framework from version 0.41 to Lexical 0.52.0. Key enhancements include:

  • Upstream Lexical breaking changes: Teams maintaining custom Lexical nodes or consuming internal Lexical APIs directly must review upstream 0.52 changes regarding node serialization, selection state, and editor command listeners.
  • TableFeature graduation: EXPERIMENTAL_TableFeature is stabilized and renamed to TableFeature.
  • Stricter link nodes: Link node structures are validated against stricter schemas, preventing malformed URLs and broken target attributes.
  • Self-describing node schemas: Lexical nodes now provide their own runtime JSON Schemas. Furthermore, the internal Lexical node version property is no longer required in schemas exposed through CLI commands and MCP agent interfaces.
  • Removal of deprecated converters: Legacy HTML/Markdown converter functions from early 3.x releases have been pruned in favor of the unified @payloadcms/richtext-lexical converter utilities.

6. List view performance and the Select API

Query efficiency in the admin panel has been overhauled to handle collections with millions of rows.

List View Select API enabled by default

In Payload 3, loading an admin list view fetched entire document objects from the database unless you explicitly configured admin.enableListViewSelectAPI: true. On collections with large rich-text fields or deep relations, opening the admin table caused significant server memory consumption and slow query times.

In Payload 4:

  • The Select API is active by default.
  • The config option admin.enableListViewSelectAPI has been removed.
  • Payload automatically crafts database queries that project only the columns currently visible in the editor's active table view.

forceSelect replaced by Collection/Global select() function

In Payload 3, collections and globals could define a static forceSelect object to ensure critical fields (such as permissions, slugs, or tenant IDs) were always returned from database queries.

In Payload 4, the static forceSelect object is removed and replaced by a dynamic, top-level select() function that receives the current operation, request, and the caller's requested field selection:

typescript
export const Posts: CollectionConfig = {
  slug: 'posts',
  // Replaces the caller's selection; merge incoming fields to retain caller projections:
  select: ({ select }) => (select ? { ...select, title: true, slug: true } : undefined),
  fields: [/* ... */],
};

Warning

Unlike Payload 3's automatic deep-merging behavior, the new select() function completely replaces the incoming query selection. If a caller requests { id: true } and your select function returns { title: true, slug: true }, the id field will be excluded unless you explicitly spread ...select!

Payload provides an automated codemod to rewrite legacy static objects:

bash
npx @payloadcms/codemod --transform migrate-force-select

7. Uploads, storage transformers, and file versioning

File handling and digital asset processing undergo their largest architectural transformation since Payload 1.0. Payload 4 decouples image manipulation from the server runtime, standardizes storage adapters, and adds native file versioning.

Sharp extracted to @payloadcms/transformer-sharp

In Payload 3, the heavy Sharp image processing library was baked directly into Payload's core engine, requiring native C++ binary bindings even for deployments that only stored raw PDFs or offloaded transformations to third-party CDNs.

In Payload 4, image transformation is fully pluggable:

  • Sharp has been extracted into the standalone package @payloadcms/transformer-sharp.
  • The top-level sharp configuration option in payload.config.ts has been removed.
  • Image resizing and format conversion are now configured under upload.transformers.
typescript
import { buildConfig } from 'payload';
import { sharpTransformer } from '@payloadcms/transformer-sharp';

export default buildConfig({
  upload: {
    transformers: [
      sharpTransformer(), // Explicitly registers Sharp for image processing
    ],
  },
  // ...
});

imageSizes renamed to variants (doc.sizes → doc.variants)

With transformers decoupled from core, the concept of static imageSizes has been unified into transformer variants.

Crucially, this renames the stored document property:

typescript
// Payload 3:
const url = doc.sizes?.thumbnail?.url;

// Payload 4:
const url = doc.variants?.thumbnail?.url;

This is a comprehensive breaking change that touches frontend UI components, image loaders, GraphQL queries, custom selects, and database tables.

[!CAUTION] Database migration danger for SQL users: Do not rely on an automatic payload migrate:create schema diff for this rename! An auto-generated migration may attempt to DROP COLUMN sizes_* and ADD COLUMN variants_*, permanently destroying existing image metadata. Instead, execute Payload's official predefined sizes-to-variants database migration script to rename columns safely in place.

Native file versioning and original preservation

Upload collections in Payload 4 retain the original, unmodified file across asset revisions and thumbnail regenerations:

  • Original files are preserved on storage disks with an -original filename suffix.
  • Documents gain new native metadata columns: original, prefix, and _objectKey.
  • Storage adapters now require a copyFile operation to support non-destructive file duplication across document versions.
  • Relational database schemas (PostgreSQL, SQLite) require migrations to add these new file tracking columns to all upload collections.

Top-level storage adapters and /api/upload-instructions

Storage adapters (such as S3, Cloudflare R2, Azure, and Google Cloud Storage) have been promoted from external plugins to first-class, top-level configuration options under config.storage.

Direct-to-storage client uploads have also been unified across all official adapters via a standardized endpoint:

code
POST /api/upload-instructions

Clients receive signed pre-authenticated URLs and headers, uploading binaries directly to cloud bucket storage without proxying multi-megabyte payloads through the Node.js server process.

Strict upload limits (upload.abortOnLimit: true)

In Payload 3, when an uploaded file exceeded configured size limits, certain streaming paths could truncate the file and proceed.

In Payload 4, upload.abortOnLimit defaults to true. Any file upload exceeding collection or server limits is immediately aborted and rejected with an explicit HTTP 413 (Payload Too Large) status code, preventing partial or corrupted media writes.


8. Developer tooling, CLI, codemods, and JSON Schema

Payload 4 introduces first-class CLI commands, automated migration tooling, and runtime schema generation to streamline upgrades and developer experience.

The official migration codemods (npx @payloadcms/codemod@beta)

Payload provides both mechanical AST codemods and an interactive upgrade assistant:

bash
# Automated mechanical code transforms:
npx @payloadcms/codemod@beta

# Interactive, agent-assisted upgrade workflow:
npx @payloadcms/codemod@beta upgrade

The codemod inspects your repository and automatically performs mechanical transformations:

  • Injects versions: false into collections that lacked explicit versioning, preserving existing database schema shapes.
  • Injects authorship: false for teams electing to opt out of automatic createdBy/updatedBy tracking.
  • Replaces deprecated request utilities (createLocalReq → createPayloadRequest).
  • Updates global component structures (admin.components.elements → admin.components.edit).
  • Migrates database adapter subpath imports to root exports (@payloadcms/db-postgres/types → @payloadcms/db-postgres).
  • Adjusts static forceSelect objects to dynamic select() functions.
  • Migrates custom admin component imports from Next.js to @payloadcms/ui.

[!IMPORTANT] The codemod is an accelerator, not proof of completion. It deliberately flags complex custom access control functions, deep relationship queries, and custom database migrations for manual developer audit.

Redesigned custom CLI commands (config.cli.commands)

In Payload 3, registering custom CLI scripts relied on configuring config.bin, which lacked schema-backed argument parsing and proper database lifecycle handling.

Payload 4 eliminates config.bin and the legacy migrateCLI export in favor of config.cli.commands, utilizing the defineCLICommand helper from payload/cli:

typescript
// src/cli/seed.ts
import { strictObject, z } from 'payload';
import { defineCLICommand } from 'payload/cli';

export const seedCommand = defineCLICommand({
  description: 'Seed the database with sample products and tenants.',
  input: strictObject({
    clear: z._default(z.boolean(), false),
  }),
  handler: async ({ args, getPayload }) => {
    // getPayload handles DB connection pooling and lifecycle cleanly:
    const payload = await getPayload();
    payload.logger.info(`Seeding database (clear=${args.clear})...`);
    
    if (args.clear) {
      await payload.delete({ collection: 'products', where: {} });
    }
  },
});

Register the command in payload.config.ts:

typescript
export default buildConfig({
  cli: {
    commands: {
      seed: './src/cli/seed.js#seedCommand',
    },
  },
  // ...
});

Custom commands are integrated directly into the root Payload executable and appear in payload --help (without needing the old payload cli <command> prefix).

Runtime jsonSchema and schema synthesis

On field configurations, typescriptSchema has been renamed to jsonSchema. Rather than merely generating static TypeScript types at build time, jsonSchema is preserved at runtime:

  • Runtime MCP validation: The Model Context Protocol integration uses JSON Schema to validate LLM tool payloads against exact field definitions.
  • Lexical node schemas: Individual Lexical rich-text nodes now expose their own JSON Schemas.
  • API updates: configToJSONSchema returns both JSON Schema and TypeScript type definitions; fieldsToJSONSchema accepts an options object; and rich-text outputSchema is renamed to jsonSchema.

9. Model Context Protocol (MCP) and agent workflows

AI-assisted engineering is a first-class architectural pillar of Payload 4. Rather than an experimental add-on, the @payloadcms/mcp package is rewritten as a tightly integrated subsystem with a refined security and authentication model.

Diagram

Payload MCP operations must respect the authenticated user's permissions. The October beta supported standard user API keys; November's beta.8 introduced OAuth authentication and beta.10 added an access option for limiting MCP usage. Verify both authentication and authorisation for the transport and client you actually deploy.

Rewritten authentication and transport architecture

The v4 MCP integration introduces several critical breaking changes:

  1. User API keys and OAuth: Payload replaced the early dedicated payload-mcp-api-keys collection with standard Payload user credentials. The November beta.8 MCP plugin also introduced built-in OAuth server and client login support. Test your chosen login flow and session behaviour before exposing tools outside a trusted environment.
  2. POST streamable HTTP transport: Payload 4 removes the legacy Server-Sent Events (SSE) configuration in favor of high-performance POST streamable HTTP requests.
  3. Opt-out generic tools: Collections and globals are exposed to AI agents by default via standardized generic tools (findDocuments, createDocuments, updateDocument, deleteDocuments, countDocuments). You can selectively disable tools or hide sensitive collections in collection configs via mcp.tools: false.
  4. Auth collections remain opt-in: Authentication collections (such as Users) are not exposed by default. Exposing auth operations to AI agents requires explicit configuration.
  5. Custom tools signature: Custom MCP tools now define arguments using input (replacing parameters), and handlers receive a structured context object containing args, payload, and req.
  6. Return shape optimization: To conserve LLM context windows, document creation and update tools return only IDs by default. Clients requiring full objects must specify returning: true.
  7. Secure URL uploads: Direct file uploads initiated by AI agents via URLs require an explicit domain whitelist configured under pasteURL.allowList.
  8. Native LLM/Agent Instructions: Payload core now manages agent instructions directly on collections and globals. These instructions are surfaced to AI assistants through CLI commands and MCP schema discovery, providing agents with domain-specific editorial rules and validation guidance.

10. Framework ecosystem and TanStack Start

Payload 3 tied itself intimately to Next.js and the React Server Components (RSC) App Router. While Next.js remains the primary tier-one platform, Payload 4 establishes an abstracted, framework-neutral runtime boundary.

@payloadcms/tanstack-start beta adapter

Payload 4 officially enters beta with first-party TanStack Start support. The @payloadcms/tanstack-start adapter decouples Payload backend execution and admin rendering from Next.js, targeting:

  • TanStack Start (SSR server framework)
  • TanStack Router (Type-safe client routing)
  • Vite (Next-generation local bundler)

The v4.0.0-beta.2 release pinned the adapter to stable upstream TanStack dependencies:

  • @tanstack/react-start ^1.169.1
  • @tanstack/react-router ^1.170.44

Beta.2 also introduced dedicated TanStack documentation and first-class support for custom API routes.

Note

Payload 4 itself remains in active prerelease beta. While TanStack Start support is fully functional and actively documented, engineering teams evaluating TanStack for client deliverables should validate framework-specific behaviors—such as server functions, cookie handling, and streaming responses—in staging before production rollout.

The adapter boundary lets framework-specific rendering and routing connect to the same Payload configuration:

Diagram

These are alternative framework integrations, not two runtimes required by one deployment. Next.js remains the primary path; evaluate the TanStack adapter in staging before production migration.

Minimum runtime baselines

Running Payload 4 requires modern infrastructure. The minimum supported runtime versions across the v4 release branch are:

PrerequisiteMinimum VersionNotes
Node.js>= 24.22.1Confirm against the selected beta and deployment image
Next.js (if using Next adapter)>= 16.4.5Beta.10 raised the minimum Next.js requirement
TypeScript>= 6.0.3Required for advanced type inference and runtime schema synthesis

For details on optimizing modern Next.js deployments, see our analysis on Payload CMS and Next.js compatibility.


11. Jobs, localization, and operational breaking changes

Beyond core schemas and access control, Payload 4 introduces several operational refinements across background tasks, multilingual publishing, and transactional emails.

Jobs API security and schema hardening

Payload 4 hardens the Jobs framework for enterprise queue reliability:

  • Access control enforcement: Local API calls within the Jobs API now default overrideAccess to false. Generic CRUD access on the internal payload-jobs collection is denied by default.
  • Removed legacy properties: jobs.depth and jobs.runHooks have been removed.
  • Native metrics: Job stats and queue metadata are now enabled by default. Concurrency management fields and parent-task logging are always active.
  • Type renames: TaskType and WorkflowTypes are renamed to TaskSlug and WorkflowSlug.
  • Atomic job claiming: Database adapters require an updateJobs implementation to support atomic, race-condition-free worker claiming. SQL installations using jobs may require generated schema migrations.
  • Stricter cron validation: Schedule parsing now uses stricter Croner validation; malformed cron strings will throw configuration errors at bootstrap.

Localization: active-locale publishing

Editorial workflows on multilingual sites receive an important behavioral update:

  • Active-locale publication by default: In Payload 4, clicking the primary Publish button on a localized document publishes only the currently active locale.
  • Publishing all locales: Publishing every locale simultaneously is now a secondary action in the publish dropdown.
  • Removed options: The legacy localization.defaultLocalePublishOption configuration and the old nested-localization compatibility flag have been removed.

This change prevents editors working on a regional translation (e.g., German or French) from accidentally publishing incomplete or draft content in other locales.

Nodemailer 10 and transactional email

The @payloadcms/email-nodemailer adapter has been updated to Nodemailer 10.

  • If your application configures Nodemailer using transportOptions or default SMTP settings, no changes are required.
  • If you instantiate and pass a custom Nodemailer 9 transport instance, you must upgrade your project dependency to Nodemailer 10 and remove @types/nodemailer (which are now bundled natively).

The Production Upgrade Checklist: 10 Critical Checks

Moving from Payload 3 to Payload 4 requires more than running an automated codemod. Use this 10-point checklist to audit your application before deploying database migrations:

Diagram

Treat each phase as an explicit gate. Never run auto-generated migrations against production without testing predefined data scripts on a database snapshot.

  1. Slate-to-Lexical pre-migration: Complete all rich-text conversions while running Payload 3.91.0. Slate adapters and migration converters are completely absent in Payload 4.
  2. Audit Local API and Jobs calls (overrideAccess: false): Search your codebase for payload.find, payload.create, and Jobs invocations that omit overrideAccess. Add overrideAccess: true to background workers, seed scripts, and admin tasks.
  3. Review document versioning and readVersions: Check whether collections should inherit versions: true (with 100 history limit) or be explicitly set to versions: false. Verify that publicly readable collections have an explicit readVersions rule to prevent historical draft leakage.
  4. Prepare for authorship fields: Review whether createdBy and updatedBy relationships should be injected across collections, and prepare relational databases for the resulting foreign key columns.
  5. Storage transformers and variants rename: Install @payloadcms/transformer-sharp and register it in upload.transformers. Update frontend code from doc.sizes to doc.variants. Run Payload's predefined sizes-to-variants migration rather than an auto-generated schema diff.
  6. Guard hooks against payload.validate(): Review beforeValidate and beforeChange hooks to ensure third-party side effects (payments, webhooks, search indexing) check if (operation === 'validate') return data;.
  7. Refactor custom Admin UI imports: Replace next/navigation and next/link imports in custom admin components with universal hooks and <Link> from @payloadcms/ui. Audit field props (*Props) and diff variables (valueFrom / valueTo).
  8. Migrate MCP credentials to User API keys: Recreate legacy payload-mcp-api-keys as standard user API keys. Switch transport configurations to POST streamable HTTP and review collection tool exposure.
  9. Verify runtime baselines: Check that production candidates, CI runners and Docker images meet Node.js >= 24.22.1, Next.js >= 16.4.5 with the Next adapter, and TypeScript >= 6.0.3; review the beta-specific release notes.
  10. Test database migrations on a staging snapshot: Run generated migrations against a fresh clone of production data, verifying table creations, authorship foreign keys, and file version columns before touching live databases.

Recommended upgrade path

When you are ready to evaluate the upgrade in a test environment:

1. Complete prerequisites on Payload 3.x

Ensure your application is on Payload v3.94.0 or the latest patched 3.x release. If any collections use Slate rich text, run the 3.x Slate-to-Lexical converter and verify your documents.

2. Branch cleanly and upgrade packages

Create a dedicated migration branch:

bash
git checkout -b feature/payload-4-beta-upgrade

Upgrade your @payloadcms/* packages to the @beta distribution tag:

bash
# Update dependencies to the latest v4 beta:
pnpm up "@payloadcms/*@beta" "payload@beta"

3. Run the automated codemods

Execute Payload's upgrade codemod to perform mechanical AST rewrites:

bash
# Interactive, agent-assisted upgrade:
npx @payloadcms/codemod@beta upgrade

# Or apply specific mechanical transforms:
npx @payloadcms/codemod@beta --transform migrate-versions-default
npx @payloadcms/codemod@beta --transform migrate-authorship-default
npx @payloadcms/codemod@beta --transform migrate-force-select

4. Run TypeScript verification

Check for API signature changes, component prop updates, and removal of DeepRequired:

bash
npx tsc --noEmit

5. Apply predefined and custom migrations

Execute the official sizes-to-variants migration script to preserve image metadata. Then generate and inspect your schema migrations:

bash
pnpm payload migrate:create

Inspect the generated migration file to ensure no unintended column drops occur, then apply it against your local database:

bash
pnpm payload migrate

6. Validate access control and storage uploads

Run your integration test suite, verifying:

  • Local API queries in background tasks return expected datasets (overrideAccess: true).
  • Public API endpoints cannot leak unpublished version history.
  • Media uploads generate correct variants and enforce the upload.abortOnLimit 413 ceiling.
  • MCP tools properly authenticate with User API keys over POST streamable HTTP.

Need help with the Payload 3 to 4 migration?

If you want an experienced team to audit your schemas, plugins, and custom admin extensions ahead of the stable v4 rollout, schedule a Payload CMS audit or engage an expert Payload CMS developer. For larger replatforming initiatives, explore our dedicated Payload CMS migration services.

Interactive Assessment Tool
Takes ~90 seconds•No sign-up required

Size the migration before you commit

The Payload 4 upgrade quiz gives you a readiness verdict for your site, and the Payload CMS cost estimator helps you budget the wider project. If you would rather talk it through, get in touch.

If you are not the one writing the code, send your stakeholders the Payload 4 guide for business owners.

Payload CMS 4 FAQ

Is Payload CMS 4 released yet?

Payload 4 has been available to try in public beta since October 9, 2026. The latest verified prerelease is v4.0.0-beta.10 (November 17, 2026). Start a new project with npx create-payload-app@beta. As of November 19, a stable 4.0 release date has not been confirmed.

What are the biggest breaking changes in Payload 4?

The ones that most often affect real projects are overrideAccess: false by default in the Local API, versions: true by default across collections and globals, authorship fields enabled by default, the removal of Slate in favour of Lexical 0.52, sharp moving to @payloadcms/transformer-sharp, and imageSizes being renamed to variants. The sections above cover each one with migration steps.

Should I upgrade to Payload 4 now?

For existing client production deployments, use the latest patched Payload 3.x release (v3.94.0 as of November 19, 2026) while v4 remains in beta. Try v4 in an isolated development environment, audit access controls and MCP authentication, and complete Slate-to-Lexical conversion before migrating real data.

What do I need to run Payload 4?

For the current beta, plan for Node.js 24.22.1 or newer, Next.js 16.4.5 or newer when using the Next adapter, and TypeScript 6.0.3 or newer. Check the selected beta's migration guide for changes.

Is there a tool that automates the migration?

Yes. The official codemods run via npx @payloadcms/codemod@beta, and npx @payloadcms/codemod@beta upgrade starts the interactive, agent-assisted workflow. You still need to review database migrations and access control by hand.

Comments