Releases: payloadcms/payload
v3.0.0-beta.46
v3.0.0-beta.46 (2024-06-12)
Features
- diff generated types before write (#6749) (be0462d)
- richtext-lexical: sub-field hooks and localization support (#6591) (4e12705)
Bug Fixes
- corrects block duplicate action and add tests (#6589) (763a34f)
- unawaited emails (#6265) (6e55a2e)
- ui: hideGutter was ignored in group field (#6613) (de45e60)
- add missing export for useLeaf hook (#6693) (74159de)
- list sort preferences (#6731) (ba92d86)
BREAKING CHANGES
BREAKING
- Our internal field hook methods now have new required
schemaPath
and
pathprops
. This affects the following functions, if you are using
those:afterChangeTraverseFields
,afterReadTraverseFields
,
beforeChangeTraverseFields
,beforeValidateTraverseFields
,
afterReadPromise
- The afterChange field hook's
value
is now the value AFTER the
previous hooks were run. Previously, this was the original value, which
I believe is a bug- Only relevant if you have built your own richText adapter: the
richText adapterpopulationPromises
property has been renamed to
graphQLPopulationPromises
and is now only run for graphQL. Previously,
it was run for graphQL AND the rest API. To migrate, use
hooks.afterRead
to run population for the rest API- Only relevant if you have built your own lexical features: The
populationPromises
server feature property has been renamed to
graphQLPopulationPromises
and is now only run for graphQL. Previously,
it was run for graphQL AND the rest API. To migrate, use
hooks.afterRead
to run population for the rest API- Serialized lexical link and upload nodes now have a new
id
property.
While not breaking, localization / hooks will not work for their fields
until you have migrated to that. Re-saving the old document on the new
version will automatically add theid
property for you. You will also
get a bunch of console logs for every lexical node which is not migrated
Contributors
- Jessica Chowdhury (@JessChowdhury)
- Elliot DeNolf (@denolfe)
- Alessio Gravili (@AlessioGr)
- Anders Semb Hermansen (@andershermansen)
- Patryk Kowalczyk (@Patryk-Kowalczyk)
- Jarrod Flesch (@JarrodMFlesch)
v3.0.0-beta.45
v3.0.0-beta.45 (2024-06-11)
Features
Bug Fixes
- toasts padding and button placement by 1px (#6730) (2ada6fc)
- only use
metadata.pages
for height if animated (#6728) (10c6ffa) - create sharp file for
fileHasAdjustments
files orfileIsAnimated
files (#6708) (6512d5c) - corrects field-paths that were incorrectly being set (#6724) (57fcc91)
BREAKING CHANGES
We now export toast from
sonner
instead of
react-toastify
. If you send out toasts from your own projects, make
sure to use ourtoast
export, or installsonner
. React-toastify
toasts will no longer work anymore. The Toast APIs are mostly similar,
but there are some differences if you provide options to your toastCSS styles have been changed from Toastify
/* before */ .Toastify /* current */ .payload-toast-container .payload-toast-item .payload-toast-close-button /* individual toast items will also have these classes depending on the state */ .toast-info .toast-warning .toast-success .toast-errorCleanShot.2024-06-08.at.15.22.09.mp4
Contributors
- Paul (@paulpopus)
- Alessio Gravili (@AlessioGr)
- Patrik (@PatrikKozak)
- Jarrod Flesch (@JarrodMFlesch)
v3.0.0-beta.44
v3.0.0-beta.44 (2024-06-11)
Features
Bug Fixes
- get auto type-gen to work on turbo, by running type gen in a child process outside turbo/webpack (#6714) (7b7dc71)
- corrects tab paths when nested within other row like fields (#6712) (ba513d5)
- re-exports graphql json types for external use (#6711) (a26d031)
- ui: removes
array
&blocks
&group
fields from sort (#6576) (9f52562) - global draft validations (#6709) (45e8683)
- ui: set checkbox htmlFor by default, fixing some checkbox labels not toggling the checkbox (#6684) (ac34380)
BREAKING CHANGES
Types are now auto-generated by default.
You can opt-out of this behavior by setting:
buildConfig({ // Rest of config typescript: { autoGenerate: false }, })
Contributors
- Alessio Gravili (@AlessioGr)
- Jarrod Flesch (@JarrodMFlesch)
- Patrik (@PatrikKozak)
- Elliot DeNolf (@denolfe)
- Jacob Fletcher (@jacobsfletch)
v2.20.0
2.20.0 (2024-06-11)
Features
Bug Fixes
- adds multi select inputs for
number
&text
fields in where builder (#6662) (e3003b4) - create sharp file for
fileHasAdjustments
files orfileIsAnimated
files (#6710) (921a5c0) - enable SaveDraft button when creating new documents (#6672) (63bc6ae), closes #6671
- handles localized nested relationship fields in versions (#6679) (8a62298)
- live preview device position when using zoom (#6667) (9525511)
- only use
metadata.pages
for height if animated (#6729) (2f9ed34) - removes
array
&blocks
&group
fields from sort (#6574) (507e095), closes #6469 - withinCollapsible should be undefined by default (#6666) (37c8386), closes #6658
v3.0.0-beta.43
v3.0.0-beta.43 (2024-06-07)
Features
- adds draft validation option (#6677) (52c81ad)
- plugin-redirects: update fields overrides to use a function (#6675) (e4a9029)
- richtext-*: allow omitting the root editor property (#6660) (11c3a65)
- upgrade minimum node 20 version from 20.6.0 to 20.9.0 (#6659) (9bd9e7a)
Bug Fixes
- next: live preview device position when using zoom (#6665) (7c8d562)
- max versions config not being respected on globals (#6654) (8dd5e4d)
BREAKING CHANGES
Description
Updates the
fields
override in plugin redirects to allow for
overriding// before overrides: { fields: [ { type: 'text', name: 'customField', }, ], }, // current overrides: { fields: ({ defaultFields }) => { return [ ...defaultFields, { type: 'text', name: 'customField', }, ] }, },
- This bumps the minimum required node version from node 20.6.0 to node
20.9.0. This is because 20.6.0 breaks type generation due to a CJS node
bug, and 20.9.0 is the next v20 LTS version. The minimum node 18 version
stays the same (18.20.2)
Contributors
- Jarrod Flesch (@JarrodMFlesch)
- Paul (@paulpopus)
- Jacob Fletcher (@jacobsfletch)
- Alessio Gravili (@AlessioGr)
v2.19.3
v3.0.0-beta.42
v3.0.0-beta.42 (2024-06-06)
Bug Fixes
Contributors
- Jacob Fletcher (@jacobsfletch)
- Alessio Gravili (@AlessioGr)
v2.19.2
v3.0.0-beta.41
v3.0.0-beta.41 (2024-06-05)
Features
- support Next.js basePath config property (#6628) (b2751f7)
- ui: expose RowLabelProps (#6627) (1afd221)
- richtext-lexical: upgrade lexical from 0.15.0 to 0.16.0 and port over relevant playground changes (#6620) (da35afb)
Bug Fixes
- db-postgres: create predefined migration missing json schema output (#6641) (ff82bb5)
- update file-type dependency and fix dependency version mismatch (#6638) (2077da8)
- translations: explicitly declare date-fns v3 as a dependency (#6626) (aeb4df8)
- resizing animated images (#6623) (bcd277e)
- migration file cannot be imported (#6616) (cafc13a)
BREAKING CHANGES
Fixes #6630
This only applies to you if you using db-postgres and have created the
v2-v3-relationships
migration released in
v3.0.0-beta.39
from @payloadcms/db-postgres <= v3.0.0-beta.40.Steps to fix
- Delete the existing v2-v3-relationships migration file.
- If changes were made to your config since the previous migration was
made, you will need to revert those by checking out a previous commit in
your version control.- Recreate the migration using
payload migrate:create --file @payloadcms/db-postgres/relationships-v2-v3
to make the migration with
the snapshot .json file.
- richtext-lexical: upgrade lexical from 0.15.0 to 0.16.0 and port over relevant playground changes (#6620) (da35afb)
BREAKING:
- This upgrades the required version of lexical from 0.15.0 to 0.16.0.
If you are using lexical directly in your project, possibly due to
custom features, there might be breaking changes for you. Please consult
the lexical 0.16.0 changelog:
https://github.com/facebook/lexical/releases/tag/v0.16.0
Contributors
- Dan Ribbens (@DanRibbens)
- Alessio Gravili (@AlessioGr)
- Elliot DeNolf (@denolfe)
- Jacob Fletcher (@jacobsfletch)
- Patrik (@PatrikKozak)
- Paul (@paulpopus)
v3.0.0-beta.40
v3.0.0-beta.40 (2024-06-04)
Features
- match next.js env file loading behavior in bin scripts & importConfig, clean up installed packages & mismatching package versions (#6601) (59cde0d)
- richtext-lexical: configurable fixed toolbar (#6560) (f41bb05)
Bug Fixes
- pin ajv to 8.14.0, as 8.15.0 is broken (#6606) (45b02d8)
- plugin-form-builder: fix bug with optional chain operator in field overrides logic (#6602) (1aece39)
- db-postgres: type issue in migratePostgresV2toV3 call if ts strict mode is enabled (#6585) (c3589de)
- richtext-lexical: minor design improvements (#6575) (c7fbd76)
- critical getPredefinedMigration dependency error (#6578) (6b9c796)
- richtext-*: fix client features were not loaded properly, improve performance of LexicalProvider, slate cell component was non-functional, support richtext adapter Cell RSCs (#6573) (5cb49c3)
BREAKING CHANGES
BREAKING: useEditorFocusProvider has been removed and merged with
useEditorConfigContext. You can now find information about the focused
editor, parent editors and child editors within useEditorConfigContext
Contributors
- Alessio Gravili (@AlessioGr)
- Paul (@paulpopus)