[PR #29250] chore(deps): bump @lexical/code from 0.36.2 to 0.38.2 in /web #32346

Closed
opened 2026-02-21 20:51:13 -05:00 by yindo · 0 comments
Owner

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

State: closed
Merged: Yes


Bumps @lexical/code from 0.36.2 to 0.38.2.

Release notes

Sourced from @​lexical/code's releases.

v0.38.2 is a patch release to fix a regression in yjs cursor position awareness (#7960). It also includes another fix for a Markdown issue.

Highlights

React:

  • #7960 Fix: update cursor positions on awareness update in collab v1

Markdown:

  • #7958 Fix markdown formatting when a backslash is before or after a closing backtick

What's Changed

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

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:

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

After:

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

... (truncated)

Changelog

Sourced from @​lexical/code's changelog.

v0.38.2 (2025-10-31)

  • lexical-markdown Code backslash fix (#7958) MarekKuncik
  • Update codeowners (#7957) Gerard Rovira
  • Update examples for v0.38.1 (#7952) Bob Ippolito
  • v0.38.1 (#7951) Bob Ippolito
  • v0.38.1 Lexical GitHub Actions Bot

v0.38.1 (2025-10-27)

  • v0.38.0 Lexical GitHub Actions Bot

v0.38.0 (2025-10-27)

  • lexical-list Bug Fix fix pasting checklist from joplin (#7946) Antonella Sgarlatta
  • lexical Bug Fix update block cursor if selection has changed (#7947) Maksim Horbachevsky
  • lexical-link Feature Enable Selective Removal Within Linked Text (#7944) Christopher Norman
  • Fix Log exceptions in clipboard paste handler (fixes #7940) (#7942) Nikhil Sharma
  • lexical Bug Fix retain selection during updates on unfocused editor (#7941) Maksim Horbachevsky
  • lexical-table Chore Lower table handler command priority (#7933) Patrick Moody
  • lexical-linklexical-code-shikiexamples Feature Implement mergeConfig for LinkExtension and flatten config for CodeHighlighterShikiExtension (#7936) Bob Ippolito
  • lexical-react Bug Fix Add getServerSnapshot for RSC compatibility (#7935) Elias Rhouzlane
  • lexical-website Documentation Update change setText to setTextContent (#7932) bbertold
  • lexical-extension Feature Allow nodes config to be deferred for circular dependency reasons (#7930) Bob Ippolito
  • lexicallexical-list Bug Fix Apply static transform and config transform from all superclasses (#7926) Bob Ippolito
  • lexical-markdown Bug Fix Fix implicit checklist marker export regression (#7928) Bob Ippolito
  • lexical-website Chore Update docusuarus and add contributing docs (#7931) Bob Ippolito
  • lexical-markdown Bug Fix Prevent Markdown links with empty string link text from being automatically removed (#7923) Adam Bolcsfoldi
  • lexical-playground Bug Fix Fix image caption overflow issue (#7920) Ritoban Dutta
  • lexical-markdown Fix bugs in normalizeMarkdown (#7812) German Jablonski
  • lexical-code Bug Fix Respect RTL when moving to line startend in code blocks (#7921) Shehab
  • lexical-yjs Fix skip elements that were added and removed between snapshots (#7922) James Fitzsimmons
  • Documentation Chore Update bounty program link in CONTRIBUTING.md (#7915) Mustkeem K
  • Update examples for v0.37.0 (#7911) Bob Ippolito
  • v0.37.0 (#7910) Bob Ippolito
  • v0.37.0 Lexical GitHub Actions Bot

v0.37.0 (2025-10-11)

  • lexical-yjs Chore fix imports of Yjs XML types (#7908) James Fitzsimmons
  • lexical-react Chore make shouldBootstrapUnsafe prop optional (#7907) James Fitzsimmons
  • lexical-playground Bug Fix Export ParagraphNode as div roleparagraph when it contains block DOM (#7906) Bob Ippolito
  • lexicallexical-clipboardlexical-htmllexical-selection Feature Add an internal ephemeral node concept (#7904) Bob Ippolito
  • lexical-yjslexical-react Feature commands for diffing two yjs snapshots in collab v2 (#7903) James Fitzsimmons
  • lexicallexical-clipboardlexical-playground Feature ImageNode caption support for exportDOM and importDOM (#7900) Mehmet Can Ertan
  • lexical-rich-text Bug fix updown arrows for node selection (#7902) Maksim Horbachevsky
  • lexical-listlexical-markdown Feature Keep list marker for markdown round-trip (#7892) Simon
  • lexical-yjslexical-react Feature initial implementation of collab v2 (#7616) James Fitzsimmons
  • lexical-react Bug Fix LexicalMenu guard against undefined option when list shrinks (#7899) MRADUL TRIPATHI
  • examples Feature sveltekit ssr example (#7879) Bob Ippolito

... (truncated)

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/29250 **State:** closed **Merged:** Yes --- Bumps [@lexical/code](https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code) from 0.36.2 to 0.38.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/facebook/lexical/releases"><code>@​lexical/code</code>'s releases</a>.</em></p> <blockquote> <p>v0.38.2 is a patch release to fix a regression in yjs cursor position awareness (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7960">#7960</a>). It also includes another fix for a Markdown issue.</p> <h2>Highlights</h2> <p>React:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7960">#7960</a> Fix: update cursor positions on awareness update in collab v1</li> </ul> <p>Markdown:</p> <ul> <li>✅ <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7958">#7958</a> Fix markdown formatting when a backslash is before or after a closing backtick</li> </ul> <h2>What's Changed</h2> <ul> <li>v0.38.1 by <a href="https://github.com/etrepum"><code>@​etrepum</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7951">facebook/lexical#7951</a></li> <li>Update examples for v0.38.1 by <a href="https://github.com/etrepum"><code>@​etrepum</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7952">facebook/lexical#7952</a></li> <li>Update codeowners by <a href="https://github.com/zurfyx"><code>@​zurfyx</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7957">facebook/lexical#7957</a></li> <li>[lexical-markdown] Code backslash fix by <a href="https://github.com/MarekKuncik"><code>@​MarekKuncik</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7958">facebook/lexical#7958</a></li> <li>[lexical-react] Fix: update cursor positions on awareness update in collab v1 by <a href="https://github.com/james-atticus"><code>@​james-atticus</code></a> in <a href="https://redirect.github.com/facebook/lexical/pull/7960">facebook/lexical#7960</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/facebook/lexical/compare/v0.38.1...v0.38.2">https://github.com/facebook/lexical/compare/v0.38.1...v0.38.2</a></p> <p>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).</p> <h2>Breaking Changes</h2> <h3><a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7926">#7926</a> Static transforms from superclasses are always applied</h3> <p>Before <code>$config</code> there was a limited amount of &quot;automatic&quot; 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.</p> <p>Now the application of these static transforms (whether by method or <code>$config</code>) is implicit. There is no need to call super if adding an additional transform. The implementation walks up the inheritance tree by <code>$config</code> <code>extends</code> or <code>Object.getPrototypeOf</code> and will register all transforms it finds.</p> <h3><a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7936">#7936</a> Extension configuration for CodeHighlighterShikiExtension has been flattened</h3> <p>If you are using <code>CodeHighlighterShikiExtension</code> the configuration has changed.</p> <p>Before:</p> <pre lang="ts"><code>configExtension(CodeHighlighterShikiExtension, {tokenizer: {...ShikiTokenizer, defaultTheme: …}) </code></pre> <p>After:</p> <pre lang="ts"><code>configExtension(CodeHighlighterShikiExtension, {defaultTheme: …}) </code></pre> <h3><a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7933">#7933</a> LexicalTableSelectionHelpers listener priorities lowered to HIGH from CRITICAL</h3> <p>This is unlikely to break most applications but the priority of these command listeners has been lowered to allow them to be overridden.</p> <h2>Highlights</h2> <!-- 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/code</code>'s changelog</a>.</em></p> <blockquote> <h2>v0.38.2 (2025-10-31)</h2> <ul> <li>lexical-markdown Code backslash fix (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7958">#7958</a>) MarekKuncik</li> <li>Update codeowners (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7957">#7957</a>) Gerard Rovira</li> <li>Update examples for v0.38.1 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7952">#7952</a>) Bob Ippolito</li> <li>v0.38.1 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7951">#7951</a>) Bob Ippolito</li> <li>v0.38.1 Lexical GitHub Actions Bot</li> </ul> <h2>v0.38.1 (2025-10-27)</h2> <ul> <li>v0.38.0 Lexical GitHub Actions Bot</li> </ul> <h2>v0.38.0 (2025-10-27)</h2> <ul> <li>lexical-list Bug Fix fix pasting checklist from joplin (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7946">#7946</a>) Antonella Sgarlatta</li> <li>lexical Bug Fix update block cursor if selection has changed (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7947">#7947</a>) Maksim Horbachevsky</li> <li>lexical-link Feature Enable Selective Removal Within Linked Text (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7944">#7944</a>) Christopher Norman</li> <li>Fix Log exceptions in clipboard paste handler (fixes <a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7940">#7940</a>) (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7942">#7942</a>) Nikhil Sharma</li> <li>lexical Bug Fix retain selection during updates on unfocused editor (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7941">#7941</a>) Maksim Horbachevsky</li> <li>lexical-table Chore Lower table handler command priority (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7933">#7933</a>) Patrick Moody</li> <li>lexical-linklexical-code-shikiexamples Feature Implement mergeConfig for LinkExtension and flatten config for CodeHighlighterShikiExtension (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7936">#7936</a>) Bob Ippolito</li> <li>lexical-react Bug Fix Add getServerSnapshot for RSC compatibility (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7935">#7935</a>) Elias Rhouzlane</li> <li>lexical-website Documentation Update change setText to setTextContent (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7932">#7932</a>) bbertold</li> <li>lexical-extension Feature Allow nodes config to be deferred for circular dependency reasons (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7930">#7930</a>) Bob Ippolito</li> <li>lexicallexical-list Bug Fix Apply static transform and config transform from all superclasses (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7926">#7926</a>) Bob Ippolito</li> <li>lexical-markdown Bug Fix Fix implicit checklist marker export regression (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7928">#7928</a>) Bob Ippolito</li> <li>lexical-website Chore Update docusuarus and add contributing docs (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7931">#7931</a>) Bob Ippolito</li> <li>lexical-markdown Bug Fix Prevent Markdown links with empty string link text from being automatically removed (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7923">#7923</a>) Adam Bolcsfoldi</li> <li>lexical-playground Bug Fix Fix image caption overflow issue (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7920">#7920</a>) Ritoban Dutta</li> <li>lexical-markdown Fix bugs in normalizeMarkdown (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7812">#7812</a>) German Jablonski</li> <li>lexical-code Bug Fix Respect RTL when moving to line startend in code blocks (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7921">#7921</a>) Shehab</li> <li>lexical-yjs Fix skip elements that were added and removed between snapshots (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7922">#7922</a>) James Fitzsimmons</li> <li>Documentation Chore Update bounty program link in CONTRIBUTING.md (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7915">#7915</a>) Mustkeem K</li> <li>Update examples for v0.37.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7911">#7911</a>) Bob Ippolito</li> <li>v0.37.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7910">#7910</a>) Bob Ippolito</li> <li>v0.37.0 Lexical GitHub Actions Bot</li> </ul> <h2>v0.37.0 (2025-10-11)</h2> <ul> <li>lexical-yjs Chore fix imports of Yjs XML types (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7908">#7908</a>) James Fitzsimmons</li> <li>lexical-react Chore make shouldBootstrapUnsafe prop optional (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7907">#7907</a>) James Fitzsimmons</li> <li>lexical-playground Bug Fix Export ParagraphNode as div roleparagraph when it contains block DOM (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7906">#7906</a>) Bob Ippolito</li> <li>lexicallexical-clipboardlexical-htmllexical-selection Feature Add an internal ephemeral node concept (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7904">#7904</a>) Bob Ippolito</li> <li>lexical-yjslexical-react Feature commands for diffing two yjs snapshots in collab v2 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7903">#7903</a>) James Fitzsimmons</li> <li>lexicallexical-clipboardlexical-playground Feature ImageNode caption support for exportDOM and importDOM (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7900">#7900</a>) Mehmet Can Ertan</li> <li>lexical-rich-text Bug fix updown arrows for node selection (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7902">#7902</a>) Maksim Horbachevsky</li> <li>lexical-listlexical-markdown Feature Keep list marker for markdown round-trip (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7892">#7892</a>) Simon</li> <li>lexical-yjslexical-react Feature initial implementation of collab v2 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7616">#7616</a>) James Fitzsimmons</li> <li>lexical-react Bug Fix LexicalMenu guard against undefined option when list shrinks (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7899">#7899</a>) MRADUL TRIPATHI</li> <li>examples Feature sveltekit ssr example (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7879">#7879</a>) Bob Ippolito</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/facebook/lexical/commit/c75b8e105ff9612f0166af22a518be01045fa72b"><code>c75b8e1</code></a> v0.38.2</li> <li><a href="https://github.com/facebook/lexical/commit/3949571b8fe545cf1b1ba55fcf3dbd7c13d28ab4"><code>3949571</code></a> v0.38.1 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7951">#7951</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/2ac6c134ed0eba01ffc0509d27f09f924a6b758d"><code>2ac6c13</code></a> v0.38.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7950">#7950</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/064e2c0e0c0241853bb68f1c973dbd9f3d6fb652"><code>064e2c0</code></a> [lexical-code] Bug Fix: Respect RTL when moving to line start/end in code blo...</li> <li><a href="https://github.com/facebook/lexical/commit/9c83a6587fbeb23c6b8a95d4de56fcd64674c0ba"><code>9c83a65</code></a> v0.37.0 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7910">#7910</a>)</li> <li><a href="https://github.com/facebook/lexical/commit/9ceb974517fd0bac01bea3bd7e506f85017d0030"><code>9ceb974</code></a> [lexical-yjs][lexical-react] Feature: initial implementation of collab v2 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7">#7</a>...</li> <li><a href="https://github.com/facebook/lexical/commit/8cbd7260914acbbdbc34c2e35cdda40023a63783"><code>8cbd726</code></a> v0.36.2 (<a href="https://github.com/facebook/lexical/tree/HEAD/packages/lexical-code/issues/7894">#7894</a>)</li> <li>See full diff in <a href="https://github.com/facebook/lexical/commits/v0.38.2/packages/lexical-code">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@lexical/code&package-manager=npm_and_yarn&previous-version=0.36.2&new-version=0.38.2)](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:51:13 -05:00
yindo closed this issue 2026-02-21 20:51:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32346