Skip to content

v0.46.0

Choose a tag to compare

@Innei Innei released this 01 Oct 02:47
· 155 commits to main since this release
eeac2e7

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.0 to ^0.52.0. Consumers must install Lexical 0.52 and keep a single runtime copy (pnpm overrides recommended).
  • Upstream Lexical changes worth checking in consumer code:
    • 0.50: select-all delete/cut removes whole blocks; importJSON applies registered node replacements.
    • 0.51: exportJSON is schema-driven and reads fields off the receiver, so calling it on a stale node reference returns pre-write values. Call getLatest() first or use the node returned by a setter / updateFromJSON.
    • 0.51: @lexical/code no longer re-exports Prism helpers; LexicalComposer is deprecated in favor of LexicalExtensionComposer.
    • 0.52: LexicalNode.getCommonAncestor removed (use $getCommonAncestor).

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).