Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency diff to v5 #395

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Update dependency diff to v5 #395

merged 1 commit into from
Aug 21, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 21, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
diff ^4.0.2 -> ^5.0.0 age adoption passing confidence

Release Notes

kpdecker/jsdiff (diff)

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.

v5.1.0

Compare Source

  • #​365 Allow early termination to limit execution time with degenerate cases

Commits

v5.0.0

Compare Source

  • Breaking: UMD export renamed from JsDiff to Diff.
  • Breaking: Newlines separated into separate tokens for word diff.
  • Breaking: Unified diffs now match "quirks"

Commits


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 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.

Copy link

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ DOCKERFILE hadolint 1 0 0.51s
✅ GROOVY npm-groovy-lint 10 2 0 19.68s
✅ JAVASCRIPT eslint 99 0 0 4.5s
✅ JAVASCRIPT prettier 99 99 0 4.54s
✅ JSON jsonlint 9 0 0.42s
✅ JSON npm-package-json-lint yes no 0.44s
✅ JSON prettier 9 3 0 1.32s
✅ JSON v8r 9 0 18.91s
✅ MARKDOWN markdownlint 7 2 0 3.98s
✅ MARKDOWN markdown-table-formatter 7 5 0 0.62s
✅ REPOSITORY checkov yes no 17.89s
✅ REPOSITORY gitleaks yes no 5.58s
✅ REPOSITORY git_diff yes no 0.22s
✅ REPOSITORY grype yes no 17.19s
✅ REPOSITORY secretlint yes no 2.2s
✅ REPOSITORY trivy yes no 8.09s
✅ REPOSITORY trivy-sbom yes no 1.32s
✅ REPOSITORY trufflehog yes no 10.38s
✅ SPELL cspell 131 0 8.7s
✅ SPELL lychee 19 0 4.7s
✅ XML xmllint 1 0 0 0.12s
✅ YAML prettier 3 0 0 0.53s
✅ YAML v8r 3 0 9.38s
✅ YAML yamllint 3 0 0.56s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@nvuillam nvuillam merged commit afefa2e into main Aug 21, 2024
24 checks passed
@nvuillam nvuillam deleted the renovate/diff-5.x branch August 21, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant