Breaking Changes
-
🆕 Feature: Add updateFromJSON and move more textFormat/textStyle to ElementNode
This change adds optional textFormat and textStyle properties to SerializedElementNode. If you have existing classes with those properties it could create a namespace clash that you will have to resolve one way or another.TextNode and ElementNode subclasses should be updated to call the updateFromJSON(serializedNode) method from their static importJSON methods. If they don't, they won't support this new functionality, and will have to continue copy and pasting the super implementation of importJSON for correct behavior if the base class ever changes in the future.
You should consider dropping usage of the version field.
Highlights
Highlights since v0.22.0
Core Editor:
- 🆕 Feature: Add updateFromJSON and move more textFormat/textStyle to ElementNode #6970
- ✅ Fix: getNodes over-selection #7006
- ✅ Fix: registerNodeTransform regression #7016
Playground:
- ✅ Fix: table hover actions button position #7011
Yjs:
- 🆕 Feature: Expose function to get anchor and focus nodes for given user awareness state #6942
What's Changed
- v0.22.0 by @potatowagon in #6993
- [lexical] Bug Fix: Flow is missing some variables and functions by @lytion in #6977
- [tests] npm upgrade next by @potatowagon in #6996
- Documentation: Fix typo "nest nest"->"nest" in README.md by @christianhg in #7000
- [test] npm upgrade astro by @potatowagon in #7001
- [lexical] Bug Fix: Fix getNodes over-selection by @etrepum in #7006
- [Breaking Change][lexical] Feature: Add updateFromJSON and move more textFormat/textStyle to ElementNode by @etrepum in #6970
- [lexical-playground] Refactor: switch headings test file names by @christianhg in #7008
- [lexical] Bug Fix: Fix registerNodeTransform regression introduced in #6894 by @etrepum in #7016
- [lexical-playground] Fix table hover actions button position by @ivailop7 in #7011
- [lexical-yjs] Feature: Expose function to get anchor and focus nodes for given user awareness state by @amanharwara in #6942
New Contributors
- @christianhg made their first contribution in #7000
Full Changelog: v0.22.0...v0.23.0