Skip to content

Releases: bramus/style-observer

2.0.1

03 Feb 09:06
Compare
Choose a tag to compare

The build system was modernized to use tsc directly, along with eslint and prettier. Now only a module gets built as part of the release.

No new user-facing features are included in this release, save for a smaller bundle size.

2.0.0

03 Feb 05:42
Compare
Choose a tag to compare

Aligned the API shape of @bramus/style-observer with other Observers part of the Web Platform:

  • The callback is the now the first argument
  • The properties to observe are part of the options
  • Renamed attach/detach to observe/unobserve

Other changes:

  • Renamed CSSStyleObserver to just StyleObserver
  • The default ReturnFormat used is now ReturnFormat.OBJECT

1.3.0

04 Nov 12:21
Compare
Choose a tag to compare
  • NEW: Allow a single observer to observe multiple elements
  • NEW: Include element in callback when using ReturnFormat.OBJECT

1.2.0

07 Oct 19:28
Compare
Choose a tag to compare
  • NEW: Add ReturnFormat option. This determines whether to return only the properties and their values (VALUE_ONLY) or a full object with detailed information (OBJECT ) (#9).

1.1.0

14 Sep 21:55
Compare
Choose a tag to compare
  • NEW: Add NotificationMode option. This determines whether to pass all properties (ALL) or only the changed ones (CHANGED_ONLY) into the callback. (#7)
  • FIX: Remove leftover console.log

1.0.0

14 Sep 21:53
Compare
Choose a tag to compare

First release.