Skip to content

Releases: caohanyang/json_diff_rfc6902

Modify HashObject

10 May 15:27
Compare
Choose a tag to compare

Modify hashObject

Add options.HASH_ID

25 Apr 15:27
Compare
Choose a tag to compare

For example, if options.HASH_ID = "title", it will get the property value "title" of the elements in the array, and use them as the hash value to execute the operations transformation algorithem.

Improve speed: use id || _id || title as hash value

21 Apr 16:56
Compare
Choose a tag to compare

In order to match the objects in the array.
Use the id || _id || title as the hash value, if they have not been found, use the default hash method.

Improve the speed and generate smaller patch.

Find minimal change for elements in the array

20 Apr 21:18
Compare
Choose a tag to compare

Use the operational transformation to handle array.
When meet "replace" operation, go deeper (to the internal node) to find minimal change and yield small patch.

Use operation transformation

07 Apr 08:39
Compare
Choose a tag to compare

Use operation transformation to handle array, instead of LCS.

Change Hash array method to speed up

25 Mar 13:59
Compare
Choose a tag to compare

Hash array method:
From: JSON.stringnify()
To: require('string-hash') https://github.com/darkskyapp/string-hash

Hash array

22 Mar 08:56
Compare
Choose a tag to compare

Hash array elements for comparison.

Remove logs

16 Mar 13:13
Compare
Choose a tag to compare

Fix bugs and remove logs

First release

15 Mar 22:08
Compare
Choose a tag to compare

JSON-Diff

JSON-Diff is to diff two JSON object and generate the patch, which is compliant to JSON Patch RFC6902.

You can use JSON-Diff to

  • diff two JSON object
  • apply patches to get JSON

JSON-Diff is able to handle operations:

Object

  • add
  • remove
  • replace
  • copy
  • move

Array

  • add
  • remove
  • replace
  • copy
  • move
  • permutation