Skip to content

v0.12.0

Latest
Compare
Choose a tag to compare
@imacrayon imacrayon released this 22 Feb 18:24
· 2 commits to main since this release

What's New

We added new back and away target modifiers thanks to @djaiss (#123)

  • target.back="my_element" will target my_element only when the AJAX request redirects back to the same page.

  • target.away="my_element" will target my_element only when the AJAX request redirects away to a new page.

We've deprecated the _self target since the target.away modifier is easier to grok. Instead of target.3xx="_self" use target.away="_top".

There are more examples using the back and away modifiers in the documentation here: https://alpine-ajax.js.org/reference/#targets-based-on-response-status-code

What's fixed

  • We do a better job of normalizing URLs internally. Requests to relative URLs are now appropriately cached (#124)

Full Changelog: v0.11.0...v0.12.0