Conversation
…exical-list][lexical-mdast][lexical-rich-text][lexical-table][lexical-website] Breaking change: Remove extensions deprecated as of v0.52.0
## Description
Nine extensions were still exported only as deprecated shims for their replacements. Each one's `@deprecated` tag is present in the v0.52.0 release, and this removes them:
| Removed | Use instead | Deprecated by |
| --- | --- | --- |
| `CodeImportExtension` (`@lexical/code-core`) | `CodeExtension` | v0.49.0 or earlier |
| `CodeHighlighterShikiExtension`, `CodeHighlighterShikiConfig` (`@lexical/code-shiki`) | `CodeShikiExtension` with `{tokenizer}` | v0.49.0 or earlier |
| `HorizontalRuleImportExtension` (`@lexical/html`) | `HorizontalRuleExtension` plus any extension that brings in `CoreImportExtension` | v0.49.0 or earlier |
| `LinkImportExtension` (`@lexical/link`) | `LinkExtension` | v0.49.0 or earlier |
| `ListImportExtension` (`@lexical/list`) | `ListExtension` | v0.49.0 or earlier |
| `RichTextImportExtension` (`@lexical/rich-text`) | `RichTextExtension` | v0.49.0 or earlier |
| `TableImportExtension` (`@lexical/table`) | `TableExtension` | v0.49.0 or earlier |
| `MdastImportExtension`, `MdastExportExtension`, `MdastImportExtensionOutput`, `MdastExportExtensionOutput` (`@lexical/mdast`) | `MdastExtension`, `MdastExtensionOutput` | v0.52.0 |
The `*ImportRules` arrays (including `HorizontalRuleImportRules`) are not extensions and stay. The Flow declarations for code-shiki and mdast drop the same names, the tests that only checked the aliases still worked are removed, the remaining mdast tests (and the mdast-editor dev example's tests) use `MdastExtension` directly, and the DOM import docs no longer mention the aliases.
## Test plan
### Before
```
$ git grep -cE '(^|[^/])\b(CodeImportExtension|CodeHighlighterShikiExtension|HorizontalRuleImportExtension|LinkImportExtension|ListImportExtension|RichTextImportExtension|TableImportExtension|MdastExportExtension|MdastImportExtension)\b' -- 'packages/*/src/index.ts' 'packages/*/src/import/index.ts'
packages/lexical-code-core/src/index.ts:1
packages/lexical-code-shiki/src/index.ts:1
packages/lexical-html/src/import/index.ts:1
packages/lexical-html/src/index.ts:1
packages/lexical-link/src/index.ts:1
packages/lexical-list/src/index.ts:1
packages/lexical-mdast/src/index.ts:2
packages/lexical-rich-text/src/index.ts:1
packages/lexical-table/src/index.ts:1
```
### After
```
$ git grep -cE '<same pattern>' -- 'packages/*/src/index.ts' 'packages/*/src/import/index.ts'
(no output, exit 1)
$ ./node_modules/.bin/tsc -p . # exit 0
$ pnpm run flow
Found 0 errors
$ vitest run --project unit packages/lexical-{code-core,code-shiki,html,link,list,rich-text,table,mdast} dev-examples/mdast-editor
Test Files 100 passed (100)
Tests 1268 passed (1268)
$ vitest run scripts/__tests__/unit/treeShakingSource.test.ts
Test Files 1 passed (1)
Tests 340 passed (340)
```
The mdast-editor browser test only had the alias renamed; it type-checks (`tsc -p dev-examples/mdast-editor/tsconfig.json`) but was not run here, since this environment's Chromium build doesn't match the Playwright version.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
etrepum
requested review from
acywatson,
fantactuka,
ivailop7,
potatowagon and
zurfyx
as code owners
October 2, 2026 22:24
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Nine extensions were still exported only as deprecated shims for their replacements. Each one's
@deprecatedtag is present in the v0.52.0 release, and this removes them:CodeImportExtension(@lexical/code-core)CodeExtensionCodeHighlighterShikiExtension,CodeHighlighterShikiConfig(@lexical/code-shiki)CodeShikiExtensionwith{tokenizer}HorizontalRuleImportExtension(@lexical/html)HorizontalRuleExtensionplus any extension that brings inCoreImportExtensionLinkImportExtension(@lexical/link)LinkExtensionListImportExtension(@lexical/list)ListExtensionRichTextImportExtension(@lexical/rich-text)RichTextExtensionTableImportExtension(@lexical/table)TableExtensionMdastImportExtension,MdastExportExtension,MdastImportExtensionOutput,MdastExportExtensionOutput(@lexical/mdast)MdastExtension,MdastExtensionOutputThe
*ImportRulesarrays (includingHorizontalRuleImportRules) are not extensions and stay. The Flow declarations for code-shiki and mdast drop the same names, the tests that only checked the aliases still worked are removed, the remaining mdast tests (and the mdast-editor dev example's tests) useMdastExtensiondirectly, and the DOM import docs no longer mention the aliases.Test plan
Before
After
The mdast-editor browser test only had the alias renamed; it type-checks (
tsc -p dev-examples/mdast-editor/tsconfig.json) but was not run here, since this environment's Chromium build doesn't match the Playwright version.