Skip to content

Commit 32ffedb

Browse files
committed
1.0.0-RC.4
1 parent 093217b commit 32ffedb

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release Notes for Datastar
22

3+
## 1.0.0-RC.4 - 2025-08-06
4+
5+
- The plugin now includes Datastar [1.0.0-RC.4](https://github.com/starfederation/datastar/releases/tag/v1.0.0-RC.4).
6+
- Add fluent method chaining to the `Sse` service.
7+
- The session is now closed by default when the `getEventStream()` method is called, to prevent session locking.
8+
- Replaced the `DatastarEventStream` trait with the `SseTrait` trait.
9+
310
## 1.0.0-RC.3 - 2025-07-31
411

512
- The plugin now includes Datastar [1.0.0-RC.3](https://github.com/starfederation/datastar/releases/tag/v1.0.0-RC.3).

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "putyourlightson/craft-datastar",
33
"description": "A reactive hypermedia framework for Craft.",
4-
"version": "1.0.0-RC.3",
4+
"version": "1.0.0-RC.4",
55
"type": "craft-plugin",
66
"license": "mit",
77
"require": {
88
"php": "^8.2",
99
"craftcms/cms": "^5.4",
10-
"putyourlightson/craft-datastar-module": "^1.0.0-RC.4"
10+
"putyourlightson/craft-datastar-module": "^1.0.0-RC.5"
1111
},
1212
"require-dev": {
1313
"craftcms/ecs": "dev-main",

src/Plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use craft\base\Model;
1010
use craft\base\Plugin as BasePlugin;
1111
use putyourlightson\datastar\Datastar;
12-
use putyourlightson\datastar\models\SettingsModel;
12+
use putyourlightson\datastar\models\Settings;
1313

1414
class Plugin extends BasePlugin
1515
{
@@ -27,6 +27,6 @@ public function init(): void
2727
*/
2828
public function getSettings(): Model
2929
{
30-
return new SettingsModel();
30+
return new Settings();
3131
}
3232
}

0 commit comments

Comments
 (0)