3.0.0-beta.24
Version 3.0.0-beta.24Major ReleasePre-release
Release Notes
3.0.0-beta.24 (2024-05-03)
Features
- next: supports custom login redirects in initPage (#6186) (ea917dd)
- 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
- update all plugin exports to be named and consistent (#6195) (b642cb2)
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
```ts
// 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'
```
- richtext-lexical: finalize ClientFeature interface (#6191) (7ab156e)
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. -floatingSelectToolbarhas been changed totoolbarInline-slashMenu.dynamicOptions `and `slashMenu.optionshave been changed toslashMenu.groupsandslashMenu.dynamicGroups-toolbarFixed.sectionsis nowtoolbarFixed.groups- Slash menu groupoptionsand toolbar groupentrieshave both been renamed toitems- Toolbar group itemonClickhas been renamed toonSelectto match slash menu properties - slashMenu itemonSelectis no longer auto-wrapped inside aneditor.update. If you perform editor updates in them, you have to wrap it inside aneditor.updatecallback yourself. Within our own features this extra control has removed a good amount of unnecessary, nestededitor.updatecalls, which is good - Slash menu items are no longer initialized using thenewkeyword, as they are now types and no longer classes. You can convert them to an object and add thekeyproperty as an object property instead of an argument to the previous SlashMenuItem constructor - CSS classnames for slash menu and toolbars, as well as their items, have changed -CheckListFeatureis now exported as and has been renamed toChecklistFeatureFor 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)