Repository navigation
v0.44.0 - #8394
Merged
Merged
v0.44.0#8394
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
etrepum
marked this pull request as ready for review
April 27, 2026 03:27
etrepum
requested review from
acywatson,
fantactuka,
ivailop7,
potatowagon,
takuyakanbr and
zurfyx
as code owners
April 27, 2026 03:27
ivailop7
approved these changes
Apr 27, 2026
github-actions
Bot
force-pushed
the
0.44.0__release
branch
from
April 27, 2026 13:20
501d1c6 to
6c5cd83
Compare
zurfyx
approved these changes
Apr 27, 2026
github-actions
Bot
force-pushed
the
0.44.0__release
branch
from
April 27, 2026 14:29
6c5cd83 to
2e0f8fa
Compare
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v0.44.0 is a monthly release with a few minor breaking changes (deprecations), a notable new experimental
DOMRenderExtensionAPI for overriding DOM create/update/export, easier to use priority levels for registering commands, a pagination demonstration and convenient html import/export in the playground, better drag and drop support, automatic inline of CSS for HTML import, consistent CSP-safe style updates, and a wide range of bug fixes and other new features.Breaking Changes
Deprecation of
@lexical/offsetOffsetView(#8350)OffsetView/$createOffsetViewnever worked correctly, has no documentation, no tests, and no usage in the monorepo. It has been deprecated. The only function still in use,$createChildrenArray, is now exported fromlexicalitself — import it fromlexicalrather than@lexical/offsetgoing forward.Code block escape logic moved to
CodeExtension(#8360)The "press Enter three times to exit a
CodeNode" logic has moved fromCodeNode.insertNewAfterto aKEY_ENTER_COMMANDlistener registered byCodeExtension. This fixes paste-with-blank-lines incorrectly escaping the code block. UsingCodeNodewithoutCodeExtensionis now deprecated — a backwards-compatible shim with a dev-mode warning is in place, but the node is expected to stop working withoutCodeExtensionin a future version.New APIs
lexical/@lexical/html— Extensible DOM rendering and export (experimental) (#8353, #8368)A new
DOMRenderExtension(in@lexical/html) andEditorDOMRenderConfig(inlexical) parameterize$createDOM,$updateDOM,$exportDOM,$getDOMSlot,$shouldInclude, and$shouldExcludeso that node rendering and export can be overridden via composable middleware. UsedomOverride(nodes, config)to target one or more node classes, predicates, or'*'(wildcard), and call$next()from inside an override to delegate to the underlying implementation.A new
$decorateDOM(nextNode, prevNode, dom, editor)hook runs after a node is created/updated and after its children have been reconciled, intended for in-place attribute or DOM tweaks. Override ordering is a well-defined topological sort: wildcards highest, then predicates, then class hierarchy (subclass before superclass), with extension dependency order and registration order as tiebreakers.Render-context APIs are also exposed:
$withRenderContext,$getRenderContextValue,contextValue,contextUpdater,RenderContextRoot,RenderContextExport. New traversal helpers$generateDOMFromNodesand$generateDOMFromRootpopulate a container using the configured render config.CreateEditorArgs.domaccepts aPartial<EditorDOMRenderConfig>to override rendering at editor creation.$isLexicalNodeis also exported fromlexical.lexical—COMMAND_PRIORITY_BEFORE_*priorities (#8375)Five new command priorities —
COMMAND_PRIORITY_BEFORE_EDITOR,_BEFORE_LOW,_BEFORE_NORMAL,_BEFORE_HIGH,_BEFORE_CRITICAL— register listeners that run most-recently-registered first, in front of the existing first-registered-first listeners at the same priority. Ordering is: highest priority first, then allBEFORE_*listeners (LIFO), then legacy listeners (FIFO). The new priorities are almost always what you want for new code; legacy priorities are unchanged so this is purely additive. See the new "Priorities and ordering" docs.@lexical/code-prism—CodePrismExtension&@lexical/code-shiki—CodeShikiExtension(#8346)Both packages now export proper extensions (
CodePrismExtension,CodeShikiExtension) with{disabled, tokenizer}signal-based configuration that can be toggled and hot-swapped at runtime. The legacyCodeHighlighterShikiExtensionis kept as a deprecated backwards-compatible shim.@lexical/link/@lexical/react— Custom AutoLink punctuation (#8378)AutoLinkExtension,registerAutoLink, andLexicalAutoLinkPluginnow accept an optionalpunctuationsetting to override the default boundary characters (e.g. to allow colon-delimited matches without breaking URLs that contain colons).@lexical/utils—removeEmptyDestinationfor split-at-caret (#8384)SplitAtPointCaretNextOptions(used by$insertNodeToNearestRootAtCaretand$splitAtPointCaretNext) gains aremoveEmptyDestinationoption for finer control over whether an empty destination is replaced entirely.@lexical/clipboard— Shared drop handlers (#8373)New
$handleRichTextDropand$handlePlainTextDrophelpers implement Lexical-aware text drag-and-drop, including same-block drags, cross-TextNodeand cross-block drops,DecoratorNodepreservation, and cross-editor drags.registerRichTextandregisterPlainTextnow wire these by default.Stable APIs (no longer
@experimental) (#8354)@lexical/extension(since v0.36.1, Sep 2025) and theNodeStateAPI inlexical(since v0.26.0, Feb 2025) are now formally stable.Deprecations
@lexical/offsetOffsetView/$createOffsetView(use$createChildrenArrayfromlexical) ([Breaking Change][lexical-offset][lexical] Chore: Deprecate the broken/undocumented/untested OffsetView and export $createChildrenArray from lexical #8350)@lexical/text$findTextIntersectionFromCharacters— broken, untested, undocumented ([lexical-text] Chore: Add deprecation notice to $findTextIntersectionFromCharacters #8364)CodeHighlighterShikiExtension/CodeHighlighterShikiConfig(useCodeShikiExtension) ([lexical-code-prism][lexical-code-shiki][lexical-playground] Feature: Add CodePrismExtension, CodeShikiExtension, and migrate playground plugins to extensions #8346)CodeNodewithoutCodeExtension([Breaking Change][lexical-code] Bug Fix: move code block escape logic to KEY_ENTER_COMMAND listener #8360)Highlights
Core:
OffsetView; export$createChildrenArrayfromlexicalEditorDOMRenderConfig,DOMRenderExtension,domOverride,$decorateDOM, render context,$generateDOMFromNodes,$generateDOMFromRoot,$isLexicalNode,CreateEditorArgs.domCOMMAND_PRIORITY_BEFORE_*priorities for last-registered-called-first order #8375COMMAND_PRIORITY_BEFORE_*priorities for last-registered-called-first ordering@experimentalfrom Extension and NodeState APIsClipboard / Rich Text / Plain Text:
DecoratorNodes and formatting are preserved across drops; cross-editor drags work even with two Lexical versions on the same pageCode:
KEY_ENTER_COMMANDlistener inCodeExtension; fixes blank-line paste escaping the code blockCodePrismExtension(@lexical/code-prism) andCodeShikiExtension(@lexical/code-shiki)shikito^4.0.2Extension:
reacttype dependency fromDecoratorTextNodeLexicalExtensionEditorComposerno longer disposes the editor on unmount; lifetime is the caller's responsibility (fixes nested/caption editors after remount)HTML / Table:
<style>tags during HTML import (fixes paste from Excel, Outlook, etc.)<li>during HTML export, eliminating duplicate ordered-list numberingLink:
List:
ListItemNodealways has aListNodeparent (orphans are merged or floated to root)pointerup<li>on HTML exportMarkdown:
\d+\.) inside bullet/check list item exports to fix double-escape on round-tripPlayground:
PagesExtensionwithPageNode,PageContentNode,PageSetupNodefor paginated documents and print-friendly output$generateHtmlFromNodes/$generateNodesFromDOM); HTML view formatted with prettierPageBreak,Twitter,YouTube,Figma,TabFocus,Collapsible,SpecialText, code-highlight) and remove the deadLinkPluginandStickyPluginfilesNodeContextMenuPluginfalls back to the root node when the click target has no Lexical node, instead of showing an empty menu@floating-ui/reactforFloatingLinkEditorPluginpositioning; correctly handles all viewport boundaries and FirefoxfocusNode.parentElementquirksReact:
editorRefisnullinLexicalEditorRefPluginyjsas an optional peer dependency for Yarn PnP compatibilityLexicalExtensionEditorComposerNodeContextMenuPluginText:
$findTextIntersectionFromCharactersUtils:
$insertNodeToNearestRootAtCaretedge cases; addremoveEmptyDestinationtoSplitAtPointCaretNextOptionsRefactor (CSP-safe styles):
cssText/setAttribute('style', …)writes with property-based style updates acrosslexical,@lexical/code-core,@lexical/list,@lexical/table,@lexical/yjs, and the playgroundWebsite:
tsconfig.jsonforlexical-websiteso type errors are actually surfaced in CIInfrastructure:
$configin AGENTS.mdyamlto>=1.10.3to fix CVE-2026-33532simple-gitdependency vulnerabilityfollow-redirectsdependency vulnerabilityWhat's Changed
COMMAND_PRIORITY_BEFORE_*priorities for last-registered-called-first order by @etrepum in [lexical] Feature:COMMAND_PRIORITY_BEFORE_*priorities for last-registered-called-first order #8375New Contributors
Full Changelog: v0.43.0...v0.44.0