|
12 | 12 |
|
13 | 13 | ## ChangeLog
|
14 | 14 |
|
15 |
| -`0.3.5` - 2017-04-23 — Rolled up recent fixes; patches: |
| 15 | +`0.3.6` - 2017-04-25 — Fixed, closed lingering issues: |
| 16 | +* fixed #74 — comparing objects with longer cycles |
| 17 | +* fixed #70 — was not properly detecting a deletion when a property on the operand (lhs) had a value of `undefined` and was _undefined_ on the comparand (rhs). :o). |
| 18 | + |
| 19 | +`0.3.5` - 2017-04-23 — Rolled up recent fixes; patches: |
16 | 20 | * @stevemao — #79, #80: now testing latest version of node4
|
17 | 21 | * @mortonfox — #85: referencing mocha's new home
|
18 | 22 | * @tdebarochez — #90: fixed error when .toString not a function
|
@@ -208,15 +212,15 @@ observableDiff(lhs, rhs, function (d) {
|
208 | 212 |
|
209 | 213 | A standard import of `var diff = require('deep-diff')` is assumed in all of the code examples. The import results in an object having the following public properties:
|
210 | 214 |
|
211 |
| -* `diff` - a function that calculates the differences between two objects. |
212 |
| -* `observableDiff` - a function that calculates the differences between two objects and reports each to an observer function. |
213 |
| -* `applyDiff` - a function that applies any structural differences from one object to another. |
214 |
| -* `applyChange` - a function that applies a single change record to an origin object. |
215 |
| -* `revertChange` - a function that reverts a single change record from a target object. |
| 215 | +* `diff(lhs, rhs, prefilter, acc)` — calculates the differences between two objects, optionally prefiltering elements for comparison, and optionally using the specified accumulator. |
| 216 | +* `observableDiff(lhs, rhs, observer, prefilter)` — calculates the differences between two objects and reports each to an observer function, optionally, prefiltering elements for comparison. |
| 217 | +* `applyDiff(target, source, filter)` — applies any structural differences from a source object to a target object, optionally filtering each difference. |
| 218 | +* `applyChange(target, source, change)` — applies a single change record to a target object. NOTE: `source` is unused and may be removed. |
| 219 | +* `revertChange(target, source, change)` reverts a single change record to a target object. NOTE: `source` is unused and may be removed. |
216 | 220 |
|
217 | 221 | ### `diff`
|
218 | 222 |
|
219 |
| -The `diff` function calculates the difference between two objects. In version `0.1.7` you can supply your own `prefilter` function as the 3rd argument and control which properties are ignored while calculating differences throughout the object graph. |
| 223 | +The `diff` function calculates the difference between two objects. |
220 | 224 |
|
221 | 225 | **Arguments**
|
222 | 226 |
|
|
0 commit comments