Skip to content

Bump diff, @wordpress/block-editor and @wordpress/editor - #243

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-8934d33fb1
Open

Bump diff, @wordpress/block-editor and @wordpress/editor#243
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-8934d33fb1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 27, 2026

Copy link
Copy Markdown

Bumps diff to 8.0.4 and updates ancestor dependencies diff, @wordpress/block-editor and @wordpress/editor. These dependencies need to be updated together.

Updates diff from 4.0.2 to 8.0.4

Changelog

Sourced from diff's changelog.

8.0.4

  • #667 - fix another bug in diffWords when used with an Intl.Segmenter. If the text to be diffed included a combining mark after a whitespace character (i.e. roughly speaking, an accented space), diffWords would previously crash. Now this case is handled correctly.

8.0.3

  • #631 - fix support for using an Intl.Segmenter with diffWords. This has been almost completely broken since the feature was added in v6.0.0, since it would outright crash on any text that featured two consecutive newlines between a pair of words (a very common case).
  • #635 - small tweaks to tokenization behaviour of diffWords when used without an Intl.Segmenter. Specifically, the soft hyphen (U+00AD) is no longer considered to be a word break, and the multiplication and division signs (× and ÷) are now treated as punctuation instead of as letters / word characters.
  • #641 - the format of file headers in createPatch etc. patches can now be customised somewhat. It now takes a headerOptions option that can be used to disable the file headers entirely, or omit the Index: line and/or the underline. In particular, this was motivated by a request to make jsdiff patches compatible with react-diff-view, which they now are if produced with headerOptions: FILE_HEADERS_ONLY.
  • #647 and #649 - fix denial-of-service vulnerabilities in parsePatch whereby adversarial input could cause a memory-leaking infinite loop, typically crashing the calling process. Also fixed ReDOS vulnerabilities whereby adversarially-crafted patch headers could take cubic time to parse. Now, parsePatch should reliably take linear time. (Handling of headers that include the line break characters \r, \u2028, or \u2029 in non-trailing positions is also now more reasonable as side effect of the fix.)

8.0.2

  • #616 Restored compatibility of diffSentences with old Safari versions. This was broken in 8.0.0 by the introduction of a regex with a lookbehind assertion; these weren't supported in Safari prior to version 16.4.
  • #612 Improved tree shakeability by marking the built CJS and ESM packages with sideEffects: false.

8.0.1

  • #610 Fixes types for diffJson which were broken by 8.0.0. The new bundled types in 8.0.0 only allowed diffJson to be passed string arguments, but it should've been possible to pass either strings or objects (and now is). Thanks to Josh Kelley for the fix.

8.0.0

  • #580 Multiple tweaks to diffSentences:
    • tokenization no longer takes quadratic time on pathological inputs (reported as a ReDOS vulnerability by Snyk); is now linear instead
    • the final sentence in the string is now handled the same by the tokenizer regardless of whether it has a trailing punctuation mark or not. (Previously, "foo. bar." tokenized to ["foo.", " ", "bar."] but "foo. bar" tokenized to ["foo.", " bar"] - i.e. whether the space between sentences was treated as a separate token depended upon whether the final sentence had trailing punctuation or not. This was arbitrary and surprising; it is no longer the case.)
    • in a string that starts with a sentence end, like "! hello.", the "!" is now treated as a separate sentence
    • the README now correctly documents the tokenization behaviour (it was wrong before)
  • #581 - fixed some regex operations used for tokenization in diffWords taking O(n^2) time in pathological cases
  • #595 - fixed a crash in patch creation functions when handling a single hunk consisting of a very large number (e.g. >130k) of lines. (This was caused by spreading indefinitely-large arrays to .push() using .apply or the spread operator and hitting the JS-implementation-specific limit on the maximum number of arguments to a function, as shown at https://stackoverflow.com/a/56809779/1709587; thus the exact threshold to hit the error will depend on the environment in which you were running JsDiff.)
  • #596 - removed the merge function. Previously JsDiff included an undocumented function called merge that was meant to, in some sense, merge patches. It had at least a couple of serious bugs that could lead to it returning unambiguously wrong results, and it was difficult to simply "fix" because it was unclear precisely what it was meant to do. For now, the fix is to remove it entirely.
  • #591 - JsDiff's source code has been rewritten in TypeScript. This change entails the following changes for end users:
    • the diff package on npm now includes its own TypeScript type definitions. Users who previously used the @types/diff npm package from DefinitelyTyped should remove that dependency when upgrading JsDiff to v8.

      Note that the transition from the DefinitelyTyped types to JsDiff's own type definitions includes multiple fixes and also removes many exported types previously used for options arguments to diffing and patch-generation functions. (There are now different exported options types for abortable calls - ones with a timeout or maxEditLength that may give a result of undefined - and non-abortable calls.) See the TypeScript section of the README for some usage tips.

    • The Diff object is now a class. Custom extensions of Diff, as described in the "Defining custom diffing behaviors" section of the README, can therefore now be done by writing a class CustomDiff extends Diff and overriding methods, instead of the old way based on prototype inheritance. (I think code that did things the old way should still work, though!)

    • diff/lib/index.es6.js and diff/lib/index.mjs no longer exist, and the ESM version of the library is no longer bundled into a single file.

    • The ignoreWhitespace option for diffWords is no longer included in the type declarations. The effect of passing ignoreWhitespace: true has always been to make diffWords just call diffWordsWithSpace instead, which was confusing, because that behaviour doesn't seem properly described as "ignoring" whitespace at all. The property remains available to non-TypeScript applications for the sake of backwards compatibility, but TypeScript applications will now see a type error if they try to pass ignoreWhitespace: true to diffWords and should change their code to call diffWordsWithSpace instead.

    • JsDiff no longer purports to support ES3 environments. (I'm pretty sure it never truly did, despite claiming to in its README, since even the 1.0.0 release used Array.map which was added in ES5.)

  • #601 - diffJson's stringifyReplacer option behaves more like JSON.stringify's replacer argument now. In particular:
    • Each key/value pair now gets passed through the replacer once instead of twice
    • The key passed to the replacer when the top-level object is passed in as value is now "" (previously, was undefined), and the key passed with an array element is the array index as a string, like "0" or "1" (previously was whatever the key for the entire array was). Both the new behaviours match that of JSON.stringify.
  • #602 - diffing functions now consistently return undefined when called in async mode (i.e. with a callback). Previously, there was an odd quirk where they would return true if the strings being diffed were equal and undefined otherwise.

7.0.0

Just a single (breaking) bugfix, undoing a behaviour change introduced accidentally in 6.0.0:

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by explodingcabbage, a new releaser for diff since your current version.


Updates @wordpress/block-editor from 15.16.0 to 15.23.0

Changelog

Sourced from @​wordpress/block-editor's changelog.

15.23.0 (2026-07-01)

15.22.0 (2026-06-24)

Enhancements

  • Grid: Add a "Fill available space" option to the grid layout that switches the auto-placement keyword from auto-fill to auto-fit, so columns stretch to fill the row instead of leaving empty tracks. (#79356)
  • List View: a block that supports listView is now excluded from the List View when it has no inner blocks and disallows insertion (allowedBlocks is [] or false), since there is nothing to show, rearrange, or add. (#78932)

15.21.1 (2026-06-16)

15.21.0 (2026-06-10)

Code Quality

  • Add missing @types/react dependency. #78882.

Documentation

  • Fix documentation typos and grammar (#78686).

Internal

  • ListView: Compute the block visibility label once in ListViewBlock and pass it down to ListViewBlockSelectButton, removing a duplicated useSelect/getBlockVisibilityLabel call and clarifying that the label is exposed to assistive technology through the row's aria-describedby (#78640).
  • Dependency updates (#77954).

15.20.0 (2026-05-27)

Bug Fixes

  • ColorPanel: Theme CSS custom-property gradients are now decoded to their preset slug and persisted as a gradient block attribute rather than as a raw style.color.gradient value (#78328).

Internal

  • Remove legacy Notice overrides in block placeholder notices and media replace flow error UI (#78231).
  • Updated diff dependency from ^4.0.2 to ^8.0.3 (#77992).

15.19.0 (2026-05-14)

Enhancements

  • BlockManager: Add stacking context isolation to category list (#77759).

Bug Fixes

  • ColorPanel: Fix incorrect color selection and text↔link sync with duplicate-value palette entries. Slug-based selection is now threaded through the color panel so that two palette entries sharing the same hex value but different slugs are treated as distinct choices. The text↔link sync condition now compares raw stored references instead of decoded hex values; the previous decoded comparison incorrectly conflated entries that shared a hex value (#78048).

15.18.0 (2026-04-29)

Enhancements

... (truncated)

Commits
  • 66c8050 Fix wp/latest release metadata (#79821)
  • d0d1bfc Update changelog files
  • 66315f3 Merge changes published in the Gutenberg plugin "release/23.5" branch
  • 74218a2 Update changelog files
  • 504adfc Revert "Update changelog files"
  • b28bd6d Update changelog files
  • ab25f49 Merge changes published in the Gutenberg plugin "release/23.5" branch
  • 8c4f3ca Update changelog files
  • f239b85 Merge changes published in the Gutenberg plugin "release/23.5" branch
  • e2ae8e2 Update changelog files
  • Additional commits viewable in compare view

Updates @wordpress/editor from 14.43.0 to 14.51.0

Changelog

Sourced from @​wordpress/editor's changelog.

14.51.0 (2026-07-14)

New Features

  • Add an "Attachments" source to the block inserter's Media tab, listing images attached to the current post with the ability to attach and detach them (#79336).

Enhancements

  • Use the emphasis font-weight token for UI emphasis (#80093).
  • Notes: Remove the snackbar notice shown when a note is resolved or reopened, as the note's appearance already updates in place to reflect the change. The result is still announced to screen readers (#80017).
  • The "View the autosave" notice now opens the autosave in the visual revisions view with its changes highlighted, instead of the classic revisions screen. It falls back to the classic screen when visual revisions are disabled (#79947).

Bug Fixes

  • Render the "Preview in new tab" action with the shared menu item pattern so its typography matches sibling menu items (#80195).
  • External images are now sideloaded on the server when uploaded to the media library, via a new mediaSideloadFromUrl block editor setting, so the upload works when the editor is cross-origin isolated (e.g. with client-side media processing enabled) (#79409).

Enhancements

  • Widen React peer dependency ranges to ^18 || ^19 to support both React 18 and React 19 environments (#80024).

14.50.0 (2026-07-01)

14.49.0 (2026-06-24)

14.48.1 (2026-06-16)

14.48.0 (2026-06-10)

New Features

  • Added UploadProgressSnackbar component that shows a persistent snackbar with upload progress while media uploads are in progress. The snackbar shows a spinner during uploads and a checkmark briefly when all uploads complete.

Code Quality

  • Add missing @types/react dependency. #78882.

Documentation

  • Fix documentation grammar (#78686).

Internal

  • Dependency updates (#77954).

14.47.0 (2026-05-27)

Enhancements

  • Editor: Add padding around inline notices in the editor content area and distraction-free header.

... (truncated)

Commits
  • e9a74f9 chore(release): publish
  • 2a0c375 Update changelog files
  • e61c854 Merge changes published in the Gutenberg plugin "release/23.6" branch
  • 1055a35 Update changelog files
  • 8ca3e8e Merge changes published in the Gutenberg plugin "release/23.6" branch
  • 66c8050 Fix wp/latest release metadata (#79821)
  • d0d1bfc Update changelog files
  • 66315f3 Merge changes published in the Gutenberg plugin "release/23.5" branch
  • 74218a2 Update changelog files
  • 504adfc Revert "Update changelog files"
  • Additional commits viewable in compare view

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 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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [diff](https://github.com/kpdecker/jsdiff) to 8.0.4 and updates ancestor dependencies [diff](https://github.com/kpdecker/jsdiff), [@wordpress/block-editor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-editor) and [@wordpress/editor](https://github.com/WordPress/gutenberg/tree/HEAD/packages/editor). These dependencies need to be updated together.


Updates `diff` from 4.0.2 to 8.0.4
- [Changelog](https://github.com/kpdecker/jsdiff/blob/master/release-notes.md)
- [Commits](kpdecker/jsdiff@v4.0.2...8.0.4)

Updates `@wordpress/block-editor` from 15.16.0 to 15.23.0
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-editor/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/block-editor@15.23.0/packages/block-editor)

Updates `@wordpress/editor` from 14.43.0 to 14.51.0
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/editor/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/editor@14.51.0/packages/editor)

---
updated-dependencies:
- dependency-name: diff
  dependency-version: 8.0.4
  dependency-type: indirect
- dependency-name: "@wordpress/block-editor"
  dependency-version: 15.23.0
  dependency-type: direct:production
- dependency-name: "@wordpress/editor"
  dependency-version: 14.51.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants