On Change Versions Save

Watch an object or array for changes

v2.2.1

3 years ago
  • Unwrap proxies passed to handled methods. bac73a7

https://github.com/sindresorhus/on-change/compare/v2.2.0...v2.2.1

v2.2.0

3 years ago
  • Add ignoreDetached option (#58) 2982198
  • Handle nested apply traps. e16328f
  • Add tests for typed arrays 8b6aea7

https://github.com/sindresorhus/on-change/compare/v2.1.4...v2.2.0

v2.1.4

3 years ago
  • Handle Maps, Sets, WeakMaps, and WeakSets. 3e51b80

https://github.com/sindresorhus/on-change/compare/v2.1.3...v2.1.4

v2.1.3

3 years ago
  • TypeScript definition: overload onChange when pathAsArray: true (#66) 31c70fd

https://github.com/sindresorhus/on-change/compare/v2.1.2...v2.1.3

v2.1.2

3 years ago
  • Return an array iterator when array.keys or array.entries is called. f6fc297

https://github.com/sindresorhus/on-change/compare/v2.1.1...v2.1.2

v2.1.1

3 years ago
  • Watch items returned from methods on Array. 9b841cc

https://github.com/sindresorhus/on-change/compare/v2.1.0...v2.1.1

v2.1.0

3 years ago
  • Add method name to callback parameters (#56) 26d431a
  • Improve apply trap performance (#48) (#61) 19ca0f5

https://github.com/sindresorhus/on-change/compare/v2.0.2...v2.1.0

v2.0.2

3 years ago
  • Reset cloning vars before calling callback (#60) bd69dae
  • Refactor all caches into a Cache class (#50) 640d64a
  • Refactor cloning to a new SmartClone class 1eb639d
  • Refactor built-in functions to a new file. 7724602
  • Update name of related project in the readme (#53) 011a812

https://github.com/sindresorhus/on-change/compare/v2.0.1...v2.0.2

v2.0.1

4 years ago
  • Include all files in lib folder in npm publish f41d93b

https://github.com/sindresorhus/on-change/compare/v2.0.0...v2.0.1

v2.0.0

4 years ago
  • Path as array (#52) fcfb752
  • Require Node.js 10 44d5a46
  • Only use a CommonJS export for the TypeScript definition 5f4251b

https://github.com/sindresorhus/on-change/compare/v1.8.1...v2.0.0