jsdiff icon indicating copy to clipboard operation
jsdiff copied to clipboard

A javascript text differencing implementation.

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

This is a feature request. Given a common ancestor and 2 sets of patches, provide a merged document that may include conflicts to resolve manually. This would be useful to...

merge

It seems https://github.com/kpdecker/jsdiff/blob/3b654c2ed7d5262ed9946de841ad8dae990286c7/src/diff/base.js does not implement "4b. A Linear Space Refinement" mentioned in Myers' paper. So the memory usage is O(D^2). From the code it looks like `O(len(bestPath) * len(components...

performance

See https://github.com/kpdecker/jsdiff/issues/474#issuecomment-1886906877 for my analysis of why this is a good idea.

major-new-feature

This would let us support: * languages without spaces - e.g. [Chinese, Japanese](https://github.com/kpdecker/jsdiff/pull/328) * languages where punctuation that is normally a word break can appear in the middle of a...

non-breaking-change
major-new-feature
diffWords behaviour
planned-for-next-release

`Diff.diffWords` is not working on non-Latin characters like Korean.

breaking-change
bugfix
diffWords behaviour

This PR adds support for a `tokenizer` parameter which gives the user more control over what constitutes a "token". If the `tokenizer` parameter is not set then the default regex...

non-breaking-change
diffWords behaviour

Surely these behaviours can't be intended? ``` > text1 = 'foo\nbar\nbaz\nqux\n' 'foo\nbar\nbaz\nqux\n' > text2 = 'foo\nbaz\nqux\n' 'foo\nbaz\nqux\n' > patch = diff.createPatch('foo.txt', text1, text2) 'Index: foo.txt\n' + '===================================================================\n' + '--- foo.txt\n'...

breaking-change
bug
planned-for-next-release

Maybe I'm not seeing it in the docs, but I think it would be nice to apply a Change Object, or an array of them, to a string to be...

major-new-feature

* Are there optimizations we should nick? * Should we provide a comparison in the README as suggested by @josephrocca in https://github.com/kpdecker/jsdiff/issues/225? Key places to look seem to be: *...

performance
documentation

Anyway to build an option to ignore punctuation in the diff?

diffWords behaviour
minor-feature-request