Hi UX People!
This is a big release that contains new features across the components! It's the result of 156 commits from 29 different contributors! Note there is an edge-case BC BREAK in StimulusBundle if you were using action parameters in an unexpected way.
All Components
- Add Symfony 7 support.
- Change JavaScript package to
type: module
Autocomplete
- Add new
BaseEntityAutocompleteType
- Drop symfony 5.4 support.
TwigComponent
- Added configuration to separate your components into different "namespaces"
- Add
outerScope
variable reach variables from the parent template of an
"embedded" component. - Deprecate calling
ComponentTemplateFinder
constructor withoutdirectory
argument. - Add profiler integration:
TwigComponentDataCollector
and debug toolbar templates - Add search feature in
debug:twig-component
command. - Fix inconsistencies with how
{% component %}
/<twig:component>
syntaxes are
rendered vscomponent()
:PostRenderEvent
is now dispatched & the template
resolution happens at runtime. - Fix priority of passed in props vs default props with anonymous components.
- Add Symfony 7 support.
- TwigPreLexer: improve performance.
- Fix twig:lint bug with anonymous component tag.
LIveComponent
- Add deferred/lazy rendering of Live Components.
- Fix option tag synchronization.
- Handle array-like objects when working with checkboxes.
- Normalize "true" & "false" model values
- Fix DTO hydration from phpdoc typehints.
- Fix instantiating LiveComponentMetadata multiple times.
- Throwing an error when setting an invalid model name.
StimulusBundle
- Normalize parameters names given to twig helper 'stimulus_action()'.
BC Break: previously, parameters given in camelCase (eg.
bigCrocodile
) were incorrectly registered by the controller as
flatcase (event.params.bigcrocodile
). This was fixed, which means
they are now correctly registered as camelCase
(event.params.bigCrocodile
). - Added AssetMapper 6.4 support.
- Add Symfony 7 support.
- Fix missing double dash in namespaced Stimulus outlets.
- Change JavaScript package to
type: module
Svelte
- Add support for Svelte 4.
New Contributors
- @tacman made their first contribution in #1144
- @dsoriano made their first contribution in #1145
- @gregberger made their first contribution in #1148
- @andersonamuller made their first contribution in #1154
- @JoppeDC made their first contribution in #1135
- @gharlan made their first contribution in #1175
- @jakubtobiasz made their first contribution in #1143
- @maelanleborgne made their first contribution in #1196
- @yceruto made their first contribution in #1185
- @norival made their first contribution in #1193
- @rrenteria-dev made their first contribution in #1250
- @TheDutchScorpion made their first contribution in #1251
- @bdujon made their first contribution in #1246
Full Changelog: v2.12.0...v2.13.0