Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
e66b9d6 to
9400938
Compare
9400938 to
01abe99
Compare
zurfyx
approved these changes
Mar 19, 2026
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.42.0 is a monthly release with a huge number of fixes and features from a lot of new contributors. The most notable fixes are related to tables, links, extensions, and markdown.
@lexical/eslint-pluginis now fully compatible with eslint 9+. The production builds are also now generated in an ascii-only format which may considerably reduce memory usage in some deployment environments.Breaking Changes
Prism highlighting extracted from
@lexical/code#8198Prism highlighting now lives in
@lexical/code-prismand the Prism related functionality in@lexical/codeis now deprecated. Transitionally, there is a@lexical/code-corepackage which has the implementation of Lexical's code functionality without a Prism dependency.Experimental hasFitNestedTables has been moved to the playground #8210
Due to its experimental nature and incomplete implementation, the in-progress hasFitNestedTables functionality has been moved to the playground
New APIs
lexical-$copyNode+ LexicalNode.resetOnCopyNodeFrom & NodeState resetOnCopyNodeAfter
$copyNodeis used it now callscopiedNode.resetOnCopyNodeFrom(originalNode)which will reset every NodeState that hasresetOnCopyNode: truein its configuration. Subclasses can override this method to reset other "ephemeral" state such as whether a ListNodeItem is checked or not.Note that this does not influence serialization or copy and paste operations, it only affects calls to
$copyNode.@lexical/utils-$insertNodeIntoLeafThe current behavior RangeSelection.insertNodes can split an inline ElementNode (e.g. a LinkNode) when inserting content, even if that content is also inline and could be a child of the given node.
$insertNodeIntoLeafis now provided to insert a node without splitting any containing nodes.Highlights
Core:
EditorThemeClasses#8190 Change EditorThemeClasses from type to interfaceCode:
@lexical/code-prismand add@lexical/code-coreto provide a dependency that does not include Prism.@lexical/coderemains backwards compatible with Prism included, but you should migrate to using highlighting from@lexical/code-shikior@lexical/code-prism.Devtools:
Extension:
Markdown:
Link:
Eslint Plugin:
@lexical/eslint-pluginList:
React:
Table:
SELECTION_CHANGE_COMMANDand deselection handlerUtils:
Misc:
afterCloneFrommethod to LinkNode/AutoLinkNode #8226 [lexical-playground][lexical-react] Bug Fix: Fix accessor implementations to use getLatest/getWritable consistently #8241 Add and fix afterCloneFrom and accessor implementationsInfrastructure
Playground:
What's Changed
EditorThemeClassesby @levensta in [lexical] Chore: Change alias from type to interface forEditorThemeClasses#8190afterCloneFrommethod to LinkNode/AutoLinkNode by @levensta in [lexical-link]: Refactor: addafterCloneFrommethod to LinkNode/AutoLinkNode #8226New Contributors
Full Changelog: v0.41.0...v0.42.0