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.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.diff.formatPatch.diff.reversePatch.timeout option.JsDiff to Diff.Compatibility notes:
diffArraysundefinedReplacement option to diffJson (@ewnd9)examples and images to .npmignore. (@wtgtybhertgeghgtwtg)patched option (@piranna)Compatibility notes:
Compatibility notes:
Compatibility notes:
this.removeEmpty is now called automatically for all instances. If this is not desired, this may be overridden on a per instance basis.#22 - Added variant of WordDiff that doesn't ignore whitespace differences (@papandreou
Add 0.10 to travis tests - 243a526