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
fetchaction. (#1140) - The
Content-Type: application/jsonheader is now only set for requests that contain a body. (#1144) - A
bodyis now only sent for non-GET and non-DELETE requests. (#1144) - The
data-bindattribute now supports a__propmodifier that binds through a specific property instead of the inferred native/default binding. - The
data-bindattribute now supports an__eventmodifier that defines which events sync the element back to the signal. - The
data-bindattribute now respects the initial checked property of radio buttons. - The
data-onattribute now supports a__documentmodifier to attach event listeners to thedocumentelement. (#1151) - Improved morphing of
input,selectandtextareaelements. (#1075) - A new
datastar-prop-changeevent is now emitted instead of the nativechangeevent whenever a property is changed during morphing. - Improved the
kebabfunction 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
__viewtransitionmodifier was interfering with other modifiers and event methods. (#1153) - Renamed the
retryMaxWaitMsbackend action option toretryMaxWaitfor consistency. - Rocket has been rewritten as a JavaScript API. See the new documentation at data-star.dev/reference/rocket.