Skip to content

chore: upgrade Lexical from 0.31.0 to 0.44.0 (#1054)#1071

Merged
sw-factory-automations merged 1 commit into
mainfrom
feat/1054-upgrade-lexical-0.44
May 13, 2026
Merged

chore: upgrade Lexical from 0.31.0 to 0.44.0 (#1054)#1071
sw-factory-automations merged 1 commit into
mainfrom
feat/1054-upgrade-lexical-0.44

Conversation

@sw-factory-automations
Copy link
Copy Markdown
Collaborator

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:

  • lexical 0.31.0 → 0.44.0
  • @lexical/clipboard 0.31.0 → 0.44.0
  • @lexical/code 0.31.0 → 0.44.0
  • @lexical/headless 0.31.0 → 0.44.0
  • @lexical/link 0.31.0 → 0.44.0
  • @lexical/list 0.31.0 → 0.44.0
  • @lexical/markdown 0.31.0 → 0.44.0
  • @lexical/react 0.31.0 → 0.44.0
  • @lexical/rich-text 0.31.0 → 0.44.0
  • @lexical/selection 0.31.0 → 0.44.0
  • @lexical/table 0.31.0 → 0.44.0
  • @lexical/utils 0.31.0 → 0.44.0

How

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:

  • v0.28.0: Default NodeSelection delete handler, $insertNodeToNearestRoot respects canBeEmpty()
  • v0.35.0: ltr/rtl theme CSS classes removed (not used in this codebase)
  • v0.36.1: DecoratorNode.decorate() return type widened to null | T
  • v0.39.0: ElementNode JSON serialization only includes textFormat/textStyle when necessary
  • v0.40.0: mergeRegister moved from @lexical/utils to lexical (still re-exported from utils)
  • v0.44.0: CodeNode without CodeExtension deprecated (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 cleanly
  • pnpm test — all 139 test files pass (1877 tests)
  • ✅ E2E: demo-editor (11/11), editor-markdown-shortcuts (4/4), editor-list-indent (3/3), editor-code-paste (2/2), editor-focus-mode (5/5), editor-font-family (5/5) all pass
  • ⚠️ Some authenticated E2E tests have intermittent auth timeouts — verified these are pre-existing on main (same failures with identical error patterns), not caused by this upgrade

Backward compatibility

Existing Lexical JSON stored in the database loads correctly — the serialization format is backward-compatible. The textFormat/textStyle serialization change in v0.39.0 only affects new writes (omits redundant fields) and old JSON with those fields still deserializes correctly.

Co-authored-by: Ona <no-reply@ona.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
memo Ready Ready Preview, Comment May 13, 2026 11:03am

Request Review

@sw-factory-automations sw-factory-automations merged commit 468c5bd into main May 13, 2026
9 checks passed
@sw-factory-automations sw-factory-automations deleted the feat/1054-upgrade-lexical-0.44 branch May 13, 2026 11:32
@sw-factory-automations
Copy link
Copy Markdown
Collaborator Author

✅ Post-merge verification skipped — chore: PRs don't require live-site verification.

@sw-factory-automations
Copy link
Copy Markdown
Collaborator Author

✅ UI verification skipped — this PR has no UI changes (only package.json and pnpm-lock.yaml modified).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: upgrade Lexical from 0.31.0 to 0.44.0

1 participant