github starfederation/datastar v1.0.0-RC.7

19 hours ago
  • Added the namespace data line to the datastar-patch-elements event, which makes it possible to patch elements using svg and mathml namespaces. (#1108)
  • Added the retry option to backend actions, where auto is the default behavior and error is any 4xx or 5xx response. (#1073)
  • Added the payload option to backend actions, which allows the fetch payload to be overridden.
  • Added an __exit modifier to the data-on-intersect attribute to trigger the callback when the element exits the viewport. (#1011)
  • Added a __threshold modifier to the data-on-intersect attribute to specify a custom intersection threshold as a percentage.
  • Added the ability to have multiple cleanups per attribute.
  • The data-class attribute no longer runs its expression on cleanup. (#1060)
  • Backend actions now default to peeking signals so that no subscriptions are created. (#1100)
  • Form fields are no longer validated if a novalidate attribute exists on the form tag (for real, this time). (#1056)
  • Fetch requests are now cancelled when the any ancestor of the element that initiated them is removed from the DOM and the requestCancellation option is set to auto. (#1078, #1080)
  • The openWhenHidden option for backend actions now defaults to false for GET requests and true for all other HTTP methods.
  • Setting a signal to an object now merges the diff into the existing proxy rather than replacing it.
  • Improved the handling of SVG elements when patching elements.
  • Fixed a bug in which, when using the throttle modifier with a trailing argument, the expression was executed with the event from the leading edge of the throttle window rather than the last event. (#1091)
  • Fixed a bug in which duplicate requests were being made due to visibility changes. (#1096)
  • Fixed a bug in which the data-on-signal-patch attribute was not working when used with an alias.

Don't miss a new datastar release

NewReleases is sending notifications on new releases.