Releases: github/catalyst
Releases · github/catalyst
v0.4.1
v0.4.0
This release adds the following:
@controller
Elements get adata-catalyst
automatically added duringconnectedCallback()
- Major docs rewrite. Almost all documentation has been rewritten.
- Bind has been rewritten for code clarity and performance. This changes are backwards compatible with the old changes.
v0.3.0
- Change
data-target
todata-targets
for the@targets
decorator.
This is a breaking change, whereas the old style decorators did the following:
Decorator | Equivalent Native Method | Selector | Returns |
---|---|---|---|
@target | querySelector | data-target="*" | Element |
@targets | querySelectorAll | data-target="*" | Array |
The breaking change is that @target
now selects for data-targets
(with an s) like so:
Decorator | Equivalent Native Method | Selector | Returns |
---|---|---|---|
@target | querySelector | data-target="*" | Element |
@targets | querySelectorAll | data-targets="*" | Array |