Skip to content

Commit

Permalink
3.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Feb 14, 2024
1 parent f833497 commit f0b58bc
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit f0b58bc

Please sign in to comment.