github starfederation/datastar v1.0.0

7 hours ago

Datastar 1.0 has finally shipped. We are done. Done like dinner. Watch the launch podcast.

  • The payload is now resent when reconnecting after a tab visibility change when using the fetch action. (#1140)
  • The Content-Type: application/json header is now only set for requests that contain a body. (#1144)
  • A body is now only sent for non-GET and non-DELETE requests. (#1144)
  • The data-bind attribute now supports a __prop modifier that binds through a specific property instead of the inferred native/default binding.
  • The data-bind attribute now supports an __event modifier that defines which events sync the element back to the signal.
  • The data-bind attribute now respects the initial checked property of radio buttons.
  • The data-on attribute now supports a __document modifier to attach event listeners to the document element. (#1151)
  • Improved morphing of input, select and textarea elements. (#1075)
  • A new datastar-prop-change event is now emitted instead of the native change event whenever a property is changed during morphing.
  • Improved the kebab function to handle consecutive uppercase letters.
  • Fixed a bug in which the value of an input element with type="submit" was not being included in form submissions. (#1150)
  • Fixed a bug in which the __viewtransition modifier was interfering with other modifiers and event methods. (#1153)
  • Renamed the retryMaxWaitMs backend action option to retryMaxWait for consistency.
  • Rocket has been rewritten as a JavaScript API. See the new documentation at data-star.dev/reference/rocket.

Don't miss a new datastar release

NewReleases is sending notifications on new releases.