[PR #31502] chore(deps): bump @lexical/link from 0.38.2 to 0.39.0 in /web #33275

Open
opened 2026-02-21 20:52:59 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/31502

State: open
Merged: No


Bumps @lexical/link from 0.38.2 to 0.39.0.

Release notes

Sourced from @​lexical/link's releases.

v0.39.0 is a monthly release primarily focusing on bug fixes

Breaking Changes

JSON serialization for ElementNode only includes textFormat and textStyle when necessary #7971

Previously the derived properties textFormat and textStyle would always be serialized to JSON if not set to the default values. These should only be useful when the ElementNode does not currently have any TextNode children, to preserve formatting choices, and will be recomputed when reconciled. Now they are only reconciled when they are determined to be useful (in an ElementNode with no direct TextNode children that is not a root or shadow root).

Highlights

Code:

  • #7970 Fix: Scope highlight cache by editor

Core:

  • #7971 Fix: Only serialize ElementNode textFormat and textStyle when necessary
  • 🆕 #7964 Feature: Add commands for beforeinput, input, compositionstart/end events
  • #7978 Fix: $dfsCaretIterator should be able to stop at its last descendant

Selection:

  • #8003 Fix: Text styles are now applied to empty ElementNodes in a selection (typically the empty paragraphs contained in empty table cells)

Extension:

  • #7961 Fix: Defer node class references to potentially work around webpack issues

Table:

  • 🧪 #7983 Experiment: add config for opting in to nested tables (note that this does not fix their behavior)
  • #7986 Fix: Ensure colWidths has length equal to number of columns
  • #7998 Fix: Include first cell contents in partial backwards table selection

React:

  • #7987 Prevent typeahead menu from closing during IME composition

Collab:

  • #7990 Fix: Don't rewrite unchanged non-primitive property/state values to yjs in collab v2

Playground:

  • 🆕 #8002 Feature: Shadows when table is scrollable
  • #8015 Fix: Show draggable block target line when dragging images

What's Changed

... (truncated)

Changelog

Sourced from @​lexical/link's changelog.

v0.39.0 (2025-12-11)

  • lexical-selection Fix applying styles for empty table cells (#8003) Ivaylo Pavlov
  • lexical-playground Shadows when table is scrollable (#8002) Ivaylo Pavlov
  • lexical-markflowchore Add flowfix me after flow 0.292.0 was deployed to www. This fixes the sync between github and www (#8019) Michael
  • Doc nit (#8010) Gerard Rovira
  • lexical-table Bug Fix include first cell contents in partial backwards table selection (#7998) Patrick Moody
  • lexical-website Documentation Update Add missing getDocFromMap fn to docs (#8000) mattcline
  • Revert lexical-react lexical-playground Remove old ContextMenu, consolidate LexicalMenu render (#7997) Ivaylo Pavlov
  • lexical-website Documentation Update Add ywebsocket-server package dependency (#7996) mattcline
  • lexical-yjs Bug fix dont rewrite unchanged non-primitive propertystate values to yjs in collab v2 (#7990) James Fitzsimmons
  • lexical-react lexical-playground Remove old ContextMenu, consolidate LexicalMenu render (#7984) Ivaylo Pavlov
  • lexical-table Bug Fix ensure colWidths has length equal to number of columns (#7986) James Fitzsimmons
  • lexical-react lexical-playground Bug Fix Prevent typeahead menu from closing during IME composition (#7985) (#7987) kykim00
  • lexical-table Feature add config for opting in to nested tables (#7983) James Fitzsimmons
  • lexical Bug fix dfsCaretIterator should be able to stop at its last descendant (#7978) Nigel Gutzmann
  • lexical Chore Update flow-bin (to 0.290.0) and fix incompatible-variance issues (#7975) Daniel Teo
  • lexical Feature add commands for beforeinput, input, compositionstartend events (#7964) James Fitzsimmons
  • lexical Chore Update flow-bin (to 0.289.0) and LexicalLink Flow types (#7973) Daniel Teo
  • lexical-extensionlexical- Bug Fix Defer node class references to potentially work around webpack issues (#7961) Bob Ippolito
  • lexical Feature Only serialize ElementNode textFormat and textStyle when necessary (#7971) Bob Ippolito
  • lexical-code Bug fix Add editor key in highlighted nodes cache (#7970) Daniel Teo
  • examples Chore Update examples for v0.38.2 (#7963) Bob Ippolito
  • scripts Allow export-froms in Flow files to be transformed for www build (#7967) Daniel Teo
  • v0.38.2 (#7962) Bob Ippolito
  • v0.38.2 Lexical GitHub Actions Bot
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
**Original Pull Request:** https://github.com/langgenius/dify/pull/31502 **State:** open **Merged:** No --- Bumps [@lexical/link](https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link) from 0.38.2 to 0.39.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/lexical/releases"><code>@​lexical/link</code>'s releases</a>.</em></p> <blockquote> <p>v0.39.0 is a monthly release primarily focusing on bug fixes</p> <h2>Breaking Changes</h2> <h3>JSON serialization for ElementNode only includes textFormat and textStyle when necessary <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7971">#7971</a></h3> <p>Previously the derived properties <code>textFormat</code> and <code>textStyle</code> would always be serialized to JSON if not set to the default values. These should only be useful when the ElementNode does not currently have any TextNode children, to preserve formatting choices, and will be recomputed when reconciled. Now they are only reconciled when they are determined to be useful (in an ElementNode with no direct TextNode children that is not a root or shadow root).</p> <h2>Highlights</h2> <p>Code:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7970">#7970</a> Fix: Scope highlight cache by editor</li> </ul> <p>Core:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7971">#7971</a> Fix: Only serialize <code>ElementNode</code> <code>textFormat</code> and <code>textStyle</code> when necessary</li> <li>🆕 <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7964">#7964</a> Feature: Add commands for beforeinput, input, compositionstart/end events</li> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7978">#7978</a> Fix: <code>$dfsCaretIterator</code> should be able to stop at its last descendant</li> </ul> <p>Selection:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/8003">#8003</a> Fix: Text styles are now applied to empty ElementNodes in a selection (typically the empty paragraphs contained in empty table cells)</li> </ul> <p>Extension:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7961">#7961</a> Fix: Defer node class references to potentially work around webpack issues</li> </ul> <p>Table:</p> <ul> <li>🧪 <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7983">#7983</a> Experiment: add config for opting in to nested tables (<em>note that this does not fix their behavior</em>)</li> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7986">#7986</a> Fix: Ensure colWidths has length equal to number of columns</li> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7998">#7998</a> Fix: Include first cell contents in partial backwards table selection</li> </ul> <p>React:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7987">#7987</a> Prevent typeahead menu from closing during IME composition</li> </ul> <p>Collab:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7990">#7990</a> Fix: Don't rewrite unchanged non-primitive property/state values to yjs in collab v2</li> </ul> <p>Playground:</p> <ul> <li>🆕 <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/8002">#8002</a> Feature: Shadows when table is scrollable</li> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/8015">#8015</a> Fix: Show draggable block target line when dragging images</li> </ul> <h2>What's Changed</h2> <ul> <li>v0.38.2 by <a href="https://github.com/etrepum"><code>@​etrepum</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7962">facebook/lexical#7962</a></li> <li>[scripts] Allow export-froms in Flow files to be transformed for www build by <a href="https://github.com/takuyakanbr"><code>@​takuyakanbr</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7967">facebook/lexical#7967</a></li> <li>[examples] Chore: Update examples for v0.38.2 by <a href="https://github.com/etrepum"><code>@​etrepum</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7963">facebook/lexical#7963</a></li> <li>[lexical-code] Bug fix: Add editor key in highlighted nodes cache by <a href="https://github.com/takuyakanbr"><code>@​takuyakanbr</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7970">facebook/lexical#7970</a></li> <li>[lexical] Feature: Only serialize ElementNode textFormat and textStyle when necessary by <a href="https://github.com/etrepum"><code>@​etrepum</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7971">facebook/lexical#7971</a></li> <li>[lexical-extension][lexical-*] Bug Fix: Defer node class references to potentially work around webpack issues by <a href="https://github.com/etrepum"><code>@​etrepum</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7961">facebook/lexical#7961</a></li> <li>[lexical] Chore: Update flow-bin (to 0.289.0) and LexicalLink Flow types by <a href="https://github.com/takuyakanbr"><code>@​takuyakanbr</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7973">facebook/lexical#7973</a></li> <li>[lexical] Feature: add commands for beforeinput, input, compositionstart/end events by <a href="https://github.com/james-atticus"><code>@​james-atticus</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7964">facebook/lexical#7964</a></li> <li>[lexical] Chore: Update flow-bin (to 0.290.0) and fix incompatible-variance issues by <a href="https://github.com/takuyakanbr"><code>@​takuyakanbr</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7975">facebook/lexical#7975</a></li> <li>[lexical] Bug fix: $dfsCaretIterator should be able to stop at its last descendant by <a href="https://github.com/nigelgutzmann"><code>@​nigelgutzmann</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7978">facebook/lexical#7978</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/facebook/lexical/blob/main/CHANGELOG.md"><code>@​lexical/link</code>'s changelog</a>.</em></p> <blockquote> <h2>v0.39.0 (2025-12-11)</h2> <ul> <li>lexical-selection Fix applying styles for empty table cells (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/8003">#8003</a>) Ivaylo Pavlov</li> <li>lexical-playground Shadows when table is scrollable (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/8002">#8002</a>) Ivaylo Pavlov</li> <li>lexical-markflowchore Add flowfix me after flow 0.292.0 was deployed to <a href="http://www">www</a>. This fixes the sync between github and www (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/8019">#8019</a>) Michael</li> <li>Doc nit (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/8010">#8010</a>) Gerard Rovira</li> <li>lexical-table Bug Fix include first cell contents in partial backwards table selection (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7998">#7998</a>) Patrick Moody</li> <li>lexical-website Documentation Update Add missing getDocFromMap fn to docs (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/8000">#8000</a>) mattcline</li> <li>Revert lexical-react lexical-playground Remove old ContextMenu, consolidate LexicalMenu render (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7997">#7997</a>) Ivaylo Pavlov</li> <li>lexical-website Documentation Update Add ywebsocket-server package dependency (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7996">#7996</a>) mattcline</li> <li>lexical-yjs Bug fix dont rewrite unchanged non-primitive propertystate values to yjs in collab v2 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7990">#7990</a>) James Fitzsimmons</li> <li>lexical-react lexical-playground Remove old ContextMenu, consolidate LexicalMenu render (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7984">#7984</a>) Ivaylo Pavlov</li> <li>lexical-table Bug Fix ensure colWidths has length equal to number of columns (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7986">#7986</a>) James Fitzsimmons</li> <li>lexical-react lexical-playground Bug Fix Prevent typeahead menu from closing during IME composition (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7985">#7985</a>) (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7987">#7987</a>) kykim00</li> <li>lexical-table Feature add config for opting in to nested tables (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7983">#7983</a>) James Fitzsimmons</li> <li>lexical Bug fix dfsCaretIterator should be able to stop at its last descendant (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7978">#7978</a>) Nigel Gutzmann</li> <li>lexical Chore Update flow-bin (to 0.290.0) and fix incompatible-variance issues (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7975">#7975</a>) Daniel Teo</li> <li>lexical Feature add commands for beforeinput, input, compositionstartend events (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7964">#7964</a>) James Fitzsimmons</li> <li>lexical Chore Update flow-bin (to 0.289.0) and LexicalLink Flow types (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7973">#7973</a>) Daniel Teo</li> <li>lexical-extensionlexical- Bug Fix Defer node class references to potentially work around webpack issues (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7961">#7961</a>) Bob Ippolito</li> <li>lexical Feature Only serialize ElementNode textFormat and textStyle when necessary (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7971">#7971</a>) Bob Ippolito</li> <li>lexical-code Bug fix Add editor key in highlighted nodes cache (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7970">#7970</a>) Daniel Teo</li> <li>examples Chore Update examples for v0.38.2 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7963">#7963</a>) Bob Ippolito</li> <li>scripts Allow export-froms in Flow files to be transformed for www build (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7967">#7967</a>) Daniel Teo</li> <li>v0.38.2 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7962">#7962</a>) Bob Ippolito</li> <li>v0.38.2 Lexical GitHub Actions Bot</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/facebook/lexical/commit/d99aa0697e9961fc8bfc0a537ec4b3ae8a2b4f37"><code>d99aa06</code></a> v0.39.0</li> <li><a href="https://github.com/facebook/lexical/commit/38a6f014c1384a4ceb380ed9ae4c42f0a9b18228"><code>38a6f01</code></a> [lexical] Chore: Update flow-bin (to 0.289.0) and LexicalLink Flow types (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7973">#7973</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/a64fd2e5e5c5b590a7dc9699e7a3d91f8770c2b7"><code>a64fd2e</code></a> [lexical-extension][lexical-*] Bug Fix: Defer node class references to potent...</li> <li><a href="https://github.com/facebook/lexical/commit/d994d9d354a448e0bb29c2fc882308f7b15d24e8"><code>d994d9d</code></a> v0.38.2 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-link/issues/7962">#7962</a>)</li> <li>See full diff in <a href="https://github.com/facebook/lexical/commits/v0.39.0/packages/lexical-link">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@lexical/link&package-manager=npm_and_yarn&previous-version=0.38.2&new-version=0.39.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
yindo added the pull-request label 2026-02-21 20:52:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33275