diff --git a/CHANGELOG.md b/CHANGELOG.md index 48cb518..3ccfb9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,28 @@ # Release Notes for Sprig -## 3.0.0 - Unreleased +## 3.0.0-beta.1 - Unreleased -> {warning} Flash messages are no longer returned when calling controller actions. The `message` variable should be used instead. +> {warning} Template caches and static page caches should be cleared after performing this update. ### Added - Added compatibility with Craft 5.0.0. +- Added the `sprig.isSuccess` variable. +- Added the `sprig.isError` variable. +- Added the `sprig.message` variable. +- Added the `sprig.modelId` variable. ### Changed -- Flash messages are no longer returned when calling controller actions. The `message` variable should be used instead. -- Requests that accept JSON responses are now used when running controller actions ([#301](https://github.com/putyourlightson/craft-sprig/issues/301)). +- Changed how the component configuration is encoded. + +### Removed + +- Removed the `sprig.script` variable. +- Removed the `s-on` attribute. + +### Deprecated + +- Deprecated the `success` variable. Use `sprig.isSuccess` or `sprig.isError` instead. +- Deprecated the `flashes` variable. Use `sprig.message` or `craft.app.session.flash()` instead. +- Deprecated the `id` variable. Use `sprig.modelId` instead.