Skip to content

fix(deps): update dependency diff to ^5.2.2#39460

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/diff-5.x
Open

fix(deps): update dependency diff to ^5.2.2#39460
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/diff-5.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 26, 2026

This PR contains the following updates:

Package Change Age Confidence
diff ^5.1.0^5.2.2 age confidence

Release Notes

kpdecker/jsdiff (diff)

v5.2.2

Compare Source

v5.2.1

Compare Source

v5.2.0

Compare Source

Commits

  • #​411 Big performance improvement. Previously an O(n) array-copying operation inside the innermost loop of jsdiff's base diffing code increased the overall worst-case time complexity of computing a diff from O(n²) to O(n³). This is now fixed, bringing the worst-case time complexity down to what it theoretically should be for a Myers diff implementation.
  • #​448 Performance improvement. Diagonals whose furthest-reaching D-path would go off the edge of the edit graph are now skipped, rather than being pointlessly considered as called for by the original Myers diff algorithm. This dramatically speeds up computing diffs where the new text just appends or truncates content at the end of the old text.
  • #​351 Importing from the lib folder - e.g. require("diff/lib/diff/word.js") - will work again now. This had been broken for users on the latest version of Node since Node 17.5.0, which changed how Node interprets the exports property in jsdiff's package.json file.
  • #​344 diffLines, createTwoFilesPatch, and other patch-creation methods now take an optional stripTrailingCr: true option which causes Windows-style \r\n line endings to be replaced with Unix-style \n line endings before calculating the diff, just like GNU diff's --strip-trailing-cr flag.
  • #​451 Added diff.formatPatch.
  • #​450 Added diff.reversePatch.
  • #​478 Added timeout option.

Configuration

📅 Schedule: Branch creation - "before 6am" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Feb 26, 2026
@serhalp serhalp enabled auto-merge (squash) February 26, 2026 15:10
serhalp
serhalp previously approved these changes Feb 26, 2026
@renovate renovate bot force-pushed the renovate/diff-5.x branch from aa268c5 to b6b52c7 Compare February 26, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant