Expanded Plugin API β New definePlugin helper introduces opt-in execution ordering, cross-plugin discovery via a slug-keyed plugins map, and module augmentation for type-safe plugin options. The existing (config) => config contract remains unchanged. #16247
import { definePlugin } from 'payload'
export const seoPlugin = definePlugin<SEOPluginOptions>({
slug: 'plugin-seo',
order: 10,
plugin: ({ config, plugins, collections, generateTitle }) => ({
...config,
// collections and generateTitle come from SEOPluginOptions
}),
})
Profiling Utilities β Lightweight timeSync and timeAsync wrappers for measuring function execution time during development. Wrap any function to capture its duration, then call printProfileResults for a formatted timing table. Not intended for production use. #16198
Internal Plugin Priority & Slug API β Plugins can now attach priority, slug, and options properties for execution ordering and cross-plugin discovery. Lower priority runs first; other plugins can find each other by slug via config.plugins without imports. Marked @internal for now. #16244
Hidden Slug Field Buttons on Read-Only β The Generate and Lock/Unlock buttons on slug fields are now automatically hidden when the field is read-only, removing controls that serve no purpose in that state. #14824
Agent Flag for CPA (cpa) β create-payload-app now supports a --agent / -a flag (claude, codex, cursor) that downloads the Payload coding skill from GitHub and installs it in the correct directory for your agent. A root-level CLAUDE.md or AGENTS.md is written for discoverability. Use --no-agent to skip. #16278
UUIDv7 Support (drizzle) β New idType: 'uuidv7' option for Postgres and SQLite adapters generates time-ordered UUIDs that are friendlier for B-tree indexes than random v4 UUIDs, while using the same storage column type. IDs are generated in application code so older Postgres versions are supported. #16113
Custom Email Headers (email-resend) β The Resend adapter now passes custom headers from sendEmail options to the Resend API, enabling features like List-Unsubscribe headers that were previously silently dropped. #15645
await payload.sendEmail({
from: "Test <test@domain.com>",
to: "jimmybillbob@example.com",
subject: "Email with custom headers",
html: html,
headers: {
"List-Unsubscribe": "<https://domain.com/unsubscribe>",
"List-Unsubscribe-Post": "List-Unsubscribe=One-Click",
},
});
Custom Collection Views (next) β Register custom views at the collection level via admin.components.views[key] with a Component and path. Folders take routing precedence over custom views on upload collections. #16243
{
slug: 'products',
admin: {
components: {
views: {
grid: {
Component: '/components/GridView',
path: '/grid',
exact: true,
},
},
},
},
}
Checkbox Label Clarity (plugin-form-builder) β The form builder checkbox field label was changed from "Default Value" to "Checked by default" to eliminate confusion about whether the checkbox toggles a default value or sets the initial checked state. #15229
Extensible MCP Plugin (plugin-mcp) β External plugins can now extend plugin-mcp by finding it via slug in config.plugins and injecting custom MCP tools into its options. Also exports the MCPPluginConfig type for type-safe tool injection. #16245
View Override System for Custom Node Rendering (richtext-lexical) β β οΈ Experimental. Override how any Lexical node type is rendered in the editor via view maps. Supports custom DOM, React components, or HTML strings. Works in both the admin editor and frontend JSX serialization for WYSIWYG consistency. #14244
export const myViews: LexicalEditorViewMap = {
default: {
heading: {
createDOM() {
const h2 = document.createElement('h2')
h2.textContent = 'Custom Heading'
return h2
},
},
horizontalRule: {
Component: () => <div className="custom-hr">---</div>,
},
link: {
html: '<a href="#">Custom Link</a>',
},
},
}
{
fields: [
{
name: 'content',
type: 'richText',
editor: lexicalEditor({
views: '/path/to/views.tsx#myViews',
}),
},
]
}
Composite Prefixes for Storage Adapters (storage-*) β New useCompositePrefixes option combines collection and document prefixes instead of one overriding the other. Also fixes a bug where client uploads ignored document prefix entirely. Applies to S3, Azure, GCS, R2, and Vercel Blob. #16230
| Mode | Collection Prefix | Doc Prefix | Result |
|------|------------------|------------|--------|
| false (default) | media-folder | user-123 | user-123/file.jpg |
| true | media-folder | user-123 | media-folder/user-123/file.jpg |
undefined fields (#16272) (4b4d61c)position (#14390) (d9b3c07)drizzle-orm to 0.45.2 to resolve an SQL injection vulnerability and pg to 8.20.0 (#16168) (af1a932)getPrimaryDb is used for all write operations (#16240) (aa44649)