Repository navigation
v0.49.0 - #8893
Merged
Merged
v0.49.0#8893
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
etrepum
marked this pull request as ready for review
July 29, 2026 20:07
etrepum
requested review from
acywatson,
fantactuka,
ivailop7,
potatowagon and
zurfyx
as code owners
July 29, 2026 20:07
zurfyx
approved these changes
Jul 29, 2026
potatowagon
approved these changes
Jul 30, 2026
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.49.0 is a maintenance release headlined by the completion of the
$config()protocol migration for Lexical's built-in node classes (#8640), a breaking change that replaces per-nodegetType()/clone()/importJSON()/importDOM()/transform()boilerplate with runtime-synthesized behavior. It ships with a cluster of follow-up fixes hardening the synthesizedgetType()andclone()(including a stack overflow in compiled builds), an opt-in sticky horizontal scrollbar for overflowing tables, and a broad batch of fixes across tables, Markdown, HTML, code highlighting, and selection.Breaking Changes
lexical— Built-in node classes are ported to the$config()protocol. The staticimportJSON(),importDOM(),clone(), andtransform()methods are no longer present on ported nodes; use the higher-level equivalents instead (LexicalEditor.parseEditorState/$generateNodesFromDOM, the$cloneWithPropertieshelper, and extensions or$transformin$config).getType()is unchanged and safe to keep using,__typeis nowreadonly, and node constructors require zero-argument defaults. Custom nodes may keep their static methods, but adopting$config()is recommended (#8640)lexical—LexicalCommand<T>'s payload type is now invariant to prevent unsafe structural compatibility between commands. Previously correct code (including explicit generics) needs no changes; only unsafeLexicalCommand<unknown>usage must switch to the newly exportedAnyLexicalCommandalias.dispatchCommand's payload argument is now optional when a command's payload type isundefinedorvoid, and redundant explicit type parameters were dropped from theregisterCommand/registerNodeTransformcall sites (#8877)New APIs & Features
@lexical/table— Opt-in sticky horizontal scrollbar for tables wider than their container, so the scrollbar stays anchored at the viewport bottom instead of only being reachable at the end of the table. Enable it withhasStickyScrollbar: truein the table config; style it via the newtableStickyScrollbartheme key (#8790)@lexical/table— The<colgroup>element is now omitted from the table DOM when column widths are undefined, producing cleaner markup and letting the browser auto-size columns; it is created or removed dynamically as widths change (#8850)lexical— Added an editor operation benchmark suite (paragraph split, bold formatting, range deletion, paste, select-all format) measured through full DOM reconciliation, to help contributors track core editing performance (#8856)Deprecations
@lexical/table—$createTableSelectionis deprecated in favor of$createTableSelectionFrom, which takes the table node plus anchor/focus cells and validates them, instead of returning a blank selection with placeholder'root'keys that must be overwritten (#8855)@lexical/table—getShape()is deprecated because it computes incorrect bounds for merged cells; use the now-exported$computeTableCellRectBoundary(with$computeTableMap) instead (#8853)Notable Fixes
$config()follow-ups (#8640)clone()now appliesafterCloneFrom()when called directly (e.g.NodeClass.clone(node)), fixing silent property loss across 25+ core nodes (#8864)getType()no longer returns the superclass type when inherited, fixing node-type collisions during editor registration (#8867)getType()no longer recurses infinitely when a bundler copies it onto a subclass as an own static, fixing stack overflows in compiled/minified builds (#8869)Tables
DELETE_LINE_COMMAND(Cmd/Ctrl-based delete-line shortcuts) now works inside table cells instead of being silently swallowed (#8851)Selection & editing
editor.read()) now run in a fresh writable update instead of being silently dropped, with a dev warning (#8863)Markdown, HTML & code
p, .foo) against all elements instead of only tag-matched ones (#8873)QuoteNode.updateDOMnow accepts theEditorConfigargument the reconciler passes to every other node, for API consistency (#8882)Playground & website
What's Changed
New Contributors
Full Changelog: v0.48.0...v0.49.0