v0.4.0
Async Alpine has been completely rewritten to offer a better and more flexible API and syntax, support for dynamic content added after load—like client-side routers—and a new .data()
API that improves support for build tools. The rewrite has also significantly improved the speed and size of the plugin.
New Features:
- Adds support for dynamically-added content, including client-side routing;
- Adds method to register components that handle their own downloads using .data('name', callback);
- Added the ability to specify options object for script installation method.
Tweaks and Fixes
- API to initialise and start has changed to be more similar to Alpine;
- Significant size, speed and efficiency improvements;
- Re-architecture makes the project easier, more understandable and more extensible;
- Fixed relative component URLs when Async Alpine is loaded from a different origin than the page;
Upgrade
This version has major breaking changes and changes the API and how you declare components. Check out the Readme for updated documentation. Breaking changes:
- The
x-ignore
attribute is required on all Async Alpine components; - Removed the 'parent' strategy—now nested components can only initialise when their ancestors have;
- API to initialise and start has changed