v0.23.1

facebook/lexicalv0.23.1Jan 9, 2025by etrepum

AI Summary

A patch release fixing a minor behavior change regarding update listeners and a TabNode deserialization regression.

Key Highlights

  • Updates are now committed on `editor.setRootElement(null)`.
  • Fixed TabNode deserialization regression.
  • Fixed MarkNode.addID regression.

Breaking Changes

  • Update listeners will be called one more time when `editor.setRootElement(null)` is called.

New Features

  • Merged TabIndentionPlugin and ListMaxIndentLevelPlugin.

Full Release Notes

## Breaking Changes

The only breaking change in this release is minor (#7023) and should not affect any correct code. However, if you are counting the number of times your update listener is called during `editor.setRootElement(null)` then you will have to change that expectation.

## Highlights

Highlights since [v0.23.0](https://github.com/facebook/lexical/releases/tag/v0.23.0)

Core Editor:
* ✅ Fix: Updates are committed on `editor.setRootElement(null)` #7023
* ✅ Fix: TabNode deserialization regression from v0.23.0 #7031

Mark:
* ✅ Fix: MarkNode.addID regression https://github.com/facebook/lexical/pull/7020

React:
* 🆕 Feature: Merge TabIndentionPlugin and ListMaxIndentLevelPlugin plugins, previously the  ListMaxIndentLevelPlugin functionality was only in the playground https://github.com/facebook/lexical/pull/7018

## What's Changed
* v0.23.0 by @etrepum in https://github.com/facebook/lexical/pull/7017
* [lexical-mark] Bug Fix: reverse ternary in MarkNode.addID by @james-atticus in https://github.com/facebook/lexical/pull/7020
* [lexical-react] Feature: Merge TabIndentionPlugin and ListMaxIndentLevelPlugin plugins by @fantactuka in https://github.com/facebook/lexical/pull/7018
* [lexical] Fix TabNode deserialization regression  by @etrepum in https://github.com/facebook/lexical/pull/7031
* [Breaking Change][lexical] Bug Fix: Commit updates on editor.setRootElement(null) by @etrepum in https://github.com/facebook/lexical/pull/7023

## New Contributors
* @james-atticus made their first contribution in https://github.com/facebook/lexical/pull/7020

**Full Changelog**: https://github.com/facebook/lexical/compare/v0.23.0...v0.23.1