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@lexical/code 0.521 changes
Fixes and other changes 1
Preserve selection coverage across mixed typography.
@lexical/code 0.512 changes
Fixes and other changes 2
No longer leaves a childless list or table as the root's only child.
Avoids issuing a redundant selection change command.
@lexical/code 0.504 changes
Behavior and default changes 1
A function-valued style patch is applied only once to an empty element.
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.
Handles bare slot values when setting block types.
Reading the parent style of a slot value no longer throws.
@lexical/code 0.491 changes
Performance 1
Skips redundant selection restoration in removeTextFromCaretRange.
@lexical/code 0.472 changes
Fixes and other changes 2
Re-resolves a detached firstBlock during insert.
Properly handles block-end focus in backward selections.
@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.
@lexical/code 0.451 changes
New APIs and options 1
Adds an override surface for DOM rendering as part of the generalized DOMSlot feature.
@lexical/code 0.431 changes
Breaking changes 1
Makes getSelectionStyleValueForProperty independent of text direction.
@lexical/code 0.422 changes
Fixes and other changes 2
Fixes cursor positioning after inline equations and fixes block equations.
Fixes selection format being reset when inserting consecutive line breaks.
@lexical/code 0.411 changes
Fixes and other changes 1
DOM selection now supports elements with slots.
@lexical/code 0.401 changes
Fixes and other changes 1
Fixes formatting being removed from a multi-selection after a replace.
@lexical/code 0.391 changes
Fixes and other changes 1
Fixes applying styles to empty table cells.
@lexical/code 0.382 changes
Fixes and other changes 2
The block cursor is updated when the selection changes.
Selection is retained during updates on an unfocused editor.