Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
chore: extract sanitizeField from sanitizeFields (#16133)
Extracts per-field sanitization logic into a standalone `sanitizeField` function that can be called independently. The `sanitizeFields` function now delegates to `sanitizeField` in a loop, maintaining identical behavior while exposing the core logic. This enables sanitizing individual fields after initial config sanitization, which is needed for the orderable optimization in the follow-up PR. Exports `sanitizeField` and `SanitizeFieldArgs` from the payload package.
J
Jarrod Flesch committed
b705af4d4ff01cccecf782ae1436890c3ca1d791
Parent: b63198d
Committed by GitHub <noreply@github.com>
on 4/2/2026, 2:17:37 PM