You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, there's a small catch: if an add operation was generated, but it replaces data instead of just adding it, its inverse won't yield the original document. I suppose the patch generator has to ensure that they only use add as a strict add.
Activity
briancavalier commentedon May 8, 2014
Also see cujojs/jiff#15 - brainstorming possible ways to allow inversion.
espadrine commentedon Aug 24, 2016
I personally lean towards cujojs/jiff#15 (comment), using the key
was. I implemented that in https://github.com/espadrine/json-diff.However, there's a small catch: if an add operation was generated, but it replaces data instead of just adding it, its inverse won't yield the original document. I suppose the patch generator has to ensure that they only use add as a strict add.