github symfony/ux v2.13.0
v2.13.0: Lazy/Deferred components, Symfony 7 support & more

latest releases: v2.19.3, v2.19.2, v2.19.1...
10 months ago

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 without directory 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 vs component(): 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

Full Changelog: v2.12.0...v2.13.0

Don't miss a new ux release

NewReleases is sending notifications on new releases.