Skip to content

Commit b653cce

Browse files
authored
Merge pull request #401 from benjamine/fixes
fix: switch to @dmsnell/diff-match-patch fix #378
2 parents a50f144 + 48b8d58 commit b653cce

File tree

16 files changed

+2530
-4996
lines changed

16 files changed

+2530
-4996
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ In a browser, you can load a bundle using a tool like [esm.sh](https://esm.sh) o
205205
import * as jsondiffpatch from 'jsondiffpatch';
206206

207207
// Only import if you want text diffs using diff-match-patch
208-
import DiffMatchPatch from 'diff-match-patch';
208+
import { diff_match_patch } from '@dmsnell/diff-match-patch';
209209

210210
const jsondiffpatchInstance = jsondiffpatch.create({
211211
// used to match objects when diffing arrays, by default only === operator is used
@@ -222,8 +222,8 @@ const jsondiffpatchInstance = jsondiffpatch.create({
222222
textDiff: {
223223
// If using text diffs, it's required to pass in the diff-match-patch library in through this proprty.
224224
// Alternatively, you can import jsondiffpatch using `jsondiffpatch/with-text-diffs` to avoid having to pass in diff-match-patch through the options.
225-
diffMatchPatch: DiffMatchPatch,
226-
// default 60, minimum string length (left and right sides) to use text diff algorythm: google-diff-match-patch
225+
diffMatchPatch: diff_match_patch,
226+
// default 60, minimum string length (left and right sides) to use text diff algorithm: google-diff-match-patch
227227
minLength: 60,
228228
},
229229
propertyFilter: function (name, context) {

demos/console-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "tsc"
88
},
99
"dependencies": {
10-
"jsondiffpatch": "^0.6.0"
10+
"jsondiffpatch": "^0.7.1"
1111
},
1212
"devDependencies": {
1313
"typescript": "~5.3.2"

demos/html-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"dependencies": {
99
"json5": "^2.2.3",
10-
"jsondiffpatch": "^0.6.1"
10+
"jsondiffpatch": "^0.7.2"
1111
},
1212
"devDependencies": {
1313
"esbuild": "^0.19.8",

demos/numeric-plugin-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "tsc"
88
},
99
"dependencies": {
10-
"jsondiffpatch": "^0.6.0"
10+
"jsondiffpatch": "^0.7.2"
1111
},
1212
"devDependencies": {
1313
"typescript": "~5.3.2"

0 commit comments

Comments
 (0)