unstale

npm / @lexical/code

@lexical/code

What changed in @lexical/code 0.38 to 0.52, from its official release notes, upgrade guides and advisories. Also covers @lexical/link, @lexical/list, @lexical/markdown, @lexical/react, @lexical/rich-text, @lexical/selection. Sources checked 2026-10-18.

1 breaking1 new APIs and options1 performance2 behavior and defaults15 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@lexical/code 0.521 changes

Fixes and other changes 1

  • Preserve selection coverage across mixed typography.

    0.52.0release notes

@lexical/code 0.512 changes

Fixes and other changes 2

  • No longer leaves a childless list or table as the root's only child.

    0.51.0release notes

  • Avoids issuing a redundant selection change command.

    0.51.0release notes

@lexical/code 0.504 changes

Behavior and default changes 1

  • A function-valued style patch is applied only once to an empty element.

    0.50.0release notes

Fixes and other changes 3

  • Block converters skip named-slot values; related changes diagnose replace() on a slot value and delete slot-bearing decorator hosts at the selection boundary.

    0.50.0release notes

  • Handles bare slot values when setting block types.

    0.50.0release notes

  • Reading the parent style of a slot value no longer throws.

    0.50.0release notes

@lexical/code 0.491 changes

Performance 1

  • Skips redundant selection restoration in removeTextFromCaretRange.

    0.49.0release notes

@lexical/code 0.472 changes

Fixes and other changes 2

  • Re-resolves a detached firstBlock during insert.

    0.47.0release notes

  • Properly handles block-end focus in backward selections.

    0.47.0release notes

@lexical/code 0.461 changes

Behavior and default changes 1

  • Selection APIs now support DOM shadow roots, allowing developers to work with selections inside shadow DOM.

    0.46.0release notes

@lexical/code 0.451 changes

New APIs and options 1

  • Adds an override surface for DOM rendering as part of the generalized DOMSlot feature.

    0.45.0release notes

@lexical/code 0.431 changes

Breaking changes 1

  • Makes getSelectionStyleValueForProperty independent of text direction.

    0.43.0release notes

@lexical/code 0.422 changes

Fixes and other changes 2

  • Fixes cursor positioning after inline equations and fixes block equations.

    0.42.0release notes

  • Fixes selection format being reset when inserting consecutive line breaks.

    0.42.0release notes

@lexical/code 0.411 changes

Fixes and other changes 1

  • DOM selection now supports elements with slots.

    0.41.0release notes

@lexical/code 0.401 changes

Fixes and other changes 1

  • Fixes formatting being removed from a multi-selection after a replace.

    0.40.0release notes

@lexical/code 0.391 changes

Fixes and other changes 1

@lexical/code 0.382 changes

Fixes and other changes 2

  • The block cursor is updated when the selection changes.

    0.38.0release notes

  • Selection is retained during updates on an unfocused editor.

    0.38.0release notes