Download Latest Version v0.38.2 source code.tar.gz (5.7 MB)
Email in envelope

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

Home / v0.38.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-10-27 6.8 kB
v0.38.1 source code.tar.gz 2025-10-27 5.7 MB
v0.38.1 source code.zip 2025-10-27 6.5 MB
Totals: 3 Items   12.2 MB 0

v0.38.1 is an monthly release with a lot of fixes and a few potentially breaking changes (this is a re-publish of v0.38.0, which had problems during initial npm publish).

Breaking Changes

[#7926] Static transforms from superclasses are always applied

Before $config there was a limited amount of "automatic" re-use of the static transform by subclasses, because class inheritance also inherits static methods, so you get the implementation of whatever static transform method was in the superclass if it wasn't overridden.

Now the application of these static transforms (whether by method or $config) is implicit. There is no need to call super if adding an additional transform. The implementation walks up the inheritance tree by $config extends or Object.getPrototypeOf and will register all transforms it finds.

[#7936] Extension configuration for CodeHighlighterShikiExtension has been flattened

If you are using CodeHighlighterShikiExtension the configuration has changed.

Before:

:::ts
configExtension(CodeHighlighterShikiExtension, {tokenizer: {...ShikiTokenizer, defaultTheme: …})

After:

:::ts
configExtension(CodeHighlighterShikiExtension, {defaultTheme: …})

[#7933] LexicalTableSelectionHelpers listener priorities lowered to HIGH from CRITICAL

This is unlikely to break most applications but the priority of these command listeners has been lowered to allow them to be overridden.

Highlights

Core: - ✅ [#7926] Apply static transform and $config $transform from all superclasses (fixes ListNode/ListItemNode subclassing) - ✅ [#7941] Retain lexical selection during updates on unfocused editors - ✅ [#7947] Update block cursor if selection has changed

Extension: - 🆕 [#7930] Allow nodes config to be deferred for circular dependency reasons - ⚠️ [#7936] Implement mergeConfig for LinkExtension and flatten config for CodeHighlighterShikiExtension

List: - 🆕 [#7946] importDOM support for joplin checklists

Table: - ⚠️ [#7933] Lower table handler command priority

Clipboard: - ✅ [#7942] Log exceptions in clipboard paste handlers

Link: - 🆕 [#7944] Enable Selective Removal Within Linked Text

React: - ✅ [#7935] Add getServerSnapshot for improved RSC compatibility

Collab v2: - ✅ [#7922] Skip elements that were added and removed between snapshots

Code: - ✅ [#7921] Respect RTL when moving to line start/end in code blocks

Markdown: - ✅ [#7812] Fix bugs in normalizeMarkdown when using shouldMergeAdjacentLines - ✅ [#7923] Prevent markdown links with empty strings from being automatically removed - ✅ [#7928] Fix implicit checklist marker export regression

Playground: - ✅ [#7920] Fix image caption overflow

Examples: - 🧹 [#7939] Remove workaround from svelte example

Documentation: - 🧹 [#7931] Update docusaurus and contributing docs

What's Changed

New Contributors

Full Changelog: https://github.com/facebook/lexical/compare/v0.37.0...v0.38.1

Source: README.md, updated 2025-10-27