NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #4968 most downloaded on npm
This package contains misc utilities for Lexical.
Latest stable
0.53.0
Last release 12 days ago
10 Nov 2026
Ships on a steady schedule
a new release about every 8 days
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
724 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
v0.53.1-nightly.20261109.0
v0.53.1-nightly.20261109.0
v0.53.1-nightly.20261106.0
v0.53.1-nightly.20261106.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
v0.53.1-nightly.20261105.0
v0.53.1-nightly.20261105.0
v0.53.1-nightly.20261104.0
v0.53.1-nightly.20261104.0
v0.53.1-nightly.20261103.0
v0.53.1-nightly.20261103.0
v0.53.1-nightly.20261102.0
v0.53.1-nightly.20261102.0
v0.53.1-nightly.20261030.0
v0.53.1-nightly.20261030.0
v0.53.1-nightly.20261029.0
v0.53.1-nightly.20261029.0
Changelog with migration notes: CHANGELOG.md is now built from changesets, with Breaking changes (each with Migration: and Detect:), Behavior changes,…
v0.53.0 is the monthly release and collects a month of work since v0.52.0. It removes the extensions deprecated as of v0.52.0 and the unchecked node type arguments, starts a curated CHANGELOG.md with migration notes, and adds several opt-in, experimental building blocks for structured documents and collaboration: declarative node structure in $config, stable block ids, set-valued NodeState with a wrapper-free MarkStateExtension, and GFM tables in @lexical/mdast. Fixes cover IME composition, spellcheck, inline decorators, iOS taps and drops, tables, Markdown, and the ordering of commit listeners that collaboration depends on.
CodeImportExtension (@lexical/code-core): use CodeExtensionCodeHighlighterShikiExtension, CodeHighlighterShikiConfig (@lexical/code-shiki): use CodeShikiExtension with {tokenizer}HorizontalRuleImportExtension (@lexical/html): use HorizontalRuleExtension plus any extension that brings in CoreImportExtensionLinkImportExtension, ListImportExtension, RichTextImportExtension, TableImportExtension: use LinkExtension, ListExtension, RichTextExtension, TableExtensionMdastImportExtension, MdastExportExtension and their *Output types (@lexical/mdast): use MdastExtension and MdastExtensionOutput*ImportRules arrays are not extensions and remain.@lexical/mdast (experimental): table column alignment is no longer stored in the mdastTableAlign NodeState. Alignment is now the element format of the paragraph in each cell, so editor states serialized with the old state lose their column alignment on load (#9478)lexical: The deprecated unchecked type arguments on node traversal and key lookup are removed from TypeScript and Flow: getParent<T>(), getParentOrThrow<T>(), getChildren<T>(), getFirstChild<T>(), getNextSibling<T>(), $getNodeByKey<T>() and the rest of that family. Runtime behavior is unchanged. Remove the type argument and narrow the result with a node guard such as $isListItemNode (#9479)lexical: ElementNode.reconcileObservedMutation (@internal) restores the DOM of the element's committed children from the latest reconciled state, not the children of the update it is called in. Code that called it inside an update to render that update's children must place those children's DOM itself (#9329)lexical / @lexical/extension (experimental): Declarative node structure in $config. New optional keys inline, children, mergeAdjacent, and a derived flag on fields and states describe what an element may hold and when adjacent siblings are the same thing, so importers, serializers and storage layers can read rules that used to live only in transforms. getDeclaredNodeStructure(klass) reads them, and the opt-in NodeStructureExtension enforces them (#9452)@lexical/extension / @lexical/html (experimental): Stable block ids. BlockIdExtension gives blocks an id that survives serialization, reloads, undo/redo, the clipboard and collaboration, stored as NodeState ("$": {"blockId": "…"}), so agents and server pipelines can address blocks directly. BlockIdHTMLExtension, imported from @lexical/html/BlockIdHTMLExtension, carries the ids through HTML (#9421, #9474)lexical / @lexical/mark (experimental): Set-valued NodeState and MarkStateExtension. arraySetValue(item) declares a state whose value is a canonical (sorted, deduplicated, frozen) set of strings. MarkStateExtension uses it to store mark ids on the leaves they cover instead of in MarkNode wrappers, so overlapping comments need no tree restructuring and ids travel with the text (#9380)@lexical/mdast (experimental): GFM tables. MdastTableExtension imports tables the way GFM renders them and exports any table as a GFM table, using <br> for multi-block cells and padding merged or ragged cells (#9478)@lexical/clipboard: Clipboard import middleware can replace the data and selection for the remaining handlers with $next(data?, selection?), the equivalent of ProseMirror's transformPastedHTML, so off-the-shelf HTML cleanup can be plugged in (#9312)@lexical/link: ClickableLinkExtension accepts getWindow(editor), so iframe editors can navigate in their own window or leave the click unhandled (#9360)@lexical/react: LexicalAutoEmbedPlugin accepts $disableMenuFor to suppress the embed menu where a block embed does not belong, such as inline-only slots (#9365)CHANGELOG.md is now built from changesets, with Breaking changes (each with Migration: and Detect:), Behavior changes, Deprecations and the full commit list for every release, and it ships in the lexical package at node_modules/lexical/CHANGELOG.md for people and tools upgrading across versions (#9357)main commit is published to pkg.pr.new, so a fix can be tried before the next release with npm i https://pkg.pr.new/lexical@main (npm only; see the PR for pnpm and yarn) (#9385, #9387, #9394)Security
registerClickableLink / ClickableLinkPlugin no longer get window.opener, closing a reverse-tabnabbing path (#9303)< and &, so literal text no longer turns into HTML, character references or links when the Markdown is parsed again. Import decodes escapes and character references in a single pass (#9481)Input, composition & spellcheck
TextNode subclass with an IME or a dead key no longer replaces it with a plain TextNode, so it keeps its type, key and NodeState (#9291); cancelled macOS Pinyin compositions in desktop WebKit finish, so the next Enter works (#9362)selectionchange events from unfocused inputs and textareas no longer clear pending formatting (#9477); copy, cut and paste inside a decorator's own input are left to that input (#9288)Selection & editing
$patchStyleText now styles the selection it is given (#9261); caret mutations, endpoint repair and cross-parent moves no longer corrupt sibling links, throw, or misorder the DOM (#9262, #9263, #9302)getTextContent() overrides (#9283, #9260)HISTORY_PUSH_TAG always pushes its own undo entry (#9218); setting a NodeState key still held in unknownState no longer leaves the stale JSON value behind (#9468)iOS
Collaboration
editor.read() is called during listener dispatch, fixing lost content with CollabV2 and the Expected shared type to include type attribute corruption in CollabV1 (#9335, closes #7709)@lexical/yjs re-creates only the children that actually moved, keeping sibling Yjs identities and turning a 1.3 s move in an 8,000-paragraph document into a fast one (#9349)Tables, links, code & Markdown
$toggleLink(null) no longer throws when the selection only touches a link edge (#9412)@lexical/mdast keeps consecutive and leading line breaks in a round trip (#9392)React, SSR & misc
Math.random() while rendering on the server, so Next.js 16 prerendering with cacheComponents works without Suspense (#9319)ContentEditable no longer renders an unnamed role="textbox" (#9270); stale asynchronous auto-embed and typeahead results are ignored (#9331, #9332); positionNodeOnRange no longer loops forever once its root is detached (#9358)latest npm release (#9296, #9457, #9369)Object to any in lexical by @SamChou19815 in https://github.com/facebook/lexical/pull/9353Full Changelog: https://github.com/facebook/lexical/compare/v0.52.0...v0.53.0
lexical, @lexical/clipboard, @lexical/selection, @lexical/table: Let mouse drags select across inline decorators; ElementNode.reconcileObservedMutation restores the committed children's DOM (#9329)
A drag over an inline decorator (an image, equation or mention) now moves the selection past it, and clicks beside such a decorator at a line break land on the right line.
Migration: ElementNode.reconcileObservedMutation (@internal) puts back the DOM of the element's committed children, from the latest reconciled state, rather than the children of the update it is called in. Code that calls it inside an update to render that update's children must place those children's DOM itself, for example from editor.getElementByKey().
Detect: calls to reconcileObservedMutation.
Codemod: none.
@lexical/mdast: MdastTableExtension reads and writes GFM tables, and stores column alignment as the cell paragraphs' format instead of the mdastTableAlign NodeState (#9478)
Import pads or truncates body rows to the header row's cell count, reads \| and raw <br> in cells, and turns column alignment into the element format of each cell's paragraph. Export writes any table as a GFM table: multi-block cells as lines joined by <br>, merged and ragged cells padded, blocks with no inline form after the table, and pipes escaped.
Migration: read and set column alignment through the element format of the paragraphs in the column's cells instead of the mdastTableAlign NodeState. Editor states serialized with mdastTableAlign lose their column alignment on load; re-import them from Markdown to recover it.
Detect: uses of mdastTableAlign, or stored editor state JSON containing mdastTableAlign.
Codemod: none.
@lexical/code-core, @lexical/code-shiki, @lexical/html, @lexical/link, @lexical/list, @lexical/mdast, @lexical/rich-text, @lexical/table: Remove the extensions deprecated in v0.52.0 and earlier (#9316)
The deprecated import and alias extensions are removed. The *ImportRules
arrays, including HorizontalRuleImportRules, stay.
Migration: replace each removed export with its successor.
| Removed | Use instead |
|---|---|
CodeImportExtension (@lexical/code-core) |
CodeExtension |
CodeHighlighterShikiExtension, CodeHighlighterShikiConfig (@lexical/code-shiki) |
CodeShikiExtension with {tokenizer} |
HorizontalRuleImportExtension (@lexical/html) |
HorizontalRuleExtension plus an extension that brings in CoreImportExtension |
LinkImportExtension (@lexical/link) |
LinkExtension |
ListImportExtension (@lexical/list) |
ListExtension |
RichTextImportExtension (@lexical/rich-text) |
RichTextExtension |
TableImportExtension (@lexical/table) |
TableExtension |
MdastImportExtension, MdastExportExtension (@lexical/mdast) |
MdastExtension |
MdastImportExtensionOutput, MdastExportExtensionOutput (@lexical/mdast) |
MdastExtensionOutput |
Detect: imports of any name in the table above.
Codemod: none; each is a rename of an import and its use.
lexical: Remove the deprecated unchecked type arguments from node traversal and key lookup (#9479)
The generic overloads that let callers claim an arbitrary node subclass without checking it are removed from TypeScript and Flow. The methods themselves and their runtime behavior are unchanged, and safe generics whose inputs establish the result type remain.
Migration: remove the explicit type argument and narrow the result with a node guard before using subclass-specific methods.
// Before
const parent = node.getParentOrThrow<ListItemNode>();
// After
const parent = node.getParentOrThrow();
if (!$isListItemNode(parent)) {
return;
}
Detect: an explicit type argument on getParent, getParentOrThrow, getPreviousSibling, getPreviousSiblings, getNextSibling, getNextSiblings, getChildren, getFirstChild, getFirstChildOrThrow, getLastChild, getLastChildOrThrow, getChildAtIndex, getFirstDescendant, getLastDescendant, getDescendantByIndex, $getNodeByKey or $getNodeByKeyOrThrow; TypeScript reports these as errors after upgrading.
Codemod: none; each call site needs a guard that fits its context.
@lexical/link: ClickableLinkExtension accepts getWindow(editor), and a nested editor's links are handled only by that editor (#9360)
getWindow lets an editor inside an iframe navigate in its own window, or return null to leave the click unhandled. The default is still the global window.
Verify: clicks on links inside nested editors, which no longer also run the parent editor's handler.
@lexical/link: Open new-tab links from ClickableLinkPlugin / registerClickableLink without window.opener (#9303)
This prevents the opened page from navigating the editor's tab (reverse tabnabbing). Same-tab opens are unchanged.
Verify: pages opened from editor links that relied on window.opener.
@lexical/code-core: Normalize imported code block content to code lines, tabs and line breaks (#9272)
Applies to the experimental HTML import pipeline; nested paragraphs, headings and links inside imported code no longer end up inside a CodeNode.
Verify: HTML import of code blocks that contain paragraphs, headings or links (snapshots of the imported tree change).
@lexical/markdown: Markdown import keeps backslashes in leading code spans and unescapes text only once (#9396)
Verify: Markdown import of text with backslash escapes and inline code.
@lexical/markdown: Markdown export escapes literal text so it does not become HTML, character references or links when parsed again (#9481)
Literal brackets and significant < and & characters are escaped, using numeric references where that keeps adjacent emphasis intact; ordinary text such as AT&T and a < b is unchanged. Import decodes backslash escapes and decimal or hexadecimal character references in one pass, and link labels respect escaped brackets and code spans.
Verify: Markdown export snapshots of text containing [, ], < or &.
@lexical/mdast: Keep consecutive and leading line breaks in a Markdown round trip (#9392)
Such breaks now export as hard breaks (\ and a newline) instead of plain newlines.
Verify: Markdown export of paragraphs with adjacent or leading line breaks.
@lexical/react: A non-editable ContentEditable no longer renders role="textbox" or widget-only ARIA attributes (#9270)
Verify: accessibility snapshots and selectors that relied on role="textbox" for read-only editors.
lexical, @lexical/selection: Preserve selected text and formatting at range boundaries; $patchStyleText styles the selection it is given (#9261)
Equivalent element and text endpoints now select, copy and extract the same text, and $patchStyleText(selection, patch) styles selection even when another selection is active.
Verify: code that calls $patchStyleText with a selection other than the active one, and tests that assert on text extracted or copied from element-boundary selections.
lexical, @lexical/react: Do not read Math.random() while rendering on the server (#9319)
Without a DOM, editor keys and namespaces come from a counter, and LexicalCollaboration uses a fixed name and color, so server prerenders (such as Next.js with cacheComponents) no longer need a Suspense boundary around the composer. Browser behavior is unchanged.
Verify: server-rendering code that reads editor.getKey() or the default namespace, which are now s1, s2, ... without a DOM.
@lexical/react: LexicalAutoEmbedPlugin accepts $disableMenuFor to suppress the embed menu for a matched link (#9365)
@lexical/extension, @lexical/html: Experimental BlockIdExtension and BlockIdHTMLExtension for stable block ids (#9421)
BlockIdExtension gives each block an id that survives serialization, reloads, undo/redo, the Lexical clipboard and collaboration, so code outside the editor (an agent, a server pipeline) can address blocks directly. The id is NodeState (blockIdState), serialized as "$": {"blockId": "…"}. BlockIdHTMLExtension, imported from its own entry point @lexical/html/BlockIdHTMLExtension (#9474) so that the rest of @lexical/html does not pull in the block id implementation, carries the ids through HTML export and import. Both are opt-in; editors that do not register them are unchanged.
@lexical/clipboard: Clipboard import middleware can pass replaced data and selection to $next(data, selection) (#9312)
$next() with no arguments behaves as before. Passing arguments replaces
the data and selection for the remaining handlers of that MIME type, for
example to clean up pasted HTML before Lexical imports it.
lexical, @lexical/compiler, @lexical/fast-check, @lexical/mark: Experimental set-valued NodeState (arraySetValue) and MarkStateExtension (#9380)
arraySetValue(item) declares a state whose value is a frozen, sorted, deduplicated array of strings, and $setState keeps such values canonical. MarkStateExtension in @lexical/mark uses it to store mark ids on the leaves they cover instead of in MarkNode wrappers, so overlapping marks need no tree restructuring and ids travel with the text. Existing states and MarkNode are unchanged.
lexical, @lexical/code-core, @lexical/extension, @lexical/link, @lexical/list, @lexical/mark, @lexical/mdast, @lexical/rich-text, @lexical/table: Experimental node structure keys in $config (inline, children, mergeAdjacent, derived) and an opt-in NodeStructureExtension (#9452)
Classes can declare what they may hold and when adjacent siblings are the same thing, so importers, serializers and storage layers can read rules that used to live only in transforms. getDeclaredNodeStructure(klass) reads the declarations, and NodeStructureExtension in @lexical/extension enforces them. The built-in nodes declare their structure; behavior without the extension is unchanged.
@lexical/react: LexicalAutoEmbedPlugin ignores parseUrl results for links that were removed or changed while parsing (#9331)
lexical: Preserve sibling links and selections when caret operations move or replace nodes (#9262)
@lexical/code-prism, @lexical/code-shiki: Tab no longer throws in a code block whose language the highlighter does not know (#9472)
The highlighters now split such a block into the flat CodeHighlightNode, TabNode and LineBreakNode structure the indentation handlers expect.
lexical: Keep update listeners in commit order when editor.read() runs during listener dispatch (#9335)
Collaboration (Yjs) and history no longer receive commits out of order, which could drop content from the shared document.
lexical: Composing text (IME, dead keys) into a TextNode subclass keeps its type, key and node state (#9291)
lexical: $getRoot().getTextContent() and text content listeners honor element getTextContent() overrides after reconciliation (#9260)
@lexical/plain-text, @lexical/rich-text: Leave a copy, cut or paste inside a decorator's own input to that input (#9288)
lexical: The Flow types of registerEventListener and registerEventListeners no longer depend on a specific DOM libdef (#9258)
Flow projects using the default DOM library definition of Flow 0.333 and later no longer get cannot-resolve-name errors.
@lexical/rich-text: Enter in a heading after a line break or an inline decorator splits the heading instead of turning the start into a paragraph (#9295)
@lexical/history: An update tagged HISTORY_PUSH_TAG always pushes its own undo entry, even when its only dirty leaf is an unchanged TextNode (#9218)
lexical: Markdown shortcuts no longer leave the closing delimiter behind in editors mounted in an iframe (#9352)
lexical: Stop the page jumping when tapping a decorator, such as an image, on iOS (#9325)
@lexical/table: Double-tapping an empty table cell on iOS keeps the selection inside the cell (#9267)
@lexical/rich-text: Allow native iOS text drops that arrive as text/plain files (#9320)
DRAG_DROP_PASTE handlers still get the first chance to handle the drop.
lexical: Deleting a line that starts with an inline decorator keeps the line break before it (#9301)
lexical: Write the managed line break selectors so jsdom 26 and older can parse them (#9372)
@lexical/markdown: Markdown import reads an out-of-range decimal character reference as U+FFFD instead of throwing (#9388)
@lexical/table: Leave clicks on a nested editor's table to that editor (#9356)
lexical: Setting a NodeState key that is still in unknownState drops its JSON copy, so removing the value takes effect (#9468)
@lexical/utils: positionNodeOnRange no longer loops forever once its root element is detached from the document (#9358)
@lexical/table: Table commands repair a ragged table instead of throwing (#9375)
Inserting or deleting rows and columns, merging and unmerging cells, and pasting a table into a table first pad short rows, the same repair the TableNode transform does. Collaborative edits applied with skipTransforms can leave a table ragged.
lexical: Moving a child into an earlier sibling and inserting into its old parent in one update no longer misorders or rebuilds the DOM (#9302)
@lexical/list: Removing a list keeps a caret that was after an inline decorator in place (#9300)
lexical: A SELECTION_CHANGE_COMMAND listener that restates the selection no longer suppresses the next notification (#9328)
lexical: Fix a crash when inserting a paragraph over a range that ends in styled text followed by a link (#9263)
lexical, @lexical/rich-text: Keep selections and deletions inside slot boundaries, including slots of the root and nested slots (#9373)
lexical: Keep the root text content correct after repeated edits inside slots, and read the DOM caret on keydown (#9283)
lexical: Deleting to a soft-wrapped line boundary keeps inline decorators on the neighboring line (#9321)
lexical: Keep Chromium spellcheck underlines when the reconciler changes a text node's text (#9354)
The reconciler writes only the changed part of the text to the DOM instead of replacing the whole string.
lexical: The missing node error names the node and explains how to guard a stale node reference (#9366)
lexical: Ignore selectionchange events from unfocused inputs and textareas, which cleared a focused editor's pending formatting (#9477)
@lexical/link: $toggleLink(null) no longer throws when the selection only touches a link's edge (#9412)
@lexical/extension: NormalizeTripleClickSelectionExtension trims a triple-click overselection however late the selection change arrives (#9317)
@lexical/react: LexicalTypeaheadMenuPlugin ignores an asynchronous onClose that finishes after a newer query opened (#9332)
lexical: Finish a cancelled IME composition in desktop WebKit, so the next Enter reaches KEY_ENTER_COMMAND (#9362)
lexical: Garbage collection no longer walks a detached subtree once per dirty ancestor (#9264)
lexical, @lexical/yjs: Re-create only the children that moved when syncing an element's children to Yjs (#9349)
Siblings keep their Yjs identities, so concurrent edits to them are not lost, and moving one paragraph in a long document no longer re-creates every paragraph in between.
lexical package includes CHANGELOG.md, so the release history is available at node_modules/lexical/CHANGELOG.md (#9357)@abhinavs1920, @Tabisharaza, @zurfyx, @etrepum, @maximilliangrand, @mbret, @Vedthakar, @rinarakaki, @vijayojha89, @potatowagon, @ump45nose, @hossiendehghan989, @WeAreResilience, @kevin9327, @unknownhackerworld, @Thanatos9404, @pataar, @followdarko, @badcuban, @justinchen13, @adstep
Object to any in lexical (#9353) Sam Zhouv0.52.1-nightly.20261028.0
v0.52.1-nightly.20261028.0
v0.52.1-nightly.20261027.0
v0.52.1-nightly.20261027.0
v0.52.1-nightly.20261026.0
v0.52.1-nightly.20261026.0
v0.52.1-nightly.20261023.0
v0.52.1-nightly.20261023.0
v0.52.1-nightly.20261022.0
v0.52.1-nightly.20261022.0
v0.52.1-nightly.20261021.0
v0.52.1-nightly.20261021.0
v0.52.1-nightly.20261020.0
v0.52.1-nightly.20261020.0
v0.52.1-nightly.20261019.0
v0.52.1-nightly.20261019.0
v0.52.1-nightly.20261016.0
v0.52.1-nightly.20261016.0
v0.52.1-nightly.20261015.0
v0.52.1-nightly.20261015.0
v0.52.1-nightly.20261014.0
v0.52.1-nightly.20261014.0
v0.52.1-nightly.20261013.0
v0.52.1-nightly.20261013.0
v0.52.1-nightly.20261012.0
v0.52.1-nightly.20261012.0
v0.52.1-nightly.20261009.0
v0.52.1-nightly.20261009.0
v0.52.1-nightly.20261008.0
v0.52.1-nightly.20261008.0
v0.52.1-nightly.20261007.0
v0.52.1-nightly.20261007.0
v0.52.1-nightly.20261006.0
v0.52.1-nightly.20261006.0
v0.52.1-nightly.20261005.0
v0.52.1-nightly.20261005.0
v0.52.1-nightly.20261002.0
v0.52.1-nightly.20261002.0
v0.52.1-nightly.20261001.0
v0.52.1-nightly.20261001.0
v0.52.1-nightly.20260930.0
v0.52.1-nightly.20260930.0
v0.52.1-nightly.20260929.0
v0.52.1-nightly.20260929.0
[lexical][lexical-html] Breaking Change: honor $createDOM overrides in default DOM export by @etrepum in https://github.com/facebook/lexical/pull/9231
v0.52.0 is an ad-hoc release targeting a few fixes to mobile text input, but carries a number of other updates accumulated in the past week as we move towards Lexical 1.0. We did a pass to modernize the documentation focusing on the latest features. @lexical/mdast now uses one configurable MdastExtension for import and export, headless editors can be built entirely from extensions, and selection notifications have a consistent timing contract. There are also fixes for deletion, horizontal caret scrolling, drag-and-drop and mobile input.
lexical — SELECTION_CHANGE_COMMAND consistently runs before DOM reconciliation, inside the pending writable update. This includes automatic NodeSelection and TableSelection notifications that previously ran after reconciliation. $getSelection() returns the pending selection; $getPreviousSelection() returns the last committed selection. Eligible programmatic changes now notify without waiting for a native selectionchange event. Listener edits join the same commit, and handlers that change the selection must converge. A listener that throws can now abort the whole pending update, including the edit that triggered the notification, and listeners inherit that update's tags, so content edits made during a COLLABORATION_TAG or HISTORIC_TAG update are not synced to Yjs peers. Move DOM-dependent work such as element lookup, focus checks and floating UI positioning into $onUpdate(() => editor.read('latest', () => { /* ... */ })), reading selection and nodes inside that callback. Use registerUpdateListener for UI that must respond to every commit, including content-only changes (#9219, selection timing guide)lexical / @lexical/html — Default HTML export now honors DOMRenderExtension $createDOM overrides. This affects nodes that inherit LexicalNode.exportDOM or call super.exportDOM(editor), including text and paragraphs. If an override was intended only for the live editor, review the HTML it now exports. Custom exportDOM implementations that create their own elements can still bypass this hook; $updateDOM and $decorateDOM remain reconciliation-only, and $exportDOM handles export-specific changes (#9231)lexical — LexicalNode.getCommonAncestor is removed. Use $getCommonAncestor(a, b)?.commonAncestor ?? null. This is not quite a direct substitution: the removed method first replaced non-element arguments with their parents, while the function compares the supplied nodes and can return a text node when both arguments are that node. Pass the parents of non-element nodes if you need the old behavior, and use type guards instead of the old unchecked generic type argument (#9238)@lexical/mdast — MdastImportExtension and MdastExportExtension are deprecated aliases of MdastExtension. Move configuration to MdastExtension and replace MdastImportExtensionOutput / MdastExportExtensionOutput with MdastExtensionOutput. The package is experimental, and these aliases are intended to remain for only one release (#9198)@lexical/mdast — Unified Markdown configuration and inherited export rules. MdastExtension owns both import and export, and feature extensions include it automatically. Export rules accept a node class or type string and apply to subclasses, with more specific rules taking precedence. A TextNode rule can therefore handle tabs and custom text subclasses without separate registrations (#9198)@lexical/mdast — Import/export middleware through context.next(). Delegate conversion of the same node to the remaining handlers, then return or modify their output. Export chains try remaining same-type rules before ancestor rules. Use context.next() to delegate: null retains its existing meaning of default export or omitted import, while [] omits content in either direction. Formatted text from middleware participates in text merging; custom structure or metadata is preserved as-is (#9198)@lexical/headless — HeadlessExtension works with buildEditorFromExtensions for server-side processing and tests. It marks the editor as headless and prevents attaching a DOM root. Unlike createHeadlessEditor, it keeps listener registration methods available, so extensions that register root listeners can still be used (#9249)Selection & editing
scroll-padding, with updated playground styling to keep the caret clear of the code gutter (#9215)Mobile input & recovery
setEditorState with a childless root warns and recovers to an empty paragraph in production. Development builds still report the invalid state through onError (#9183)Performance & signals
@lexical/extension raises its @preact/signals-core dependency to ^1.14.4, fixing stale computed values after a batch changes a signal and restores its original value (#9248)Playground & docs
$config schemas, NodeState, and HTML import/export through extensions (#9237)Full Changelog: https://github.com/facebook/lexical/compare/v0.51.0...v0.52.0
lexical, @lexical/table: SELECTION_CHANGE_COMMAND runs before reconciliation (#9219)
The command runs inside the pending update, before DOM
reconciliation, including automatic NodeSelection / TableSelection
notifications. Listener edits join the same commit and inherit its tags; a
throwing listener can abort the update.
Detect: registerCommand(SELECTION_CHANGE_COMMAND, ...) handlers that
read the DOM (getElementByKey, getBoundingClientRect, focus checks,
floating UI positioning).
Migration:
// Before
editor.registerCommand(SELECTION_CHANGE_COMMAND, () => {
positionToolbar(editor);
return false;
}, COMMAND_PRIORITY_LOW);
// After
editor.registerCommand(SELECTION_CHANGE_COMMAND, () => {
$onUpdate(() => editor.read('latest', () => positionToolbar(editor)));
return false;
}, COMMAND_PRIORITY_LOW);
Use registerUpdateListener for UI that must react to every commit. See
Selection change timing.
lexical: LexicalNode.getCommonAncestor removed (#9238)
The method is removed. $getCommonAncestor is not a drop-in
replacement: the old method first replaced non-element arguments with
their parents.
Detect: .getCommonAncestor( calls on nodes.
Migration:
// Before
const ancestor = a.getCommonAncestor(b);
// After (pass parents of non-element nodes to keep the old behavior)
const ancestor = $getCommonAncestor(a, b)?.commonAncestor ?? null;
lexical, @lexical/html: HTML export honors DOMRenderExtension $createDOM overrides (#9231)
Nodes that inherit LexicalNode.exportDOM or call
super.exportDOM(editor) export the DOM produced by $createDOM
overrides.
Detect: domOverride(...) configs with $createDOM that were meant
only for the live editor.
Migration: move export-specific changes to $exportDOM, or review the
HTML now exported.
Verify: $generateHtmlFromNodes and copy as HTML.
@lexical/mdast: MdastImportExtension, MdastExportExtension and their output types deprecated (#9198)
Replacement: MdastExtension and MdastExtensionOutput.
Removal: no earlier than v0.53.0; #9316 removes it after v0.52.0.
v0.51.1-nightly.20260928.0
v0.51.1-nightly.20260928.0
v0.51.1-nightly.20260925.0
v0.51.1-nightly.20260925.0
v0.51.1-nightly.20260924.0
v0.51.1-nightly.20260924.0
v0.51.1-nightly.20260923.0
v0.51.1-nightly.20260923.0
v0.51.1-nightly.20260922.0
v0.51.1-nightly.20260922.0
v0.51.1-nightly.20260921.0
v0.51.1-nightly.20260921.0
v0.51.1-nightly.20260918.0
v0.51.1-nightly.20260918.0
[*] Breaking change: Publish ESM only to npm and keep the CommonJS build for www by @etrepum in https://github.com/facebook/lexical/pull/9127
v0.51.0 is a monthly release with one large new feature: nodes can now declare their JSON serialization as a schema on $config. This declarative schema is faster, safer, and more flexible than the hand-written methods. The metadata it provides enables a compact export option with all default values elided, the code generator that provides faster import and export for every node that lexical ships, a new @lexical/fast-check package for property-based tests, and it provides a path to future features that rely on knowing the structure of the nodes (e.g. additional codecs and dev tools).
This is a big step towards Lexical 1.0, the next few releases are expected to be focused on moving everything (including docs and examples) to the latest Extension and $config APIs and removing deprecated functionality. Two related changes in this release are that we are publishing ESM-only to npm now (cjs builds are still supported in the source tree), and LexicalComposer is deprecated for LexicalExtensionComposer. Expect anything @deprecated to be removed soon.
"type": "module" and its exports map offers development / production / default conditions with no require branch; the CommonJS build remains in-tree only for Meta's www. Bundlers are unaffected. CommonJS code can require() the packages on Node.js 20.19+ (the builds have no top-level await), and older Node.js must use await import(...) — but a dependency the app also loads through require() can then exist twice, which breaks handing its objects to Lexical (yjs docs to @lexical/yjs, @preact/signals-core signals from @lexical/extension), so load those as ESM too. Metro bundles both builds unless you add the condition for Lexical's packages; see the module formats FAQ (#9127)lexical — exportJSON may serialize the instance as-is. A property declared with withField is read straight off the node instead of through its accessor, so exportJSON no longer resolves getLatest() for you and a stale reference can write stale values (and a property whose accessor a subclass overrode still resolves, so one object can mix the two). Nothing inside Lexical is affected — the walk, the clipboard selection export and editorState.toJSON() all start from the node map — but call getLatest() yourself on a reference you kept across a mutation (#8602)@lexical/code — the deprecated Prism re-exports are gone, along with the @lexical/code-prism dependency (so Prism no longer lands in a bundle that only imports @lexical/code). Import CODE_LANGUAGE_FRIENDLY_NAME_MAP, CODE_LANGUAGE_MAP, getCodeLanguageOptions, getCodeLanguages, getCodeThemeOptions, getLanguageFriendlyName, normalizeCodeLanguage (formerly also normalizeCodeLang), PrismTokenizer and registerCodeHighlighting from @lexical/code-prism (#9141)@lexical/react — LexicalComposer is deprecated in favor of LexicalExtensionComposer and is expected to be removed in a future major. LexicalComposer cannot accept extensions, so any feature shipped as one is unreachable from an editor it builds; the migration is usually a two-line change (#9168, React extensions guide)lexical — Declarative serialization schemas (experimental). A node that uses $config declares its serialized properties once in the new json property, and that single declaration drives importJSON, updateFromJSON and exportJSON: nodeSchema, withField / withAccessors, and the value combinators (stringValue, numberValue, booleanValue, enumValue, arrayValue, objectValue, unionValue, rawValue, transformValue, nullable, optional, …). Every built-in node declares one, and most custom nodes now need no JSON serialization code at all. Output is unchanged by default (#8602, serialization docs).lexical — Compact JSON export, opt-in via editorState.toJSON(true) or $withCompactExport(true, cb) (with $isCompactExport() for schema getters, plus $exportNodeJSON and the CompactSerializedEditorState / ParsableSerializedEditorState / LexicalParseJSON / SerializedPartial types). It omits properties equal to their schema default, properties the parser derives, and the deprecated version. The raw objects are well under half the legacy size — which matters for structured clones and worker messages — but after gzip the two are a wash. Both forms parse back to the same document; only a Lexical new enough to know the schemas can read the compact one, so keep writing the legacy form until every reader is upgraded (#8602)@lexical/compiler — Generated serialization code. Every built-in node class ships straight-line serialization generated from its own schema at build time, producing byte-identical JSON to the schema-driven path that continues to serve custom nodes (#8602)@lexical/fast-check — New package deriving fast-check arbitraries from those schemas: nodeArbitrary(NodeClass) generates exactly the serialized JSON a node's parser accepts, each property independently present or absent. Useful for the bugs fixtures hide, such as a property afterCloneFrom forgot to copy. fast-check is a peer dependency; getComposedSchemaFields in core inspects a class's schema without generating anything (#8602)@lexical/extension — Published as subpath exports, one entry per extension (@lexical/extension/AutoFocusExtension, …), with compiler and lint enforcement of the source import convention. The barrel import is unchanged, and shared modules such as signals keep a single instance (#9161). This is primarily only useful as a consumer if you are not using tree-shaking.Bundling, tree-shaking & types
createCommand no longer retains the editor (#9121), and the remaining module-scope side effects that defeated tree-shaking are gone, with a bare-import residue check now run over every entry (#9124); extension editors build under loose-mode transpilation (#9134)defineExtension was uncallable, making the extension types unusable (#9132); declarations can now express an extension with dependencies (#9176); modern variance keywords survive into the www stubs (#9154)Selection & editing
TextNode.setMode, setTextContent and isSimpleText read the latest state (#9162); $removeTextFromCaretRange no longer leaves a childless list or table as the root's only child (#9116); a text entity keeps the style and detail of the text it replaces (#9130); selection overlay listeners are notified when rectangles are removed (#9117)Lists, tables & Markdown
$mergeCells no longer keeps the empty paragraph of the target cell (#9122); text left outside a Markdown link keeps its format (#9131)Playground & docs
Plus the usual dependency updates across the rollup, shikijs, vitest, docusaurus/typedoc and flow/hermes groups.
Full Changelog: https://github.com/facebook/lexical/compare/v0.50.0...v0.51.0
all packages: npm packages are ESM only (#9127)
Every package declares "type": "module" and its exports
map has no require condition.
Detect: require('lexical') / require('@lexical/...') in CommonJS
code, Node.js older than 20.19, Jest or Metro setups that load Lexical as
CommonJS.
Migration: bundlers need no change. On Node.js 20.19+ require()
works; on older Node.js use await import(...), and load dependencies you
pass to Lexical (yjs, @preact/signals-core) as ESM too so only one copy
exists. See the FAQ on module formats.
lexical: exportJSON may read a stale node (#8602)
Properties declared with withField are read directly from
the instance, so exportJSON on a stale reference can write stale values.
Detect: calls to node.exportJSON() on references kept across a
mutation.
Migration: call node.getLatest().exportJSON().
@lexical/code, @lexical/code-prism: Prism re-exports removed from @lexical/code (#9141)
The deprecated Prism re-exports and the @lexical/code-prism
dependency are removed from @lexical/code.
Detect: imports of CODE_LANGUAGE_FRIENDLY_NAME_MAP,
CODE_LANGUAGE_MAP, getCodeLanguageOptions, getCodeLanguages,
getCodeThemeOptions, getLanguageFriendlyName, normalizeCodeLanguage,
normalizeCodeLang, PrismTokenizer, or registerCodeHighlighting from
@lexical/code.
Migration: add @lexical/code-prism and import them from there;
rename normalizeCodeLang to normalizeCodeLanguage.
@lexical/react: LexicalComposer deprecated (#9168)
Replacement: LexicalExtensionComposer; see React extensions.
Removal: not scheduled.
lexical, @lexical/clipboard: The version field of serialized nodes and clipboard payloads deprecated (#8602)
Replacement: none; parsing ignores it and a compact export omits it.
Removal: not scheduled.
v0.50.1-nightly.20260917.0
v0.50.1-nightly.20260917.0
v0.50.1-nightly.20260916.0
v0.50.1-nightly.20260916.0
v0.50.1-nightly.20260915.0
v0.50.1-nightly.20260915.0
v0.50.1-nightly.20260914.0
v0.50.1-nightly.20260914.0
v0.50.1-nightly.20260911.0
v0.50.1-nightly.20260911.0
v0.50.1-nightly.20260910.0
v0.50.1-nightly.20260910.0
v0.50.1-nightly.20260909.0
v0.50.1-nightly.20260909.0
v0.50.1-nightly.20260908.0
v0.50.1-nightly.20260908.0
v0.50.1-nightly.20260907.0
v0.50.1-nightly.20260907.0
v0.50.1-nightly.20260904.0
v0.50.1-nightly.20260904.0
v0.50.1-nightly.20260903.0
v0.50.1-nightly.20260903.0
…a reusable action (#9084), fixed a qs dependency vulnerability (#9072), quieted stderr noise in test-unit (#9098) and moved the playground onto ownerD…
v0.50.0 is a monthly release with a large number of PRs to improve correctness, accessibility, and performance. It also ships HMR support, compiled keyboard shortcut dispatch, and screen reader announcements for headings and auto-links, and build-time tree-shaking annotations (in a new @lexical/compiler package). We have upgraded to pnpm 11, so if you're working directly with the monorepo you will need to upgrade as well.
lexical — LexicalNode.replace() no longer re-homes a named slot value. A slot value has no parent (its up-link is __slotHost), so replacing one through the tree API now fails with an actionable invariant instead of a generic parent error; use $setSlot on the owning host. $setBlocksType and the block converters skip slot values for the same reason (#8938, #8905, #8901)@lexical/clipboard — The Lexical JSON clipboard payload (application/x-lexical-editor) now asks excludeFromCopy('clone') instead of 'html', matching the destination the rest of that payload already uses. Nodes that opt out of HTML export but expect to survive a clone (e.g. MarkNode) are copied again; custom excludeFromCopy implementations that keyed on 'html' for this channel should be updated (#8995)These were merged as bug fixes rather than breaking changes, but they change observable output — check them if you snapshot HTML, assert on the DOM, or depend on the old editing behavior.
<br>. A trailing LineBreakNode in a block now exports an extra <br data-lexical-managed-linebreak="true">, mirroring what the reconciler already puts in the live DOM, so <p>a<br></p> survives an export/import round trip. Both importers drop the marker, but exported-HTML fixtures will differ (#8765)aria-live region by default. HeadingAnnounceExtension (via RichTextExtension) and AutoLinkAnnounceExtension (via AutoLinkExtension) depend on AriaLiveRegionExtension, which appends a live-region <div> to document.body — or to the configured owner element. Opt out with configExtension(HeadingAnnounceExtension, {disabled: true}) (#8908, #9071)ParagraphNode.extractWithChild now keeps a fully-selected paragraph that carries alignment, indent or inline style in the payload as a block, instead of splicing its children in and dropping that formatting. Paragraphs with none of it serialize as before (#9059)importJSON applies registered node replacements. JSON deserialization builds through $create, so a replacement's class is constructed and its importJSON runs; a deprecated replace without withKlass is still applied the old way (#9061, #9090)RootListener and EditableListener are typed to return a cleanup function; returning one from another listener is now a TypeScript error — it was never called (#8990)@lexical/yjs no longer syncs root textFormat/textStyle (#8940); Markdown import restructures nested mixed-type lists and stores fence metadata in a new mdCodeMeta node state (#8283)insertText anchor that is not a text node, an empty KeyboardShortcutMatch key, and a createBindingV2 getXmlText/getXmlElement that returns an un-integrated or misnamed type (#6483) now throw instead of failing laterlexical — CAN_UNDO_COMMAND and CAN_REDO_COMMAND are deprecated in favor of the canUndo / canRedo signals on HistoryExtension. A command only reports a change, so a listener registered after initialization can't read the current value; the signal always holds it (#8918)@lexical/compiler — New package that injects /* @__PURE__ */ annotations and inlines the trivial side-effect-free factories (defineExtension, configExtension, safeCast, createCommand, createState, …) at build time, as a Rollup and Vite plugin. Hand-written annotations on those calls are no longer needed (#9086)@lexical/extension — HMRExtension (with HMRConfig, HMROutput, HotContext) keeps an editor alive across hot module replacement. @lexical/react gains LexicalMenuOption, LexicalAutoEmbedPluginUtils, LexicalTypeaheadMenuPluginUtils and LexicalCollaborationContextUtils entry points that split values out of component modules so Fast Refresh works — the original exports are unchanged (#8959)lexical / @lexical/extension — Compiled keyboard shortcut dispatch: compileKeyboardShortcuts, CONTROL_OR_ALT, CONTROL_OR_META, CONTROL_OR_OTHER_KEY, keyboardEventMaskForPlatform and the KeyboardShortcut* types in core, plus KeyboardShortcutsExtension and formatKeyboardShortcut for declaring named shortcuts and rendering them per platform (#8876)@lexical/rich-text — HeadingAnnounceExtension announces heading changes to screen readers, on by default in RichTextExtension; @lexical/link's AutoLinkAnnounceExtension does the same when typing turns text into a link, on by default with AutoLinkExtension (#8908, #9071)@lexical/list — Opt-in WordListImportExtension reconstructs list structure from Microsoft Word HTML (MsoListParagraph classes and mso-list metadata) on paste (#9082)@lexical/rich-text — New shouldHandlePasteAsFiles config (and exported defaultShouldHandlePasteAsFiles, plus an optional third argument to registerRichText) lets an app decide that pasted files win over the incidental text/html browsers attach when an image is copied. The default is unchanged: files are handled only when the clipboard carries no text content (#8902, #8699)@lexical/yjs — CreateBindingV2Options__EXPERIMENTAL allows a custom Yjs XmlText, so a Lexical document can live inside a larger shared type (#6483)lexical — New $getSelectionSlotFrame (#9052) and $flushSyncAfterUpdate (#9067) exports; $isBlockFullySelected moved into core and is still re-exported from @lexical/utils (#9059); @lexical/table now exports the TableCellHeaderState type (#9038); JSDoc added across the core exports (#8895)Named slots & the node tree
replace() keeps the parent's __size correct when handed a sibling (#8917), and splice no longer creates a sibling cycle when it re-inserts a node after the range (#8916)Node state, copy/paste & serialization
EditorState.clone() keeps _parsed (#8989), AutoLinkNode.insertNewAfter keeps its properties (#8996), a split heading keeps its format and style (#8926), split lists continue numbering from the item's value (#8913), and in the playground the Excalidraw drawing and size survive a clone (#8984), a closed collapsible no longer exports as open (#8994), mention nodes keep their display text (#8999), custom nodes keep the theme classes createDOM applied (#9049) and an unparseable data-lexical-datetime no longer breaks serialization (#9047)Selection & editing
$extendCaretToRange's focus is a real, flippable position (#8930); Shift+Arrow extends adjacent node selections (#9067); clicking inside a selected node no longer deselects it (#8910)insertNodes no longer leaves an empty paragraph after a block inserted at the end of a paragraph (#9099); insertText no longer throws when the caret is inside a segmented TextNode (#9104); Backspace works at a soft line-wrap boundary in Firefox (#9101); Enter on iOS no longer moves the caret past the acceptance boundary (#8941); iPadOS desktop-class user agents are detected (#8909); dropped files are forwarded when the drop point has no caret (#9076); clear-formatting resets the cached selection format (#8889)Tables & lists
colSpan (#8911); importDOM imports the dir attribute (#8914); toggleHeaderStyle stays inside TableCellHeaderStates (#9038); the trackTable MutationObserver is disconnected in removeListeners (#9074); text cursor placement is reliable when tapping cells on touch devices (#8827)Links, Markdown & HTML
TOGGLE_LINK_COMMAND's object payload no longer discards the configured attributes (#8985); $toggleLink applies the title attribute for a NodeSelection (#8993); LinkNode/AutoLinkNode getters read the latest state (#9080); middle-clicked links open in a new tab (#9078); the auto embed menu only opens when a bare link is pasted (#9091); the playground's validateUrl no longer accepts a sentence that merely contains a URL (#9097)exportDOM returning a DocumentFragment applies its after() replacement (#8997); parseSelector rejects an empty selector group (#9083); Prism language maps are read as own properties (#8981); a function-valued style patch is applied once to an empty element (#8912); objectKlassEquals no longer throws on undefined or prototype-less objects (#9079)React, collaboration & history
Placeholder uses the SSR-safe useLayoutEffect (#8906); the typeahead query updates during IME composition (#8942); plugins and hooks re-derive when their inputs change (#9051); focus is restored after dragging decorator blocks (#9064); multiple clicks are normalized (#8928)shouldBootstrap is documented as at-most-one-client (#9107); SharedHistoryExtension forwards the parent maxDepth (#9044) and shared history stacks record the state of the editor that actually changed, alongside fixes to overlays, hit targets and shared state at the editor boundary (#9053)Docs & tooling
DOMImportExtension rule evaluation order (#9089), SKIP_DOM_SELECTION_TAG behavior during the initial editor state (#8636) and $reverseDfs (#8962), plus an OpenGraph social preview for the website (#8935)qs dependency vulnerability (#9072), quieted stderr noise in test-unit (#9098) and moved the playground onto ownerDocument/$getDocument() for shadow DOM safety (#8878)Full Changelog: https://github.com/facebook/lexical/compare/v0.49.0...v0.50.0
lexical, @lexical/utils, @lexical/selection: replace() no longer moves named slot values (#8938)
Calling replace() on a named slot value throws; $setBlocksType
and block converters skip slot values.
Detect: replace( called on nodes that are slot values.
Migration: use $setSlot on the owning host.
@lexical/clipboard: Lexical clipboard JSON uses excludeFromCopy('clone') (#8995)
The application/x-lexical-editor payload asks
excludeFromCopy('clone') instead of 'html'.
Detect: custom excludeFromCopy(destination) overrides that branch on
'html'.
Migration: return the intended value for 'clone' as well.
lexical: Only RootListener and EditableListener may return cleanup (#8990)
Returning a function from other listener types is a type error (it was never called).
Detect: type errors on registerUpdateListener,
registerTextContentListener, registerMutationListener or
registerDecoratorListener callbacks that return a function.
Migration: remove the returned function and clean up elsewhere.
lexical, @lexical/yjs: New invariants (#6483)
These now throw instead of failing later: an insertText anchor that is not
a text node, an empty KeyboardShortcutMatch key, and a createBindingV2
getXmlText / getXmlElement that returns an un-integrated or misnamed
type. (Replacing a slot value through the tree API is the replace() entry
above.)
Detect: createBindingV2 with custom getXmlText / getXmlElement; KeyboardShortcutMatch objects; insertText called on a selection whose anchor is an element.
Migration: fix the call that now throws; the error names the problem.
Verify: custom Yjs bindings, keyboard shortcut definitions, and insertText callers.
lexical, @lexical/html: HTML export emits a terminating managed <br> (#8765)
A trailing LineBreakNode in a block also exports
<br data-lexical-managed-linebreak="true">.
Detect: exported HTML fixtures.
Migration: update fixtures.
Verify: HTML export of blocks ending in a line break.
@lexical/rich-text, @lexical/link: Rich text and autolink mount an aria-live region (#8908)
HeadingAnnounceExtension (via RichTextExtension) and
AutoLinkAnnounceExtension (via AutoLinkExtension) append a live-region
<div> to document.body or the configured owner.
See also #9071.
Detect: RichTextExtension or AutoLinkExtension users with DOM
snapshot tests or strict body markup.
Migration: opt out with
configExtension(HeadingAnnounceExtension, {disabled: true}) (and the same
for AutoLinkAnnounceExtension).
Verify: DOM snapshots; screen reader output.
lexical: Select-all delete and cut remove the blocks (#8884)
Deleting or cutting a whole-document selection removes the top-level blocks and leaves a fresh empty paragraph.
Detect: tests asserting block type after select-all + delete/cut.
Migration: update expectations.
Verify: select-all then delete, cut, and paste.
lexical: Formatted paragraphs copy as blocks (#9059)
A fully selected paragraph with alignment, indent, or inline style is copied as a block instead of having its children spliced in.
Detect: clipboard tests involving formatted paragraphs.
Migration: update expectations.
Verify: copy/paste of aligned or indented paragraphs.
lexical: importJSON applies registered node replacements (#9061)
JSON deserialization constructs the replacement class from
nodes: [{replace, with, withKlass}] and runs its importJSON.
See also #9090.
Detect: editors that configure node replacements and load JSON.
Migration: None, unless code relied on the original class after load.
Verify: loading saved documents with node replacements.
@lexical/yjs: Root textFormat / textStyle are no longer synced (#8940)
Collaboration no longer syncs the root node's textFormat and textStyle.
Detect: code that reads the root node's textFormat or textStyle in a collaborative editor.
Verify: collaborative documents whose root text format or style was relied on.
@lexical/markdown: Markdown import restructures nested mixed-type lists and keeps fence metadata (#8283)
Markdown import builds a different structure for nested lists that mix
list types, and stores code fence metadata in a new mdCodeMeta node state.
Detect: code that walks imported list structures or reads code fence info after a Markdown import.
Migration: None, unless code depends on the old list structure.
Verify: Markdown import of nested mixed-type lists and of fenced code with metadata.
lexical: CAN_UNDO_COMMAND and CAN_REDO_COMMAND deprecated (#8918)
Replacement: the canUndo / canRedo signals of HistoryExtension.
Removal: not scheduled.
v0.49.1-nightly.20260902.0
v0.49.1-nightly.20260902.0
v0.49.1-nightly.20260901.0
v0.49.1-nightly.20260901.0
v0.49.1-nightly.20260831.0
v0.49.1-nightly.20260831.0
v0.49.1-nightly.20260828.0
v0.49.1-nightly.20260828.0
v0.49.1-nightly.20260827.0
v0.49.1-nightly.20260827.0
v0.49.1-nightly.20260826.0
v0.49.1-nightly.20260826.0
v0.49.1-nightly.20260825.0
v0.49.1-nightly.20260825.0
One column per quarter.