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 Sse service to SseService.
  • Renamed the SseTrait trait to Sse.

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 StreamedResponse class. The craft\web\Response class 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 Sse service.
  • Replaced the DatastarEventStream trait with the SseTrait trait.

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 to getEventStream().

Version 1.0.0-RC.2

July 16, 2025

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 patchsignals Twig tag.
  • Added the removeelements Twig tag.
  • Renamed the fragments Twig tag to patchelements.
  • Renamed the defaultFragmentOptions config setting to defaultElementOptions.
  • Removed the datastar.signals() and datastar.signalsFromClass() methods. Use the |json_encode filter instead.
  • Removed the SignalsModel class. The signals variable passed into Datastar templates is now a regular array. Use the patchsignals Twig 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 settleDuration fragment 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 location Twig tag.
  • Added the sleep Twig tag.

Version 1.0.0-beta.6

January 18, 2025

Added

  • Added the datastar.signals() and datastar.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() and datastar.delete() methods, which replace datastar.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 window element.

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.