Releases: putyourlightson/craft-datastar
Releases · putyourlightson/craft-datastar
1.0.0-RC.7
- The package now includes Datastar 1.0.0-RC.5.
- Improved error handling.
- Fixed a bug in which options were being double JSON encoded.
1.0.0-RC.6
- It’s now possible to pass options in as string, for cases when JSON encoding is not desirable.
- Renamed the
Sse
service toSseService
. - Renamed the
SseTrait
trait toSse
.
1.0.0-RC.5
- Added the
Sse::shouldCloseSession()
method that determines whether the session should be closed when the event stream begins. - Removed the
StreamedResponse
class. Thecraft\web\Response
class is now used instead.
1.0.0-RC.4
- The plugin now includes Datastar 1.0.0-RC.4.
- Add fluent method chaining to the
Sse
service. - The session is now closed by default when the
getEventStream()
method is called, to prevent session locking. - Replaced the
DatastarEventStream
trait with theSseTrait
trait.
1.0.0-RC.3
- 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()
.
1.0.0-RC.2
- The plugin now includes Datastar 1.0.0-RC.2.
1.0.0-RC.1
- The plugin now requires Datastar 1.0.0-RC.1 or later, and Craft CMS 5.4.0 or later.
- Added the
patchsignals
Twig tag. - Added the
removeelements
Twig tag. - Renamed the
fragments
Twig tag topatchelements
. - Renamed the
defaultFragmentOptions
config setting todefaultElementOptions
. - Removed the
datastar.signals()
anddatastar.signalsFromClass()
methods. Use the|json_encode
filter instead. - Removed the
SignalsModel
class. Thesignals
variable passed into Datastar templates is now a regular array. Use thepatchsignals
Twig tag to update and remove signals.
1.0.0-beta.9
Changed
- Control panel requests now use the
data-star-*
aliased bundle.
Removed
- Removed the
settleDuration
fragment option.
1.0.0-beta.8
Removed
- Removed the ability to expose the Datastar object, since the framework no longer exposes it.
1.0.0-beta.7
Added
- Added the
location
Twig tag. - Added the
sleep
Twig tag.