From c6ca31ab8b8b491b5a90244ca8edc021b6fcf8c7 Mon Sep 17 00:00:00 2001 From: Ben Croker Date: Tue, 20 Aug 2024 20:24:52 +0200 Subject: [PATCH] 2.12.0 --- CHANGELOG.md | 7 +++++++ composer.json | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7dc126..acc5c4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Release Notes for Sprig +## 2.12.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. + ## 2.11.0 - 2024-08-08 ### Added diff --git a/composer.json b/composer.json index 9d0432b..5b6e86f 100644 --- a/composer.json +++ b/composer.json @@ -1,14 +1,14 @@ { "name": "putyourlightson/craft-sprig", "description": "A reactive Twig component framework for Craft.", - "version": "2.11.0", + "version": "2.12.0", "type": "craft-plugin", "license": "mit", "require": { "php": "^8.0.2", "craftcms/cms": "^4.0", "nystudio107/craft-code-editor": "^1.0.0", - "putyourlightson/craft-sprig-core": "^2.10.0" + "putyourlightson/craft-sprig-core": "^2.11.0" }, "require-dev": { "craftcms/ecs": "dev-main",