René's URL Explorer Experiment


Title: Bump diff from 5.1.0 to 5.2.2 by dependabot[bot] · Pull Request #9 · SentryPeer/API-Reference · GitHub

Open Graph Title: Bump diff from 5.1.0 to 5.2.2 by dependabot[bot] · Pull Request #9 · SentryPeer/API-Reference

X Title: Bump diff from 5.1.0 to 5.2.2 by dependabot[bot] · Pull Request #9 · SentryPeer/API-Reference

Description: Bumps diff from 5.1.0 to 5.2.2. Changelog Sourced from diff's changelog. Release Notes 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: #554 diffWords treats numbers and underscores as word characters again. This behaviour was broken in v6.0.0. ... (truncated) Commits b7b6339 v5.2.2 b5377ab Update package version to 5.2.1 7801789 Backport kpdecker/jsdiff#649 042a837 Backport kpdecker/jsdiff#647 370a9df 5.2.0 release (#483) a2f726a Add myself to the list of maintainers (#482) dfc6fe4 Add examples to docs of creating and applying patches (importantly including ... b5d1cfa Modify node_example.js to support showing added/deleted spaces (#479) 533893d Add timeout option (#478) 1f1ec96 Replace broken link to Myers's paper in the README with a working one (#476) 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 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 merge will merge this PR after your CI passes on it @dependabot squash and merge will squash and merge this PR after your CI passes on it @dependabot cancel merge will cancel a previously requested merge and block automerging @dependabot reopen will reopen this PR if it is closed @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually @dependabot show 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.

Open Graph Description: Bumps diff from 5.1.0 to 5.2.2. Changelog Sourced from diff's changelog. Release Notes 8.0.3 #631 - fix support for using an Intl.Segmenter with diffWords. This has been almost completely br...

X Description: Bumps diff from 5.1.0 to 5.2.2. Changelog Sourced from diff's changelog. Release Notes 8.0.3 #631 - fix support for using an Intl.Segmenter with diffWords. This has been almost completel...

Opengraph URL: https://github.com/SentryPeer/API-Reference/pull/9

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5e1ebd61-3714-93d7-c35e-4bc86d8b4fc4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA402:30050E:19D1791:212E23F:69925F6E
html-safe-nonceb5218bdecec7647499c552b4a8e59bd56de90c5551269c360cda597a3ceaeed5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDAyOjMwMDUwRToxOUQxNzkxOjIxMkUyM0Y6Njk5MjVGNkUiLCJ2aXNpdG9yX2lkIjoiODA1MTI3OTA2MjczMDE3MDIyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca71bfd18a9d01d7c0518ee5f41a612d48b9085c028986ab39f380bd698fc384f
hovercard-subject-tagpull_request:3192935214
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/SentryPeer/API-Reference/pull/9/files
twitter:imagehttps://avatars.githubusercontent.com/in/29110?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/in/29110?s=400&v=4
og:image:altBumps diff from 5.1.0 to 5.2.2. Changelog Sourced from diff's changelog. Release Notes 8.0.3 #631 - fix support for using an Intl.Segmenter with diffWords. This has been almost completely br...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/SentryPeer/API-Reference git https://github.com/SentryPeer/API-Reference.git
octolytics-dimension-user_id92922817
octolytics-dimension-user_loginSentryPeer
octolytics-dimension-repository_id635022823
octolytics-dimension-repository_nwoSentryPeer/API-Reference
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id635022823
octolytics-dimension-repository_network_root_nwoSentryPeer/API-Reference
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSentryPeer%2FAPI-Reference%2Fpull%2F9%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSentryPeer%2FAPI-Reference%2Fpull%2F9%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=SentryPeer%2FAPI-Reference
Reloadhttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
Reloadhttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
Reloadhttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
SentryPeer https://patch-diff.githubusercontent.com/SentryPeer
API-Referencehttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FSentryPeer%2FAPI-Reference
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2FSentryPeer%2FAPI-Reference
Star 1 https://patch-diff.githubusercontent.com/login?return_to=%2FSentryPeer%2FAPI-Reference
Code https://patch-diff.githubusercontent.com/SentryPeer/API-Reference
Issues 0 https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/issues
Pull requests 4 https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pulls
Actions https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/actions
Projects 0 https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/projects
Security 0 https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/security
Insights https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pulse
Code https://patch-diff.githubusercontent.com/SentryPeer/API-Reference
Issues https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/issues
Pull requests https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pulls
Actions https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/actions
Projects https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/projects
Security https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/security
Insights https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FSentryPeer%2FAPI-Reference%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FSentryPeer%2FAPI-Reference%2Fissues%2Fnew%2Fchoose
dependabothttps://patch-diff.githubusercontent.com/apps/dependabot
mainhttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/tree/main
dependabot/npm_and_yarn/diff-5.2.2https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/tree/dependabot/npm_and_yarn/diff-5.2.2
Conversation 0 https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9
Commits 1 https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/commits
Checks 1 https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/checks
Files changed https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
Please reload this pagehttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
Bump diff from 5.1.0 to 5.2.2 https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files#top
Show all changes 1 commit https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
f87fe22 Bump diff from 5.1.0 to 5.2.2 dependabot[bot] Jan 20, 2026 https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/commits/f87fe221f34150e84a4468b3926e9f39c84a863d
Clear filters https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
Please reload this pagehttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
Please reload this pagehttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
package-lock.jsonhttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
View file https://patch-diff.githubusercontent.com/SentryPeer/API-Reference/blob/f87fe221f34150e84a4468b3926e9f39c84a863d/package-lock.json
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://patch-diff.githubusercontent.com/SentryPeer/API-Reference/pull/9/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.