- The plugin now includes Datastar 1.0.1.
- The plugin now includes Datastar 1.0.0.
- The plugin now includes Datastar 1.0.0-RC.8.
- Reverted running callable functions before flushing content, which was resulting in duplicate patch events (#25).
- Added the
shouldCloseSessionconfig setting that determines whether the session should be closed when the event stream begins. - The event stream now runs callable functions before flushing any content (#24).
- The plugin now includes Datastar 1.0.0-RC.7.
Note
The Datastar syntax has changed in this release. Please see the release notes and modify your code accordingly.
- The plugin now includes Datastar 1.0.0-RC.6.
- Fixed a bug in which headers were being accessed for console requests.
- The plugin now includes Datastar 1.0.0-RC.5.
- Improved error handling.
- Fixed a bug in which options were being double JSON encoded.
- 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.
- 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.
- 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.
- 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().
- The plugin now includes Datastar 1.0.0-RC.2.
- 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.
- Control panel requests now use the
data-star-*aliased bundle.
- Removed the
settleDurationfragment option.
- Removed the ability to expose the Datastar object, since the framework no longer exposes it.
- Added the
locationTwig tag. - Added the
sleepTwig tag.
- Added the
datastar.signals()anddatastar.signalsFromClass()methods.
- Fixed a bug in which templates were not being correctly rendered (#2).
- Added CSRF protection to all non-GET requests to the Datastar controller action.
- Fixed a bug that was resulting in an infinite loop when validating variables containing arrays (#3).
- Added the
datastar.get(),datastar.post(),datastar.put(),datastar.patch()anddatastar.delete()methods, which replacedatastar.sse().
- 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.
- Added the ability to expose the Datastar object by attaching it to the
windowelement.
- The plugin now requires Datastar 0.21.3.
- Require Datastar 0.21.2.
- Require Datastar 0.20.1.
- Initial functional release.
- Initial alpha release.