vscode
vscode copied to clipboard
Update dependency diff to v5
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
diff | ^4.0.0 -> ^5.0.0 |
||||
@types/diff (source) | 4.0.2 -> 5.2.1 |
Release Notes
kpdecker/jsdiff (diff)
v5.2.0
- #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 theexports
property in jsdiff'spackage.json
file. -
#344
diffLines
,createTwoFilesPatch
, and other patch-creation methods now take an optionalstripTrailingCr: 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 GNUdiff
's--strip-trailing-cr
flag. -
#451 Added
diff.formatPatch
. -
#450 Added
diff.reversePatch
. -
#478 Added
timeout
option.
v5.1.0
- #365 Allow early termination to limit execution time with degenerate cases
v5.0.0
- Breaking: UMD export renamed from
JsDiff
toDiff
. - Breaking: Newlines separated into separate tokens for word diff.
- Breaking: Unified diffs now match "quirks"
v4.0.2
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: package-lock.json