- Added the
data-match-mediaDatastar Pro attribute that sets a signal totrueorfalsedepending on whether a media query matches, and keeps it in sync whenever the query changes. - Added the
@intlaction to Datastar Pro, for internationalized formatting of dates, numbers, and other values using the Intl namespace object. - Backend action requests now send the current state of the signals when retrying, rather than the initial state. (#900)
- Datastar expressions containing dollar sign symbols in string/template literals (e.g.
'$foo') are no longer parsed as signal references. (#1106) - The
datastar-patch-elementsevent now acceptsElementandDocumentFragmentpayloads and will consume/move them instead of re-parsing strings (non-string payloads are single-use and target only the first match). (#1125) - The
data-attrattribute now preserves function values. - Fixed a bug in the
data-onplugin in which event listeners were not cleared on element removal when using the__capturemodifier. - Fixed a bug in the
data-on-intersectplugin in which thethresholdmodifier was not properly applied.