jsdiff icon indicating copy to clipboard operation
jsdiff copied to clipboard

A javascript text differencing implementation.

Results 26 jsdiff issues
Sort by recently updated
recently updated
newest added

I have been trying to install shadcn ui through the command given on its site : "npx shadcn-ui@latest init" but it's giving me an error : module not found. It's...

Thanks so much for this library. I've been using a highly modified version for diffing arrays and found for some large array sets with simple edits it was quite slow...

Currently, passing a callback to any of these causes an error similar to shown in https://github.com/kpdecker/jsdiff/issues/463/. Remember to update the README when fixing this!

bug
planned-for-next-release

Here's an example of a patch emitted by `git diff`: ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 20b807a..4a96aff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,6 +2,8 @@ ## Pull Requests +bla...

planned-for-next-release

[JSFiddle repro](https://jsfiddle.net/doug16k/r1q0k6z2/11/) What happened to def lambda... in "mine"? It ate it, right? EDIT: link updated to fix "mine" terminology

bug
planned-for-next-release
merge

```ts import * as Diff from 'diff' const diff = Diff.diffLines('a\nb\nc', 'a\nb', { newlineIsToken: false }) console.log(diff) ``` yields: ```ts [ { count: 1, value: 'a\n' }, { count: 2,...

minor-feature-request
planned-for-next-release

If I have a patch and the original content, is there a way using this library to generate the single string that we see as the output of a git...

question
planned-for-next-release
merge

Some definitions are available [here](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/diff). Thanks

major-new-feature
planned-for-next-release

![](https://i.imgur.com/oX2Vcto.png) Currently, it seems that `diffWords` treats an apostrophe as a word separator? As you can see in the above image, the single letter change in the word `am` (`am`...

bug
diffWords behaviour
planned-for-next-release