v3.0.0-beta.46
Version v3.0.0-beta.46Major ReleasePre-release
Release Notes
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 requiredschemaPathand pathprops. This affects the following functions, if you are using those:afterChangeTraverseFields,afterReadTraverseFields,beforeChangeTraverseFields,beforeValidateTraverseFields,afterReadPromise- The afterChange field hook'svalueis 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 adapterpopulationPromisesproperty has been renamed tographQLPopulationPromisesand is now only run for graphQL. Previously, it was run for graphQL AND the rest API. To migrate, usehooks.afterReadto run population for the rest API - Only relevant if you have built your own lexical features: ThepopulationPromisesserver feature property has been renamed tographQLPopulationPromisesand is now only run for graphQL. Previously, it was run for graphQL AND the rest API. To migrate, usehooks.afterReadto run population for the rest API - Serialized lexical link and upload nodes now have a newidproperty. 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 theidproperty 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)