chore: upgrade Lexical from 0.31.0 to 0.44.0 (#1054)#1071
Merged
Conversation
Co-authored-by: Ona <no-reply@ona.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
✅ Post-merge verification skipped — |
Collaborator
Author
|
✅ UI verification skipped — this PR has no UI changes (only |
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.
Closes #1054
What
Upgrades all Lexical packages from 0.31.0 to 0.44.0 (13 minor versions). This is the latest stable release.
Packages updated:
lexical0.31.0 → 0.44.0@lexical/clipboard0.31.0 → 0.44.0@lexical/code0.31.0 → 0.44.0@lexical/headless0.31.0 → 0.44.0@lexical/link0.31.0 → 0.44.0@lexical/list0.31.0 → 0.44.0@lexical/markdown0.31.0 → 0.44.0@lexical/react0.31.0 → 0.44.0@lexical/rich-text0.31.0 → 0.44.0@lexical/selection0.31.0 → 0.44.0@lexical/table0.31.0 → 0.44.0@lexical/utils0.31.0 → 0.44.0How
Direct version bump — no code changes required. All custom nodes (CalloutNode, CollapsibleContainerNode, CollapsibleTitleNode, CollapsibleContentNode, ImageNode, DatabaseNode, PageLinkNode) and plugins compile and function without modification.
Key breaking changes reviewed across the 13-version span:
$insertNodeToNearestRootrespectscanBeEmpty()ltr/rtltheme CSS classes removed (not used in this codebase)DecoratorNode.decorate()return type widened tonull | TElementNodeJSON serialization only includestextFormat/textStylewhen necessarymergeRegistermoved from@lexical/utilstolexical(still re-exported from utils)CodeNodewithoutCodeExtensiondeprecated (backward-compatible shim in place)None of these required code changes in our codebase.
Testing
pnpm lint— 0 errors (50 pre-existing warnings)pnpm typecheck— passes cleanlypnpm test— all 139 test files pass (1877 tests)main(same failures with identical error patterns), not caused by this upgradeBackward compatibility
Existing Lexical JSON stored in the database loads correctly — the serialization format is backward-compatible. The
textFormat/textStyleserialization change in v0.39.0 only affects new writes (omits redundant fields) and old JSON with those fields still deserializes correctly.