Version 1.0.0-RC.9
October 26, 2025
The Datastar syntax has changed in this release. Please see the release notes and modify your code accordingly.
- The package now includes Datastar 1.0.0-RC.6.
Version 1.0.0-RC.8
September 20, 2025
- Fixed a bug in which headers were being accessed for console requests.
Version 1.0.0-RC.7
August 19, 2025
- The package now includes Datastar 1.0.0-RC.5.
- Improved error handling.
- Fixed a bug in which options were being double JSON encoded.
Version 1.0.0-RC.6
August 10, 2025
- It’s now possible to pass options in as string, for cases when JSON encoding is not desirable.
- Renamed the
Sseservice toSseService. - Renamed the
SseTraittrait toSse.
Version 1.0.0-RC.5
August 9, 2025
- Added the
Sse::shouldCloseSession()method that determines whether the session should be closed when the event stream begins. - Removed the
StreamedResponseclass. Thecraft\web\Responseclass is now used instead.
Version 1.0.0-RC.4
August 6, 2025
- The plugin now includes Datastar 1.0.0-RC.4.
- The session is now closed by default when the
getEventStream()method is called, to prevent session locking. - Added fluent method chaining to the
Sseservice. - Replaced the
DatastarEventStreamtrait with theSseTraittrait.
Version 1.0.0-RC.3
July 31, 2025
- The plugin now includes Datastar 1.0.0-RC.3.
- Added the ability to pass controller actions to backend requests by passing an action path that starts with the action trigger to
datastar.get()(and equivalent Twig functions). - Server sent events are now only sent when generated inside a callable passed to
getEventStream(). - Renamed the
getStreamedResponse()method togetEventStream().
Version 1.0.0-RC.2
July 16, 2025
- The plugin now includes Datastar 1.0.0-RC.2.
Version 1.0.0-RC.1
July 15, 2025
- The plugin now requires Datastar 1.0.0-RC.1 or later, and Craft CMS 5.4.0 or later.
- Added the
patchsignalsTwig tag. - Added the
removeelementsTwig tag. - Renamed the
fragmentsTwig tag topatchelements. - Renamed the
defaultFragmentOptionsconfig setting todefaultElementOptions. - Removed the
datastar.signals()anddatastar.signalsFromClass()methods. Use the|json_encodefilter instead. - Removed the
SignalsModelclass. Thesignalsvariable passed into Datastar templates is now a regular array. Use thepatchsignalsTwig tag to update and remove signals.
Version 1.0.0-beta.9
March 29, 2025
Changed
- Control panel requests now use the
data-star-*aliased bundle.
Removed
- Removed the
settleDurationfragment option.
Version 1.0.0-beta.8
February 25, 2025
Removed
- Removed the ability to expose the Datastar object, since the framework no longer exposes it.
Version 1.0.0-beta.7
February 1, 2025
Added
- Added the
locationTwig tag. - Added the
sleepTwig tag.
Version 1.0.0-beta.6
January 18, 2025
Added
- Added the
datastar.signals()anddatastar.signalsFromClass()methods.
Version 1.0.0-beta.5
January 6, 2025
Fixed
- Fixed a bug in which templates were not being correctly rendered (#2).
Version 1.0.0-beta.4
January 5, 2025
Added
- Added CSRF protection to all non-GET requests to the Datastar controller action.
Fixed
- Fixed a bug that was resulting in an infinite loop when validating variables containing arrays (#3).
Version 1.0.0-beta.3
January 2, 2025
Added
- Added the
datastar.get(),datastar.post(),datastar.put(),datastar.patch()anddatastar.delete()methods, which replacedatastar.sse().
Changed
- The
datastar.sse()method has been removed. - Query and body params are no longer removed when the request content type is not JSON.
- The plugin now requires Datastar v1.0.0-beta.1.
Version 1.0.0-beta.2
December 17, 2024
Added
- Added the ability to expose the Datastar object by attaching it to the
windowelement.
Changed
- The plugin now requires Datastar 0.21.3.
Version 1.0.0-beta.1
December 11, 2024
- Require Datastar 0.21.2.
Version 1.0.0-alpha.3
November 26, 2024
- Require Datastar 0.20.1.
Version 1.0.0-alpha.2
November 24, 2024
- Initial functional release.
Version 1.0.0-alpha.1
November 22, 2024
- Initial alpha release.