3.0.0-beta.24 (2024-05-03)
Features
- next: supports custom login redirects in initPage (#6186) (ea917dd)
- next: supports custom login redirects in initPage (070d8e1)
- richtext-lexical: finalize ClientFeature interface (#6191) (7ab156e)
Bug Fixes
- cascade graphql locales through relationships (#6166) (e25814e)
- only allow save after form is modified (#6189) (27ea117)
- ensures confirm password remains on form state (#6190) (f2d4156)
- moves ts-essentials to prod deps (#6187) (bdf08a1)
BREAKING CHANGES
All plugins have been updated to use named exports and the names have been updated to be consistent.
Please read the list below and rename your import accordingly
// before
import { cloudStorage } from '@payloadcms/plugin-cloud-storage'
// current
import { cloudStoragePlugin } from '@payloadcms/plugin-cloud-storage'
//before
import { payloadCloud } from '@payloadcms/plugin-cloud'
// current
import { payloadCloudPlugin } from '@payloadcms/plugin-cloud'
//before
import formBuilder from '@payloadcms/plugin-form-builder'
// current
import { formBuilderPlugin } from '@payloadcms/plugin-form-builder'
//before
import { nestedDocs } from '@payloadcms/plugin-nested-docs'
// current
import { nestedDocsPlugin } from '@payloadcms/plugin-nested-docs'
//before
import { redirects } from '@payloadcms/plugin-redirects'
// current
import { redirectsPlugin } from '@payloadcms/plugin-redirects'
// before
import search from '@payloadcms/plugin-search'
// current
import { searchPlugin } from '@payloadcms/plugin-search'
//before
import { sentry } from '@payloadcms/plugin-sentry'
// current
import { sentryPlugin } from '@payloadcms/plugin-sentry'
// before
import { seo } from '@payloadcms/plugin-seo'
// current
import { seoPlugin } from '@payloadcms/plugin-seo'
If you have own, custom lexical features, there will be a bunch of breaking API changes for you. The saved JSON data is not affected.
floatingSelectToolbar
has been changed totoolbarInline
slashMenu.dynamicOptions
andslashMenu.options
have been changed toslashMenu.groups
andslashMenu.dynamicGroups
toolbarFixed.sections
is nowtoolbarFixed.groups
Slash menu group
options
and toolbar groupentries
have both been renamed toitems
Toolbar group item
onClick
has been renamed toonSelect
to match slash menu propertiesslashMenu item
onSelect
is no longer auto-wrapped inside aneditor.update
. If you perform editor updates in them, you have to wrap it inside aneditor.update
callback yourself. Within our own features this extra control has removed a good amount of unnecessary, nestededitor.update
calls, which is goodSlash menu items are no longer initialized using the
new
keyword, as they are now types and no longer classes. You can convert them to an object and add thekey
property as an object property instead of an argument to the previous SlashMenuItem constructorCSS classnames for slash menu and toolbars, as well as their items, have changed
CheckListFeature
is now exported as and has been renamed toChecklistFeature
For guidance on migration, check out how we migrated our own features in this PR's diff: https://github.com/payloadcms/payload/pull/6191/files
Contributors
- Elliot DeNolf (@denolfe)
- Paul (@paulpopus)
- Jessica Chowdhury (@JessChowdhury)
- Jacob Fletcher (@jacobsfletch)
- Jarrod Flesch (@JarrodMFlesch)
- Alessio Gravili (@AlessioGr)