Skip to content

Releases: cujojs/jiff

0.7.3: Fix array-of-array diff

18 Jan 15:54
Compare
Choose a tag to compare
  • Make diffing arrays of arrays generate smaller patches by default.
    • Previously, diffing arrays of arrays could generate larger than expected patches because the array identity was used as the hash function. It now uses JSON.stringify by default, as is done for arrays of objects. The hash can still be overridden when calling jiff.diff--this just makes the default more sane.

0.7.2: Fix diff changing array to object

03 May 02:02
Compare
Choose a tag to compare
  • Fix for case where a property value is changed from an array to an object or vice versa. Patch will now correctly contain a replace operation.

0.7.1: Add invertible option

31 Mar 01:24
Compare
Choose a tag to compare
  • Add invertible option to jiff.diff to suppress extra test ops. This makes for smaller patches, but means patches cannot be inverted using jiff.inverse

0.7.0: improve jiff.clone()

08 Dec 19:27
Compare
Choose a tag to compare
  • Improve jiff.clone performance 3x or more
  • Removed jiff.clone custom Date reviving
    • This may be a breaking change if you relied on this behavior. However, we feel this hidden behavior caused more issues than it helped. Date deserialization is now the responsibility of the caller who parsed the JSON string from which the original object/array/etc. (ie, the one passed to jiff.clone) was created.

0.6.0: Experimental patch context

11 Jul 17:03
Compare
Choose a tag to compare

0.5.6: More perf

27 Jun 14:00
Compare
Choose a tag to compare
  • Optimize JSON Pointer decoding/parsing for across-the-board perf improvements.
  • Switch to loops instead of Array.prototype.* in several perf-critical spots.
  • Make copy operations throw InvalidPatchOperationError for non-existent from paths.

0.5.5

05 Jun 15:32
Compare
Choose a tag to compare
  • Handle whole JSON document test operations, when path is '' as per rfc6901
  • Fix null handling in deepEquals

0.5.4

27 May 19:09
Compare
Choose a tag to compare
  • Fixes for commutation and rebasing

0.5.3

20 May 17:13
Compare
Choose a tag to compare
  • Experimental patch rebasing.

0.5.2

16 May 19:11
Compare
Choose a tag to compare
  • Fix version numbers