flitbit / diff

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.
MIT License
2.98k stars 213 forks source link

JSON Patch RFC 6902 #166

Open ComLock opened 4 years ago

ComLock commented 4 years ago

It would be nice if one could choose to use the RFC6902 JSON Patch format. http://jsonpatch.com/

mikkelking commented 2 years ago

At first sight this looks like a good idea, except that the jsonpatch project is pretty much abandonware, and the libraries being used for testing are abandoned. There is another project https://github.com/cujojs/jiff which uses that RFC, but it's also abandoned. If you are keen on contributing, you could provide an option to support JSON Patch, which would be quite easy to do. And beyond that, it would be worth bringing across some features from jiff. The code itself is pretty clean and still works, just the test suite is irretrievable.

gustawdaniel commented 1 year ago

@mikkelking what do you think about https://www.npmjs.com/package/rfc6902 it seems to be better maintained.