Skip to content

Releases: LeaVerou/style-observer

v0.1.1

02 Jun 13:27
Compare
Choose a tag to compare

What's Changed

Improvements

Tests

New Contributors

Changes in previous releases

v0.1.0

Optimizations

Bugfixes

TypeScript

  • Make options optional in StyleObserver() and ElementStyleObserver() constructors (by @LeaVerou in f14bb02).
  • Add type overloads for observe() and unobserve() so that TypeScript allows providing their arguments in any order (by @LeaVerou in 151b0c2 and @DmitrySharabin in #116).

New Contributors

v0.0.9

v0.0.8

Full Changelog: 0.0.7...0.1.1

v0.0.7

11 Apr 15:02
Compare
Choose a tag to compare

Big improvements in this release! Style-observer now detects a lot more cases:

  • Changes due to moving an element to another place in the DOM are now detected
  • Shadow DOM: Changes due to a slotted element's slot going from nonexistent to existing
  • Changes to the display property are now correctly detected in all browsers
  • Changes that happened when an element was disconnected from the DOM will now be detected once it becomes connected again
  • Better integration with TypeScript

Full Changelog: 0.0.6...0.0.7