Skip to content

Commit af4f496

Browse files
committed
Bump.
1 parent 9ca153f commit af4f496

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

lib/jsondiff-for-react.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,7 @@ var JsonDiffReact = function (_Component) {
6060
objectHash = _props.objectHash;
6161

6262
var delta = Jsondiffpatch.create({
63-
objectHash: objectHash,
64-
arrays: {
65-
// default true, detect items moved inside the array (otherwise they will be registered as remove+add)
66-
detectMove: false,
67-
// default false, the value of items moved is not included in deltas
68-
includeValueOnMove: true
69-
}
63+
objectHash: objectHash
7064
}).diff(left, right);
7165
var html = annotated ? formatters.annotated.format(delta) : formatters.html.format(delta, left);
7266
show ? formatters.html.showUnchanged() : formatters.html.hideUnchanged();

src/jsondiff-for-react.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ class JsonDiffReact extends Component {
3030
} = this.props;
3131
const delta = Jsondiffpatch.create({
3232
objectHash,
33-
arrays: {
34-
// default true, detect items moved inside the array (otherwise they will be registered as remove+add)
35-
detectMove: false,
36-
// default false, the value of items moved is not included in deltas
37-
includeValueOnMove: true,
38-
},
3933
}).diff(left, right);
4034
const html = annotated
4135
? formatters.annotated.format(delta)

0 commit comments

Comments
 (0)