This release adds wildcard support to data-on-signals-change-*
, data-persist
, @setAll
and @toggleAll
using *
to match a single path segment and **
to match multiple path segments. Note that this does mean a potentially breaking change if you were relying on path prefixes.
The beta phase is now officially unofficially over, and the next release should be v1.0.0 🚀
Added
- Added the
__debounce
,__throttle
and__viewtransition
modifiers todata-on-intersect
. - Added the
__debounce
,__throttle
and__viewtransition
modifiers todata-on-signal-change
. - Added the
__viewtransition
modifier todata-on-interval
. - Added the
__viewtransition
modifier todata-on-load
. - Added the
__viewtransition
modifier todata-on-raf
.
Changed
- The
datastar-sse
event is now dispatched on thedocument
element, and usingdata-on-datastar-sse
automatically listens for the event on thedocument
(#802). - The
data-on-signals-change-*
attribute key now accepts a path in which*
matches a single path segment and**
matches multiple path segments (data-on-signals-change-foo.*.baz
,data-on-signals-change-foo.**
). - The
data-persist
attribute now accepts one or more space-separated paths in which*
matches a single path segment and**
matches multiple path segments (data-persist="foo.*.baz"
,data-persist="foo.**"
). - The
@setAll
action now accepts one or more space-separated paths in which*
matches a single path segment and**
matches multiple path segments (@setAll('foo.*.baz', true)
,@setAll('foo.**', true)
) (#793). - The
@toggleAll
action now accepts one or more space-separated paths in which*
matches a single path segment and**
matches multiple path segments (@toggleAll('foo.*.baz')
,@toggleAll('foo.**')
) (#793).