Download Latest Version v0.42.0 source code.tar.gz (5.4 MB)
Email in envelope

Get an email when there's a new version of Lexical

Home / v0.40.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-02-02 7.0 kB
v0.40.0 source code.tar.gz 2026-02-02 5.3 MB
v0.40.0 source code.zip 2026-02-02 6.1 MB
Totals: 3 Items   11.4 MB 0

v0.40.0 is a monthly release primarily focusing on bug fixes and infrastructure such as the move from npm to pnpm.

Some very notable changes include:

  • Some major fixes and refactoring to markdown parsing [#8093] [#8085]
  • Several of the most common utilities were moved from @lexical/utils to lexical (mergeRegister, addClassNames, removeClassNames) [#8106]
  • A cache coherency bug in RootNode.getTextContent() was fixed [#8099]

Highlights

Monorepo:

  • 🧹 [#8035] Chore: Transition from npm to pnpm (also [#8045] [#8048] [#8050] [#8051] [#8054] [#8106])

Link:

  • βœ… [#8070] Fix: Fix infinite transform loop in AutoLinkPlugin
  • βœ… [#8078] Fix: Toggle links with nested children

List:

  • βœ… [#8049] Fix: fix selection issue from list transform on linebreak
  • βœ… [#8068] Fix: Treat whitespace-only list items as empty when pressing Enter

Markdown:

  • βœ… [#8085] Fix: Fix incorrect format tag placement at link boundaries
  • βœ… [#8093] Fix: Replace regex-based format matching

Core:

  • βœ… [#8069] Fix: format removed on multi selection after replace
  • βœ… [#8099] Fix: Refactor RootNode.__cachedText computation for coherency

Table:

  • βœ… [#8076] Fix: Fix Ctrl+A to select all cells in table with merged cells
  • βœ… [#8081] Fix: Fix inconsistent multi-cell selection in 2x2 tables
  • 🧹 [#8088] Chore: Fix test for nested table pasting

Utils:

  • 🧹 [#8106] Chore: Move functions mergeRegister, addClassNames, removeClassNames to lexical package

React:

  • βœ… [#8062] Fix: Clear remote cursor immediately on collaborator refresh
  • βœ… [#8065] Fix: Fix cursor disappearing in Firefox when dragging blocks
  • βœ… [#8071] Chore: Expose onReposition prop on SelectionAlwaysOnDisplay

Playground:

  • πŸ†• [#8043] Feature: Color table resize handle
  • πŸ†• [#8042] Feature: Draggable block handle gliding effect
  • βœ… [#8052] Fix: Draggable handle and dropdown CSS zoom fix
  • πŸ†• [#8057] Feature: New Table Hover Actions Plugin
  • πŸ†• [#8060] Feature: Column Sort for Basic Table
  • πŸ†• [#8066] Feature: Add button shows the component picker
  • βœ… [#8087] Fix: Prevent code block line wrapping to keep line number

What's Changed

New Contributors

Full Changelog: https://github.com/facebook/lexical/compare/v0.39.0...v0.40.0

Source: README.md, updated 2026-02-02