Skip to content

Releases: putyourlightson/craft-datastar

1.0.0-RC.7

19 Aug 17:53
1.0.0-RC.7
ac66b29
Compare
Choose a tag to compare
1.0.0-RC.7 Pre-release
Pre-release
  • 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

10 Aug 06:36
1.0.0-RC.6
6a464c3
Compare
Choose a tag to compare
1.0.0-RC.6 Pre-release
Pre-release
  • 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.

1.0.0-RC.5

09 Aug 11:14
1.0.0-RC.5
ef251ca
Compare
Choose a tag to compare
1.0.0-RC.5 Pre-release
Pre-release
  • 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.

1.0.0-RC.4

06 Aug 18:20
1.0.0-RC.4
32ffedb
Compare
Choose a tag to compare
1.0.0-RC.4 Pre-release
Pre-release
  • 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 the SseTrait trait.

1.0.0-RC.3

31 Jul 09:08
1.0.0-RC.3
093217b
Compare
Choose a tag to compare
1.0.0-RC.3 Pre-release
Pre-release
  • 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().

1.0.0-RC.2

16 Jul 15:50
1.0.0-RC.2
60eec85
Compare
Choose a tag to compare
1.0.0-RC.2 Pre-release
Pre-release

1.0.0-RC.1

15 Jul 15:56
1.0.0-RC.1
2c4b8da
Compare
Choose a tag to compare
1.0.0-RC.1 Pre-release
Pre-release
  • 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.

1.0.0-beta.9

29 Mar 14:02
1.0.0-beta.9
1f62b4f
Compare
Choose a tag to compare
1.0.0-beta.9 Pre-release
Pre-release

Changed

  • Control panel requests now use the data-star-* aliased bundle.

Removed

  • Removed the settleDuration fragment option.

1.0.0-beta.8

25 Feb 15:50
1.0.0-beta.8
a29b10c
Compare
Choose a tag to compare
1.0.0-beta.8 Pre-release
Pre-release

Removed

  • Removed the ability to expose the Datastar object, since the framework no longer exposes it.

1.0.0-beta.7

02 Feb 02:10
1.0.0-beta.7
2e588a1
Compare
Choose a tag to compare
1.0.0-beta.7 Pre-release
Pre-release

Added

  • Added the location Twig tag.
  • Added the sleep Twig tag.