notes
notes copied to clipboard
Chore(deps): Bump diff from 5.1.0 to 5.2.0
Bumps diff from 5.1.0 to 5.2.0.
Changelog
Sourced from diff's changelog.
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 theexportsproperty in jsdiff'spackage.jsonfile.- #344
diffLines,createTwoFilesPatch, and other patch-creation methods now take an optionalstripTrailingCr: trueoption which causes Windows-style\r\nline endings to be replaced with Unix-style\nline endings before calculating the diff, just like GNUdiff's--strip-trailing-crflag.- #451 Added
diff.formatPatch.- #450 Added
diff.reversePatch.- #478 Added
timeoutoption.
Commits
370a9df5.2.0 release (#483)a2f726aAdd myself to the list of maintainers (#482)dfc6fe4Add examples to docs of creating and applying patches (importantly including ...b5d1cfaModify node_example.js to support showing added/deleted spaces (#479)533893dAddtimeoutoption (#478)1f1ec96Replace broken link to Myers's paper in the README with a working one (#476)707fcccAdd note to README about settingcontextto Infinity or MAX_SAFE_INTEGER. (...1c7514cFix mistake in README (#471)ca8718cBump follow-redirects from 1.14.8 to 1.15.4 (#470)25a14afMigrate to DABH's fork of colors (#469)- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by explodingcabbage, a new releaser for diff since your current version.
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 will merge this PR once CI passes on it, as requested by @nextcloud-command.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
One of your CI runs failed on this pull request, so Dependabot won't merge it.
Dependabot will still automatically merge this pull request if you amend it and your tests pass.