Releases: bramus/style-observer
Releases · bramus/style-observer
2.0.1
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
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
- NEW: Allow a single observer to observe multiple elements
- NEW: Include
element
in callback when using ReturnFormat.OBJECT
1.2.0
- 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
- 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