v3.68.0

payloadcms/payloadv3.68.0Dec 9, 2025by denolfe

AI Summary

Adds Turbopack build support for Next.js canaries and resolves several database and UI bugs.

Key Highlights

  • Support for Turbopack build on Next.js canaries.
  • Fixes undefined drafts in collections with join fields.
  • Fixes file object serialization in upload forms.

New Features

  • Support turbopack build on Next.js canaries
  • Fix undefined drafts error in collections with join fields
  • Fix file objects being serialized to plain objects in upload form state
  • Fix multi-tenant simplified getTenantOptions function
  • Fix upload filename respects prefix
  • Fix AddNewRelation saves relationTo as first collection

Full Release Notes

## [v3.68.0](https://github.com/payloadcms/payload/compare/v3.67.0...v3.68.0) (2025-12-09)


### ๐Ÿš€ Features

* support turbopack build on Next.js canaries ([#14845](https://github.com/payloadcms/payload/issues/14845)) ([5ad4ebd](https://github.com/payloadcms/payload/commit/5ad4ebd))

---

**Turbopack Build Support (next)** - Automatically enables Turbopack Build compatibility when using Next.js โ‰ฅ `16.1.0-canary.3`. The `withPayload` wrapper now detects supported versions and enables transitive dependency externalization, unlocking significantly faster production builds with Turbopack. [#14845](https://github.com/payloadcms/payload/pull/14845)

---

### ๐Ÿ› Bug Fixes

* adds read and readDistinct to hook mapping ([#14853](https://github.com/payloadcms/payload/issues/14853)) ([0da0da8](https://github.com/payloadcms/payload/commit/0da0da8))
* undefined drafts error in collections with join fields ([#14855](https://github.com/payloadcms/payload/issues/14855)) ([3a29cec](https://github.com/payloadcms/payload/commit/3a29cec))
* use hasDraftsEnabled utility instead of direct check ([#14843](https://github.com/payloadcms/payload/issues/14843)) ([9c9c7c5](https://github.com/payloadcms/payload/commit/9c9c7c5))
* file objects being serialized to plain objects in upload form state ([#14818](https://github.com/payloadcms/payload/issues/14818)) ([d86c174](https://github.com/payloadcms/payload/commit/d86c174))
* **db-mongodb:** correctly pass through collation config in the adapter to be applied in queries via locales ([#11242](https://github.com/payloadcms/payload/issues/11242)) ([db59cb4](https://github.com/payloadcms/payload/commit/db59cb4))
* **plugin-multi-tenant:** simplified getTenantOptions function and added access control for regular users ([#14620](https://github.com/payloadcms/payload/issues/14620)) ([f7cc078](https://github.com/payloadcms/payload/commit/f7cc078))
* **storage-*:** upload filename respects prefix ([#14566](https://github.com/payloadcms/payload/issues/14566)) ([ccfaee0](https://github.com/payloadcms/payload/commit/ccfaee0))
* **ui:** component AddNewRelation saves relationTo as first collection instead of selected collection ([#14836](https://github.com/payloadcms/payload/issues/14836)) ([8c5c1fb](https://github.com/payloadcms/payload/commit/8c5c1fb))
* **ui:** list drawer per-page dropdown resets to 10 instead of showing saved limit ([#14830](https://github.com/payloadcms/payload/issues/14830)) ([db13a60](https://github.com/payloadcms/payload/commit/db13a60))

### ๐Ÿ“š Documentation

* add note about returning a query from a readVersions access control ([#14822](https://github.com/payloadcms/payload/issues/14822)) ([0860837](https://github.com/payloadcms/payload/commit/0860837))

### ๐Ÿงช Tests

* speed up mongo test resets by preserving indexes ([#14861](https://github.com/payloadcms/payload/issues/14861)) ([d97a822](https://github.com/payloadcms/payload/commit/d97a822))

### ๐Ÿ”จ Build

* add build:all:force to clean all then build all ([d90bccb](https://github.com/payloadcms/payload/commit/d90bccb))
* bump swc-related dependencies ([#14834](https://github.com/payloadcms/payload/issues/14834)) ([617311a](https://github.com/payloadcms/payload/commit/617311a))

### โš™๏ธ CI

* remove prepack and prepublishonly scripts ([#14832](https://github.com/payloadcms/payload/issues/14832)) ([20914cc](https://github.com/payloadcms/payload/commit/20914cc))
* add internal-debug release mode ([#14820](https://github.com/payloadcms/payload/issues/14820)) ([ce934b4](https://github.com/payloadcms/payload/commit/ce934b4))

### ๐Ÿก Chores

* **claude:** create triage command ([#14791](https://github.com/payloadcms/payload/issues/14791)) ([d50b60e](https://github.com/payloadcms/payload/commit/d50b60e))

### ๐Ÿค Contributors

- Elliot DeNolf (@denolfe)
- Alessio Gravili (@AlessioGr)
- Riley Langbein (@rilrom)
- Jarrod Flesch (@JarrodMFlesch)
- Adrian Maj (@AdrianMaj)
- Patrik (@PatrikKozak)
- Paul (@paulpopus)
- Jeffery To (@jefferyto)
- Rot4tion (@Rot4tion)