v0.36.1
v0.36.1 is a major feature release with a new Lexical Extension API (#7706), some needed breaking changes to @lexical/yjs (#7816, #7818) and a bunch of bug fixes. We've also moved to React 19 (#7802) for all examples, tests, etc. although it should all still remain compatible with React 18 for now.
Breaking Changes
#7706 DecoratorNode
- Removed type requirement & warning for
DecoratorNodeto implementdecorate() - Widens type for
decorate(): Tto bedecorate(): null | Tas that's always how it worked in practice - the generic type here is unsafe and wrong anyway (e.g.$isDecoratorNodeis a cast to any typeT)
#7818 useCollaborationContext now requires that a context provider is used
Users of the CollaborationPlugin or must wrap the top-level with a component. For example: