github starfederation/datastar v1.0.0-beta.11

2 days ago

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 to data-on-intersect.
  • Added the __debounce, __throttle and __viewtransition modifiers to data-on-signal-change.
  • Added the __viewtransition modifier to data-on-interval.
  • Added the __viewtransition modifier to data-on-load.
  • Added the __viewtransition modifier to data-on-raf.

Changed

  • The datastar-sse event is now dispatched on the document element, and using data-on-datastar-sse automatically listens for the event on the document (#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).

Don't miss a new datastar release

NewReleases is sending notifications on new releases.