Repository navigation
v0.46.0
Summary
Upgrades the Lexical runtime from 0.49 to 0.52.0 across every @haklex/* package.
Breaking Changes
lexical/@lexical/*peer floors move from^0.49.0to^0.52.0. Consumers must install Lexical 0.52 and keep a single runtime copy (pnpmoverridesrecommended).- Upstream Lexical changes worth checking in consumer code:
- 0.50: select-all delete/cut removes whole blocks;
importJSONapplies registered node replacements. - 0.51:
exportJSONis schema-driven and reads fields off the receiver, so calling it on a stale node reference returns pre-write values. CallgetLatest()first or use the node returned by a setter /updateFromJSON. - 0.51:
@lexical/codeno longer re-exports Prism helpers;LexicalComposeris deprecated in favor ofLexicalExtensionComposer. - 0.52:
LexicalNode.getCommonAncestorremoved (use$getCommonAncestor).
- 0.50: select-all delete/cut removes whole blocks;
Bug Fixes
rich-collab-loro: agent edits that change a block's attributes (e.g. heading level) keep text a peer typed into that block concurrently on Lexical 0.52. The binding now exports JSON from the latest node version instead of a stale reference.
Bump Rationale
minor: third-party peer-floor advance within 0.x plus a bug fix, no @haklex/* export removals. Matches the precedent of earlier Lexical upgrades (v0.21.0, v0.29.0).