diff --git a/src/Swup/CHANGELOG.md b/src/Swup/CHANGELOG.md index ec2b62ff0d0..4bc85e3806d 100644 --- a/src/Swup/CHANGELOG.md +++ b/src/Swup/CHANGELOG.md @@ -5,7 +5,10 @@ - Support for `stimulus` version 2 was removed and support for `@hotwired/stimulus` version 3 was added. See the [@symfony/stimulus-bridge CHANGELOG](https://github.com/symfony/stimulus-bridge/blob/main/CHANGELOG.md#300) for more details. -- Support added for Symfony 6 +- All options were changed from `data-` attributes to Stimulus values. See + The README for updated instructions. +- Added a new `swup:pre-connect` event. +- Support added for Symfony 6. ## 1.3 diff --git a/src/Swup/README.md b/src/Swup/README.md index 5ce03644341..a3d04a863a8 100644 --- a/src/Swup/README.md +++ b/src/Swup/README.md @@ -72,8 +72,9 @@ additional containers, for instance to have a navigation menu that updates when {% endblock %}
{# ... #} @@ -88,7 +89,9 @@ additional containers, for instance to have a navigation menu that updates when ``` -You can configure several other options using data-attributes on the `body` tag: +You can configure several other options using values on the controller. +Most of these correspond to [Swup Options](https://swup.js.org/options), +but there are a few extra added: ```twig @@ -96,18 +99,27 @@ You can configure several other options using data-attributes on the `body` tag: