Skip to content

v0.9.0

Compare
Choose a tag to compare
@imacrayon imacrayon released this 21 Aug 21:53
· 34 commits to main since this release

This minor release continues to sand down some rough edges in Alpine AJAX:

  1. x-target will now initialize an Alpine component without requiring x-init or x-data. While this isn't a breaking change, you may want to remove unnecessary x-init’s in your code:

    <!-- Before -->
    <form x-init x-target="...">
    </form>
    
    <tbody x-data>
      <a x-target="...">
    </tbody>
    
    <!-- After -->
    <form x-target="...">
    </form>
    
    <tbody>
      <a x-target="...">
    </tbody>
    

    Check out all the attributes we were able to remove from the documentation in this commit: 9949ab5

  2. We've fixed some edge cases around response caching. Now Alpine AJAX can further reduce the number of requests hitting the server when multiple components fetch from the same endpoint.

Here's a secret for anybody reading these release notes: I just recorded a 30min walkthrough on how to build apps with Alpine AJAX. It'll go up on the documentation site soon but you can watch it here now: https://www.youtube.com/watch?v=vNiZyFVmoOI

Full Changelog: v0.8.2...v0.9.0