diff --git a/CHANGELOG.md b/CHANGELOG.md index e507c48..a93c94d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Release Notes for Sprig +## 3.4.0 - 2024-08-20 + +### Changed + +- The `sprig.registerJs(js)` function now executes the registered JavaScript after htmx settles, and is now the recommended way of outputting JavaScript in Sprig components. +- Components no longer render markup added via `{% html %}`, `{% css %}` and `{% js %}` tags during Sprig requests. + ## 3.3.0 - 2024-08-08 ### Added @@ -16,7 +23,7 @@ ### Changed -- The `sprig.swapOob()` function now accepts a string in addition to a template to be rendered, in the second argument. +- The `sprig.swapOob()` function now accepts a string, in addition to a template to be rendered, in the second argument. ## 3.2.0 - 2024-08-01 diff --git a/composer.json b/composer.json index 03698da..137c658 100644 --- a/composer.json +++ b/composer.json @@ -1,14 +1,14 @@ { "name": "putyourlightson/craft-sprig", "description": "A reactive Twig component framework for Craft.", - "version": "3.3.0", + "version": "3.4.0", "type": "craft-plugin", "license": "mit", "require": { "php": "^8.2", "craftcms/cms": "^5.0", "nystudio107/craft-code-editor": "^1.0", - "putyourlightson/craft-sprig-core": "^3.3.0" + "putyourlightson/craft-sprig-core": "^3.4.0" }, "require-dev": { "craftcms/ecs": "dev-main",