Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 28, 2025

Bumps lexical from 0.27.2 to 0.36.1.

Release notes

Sourced from lexical's releases.

v0.36.1 is a major feature release with a new Lexical Extension API (#7706), some needed breaking changes to @lexical/yjs (#7816, #7818) and a bunch of bug fixes. We've also moved to React 19 (#7802) for all examples, tests, etc. although it should all still remain compatible with React 18 for now.

Breaking Changes

#7706 DecoratorNode

  • Removed type requirement & warning for DecoratorNode to implement decorate()
  • Widens type for decorate(): T to be decorate(): null | T as that's always how it worked in practice - the generic type here is unsafe and wrong anyway (e.g. $isDecoratorNode is a cast to any type T)

#7818 useCollaborationContext now requires that a context provider is used

Users of the CollaborationPlugin or useCollaborationContext must wrap the top-level LexicalComposer with a LexicalCollaboration component. For example:

<LexicalCollaboration>
  <LexicalComposer initialConfig={initialConfig}>
    <RichTextPlugin ... />
    <CollaborationPlugin id="lexical-editor" ... />
  </LexicalComposer>
<LexicalCollaboration>

The collaboration context is shared for nested editors, so the provider must only be used on the top-level editor.

#7818 useCollaborationContext no longer has clientID

clientID has been removed from the collaboration context. This ID was unreliable as it could be updated by nested collab editors. Consumers should retrieve the client ID by looking up the correct document in the context's yjsDocMap, or switch to using a different ID.

Highlights

Extension:

Core:

  • #7836 Fix cache coherency issue with RangeSelection#extract
  • #7854 Account for Apple WebView in setManagedLineBreak
  • 🧹 #7855 TabNode.setTextContent uses devInvariant instead of invariant for a warning in prod
  • 🧹 #7821 Improve error message when a node is registered from a foreign lexical module
  • 🧹 #7814 Consolidate ancestor lookup via findMatchingParent

Clipboard:

  • #7835 Update Lexical Clipboard with Empty Selection
  • #7822 Copy correct selection when editor in different window/document

List:

  • #7805 Clear li checklist attributes when inserting nested list

Markdown:

... (truncated)

Changelog

Sourced from lexical's changelog.

v0.36.1 (2025-09-25)

  • Bug Fix Update examples and fix package.json for v0.36.0 (will need a patch release) (#7867) Bob Ippolito
  • Make ref optional in ContentEditable flow (#7866) Gerard Rovira
  • v0.36.0 (#7861) Bob Ippolito
  • lexical Bug Fix account for Apple WebView in setManagedLineBreak (#7854) Matsuoka
  • lexical-headless Bug Fix Replace happy-dom with jsdom in www and map react-domclient (#7858) Bob Ippolito
  • Bug Fix npmToWwwName ensures lexical prefix (#7857) Bob Ippolito
  • lexical-headless Feature lexicalheadlessdom module for easier SSR (#7833) Bob Ippolito
  • lexical Chore Change TabNode.setTextContent invariant to devInvariant (#7855) Aman Harwara
  • lexical-extensiondocs Chore Add experimental to extension functions (#7853) Bob Ippolito
  • lexicallexical-extension Feature Lexical Extension (#7706) Bob Ippolito
  • lexical-react Bug Fix Include react-error-boundary and floating-uireact in WWW bundle (#7852) Bob Ippolito
  • lexical-react Bug Fix Add visibility margin to isTriggerVisibleInNearestScrollContainer to prevent popover from wrongfully closing (#7844) David
  • lexicallexical-reactlexical-playground Chore Update from React 18 to React 19 (#7802) Bob Ippolito
  • lexical-playground Chore remove InlineImageNode and InlineImagePlugun (#7839) Bob Ippolito
  • Bug Fix Relocate internal eslint plugin to packageslexical-eslint-plugin-internal (#7834) Bob Ippolito
  • lexical Bug Fix Fix cache coherency issue with RangeSelection#extract (#7836) River
  • lexical-clipboard Bug Fix Update Lexical Clipboard with Empty Selection (#7835) River
  • lexical-markdown Refactor Remove MarkdownShortcuts.ts Dependency on index.ts (#7832) River
  • lexical-react Breaking change enforce use of collab context provider (#7818) James Fitzsimmons
  • lexical-yjslexical-playground Breaking change remove clientID from collab context (#7816) James Fitzsimmons
  • lexical-clipboard Fix copy correct selection when editor in different windowdocument (#7822) James Fitzsimmons
  • lexical Chore Improve error message when a node is registered from a foreign lexical module (#7821) Bob Ippolito
  • lexicallexical-selectionlexical-utils Refactor Consolidate ancestor lookup via findMatchingParent (#7814) Chase Naples
  • lexical-markdown Update Flow types to match TypeScript (#7813) Daniel Teo
  • lexical-website Bug Fix Replace broken algolia search with easyops-cndocusaurus-search-local (#7810) Bob Ippolito
  • lexical-list Fix clear li checklist attributes when inserting nested list (#7805) James Fitzsimmons
  • Chore Port scripts unit tests to vitest and fix test include match pattern (#7807) Bob Ippolito
  • lexical-react Fix Use explicit key attr in NodeContextMenuPlugin (#7803) Bob Ippolito
  • lexical-list Fix updating list type tofrom check type updates child DOM elements (#7800) James Fitzsimmons
  • lexical-playground DatetimeNode DOM updates (#7786) Ivaylo Pavlov
  • examples Chore Update examples for v0.35.0 (#7799) Bob Ippolito
  • lexical-website Chore Update docusaurus-plugin-typedoc (#7766) Bob Ippolito
  • v0.35.0 (#7797) Bob Ippolito
  • v0.35.0 Lexical GitHub Actions Bot

v0.36.0 (2025-09-25)

  • lexical-headless Bug Fix Replace happy-dom with jsdom in www and map react-domclient (#7858) Bob Ippolito
  • Bug Fix npmToWwwName ensures lexical prefix (#7857) Bob Ippolito
  • lexical-headless Feature lexicalheadlessdom module for easier SSR (#7833) Bob Ippolito
  • lexical Chore Change TabNode.setTextContent invariant to devInvariant (#7855) Aman Harwara
  • lexical-extensiondocs Chore Add experimental to extension functions (#7853) Bob Ippolito
  • lexicallexical-extension Feature Lexical Extension (#7706) Bob Ippolito
  • lexical-react Bug Fix Include react-error-boundary and floating-uireact in WWW bundle (#7852) Bob Ippolito
  • lexical-react Bug Fix Add visibility margin to isTriggerVisibleInNearestScrollContainer to prevent popover from wrongfully closing (#7844) David
  • lexicallexical-reactlexical-playground Chore Update from React 18 to React 19 (#7802) Bob Ippolito
  • lexical-playground Chore remove InlineImageNode and InlineImagePlugun (#7839) Bob Ippolito
  • Bug Fix Relocate internal eslint plugin to packageslexical-eslint-plugin-internal (#7834) Bob Ippolito

... (truncated)

Commits
  • f3012f8 v0.36.1
  • 427c111 v0.36.0 (#7861)
  • a278e96 [lexical] Bug Fix: account for Apple WebView in setManagedLineBreak (#7854)
  • 5c2f77d [lexical] Chore: Change TabNode.setTextContent invariant to devInvariant (#7855)
  • 21f57f0 [lexical-extension][docs] Chore: Add @​experimental to extension functions (#7...
  • 320354a [lexical][lexical-extension][*] Feature: Lexical Extension (#7706)
  • 878d8b6 [lexical][lexical-react][lexical-playground] Chore: Update from React 18 to R...
  • 24eca30 [lexical] Bug Fix: Fix cache coherency issue with RangeSelection#extract (#...
  • 212ee96 [lexical] Chore: Improve error message when a node is registered from a forei...
  • ab55dbb [lexical][lexical-selection][lexical-utils] Refactor: Consolidate ancestor lo...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [lexical](https://github.com/facebook/lexical/tree/HEAD/packages/lexical) from 0.27.2 to 0.36.1.
- [Release notes](https://github.com/facebook/lexical/releases)
- [Changelog](https://github.com/facebook/lexical/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/lexical/commits/v0.36.1/packages/lexical)

---
updated-dependencies:
- dependency-name: lexical
  dependency-version: 0.36.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Copy link

Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 5, 2025

Superseded by #19618.

@dependabot dependabot bot closed this Oct 5, 2025
auto-merge was automatically disabled October 5, 2025 14:03

Pull request was closed

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/lexical-0.36.1 branch October 5, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant