On Change Versions Save

Watch an object or array for changes

v5.0.1

3 months ago
  • Fix incorrect changed path when mutating unrelated area of proxy during iteration operations on cloned areas of the proxy (#105) 283bc26

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

v5.0.0

4 months ago

Breaking

  • Require Node.js 18 1cdc490

Fixes

  • Fix handling of circular references in objects (#104) 3448c55

https://github.com/sindresorhus/on-change/compare/v4.0.2...v5.0.0

v4.0.2

1 year ago
  • TypeScript: Add overload when ignoreSymbols and pathAsArray are true (#100) 6b23d3a

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

v4.0.1

1 year ago

v4.0.0

2 years ago

Breaking

  • Require Node.js 12.20 e3fea26
  • This package is now pure ESM. Please read this.

Improvements

  • Handle typed arrays and dataviews (#84) 5b6fd4d

https://github.com/sindresorhus/on-change/compare/v3.0.2...v4.0.0

v3.0.2

3 years ago

v3.0.0

3 years ago
  • Add onValidate option d5ce155
  • Fix forEach on Set and Map. (#73) 017d279
  • Change provided vars in callback: Provide arguments and return value. #62 d8e9e3e
  • Add details option 40a8a3c

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

v2.2.3

3 years ago
  • Fix Map and Set iterator methods. (#72) 5045523

https://github.com/sindresorhus/on-change/compare/v2.2.2...v2.2.3

v2.2.2

3 years ago
  • Prevent unnecessary wrapping of a proxy in another proxy. (#70) 9718130
  • Move to GitHub Actions (#71) 4b762cd

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