v3.77.0
📦 payload-cmsView on GitHub →
✨ 4 features🐛 15 fixes🔧 17 symbols
Summary
This release introduces consistency for API depth across local and remote calls and adds support for custom IDs during document creation via `db.create`. It also includes numerous bug fixes across plugins like MCP, cloud-storage, and import-export, alongside updating the MCP plugin dependency.
Migration Steps
- If you use the MCP plugin, update your configuration to use `mcpPlugin` which now relies on `mcp-handler`. Review the new configuration options like `disableSse`, `onEvent`, and `redisUrl`.
- If you rely on `req.query.depth` in hooks during Local API calls, note that it will now automatically reflect the `depth` option passed to methods like `payload.find()`. Adjust any logic that previously expected `req.query.depth` to be absent or different during local calls.
✨ New Features
- Local API depth is now passed through to req.query.depth for consistency between Local API and REST/GraphQL calls.
- Added `customID` argument to `payload.db.create` allowing document creation with a specific ID without requiring a custom ID field in the schema.
- The MCP plugin migrated from `@vercel/mcp-adapter` to `mcp-handler` and updated `@modelcontextprotocol/sdk` to 1.25.2.
- Exposed new MCP plugin options: `disableSse`, `onEvent`, and `redisUrl`.
🐛 Bug Fixes
- Fixed issue where hasMany text fields could not be filtered using the contains operator.
- Ensured consistent empty state styling between list and folder views in the UI.
- Populated `previousValue` correctly in afterChange hooks for nested lexical fields.
- Added i18n support for dashboard edit mode buttons.
- Handled undefined `fieldTab` in version diff tabs within Next.js integration.
- Ensured file data persists across operations in the cloud-storage plugin.
- Fixed `generateFileURL` in the cloud-storage plugin only running when `disablePayloadAccessControl` was true.
- Removed deprecated import in the import-export plugin.
- Resolved export and import issues when using custom IDs in the import-export plugin.
- Fixed duplicated columns when using the toCSV hook in the import-export plugin.
- Resolved union type fields failing in the update tool within the MCP plugin.
- Improved translation for "Tenant" in the multi-tenant plugin (using "Mandant" instead of "Mieter").
- Fixed tenant selector not appearing after login in the multi-tenant plugin.
- Resolved build error in storage-r2 due to types issue in R2 Bucket type.
- Fixed broken polymorphic join edit drawer in the UI.