Repository navigation
v0.50.0 - #9110
Merged
Merged
v0.50.0#9110
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
I think that this intermittent e2e collab failure is the same one that #9107 fixes |
github-actions
Bot
force-pushed
the
0.50.0__release
branch
from
September 2, 2026 19:50
9820333 to
02cb51f
Compare
etrepum
marked this pull request as ready for review
September 2, 2026 20:04
etrepum
requested review from
acywatson,
fantactuka,
ivailop7,
potatowagon and
zurfyx
as code owners
September 2, 2026 20:04
zurfyx
approved these changes
Sep 2, 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.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/compilerpackage). We have upgraded to pnpm 11, so if you're working directly with the monorepo you will need to upgrade as well.Breaking Changes
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$setSloton the owning host.$setBlocksTypeand 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 asksexcludeFromCopy('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; customexcludeFromCopyimplementations that keyed on'html'for this channel should be updated (#8995)Behavior Changes to Watch
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 trailingLineBreakNodein 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-liveregion by default.HeadingAnnounceExtension(viaRichTextExtension) andAutoLinkAnnounceExtension(viaAutoLinkExtension) depend onAriaLiveRegionExtension, which appends a live-region<div>todocument.body— or to the configuredownerelement. Opt out withconfigExtension(HeadingAnnounceExtension, {disabled: true})(#8908, #9071)ParagraphNode.extractWithChildnow 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)importJSONapplies registered node replacements. JSON deserialization builds through$create, so a replacement's class is constructed and itsimportJSONruns; a deprecatedreplacewithoutwithKlassis still applied the old way (#9061, #9090)RootListenerandEditableListenerare typed to return a cleanup function; returning one from another listener is now a TypeScript error — it was never called (#8990)@lexical/yjsno longer syncs roottextFormat/textStyle(#8940); Markdown import restructures nested mixed-type lists and stores fence metadata in a newmdCodeMetanode state (#8283)insertTextanchor that is not a text node, an emptyKeyboardShortcutMatchkey, and acreateBindingV2getXmlText/getXmlElementthat returns an un-integrated or misnamed type (#6483) now throw instead of failing laterDeprecations
lexical—CAN_UNDO_COMMANDandCAN_REDO_COMMANDare deprecated in favor of thecanUndo/canRedosignals onHistoryExtension. A command only reports a change, so a listener registered after initialization can't read the current value; the signal always holds it (#8918)New APIs & Features
@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(withHMRConfig,HMROutput,HotContext) keeps an editor alive across hot module replacement.@lexical/reactgainsLexicalMenuOption,LexicalAutoEmbedPluginUtils,LexicalTypeaheadMenuPluginUtilsandLexicalCollaborationContextUtilsentry 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,keyboardEventMaskForPlatformand theKeyboardShortcut*types in core, plusKeyboardShortcutsExtensionandformatKeyboardShortcutfor declaring named shortcuts and rendering them per platform (#8876)@lexical/rich-text—HeadingAnnounceExtensionannounces heading changes to screen readers, on by default inRichTextExtension;@lexical/link'sAutoLinkAnnounceExtensiondoes the same when typing turns text into a link, on by default withAutoLinkExtension(#8908, #9071)@lexical/list— Opt-inWordListImportExtensionreconstructs list structure from Microsoft Word HTML (MsoListParagraphclasses andmso-listmetadata) on paste (#9082)@lexical/rich-text— NewshouldHandlePasteAsFilesconfig (and exporteddefaultShouldHandlePasteAsFiles, plus an optional third argument toregisterRichText) lets an app decide that pasted files win over the incidentaltext/htmlbrowsers 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__EXPERIMENTALallows a custom YjsXmlText, so a Lexical document can live inside a larger shared type (#6483)lexical— New$getSelectionSlotFrame(#9052) and$flushSyncAfterUpdate(#9067) exports;$isBlockFullySelectedmoved into core and is still re-exported from@lexical/utils(#9059);@lexical/tablenow exports theTableCellHeaderStatetype (#9038); JSDoc added across the core exports (#8895)Notable Fixes
Named slots & the node tree
replace()keeps the parent's__sizecorrect when handed a sibling (#8917), andspliceno 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.insertNewAfterkeeps 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 classescreateDOMapplied (#9049) and an unparseabledata-lexical-datetimeno 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)insertNodesno longer leaves an empty paragraph after a block inserted at the end of a paragraph (#9099);insertTextno longer throws when the caret is inside a segmentedTextNode(#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);importDOMimports thedirattribute (#8914);toggleHeaderStylestays insideTableCellHeaderStates(#9038); thetrackTableMutationObserveris disconnected inremoveListeners(#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);$toggleLinkapplies thetitleattribute for aNodeSelection(#8993);LinkNode/AutoLinkNodegetters 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'svalidateUrlno longer accepts a sentence that merely contains a URL (#9097)exportDOMreturning aDocumentFragmentapplies itsafter()replacement (#8997);parseSelectorrejects 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);objectKlassEqualsno longer throws onundefinedor prototype-less objects (#9079)React, collaboration & history
Placeholderuses the SSR-safeuseLayoutEffect(#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)shouldBootstrapis documented as at-most-one-client (#9107);SharedHistoryExtensionforwards the parentmaxDepth(#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
DOMImportExtensionrule evaluation order (#9089),SKIP_DOM_SELECTION_TAGbehavior during the initial editor state (#8636) and$reverseDfs(#8962), plus an OpenGraph social preview for the website (#8935)qsdependency vulnerability (#9072), quieted stderr noise intest-unit(#9098) and moved the playground ontoownerDocument/$getDocument()for shadow DOM safety (#8878)What's Changed
New Contributors
Full Changelog: v0.49.0...v0.50.0