Releases: Stillat/dagger
Releases · Stillat/dagger
1.4.1
1.4.0
What's New
- Adds the ability to compile a component using a callback function, without needing a corresponding view file:
<?php
use Stillat\Dagger\Facades\Compiler;
Compiler::compileComponent('c:mycomponent', function ($node) {
return 'My Component';
});
<c-mycomponent />
1.3.1
1.3.0
What's new
- Adds support for the
#when
compiler attribute to conditionally render Dagger components - Adds support for the
#for
compiler attribute to render a component for each item in a list - Adds a new
hasSlot
helper method to components - Adds a new
hasDefaultSlot
helper method to components
What's improved
- Improves internal compiler hot reloading behavior when using tools such as Vite
1.2.1
What's New
- Improves compatibility with other component compilers that make internal use of
Blade::render
1.2.0
What's New
- Allows for installations within Laravel 12 projects 🚢
1.1.1
What's Improved
- Improves automatic cache invalidation and manifest lifecycle
1.1.0
What's Changed
- Adds a new "Compile Time Rendering" system, which can render components at compile time and inline the static output
- Adds compiler support for circular component references, like nested comment threads
- Adds a
#cache
compiler attribute, which may be used to cache the results of any Dagger component - Bumps the minimum Laravel version to
11.23
, forCache::flexible
support - Improves compilation of custom functions declared within a component's template
- Reduces overall memory utilization
- Simplifies serialized output of dynamic and circular components
1.0.6
The Things That Now Be Better
- Corrects an issue where Blade stack compilation results in array index errors
1.0.5
Improvements and Bug Fixes 💪
@aware
variables are automatically removed from the attribute bag, without needing to redefine them in@props
- Adds support for passing attributes via. the
<c-component {{ $attributes }} />
attribute - Bumps minimum version of
stillat/blade-parser
to 1.10.3 - Adds support for compiling component attributes of the form
<c-component attribute={{ $value }} />
- Adds support for compiling component attributes of the form
<c-component attribute={!! $value !!} />
- Multi-word prop values will be available on nested components when passing
$attributes
to a child component - Internal component model instances will be cached during compilation, improving performance for heavily re-used components
- Improves compatibility with Volt