{"_id":"tree-changes-hook","_rev":"3891377","name":"tree-changes-hook","description":"React hook for tree-changes","dist-tags":{"latest":"0.11.3","next":"0.11.0-alpha.1"},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"time":{"modified":"2025-09-01T01:04:00.000Z","created":"2021-02-28T22:09:11.036Z","0.11.3":"2025-01-14T02:08:21.949Z","0.11.2":"2023-11-14T16:18:40.543Z","0.11.1":"2023-11-01T18:53:13.999Z","0.11.0":"2023-10-21T23:12:14.918Z","0.11.0-alpha.1":"2023-10-20T15:57:37.603Z","0.11.0-alpha.0":"2023-10-20T05:13:21.178Z","0.10.0":"2022-09-06T15:59:27.555Z","0.9.3":"2022-09-06T15:13:53.928Z","0.9.2":"2022-09-04T17:25:48.163Z","0.9.1":"2022-06-01T15:26:28.385Z","0.9.0":"2022-03-06T19:41:41.813Z","0.8.0":"2021-09-18T18:12:07.703Z","0.7.1":"2021-07-09T13:57:13.732Z","0.7.0":"2021-03-03T02:27:04.675Z","0.0.1":"2021-02-28T22:09:11.036Z"},"users":{},"author":"Gil Barbara <gilbarbara@gmail.com>","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"versions":{"0.11.3":{"name":"tree-changes-hook","version":"0.11.3","description":"React hook for tree-changes","author":"Gil Barbara <gilbarbara@gmail.com>","keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"types":"dist/index.d.ts","sideEffects":false,"peerDependencies":{"react":"16.8 - 19"},"dependencies":{"@gilbarbara/deep-equal":"^0.3.1","tree-changes":"0.11.3"},"devDependencies":{"@gilbarbara/node-helpers":"^0.1.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.1.0","@types/react":"^19.0.6","@types/react-dom":"^19.0.3","@vitejs/plugin-react":"^4.3.4","react":"^19.0.0","react-dom":"^19.0.0","vitest":"^2.1.8"},"scripts":{"build":"npm run clean && tsup && ts-node scripts/fix-cjs.ts","watch":"tsup --watch","clean":"del dist/*","lint":"eslint src test","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"vitest run --coverage","test:watch":"vitest watch","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"tsup":{"dts":true,"entry":["src/index.ts"],"format":["cjs","esm"],"sourcemap":true,"splitting":false},"extends":["@gilbarbara/eslint-config","@gilbarbara/eslint-config/vitest","@gilbarbara/eslint-config/testing-library"],"prettier":"@gilbarbara/prettier-config","size-limit":[{"name":"cjs","path":"./dist/index.js","limit":"5 kB"},{"name":"esm","path":"./dist/index.mjs","limit":"4 kB"}],"gitHead":"eeb17be158bc6038cbe605a8e7d6f9973c789481","_nodeVersion":"22.12.0","_npmVersion":"lerna/8.1.9/node@v22.12.0+x64 (linux)","_id":"tree-changes-hook@0.11.3","dist":{"shasum":"686072da95b6bc004ebb039324f5cef14850048a","size":4261,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.11.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.11.3.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tree-changes-hook_0.11.3_1736820501773_0.8959002593101177"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-14T02:08:21.949Z","publish_time":1736820501949,"_source_registry_name":"default","_cnpm_publish_time":1736820501949},"0.11.2":{"name":"tree-changes-hook","version":"0.11.2","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"types":"dist/index.d.ts","sideEffects":false,"peerDependencies":{"react":"16.8 - 18"},"dependencies":{"@gilbarbara/deep-equal":"^0.3.1","tree-changes":"0.11.2"},"devDependencies":{"@gilbarbara/node-helpers":"^0.1.0","@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^14.1.0","@types/react":"^18.2.37","@types/react-dom":"^18.2.15","@vitejs/plugin-react":"^4.1.1","react":"^18.2.0","react-dom":"^18.2.0","vitest":"^0.34.6"},"scripts":{"build":"npm run clean && tsup && ts-node scripts/fix-cjs.ts","watch":"tsup --watch","clean":"del dist/*","lint":"eslint src test","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"vitest run --coverage","test:watch":"vitest watch","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"tsup":{"dts":true,"entry":["src/index.ts"],"format":["cjs","esm"],"sourcemap":true,"splitting":false},"extends":["@gilbarbara/eslint-config","@gilbarbara/eslint-config/vitest","@gilbarbara/eslint-config/testing-library"],"prettier":"@gilbarbara/prettier-config","size-limit":[{"name":"cjs","path":"./dist/index.js","limit":"5 kB"},{"name":"esm","path":"./dist/index.mjs","limit":"4 kB"}],"gitHead":"77086e475c287f0c2d801953209ed8eae096952b","_id":"tree-changes-hook@0.11.2","_nodeVersion":"18.18.2","_npmVersion":"lerna/7.4.2/node@v18.18.2+x64 (linux)","dist":{"shasum":"58879f1906f564fdea4022175f410a85c47eb4f1","size":4237,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.11.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.11.2.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.11.2_1699978720289_0.5938058467809979"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-14T16:18:40.543Z","publish_time":1699978720543,"_source_registry_name":"default","_cnpm_publish_time":1699978720543},"0.11.1":{"name":"tree-changes-hook","version":"0.11.1","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"types":"dist/index.d.ts","sideEffects":false,"peerDependencies":{"react":"16.8 - 18"},"dependencies":{"@gilbarbara/deep-equal":"^0.3.1","tree-changes":"0.11.1"},"devDependencies":{"@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^14.0.0","@types/react":"^18.2.33","@types/react-dom":"^18.2.14","@vitejs/plugin-react":"^4.1.0","react":"^18.2.0","react-dom":"^18.2.0","vitest":"^0.34.6"},"scripts":{"build":"npm run clean && tsup && ts-node scripts/fix-cjs.ts","watch":"tsup --watch","clean":"del dist/*","lint":"eslint src test","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"vitest run --coverage","test:watch":"vitest watch","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"tsup":{"dts":true,"entry":["src/index.ts"],"format":["cjs","esm"],"sourcemap":true,"splitting":false},"extends":["@gilbarbara/eslint-config","@gilbarbara/eslint-config/vitest","@gilbarbara/eslint-config/testing-library"],"prettier":"@gilbarbara/prettier-config","size-limit":[{"name":"cjs","path":"./dist/index.js","limit":"5 kB"},{"name":"esm","path":"./dist/index.mjs","limit":"4 kB"}],"gitHead":"8408ca315d5abc82ffb25f73c30c8865a445f3ce","_id":"tree-changes-hook@0.11.1","_nodeVersion":"18.18.2","_npmVersion":"lerna/7.4.2/node@v18.18.2+x64 (linux)","dist":{"shasum":"2bc708a53037c91bf8c42d66ae8e3dc904c6e2fb","size":4223,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.11.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.11.1.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.11.1_1698864793845_0.6852382285732923"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-01T18:53:13.999Z","publish_time":1698864793999,"_source_registry_name":"default","_cnpm_publish_time":1698864793999},"0.11.0":{"name":"tree-changes-hook","version":"0.11.0","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"types":"dist/index.d.ts","sideEffects":false,"peerDependencies":{"react":"16.8 - 18"},"dependencies":{"@gilbarbara/deep-equal":"^0.3.1","tree-changes":"0.11.0"},"devDependencies":{"@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^14.0.0","@types/react":"^18.2.28","@types/react-dom":"^18.2.13","react":"^18.2.0","react-dom":"^18.2.0","vitest":"^0.34.6"},"scripts":{"build":"npm run clean && tsup && ts-node scripts/fix-cjs.ts","watch":"tsup --watch","clean":"del dist/*","lint":"eslint src test","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"vitest run --coverage","test:watch":"vitest watch","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"tsup":{"dts":true,"entry":["src/index.ts"],"format":["cjs","esm"],"sourcemap":true,"splitting":false},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"name":"cjs","path":"./dist/index.js","limit":"5 kB"},{"name":"esm","path":"./dist/index.mjs","limit":"4 kB"}],"gitHead":"0a87f1ee028b1c8fd2ec8055fb8c9e0856cb05e1","_id":"tree-changes-hook@0.11.0","_nodeVersion":"18.18.2","_npmVersion":"lerna/7.3.1/node@v18.18.2+x64 (linux)","dist":{"shasum":"1e24ae6816395de6c2b47d2861e6076057a2ccbe","size":4191,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.11.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.11.0.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.11.0_1697929934702_0.38632608341623254"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-21T23:12:14.918Z","publish_time":1697929934918,"_source_registry_name":"default","_cnpm_publish_time":1697929934918},"0.11.0-alpha.1":{"name":"tree-changes-hook","version":"0.11.0-alpha.1","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"types":"dist/index.d.ts","sideEffects":false,"peerDependencies":{"react":"16.8 - 18"},"dependencies":{"@gilbarbara/deep-equal":"^0.3.1","tree-changes":"0.10.0"},"devDependencies":{"@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^14.0.0","@types/react":"^18.2.28","@types/react-dom":"^18.2.13","react":"^18.2.0","react-dom":"^18.2.0","vitest":"^0.34.6"},"tsup":{"dts":true,"entry":["src/index.ts"],"format":["cjs","esm"],"sourcemap":true,"splitting":false},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"name":"cjs","path":"./dist/index.js","limit":"5 kB"},{"name":"esm","path":"./dist/index.mjs","limit":"4 kB"}],"scripts":{"build":"npm run clean && tsup && ts-node scripts/fix-cjs-dts.ts","watch":"tsup --watch","clean":"del dist/*","lint":"eslint src test","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"vitest run --coverage","test:watch":"vitest watch","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit"},"readmeFilename":"README.md","_id":"tree-changes-hook@0.11.0-alpha.1","_integrity":"sha512-fsvqAsfPO6i2Z7VfBz+hnXvsjNSxTkMLl3RXj8Pjb+IWuxqwClxomHYw+qH7/Cwa4x+DX+NvbHzkBU2ofc3EXw==","_resolved":"/private/var/folders/yw/4tk2kgyd43n3rvf_hcbvs2r80000gn/T/fbf1c4273a0b9ebc302e922bbdcbee6a/tree-changes-hook-0.11.0-alpha.1.tgz","_from":"file:tree-changes-hook-0.11.0-alpha.1.tgz","_nodeVersion":"20.8.1","_npmVersion":"10.1.0","dist":{"shasum":"ff3352dd8540a3746d6429cc166a255a45a2dc98","size":4090,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.11.0-alpha.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.11.0-alpha.1.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.11.0-alpha.1_1697817457383_0.07558677149335047"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-20T15:57:37.603Z","publish_time":1697817457603,"_source_registry_name":"default","_cnpm_publish_time":1697817457603},"0.11.0-alpha.0":{"name":"tree-changes-hook","version":"0.11.0-alpha.0","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"dist/index.js","module":"dist/index.mjs","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"types":"dist/index.d.ts","sideEffects":false,"peerDependencies":{"react":"16.8 - 18"},"dependencies":{"@gilbarbara/deep-equal":"^0.3.1","tree-changes":"workspace:*"},"devDependencies":{"@testing-library/jest-dom":"^6.1.4","@testing-library/react":"^14.0.0","@types/react":"^18.2.28","@types/react-dom":"^18.2.13","react":"^18.2.0","react-dom":"^18.2.0","vitest":"^0.34.6"},"scripts":{"build":"npm run clean && tsup && ts-node scripts/fix-cjs-dts.ts","watch":"tsup --watch","clean":"del dist/*","lint":"eslint src test","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"vitest run --coverage","test:watch":"vitest watch","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"tsup":{"dts":true,"entry":["src/index.ts"],"format":["cjs","esm"],"sourcemap":true,"splitting":false},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"name":"cjs","path":"./dist/index.js","limit":"5 kB"},{"name":"esm","path":"./dist/index.mjs","limit":"4 kB"}],"_id":"tree-changes-hook@0.11.0-alpha.0","readmeFilename":"README.md","gitHead":"4b9ec7fb564951d11ffd45cfac83d668c982af7c","_nodeVersion":"20.8.1","_npmVersion":"10.1.0","dist":{"shasum":"51ead8a3aaf2e81c9a40664958fbf7747fe81bff","size":4062,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.11.0-alpha.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.11.0-alpha.0.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.11.0-alpha.0_1697778800920_0.9939861089726179"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-20T05:13:21.178Z","publish_time":1697778801178,"_source_registry_name":"default","_cnpm_publish_time":1697778801178},"0.10.0":{"name":"tree-changes-hook","version":"0.10.0","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"dist/index.js","module":"dist/index.mjs","exports":{"import":"./dist/index.mjs","require":"./dist/index.js"},"types":"dist","sideEffects":false,"peerDependencies":{"react":"16 - 18"},"dependencies":{"@gilbarbara/deep-equal":"^0.1.1","tree-changes":"^0.10.0"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/react":"^18.0.18","@types/react-dom":"^18.0.6","react":"^18.2.0","react-dom":"^18.2.0"},"scripts":{"build":"npm run clean && esbuilder --cjs --esm && npm run build:types","build:types":"tsc --emitDeclarationOnly","clean":"del dist/*","lint":"eslint src test","test":"jest","test:coverage":"jest --coverage --bail","test:watch":"jest --watchAll --verbose","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"name":"cjs","path":"./dist/index.js","limit":"5 kB"},{"name":"esm","path":"./dist/index.mjs","limit":"4 kB"}],"gitHead":"ab73936e172ad07ccdf8b40006e82902fd175a26","_id":"tree-changes-hook@0.10.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","dist":{"shasum":"a8dbd3b424f3224626a7d31449237f771fcbf671","size":3899,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.10.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.10.0.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.10.0_1662479967412_0.9361187842650105"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-06T16:01:53.310Z","publish_time":1662479967555,"_cnpm_publish_time":1662479967555},"0.9.3":{"name":"tree-changes-hook","version":"0.9.3","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"lib/index.js","module":"esm/index.js","types":"lib","sideEffects":false,"peerDependencies":{"react":"16 - 18"},"dependencies":{"@gilbarbara/deep-equal":"^0.1.1","tree-changes":"^0.9.3"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.3.0","@types/react":"^18.0.18","@types/react-dom":"^18.0.6","react":"^18.2.0","react-dom":"^18.2.0"},"scripts":{"build":"npm run clean && npm run build:cjs && npm run build:esm","build:cjs":"tsc","build:esm":"tsc -m es6 --outDir esm","watch:cjs":"npm run build:cjs -- -w","watch:esm":"npm run build:esm -- -w","clean":"del lib/* && del esm/*","lint":"eslint src test","test":"jest","test:coverage":"jest --coverage --bail","test:watch":"jest --watchAll --verbose","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"name":"cjs","path":"./lib/index.js","limit":"5 kB"},{"name":"esm","path":"./esm/index.js","limit":"4 kB"}],"gitHead":"e75858b421670c000067ba73f9987dc3a5c63424","_id":"tree-changes-hook@0.9.3","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","dist":{"shasum":"7fa8255cbe3300180e03330cdda9953b0e7f6bff","size":3642,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.9.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.9.3.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.9.3_1662477233773_0.3561815086288218"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-06T15:16:53.252Z","publish_time":1662477233928,"_cnpm_publish_time":1662477233928},"0.9.2":{"name":"tree-changes-hook","version":"0.9.2","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"dist/index.js","module":"dist/index.mjs","exports":{"import":"./dist/index.mjs","require":"./dist/index.js"},"types":"dist","sideEffects":false,"peerDependencies":{"react":"16 - 18"},"dependencies":{"@gilbarbara/deep-equal":"^0.1.1","tree-changes":"^0.9.2"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.3.0","@types/react":"^18.0.18","@types/react-dom":"^18.0.6","react":"^18.2.0","react-dom":"^18.2.0"},"scripts":{"build":"npm run clean && esbuilder --cjs --esm && npm run build:types","build:types":"tsc --emitDeclarationOnly","clean":"del dist/*","lint":"eslint src test","test":"jest","test:coverage":"jest --coverage --bail","test:watch":"jest --watchAll --verbose","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"name":"cjs","path":"./dist/index.js","limit":"4 kB"},{"name":"esm","path":"./dist/index.mjs","limit":"4 kB"}],"gitHead":"98332074386b9644d46d5071d93f978be0cbacd7","_id":"tree-changes-hook@0.9.2","_nodeVersion":"16.17.0","_npmVersion":"lerna/5.5.0/node@v16.17.0+x64 (linux)","dist":{"shasum":"6afb0ea765980bab3e570ad74b11e9b9ade92f61","size":3901,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.9.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.9.2.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.9.2_1662312347971_0.38421640663783685"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-04T17:25:50.573Z","publish_time":1662312348163,"_cnpm_publish_time":1662312348163},"0.9.1":{"name":"tree-changes-hook","version":"0.9.1","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"lib/index.js","module":"esm/index.js","types":"lib","sideEffects":false,"peerDependencies":{"react":"^16.8.0 || ^17.0.0 || ^18.0.0"},"dependencies":{"@gilbarbara/deep-equal":"^0.1.1","tree-changes":"^0.9.1"},"devDependencies":{"@testing-library/jest-dom":"^5.16.4","@testing-library/react":"^13.3.0","@types/react":"^18.0.10","@types/react-dom":"^18.0.5","del-cli":"^4.0.1","react":"^18.1.0","react-dom":"^18.1.0","typescript":"^4.7.2"},"scripts":{"build":"npm run clean && npm run build:cjs && npm run build:esm","build:cjs":"tsc","build:esm":"tsc -m es6 --outDir esm","watch:cjs":"npm run build:cjs -- -w","watch:esm":"npm run build:esm -- -w","lint":"eslint --ext .ts,.tsx src test","clean":"del lib/* && del esm/*","test":"jest","test:coverage":"jest --coverage --bail","test:watch":"jest --watchAll --verbose","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"path":"./lib/index.js","limit":"4 kB"},{"path":"./esm/index.js","limit":"4 kB"}],"gitHead":"88a51e4995d8ebc7938a6bdd290f882c875e73c3","_id":"tree-changes-hook@0.9.1","_nodeVersion":"16.15.0","_npmVersion":"lerna/5.0.0/node@v16.15.0+x64 (linux)","dist":{"shasum":"bfcca85f17e932f194b60820d1c84056b7e53a8b","size":3664,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.9.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.9.1.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.9.1_1654097188118_0.27885949754095996"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-01T15:31:24.703Z","publish_time":1654097188385,"_cnpm_publish_time":1654097188385},"0.9.0":{"name":"tree-changes-hook","version":"0.9.0","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"lib/index.js","module":"esm/index.js","types":"lib","sideEffects":false,"peerDependencies":{"react":"^16.8.0 || ^17.0.0"},"dependencies":{"@gilbarbara/deep-equal":"^0.1.0","tree-changes":"^0.9.0"},"devDependencies":{"@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^12.1.0","@types/react":"^17.0.21","@types/react-dom":"^17.0.9","del-cli":"^4.0.1","react":"^17.0.2","react-dom":"^17.0.2","typescript":"^4.4.3"},"scripts":{"build":"npm run clean && npm run build:cjs && npm run build:esm","build:cjs":"tsc","build:esm":"tsc -m es6 --outDir esm","watch:cjs":"npm run build:cjs -- -w","watch:esm":"npm run build:esm -- -w","lint":"eslint --ext .ts,.tsx src test","clean":"del lib/* && del esm/*","test":"jest","test:coverage":"jest --coverage --bail","test:watch":"jest --watchAll --verbose","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"path":"./lib/index.js","limit":"4 kB"},{"path":"./esm/index.js","limit":"4 kB"}],"gitHead":"0d1c0dc2149ada45dd26163156414470bce211fb","_id":"tree-changes-hook@0.9.0","_nodeVersion":"16.14.0","_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (darwin)","dist":{"shasum":"7327912b6aef0b05c2e79a92de40661711254460","size":3598,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.9.0.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.9.0_1646595701651_0.09309837081773331"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-06T19:41:44.845Z","publish_time":1646595701813,"_cnpm_publish_time":1646595701813},"0.8.0":{"name":"tree-changes-hook","version":"0.8.0","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"lib/index.js","module":"esm/index.js","types":"lib","sideEffects":false,"peerDependencies":{"react":"^16.8.0 || ^17.0.0"},"dependencies":{"fast-deep-equal":"^3.1.3","tree-changes":"^0.8.0"},"devDependencies":{"@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^12.1.0","@types/react":"^17.0.21","@types/react-dom":"^17.0.9","del-cli":"^4.0.1","react":"^17.0.2","react-dom":"^17.0.2","typescript":"^4.4.3"},"scripts":{"build":"npm run clean && npm run build:cjs && npm run build:esm","build:cjs":"tsc","build:esm":"tsc -m es6 --outDir esm","watch:cjs":"npm run build:cjs -- -w","watch:esm":"npm run build:esm -- -w","lint":"eslint --ext .ts,.tsx src test","clean":"del lib/* && del esm/*","test":"jest","test:coverage":"jest --coverage --bail","test:watch":"jest --watchAll --verbose","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"path":"./lib/index.js","limit":"3 kB"},{"path":"./esm/index.js","limit":"3 kB"}],"gitHead":"317dd4a4709be8bac0094d83453c1a69c6394fd1","_id":"tree-changes-hook@0.8.0","_nodeVersion":"14.17.5","_npmVersion":"7.23.0","dist":{"shasum":"67464c7fe2fdc9e4fd1e6e247eb644c5706e7f85","size":3451,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.8.0.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.8.0_1631988727575_0.8840618769356532"},"_hasShrinkwrap":false,"publish_time":1631988727703,"_cnpm_publish_time":1631988727703,"_cnpmcore_publish_time":"2021-12-16T21:16:49.753Z"},"0.7.1":{"name":"tree-changes-hook","version":"0.7.1","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"lib/index.js","module":"esm/index.js","types":"lib","sideEffects":false,"peerDependencies":{"react":"^16.8.0 || ^17.0.0"},"dependencies":{"@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^12.0.0","@types/react":"^17.0.14","@types/react-dom":"^17.0.9","fast-deep-equal":"^3.1.3","react":"^16.8.0 || ^17.0.0","react-dom":"^17.0.2","tree-changes":"^0.7.1"},"devDependencies":{"del-cli":"^4.0.0","typescript":"^4.3.5"},"scripts":{"build":"npm run clean && npm run build:cjs && npm run build:esm","build:cjs":"tsc","build:esm":"tsc -m es6 --outDir esm","watch:cjs":"npm run build:cjs -- -w","watch:esm":"npm run build:esm -- -w","lint":"eslint --ext .ts,.tsx src test","clean":"del lib/* && del esm/*","test":"jest","test:coverage":"jest --coverage --bail","test:watch":"jest --watchAll --verbose","typecheck":"tsc --noEmit","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"eslintConfig":{"extends":["@gilbarbara/eslint-config"]},"prettier":"@gilbarbara/prettier-config","size-limit":[{"path":"./lib/index.js","limit":"3 kB"},{"path":"./esm/index.js","limit":"3 kB"}],"_id":"tree-changes-hook@0.7.1","_nodeVersion":"14.17.3","_npmVersion":"7.19.1","dist":{"shasum":"97dd4d7efbb8bcb3523328f462e99ee940695227","size":3426,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.7.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.7.1.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.7.1_1625839033571_0.5503325075721954"},"_hasShrinkwrap":false,"publish_time":1625839033732,"_cnpm_publish_time":1625839033732,"_cnpmcore_publish_time":"2021-12-16T21:16:49.945Z"},"0.7.0":{"name":"tree-changes-hook","version":"0.7.0","description":"React hook for tree-changes","author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"keywords":["comparison","tree","react","hook"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/gilbarbara/tree-changes.git"},"bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","main":"lib/index.js","module":"esm/index.js","types":"lib","sideEffects":false,"peerDependencies":{"react":"^16.8.0 || ^17.0.0"},"dependencies":{"@testing-library/jest-dom":"^5.11.9","@testing-library/react":"^11.2.5","@types/react":"^17.0.2","@types/react-dom":"^17.0.1","fast-deep-equal":"^3.1.3","react":"^16.8.0 || ^17.0.0","react-dom":"^17.0.1","tree-changes":"^0.7.0"},"devDependencies":{"del-cli":"^3.0.1","typescript":"^4.1.5"},"scripts":{"build":"npm run clean && npm run build:cjs && npm run build:esm","build:cjs":"tsc","build:esm":"tsc -m es6 --outDir esm","watch:cjs":"npm run build:cjs -- -w","watch:esm":"npm run build:esm -- -w","lint":"eslint --ext .ts,.tsx src test","clean":"del lib/* && del esm/*","test":"jest","test:coverage":"jest --coverage --bail","test:watch":"jest --watchAll --verbose","format":"prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write","validate":"npm run lint && npm run test:coverage && npm run build && npm run size","size":"size-limit","prepublishOnly":"npm run validate"},"prettier":{"trailingComma":"all","singleQuote":true,"arrowParens":"avoid","printWidth":100,"proseWrap":"never"},"size-limit":[{"path":"./lib/index.js","limit":"3 kB"},{"path":"./esm/index.js","limit":"3 kB"}],"gitHead":"1d185e339da99e3761b43aaa60e99a9a6bc6aba2","_id":"tree-changes-hook@0.7.0","_nodeVersion":"14.16.0","_npmVersion":"lerna/3.22.1/node@v14.16.0+x64 (darwin)","dist":{"shasum":"a9f9108b1703831883b54f5d054ebd173adcf565","size":3514,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.7.0.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.7.0_1614738424543_0.953208370155121"},"_hasShrinkwrap":false,"publish_time":1614738424675,"_cnpm_publish_time":1614738424675,"_cnpmcore_publish_time":"2021-12-16T21:16:50.167Z"},"0.0.1":{"name":"tree-changes-hook","version":"0.0.1","description":"React hook for [tree-changes](https://github.com/gilbarbara/tree-changes).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"author":{"name":"Gil Barbara","email":"gilbarbara@gmail.com"},"license":"MIT","_id":"tree-changes-hook@0.0.1","_nodeVersion":"14.16.0","_npmVersion":"7.6.0","dist":{"shasum":"ef0327a95c0530785a74cc4a33c5536b61a22634","size":366,"noattachment":false,"key":"/tree-changes-hook/-/tree-changes-hook-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tree-changes-hook/download/tree-changes-hook-0.0.1.tgz"},"_npmUser":{"name":"gilbarbara","email":"gilbarbara@gmail.com"},"directories":{},"maintainers":[{"name":"gilbarbara","email":"gilbarbara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-changes-hook_0.0.1_1614550150914_0.952955684717071"},"_hasShrinkwrap":false,"publish_time":1614550151036,"_cnpm_publish_time":1614550151036,"_cnpmcore_publish_time":"2021-12-16T21:16:50.369Z"}},"readme":"# tree-changes-hook\n\n[![NPM version](https://badge.fury.io/js/tree-changes-hook.svg)](https://www.npmjs.com/package/tree-changes-hook) [![build status](https://travis-ci.org/gilbarbara/tree-changes.svg)](https://travis-ci.org/gilbarbara/tree-changes) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=gilbarbara_tree-changes&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=gilbarbara_tree-changes) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=gilbarbara_tree-changes&metric=coverage)](https://sonarcloud.io/summary/new_code?id=gilbarbara_tree-changes)\n\nReact hook that uses [tree-changes](https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes) to compare changes between two datasets.\n\n## Setup\n\n```bash\nnpm install tree-changes-hook\n```\n\n## Usage\n\n```tsx\nimport React from 'react';\nimport useTreeChanges from 'tree-changes-hook';\n\nfunction App(props) {\n  const { changed } = useTreeChanges(props);\n\n  React.useEffect(() => {\n    if (changed('hasData', true)) {\n    \tsendAnalyticsEvent('load', 'MySuperPage');\n  \t}\n  });\n\n  return <div>...</div>;\n}\n```\n\n> It's safe to run all the methods with a `useEffect` without dependencies, but it works with them too.\n\n## API\n\nPlease refer to [tree-changes](https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes) README for detailed usage.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/gilbarbara/tree-changes/tree/master/packages/tree-changes-hook#readme","bugs":{"url":"https://github.com/gilbarbara/tree-changes/issues"},"license":"MIT"}