on-change

Watch an object or array for changes

MIT License

Downloads
329.8K
Stars
2K
Committers
20

Bot releases are visible (Hide)

on-change -

Published by DarrenPaulWright over 4 years ago

  • Update xo e5bcaaa
  • Revert "Require Node.js 10" 28cfb86
  • Revert "Path as array (#52)" cd63569

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

on-change -

Published by DarrenPaulWright over 4 years ago

  • Path as array (#52) 244be4e
  • Require Node.js 10 3b56f29

https://github.com/sindresorhus/on-change/compare/v1.7.0...v1.8.0

on-change -

Published by DarrenPaulWright over 4 years ago

Add options ignoreKeys and ignoreUnderscores

on-change - v1.6.4

Published by DarrenPaulWright over 4 years ago

on-change -

Published by DarrenPaulWright over 4 years ago

  • Fix multiple bugs (#46, #47, #49) and an error when accessing a setter multiple times b7b6cfa
  • Test array methods that don't mutate the original object. 8a7d192

https://github.com/sindresorhus/on-change/compare/v1.6.2...v1.6.3

on-change -

Published by DarrenPaulWright over 5 years ago

  • Fix ignoreSymbols option when using Object.defineProperty and delete. b3529a2
  • Improve the TypeScript definitions 97ff359

https://github.com/sindresorhus/on-change/compare/v1.6.1...v1.6.2

on-change -

Published by DarrenPaulWright over 5 years ago

on-change -

Published by DarrenPaulWright over 5 years ago

  • Using SameValue equality to determine value changes. Adding "equals" option to provide a different equality function 51c1347 056a241
  • Don't call the callback when deleting a property that doesn't exist 47a9977
  • Add option to ignore setting properties as Symbols 0684fd2
  • Add static target method that returns the original object a4ba435
  • Add static unsubscribe method to unsubscribe from future callbacks (#42) 20acac7

https://github.com/sindresorhus/on-change/compare/v1.5.1...v1.6.0

on-change -

Published by sindresorhus over 5 years ago

  • Callback returns target value in apply traps (#41) dc737c6

https://github.com/sindresorhus/on-change/compare/v1.5.0...v1.5.1

on-change -

Published by sindresorhus over 5 years ago

  • Allow an object to mutate itself 2c8d1e0
  • Allow nested proxied objects 226f204
  • Always remove the method name from path 8c3b8ca

https://github.com/sindresorhus/on-change/compare/v1.4.0...v1.5.0

on-change -

Published by sindresorhus over 5 years ago

  • Fix callback details for array changes (#30) 8003aec
  • Don't proxy RegExp and Number object types (#29) bf68ae6
  • Detect changes to Date (#29) bf68ae6
  • Cache proxies (#26) 71efa26

https://github.com/sindresorhus/on-change/compare/v1.3.0...v1.4.0

on-change -

Published by sindresorhus over 5 years ago

  • Add option to only watch shallow properties (#22) 41db432

https://github.com/sindresorhus/on-change/compare/v1.2.0...v1.3.0

on-change -

Published by sindresorhus over 5 years ago

  • Refactor TypeScript definition to CommonJS compatible export (#23) 359f1a1
  • Add some useful parameters to the onChange callback (#20) 6ef02b4

https://github.com/sindresorhus/on-change/compare/v1.1.0...v1.2.0

on-change -

Published by sindresorhus over 5 years ago

  • Add TypeScript definition (#21) b14f1e0
  • Return the original constructor (#17) f9d86a5

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

on-change -

Published by sindresorhus almost 6 years ago

  • Preserve proxy invariants and add full support for accessor properties (#16) edbd926
Package Rankings
Top 25.19% on Repo1.maven.org
Top 1.24% on Npmjs.org