{"library":"diff-json","type":"library","category":null,"description":"diff-json is a JavaScript library (version 2.0.0, last updated in 2017) designed to generate structural differences between JavaScript objects, and subsequently apply or revert those changes. Inspired by `eugeneware/changeset`, it offers `diff`, `applyChanges`, and `revertChanges` functionalities. A key differentiator is its ability to handle array diffing by specifying a primary key for embedded objects, ensuring accurate comparison beyond simple positional changes. However, due to its age and lack of maintenance since 2017, it does not support modern JavaScript features like ES Modules or TypeScript and has an uncertain future regarding bug fixes or security updates. Alternative modern libraries like `json-diff-ts` offer similar functionality with current ecosystem support.","language":"javascript","status":"abandoned","version":"2.0.0","tags":["javascript","JSON","diff","patch","revert","apply changes","revert changes"],"last_verified":"Wed May 27","install":[{"cmd":"npm install diff-json","imports":["const changesets = require('diff-json');","const { diff } = require('diff-json'); // Although technically possible to destructure, the common pattern is to import the entire object.","const changesets = require('diff-json'); changesets.applyChanges(oldObj, diffs);"]},{"cmd":"yarn add diff-json","imports":[]},{"cmd":"pnpm add diff-json","imports":[]}],"homepage":null,"github":"https://github.com/viruschidai/diff-json","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/diff-json","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/diff-json/compatibility"}}