v0.27.1

facebook/lexicalv0.27.1Mar 4, 2025by etrepum

AI Summary

A patch release fixing a regression in `getCommonAncestor` for non-ElementNodes and adding RTL direction support for list items.

Key Highlights

  • Fixed `getCommonAncestor` regression for non-ElementNodes.
  • Added RTL direction support for list items in HTML output.
  • Fixed click and drag table selection behavior in Firefox.

New Features

  • Improved table selection handling across browsers.

Full Release Notes

v0.27.1 is an ad-hoc patch release to address the regression introduced in v0.26.0 with `LexicalNode.getCommonAncestor` which occurs when calling `node.getCommonAncestor(node)` when `!$isElementNode(node)` (#7287).

## Highlights

Core:
* ✅ #7271 Fix non-ElementNode regression in getCommonAncestor

Core + List:
* ✅ #7282 Add RTL direction support in output HTML for ElementNode and ListItemNode (previously this was only on ParagraphNode)

Table:
* ✅ #7283 Fix click and drag table selection in Firefox

## What's Changed
* v0.27.0 by @etrepum in https://github.com/facebook/lexical/pull/7281
* [lexical-list][lexical] Bug Fix: Add RTL direction support for list items in output HTML by @kirandash in https://github.com/facebook/lexical/pull/7282
* [lexical-table] Bug Fix: Click and drag table selection in Firefox by @etrepum in https://github.com/facebook/lexical/pull/7283
* [CI] Feature: Add a fixer for the no-imports-from-self lint by @etrepum in https://github.com/facebook/lexical/pull/7284
* [lexical] Bug Fix: Fix non-ElementNode regression in getCommonAncestor by @etrepum in https://github.com/facebook/lexical/pull/7287


**Full Changelog**: https://github.com/facebook/lexical/compare/v0.27.0...v0.27.1