Skip to content

Releases: cujojs/jiff

0.7.3: Fix array-of-array diff

Choose a tag to compare

@briancavalier briancavalier released this 18 Jan 15:54
  • 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

Choose a tag to compare

@briancavalier briancavalier released this 03 May 02:02
  • 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

Choose a tag to compare

@briancavalier briancavalier released this 31 Mar 01:24
  • 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()

Choose a tag to compare

@briancavalier briancavalier released this 08 Dec 19:27
  • 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

Choose a tag to compare

@briancavalier briancavalier released this 11 Jul 17:03

0.5.6: More perf

Choose a tag to compare

@briancavalier briancavalier released this 27 Jun 14:00
  • 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

Choose a tag to compare

@briancavalier briancavalier released this 05 Jun 15:32
  • Handle whole JSON document test operations, when path is '' as per rfc6901
  • Fix null handling in deepEquals

0.5.4

Choose a tag to compare

@briancavalier briancavalier released this 27 May 19:09
  • Fixes for commutation and rebasing

0.5.3

Choose a tag to compare

@briancavalier briancavalier released this 20 May 17:13
  • Experimental patch rebasing.

0.5.2

Choose a tag to compare

@briancavalier briancavalier released this 16 May 19:11
  • Fix version numbers