github starfederation/datastar v1.0.0-RC.8

10 hours ago
  • Added the data-match-media Datastar Pro attribute that sets a signal to true or false depending on whether a media query matches, and keeps it in sync whenever the query changes.
  • Added the @intl action 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-elements event now accepts Element and DocumentFragment payloads 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-attr attribute now preserves function values.
  • Fixed a bug in the data-on plugin in which event listeners were not cleared on element removal when using the __capture modifier.
  • Fixed a bug in the data-on-intersect plugin in which the threshold modifier was not properly applied.

Don't miss a new datastar release

NewReleases is sending notifications on new releases.