v0.31.2
facebook/lexicalv0.31.2May 20, 2025by etrepum
AI Summary
This is a patch release (v0.31.2) for Lexical focused on bug fixes across core, code, markdown, and playground components. The release addresses issues including an infinite loop in indexPath, empty textAlign style exports, code highlighter compatibility in headless mode, auto-link node exports in markdown, and Windows compatibility for babel MatchPatterns.
Key Highlights
- Fixed infinite loop in indexPath (#7549) - resolves a critical core bug
- Prevented export of empty textAlign styles (#7536) - cleaner styling behavior
- Enabled code highlighter to work in headless mode (#7538) - improved SSR/headless compatibility
- Prevented auto-link nodes from being exported in markdown (#7539) - fixed markdown serialization
- Fixed babel MatchPatterns to work correctly on Windows (#7534) - resolved cross-platform development issue
Full Release Notes
Patch release for #7549, this is a bug fix release ## Highlights Core: * ✅ #7549 Fix infinite loop in indexPath * ✅ #7536 Do not export empty textAlign styles Code: * ✅ #7538 Allow code highlighter to be used in headless mode Markdown: * ✅ #7539 Do not export auto-link nodes Playground: * ✅ #7534 Use babel MatchPatterns that work correctly on Windows ## What's Changed * v0.31.1 by @etrepum in https://github.com/facebook/lexical/pull/7525 * [lexical-playground] Bug Fix: Use babel MatchPatterns that work correctly on windows by @etrepum in https://github.com/facebook/lexical/pull/7534 * [lexical-website] Chore: Update docusaurus-plugin-internaldocs-fb and reorg serialization docs by @etrepum in https://github.com/facebook/lexical/pull/7533 * [lexical] Bug Fix : Prevent from adding element.style.textAlign when formatType is unset by @baptistejamin in https://github.com/facebook/lexical/pull/7536 * [lexical-code] Bug Fix: Allow Code Highlighter to be working in headless mode by @baptistejamin in https://github.com/facebook/lexical/pull/7538 * [lexical-markdown]: Bug fix: Do not export auto-link nodes by @baptistejamin in https://github.com/facebook/lexical/pull/7539 * [lexical] Bug Fix: Fix loop in indexPath by @etrepum in https://github.com/facebook/lexical/pull/7549 ## New Contributors * @baptistejamin made their first contribution in https://github.com/facebook/lexical/pull/7536 **Full Changelog**: https://github.com/facebook/lexical/compare/v0.31.1...v0.31.2