diff-match-patch adds quite a bit to the bundle size, relative to jsondiffpatch. With diff-match-patch, the minified bundle size is ~33kB. Without it, the minified bundle size is ~14kB.
Some people find the text diffs surprising, depending on what they're using jsondiffpatch for. There have been requests for an option to disable it altogether:
The main entry-point no longer includes text diffing by default. Users must either pass in the diff-match-patch library in as a property of the textDiff option, or use the jsondiffpatch/with-text-diffs entry point that is included for convenience.
The textDiff option now has a required diffMatchPatch property.
Motivation
Breaking changes
textDiff
option, or use thejsondiffpatch/with-text-diffs
entry point that is included for convenience.textDiff
option now has a requireddiffMatchPatch
property.