payloadcms / payload

The best way to build a modern backend + admin UI. No black magic, all TypeScript, and fully open-source, Payload is both an app framework and a headless CMS.
https://payloadcms.com
MIT License
21.04k stars 1.27k forks source link

feat(richtext-lexical)!: properly define client-only and server-only exports #6890

Closed AlessioGr closed 1 week ago

AlessioGr commented 1 week ago

server-only stuff is exported from /, client-only stuff from /client, and shared stuff from both. This was the best way to avoid duplication within the same environment (server/client).

BREAKING: a bunch of exports have been moved around. There are now two of them: @payloadcms/richtext-lexical and @payloadcms/richtext-lexical/client. The root export is server-only. If any imports don't resolve anymore after this version, simply change the import to one of those, depending on if you are on the server or the client