2.22.0
So long CSRF!
Hey UX'ers!
Here's a shiny new release for you! 🎉
Live components now rely on same-origin/CORS instead of CSRF tokens for protection. They're now stateless and the session is no longer required! In Turbo, <Turbo:Stream>
and <Turbo:Frame>
Twig components were added plus support for multiple Mercure topics in turbo_stream_listen
. The Map component now supports polylines and have come alive with Live Components. Across the board, we've improved performance, fixed bugs, and updated documentation.
Autocomplete
-
Allow configuring TomSelect’s
labelField
by @MatTheCat in #2382 - Update
AutocompleteBundle.tr.php
by @xDeSwa in #2294 - Adjust
index.rst
format by @smnandre in #2297 - Note form requirements by @MrYamous in #2295
- Mention
preload
can be set tofalse
by @MatTheCat in #2348 - Fix handling of associated properties in DQL joins by @HugoSEIGLE in #2377
Live Components
- Remove CSRF tokens - rely on same-origin/CORS instead by @nicolas-grekas in #2251
- Fix documentation for select data-model by @Nek- in #2313
- Fix variable in docs by @xDeSwa in #2402
- Fix checkbox/radio value matching by @smnandre in #2401
- Refactor
elementBelongsToThisComponent
by @smnandre in #2399 - Fix required select not initialized by @dsoriano in #2403
Twig Components
- Cache component properties metadata by @smnandre in #2211
- Optimize TwigPreLexer by @smnandre in #2316
- Improve
BlockStack
performance by @smnandre in #2343 - Fix directory separator in Debug command by @clussiana in #2342
- Improve
ComponentFactory
performance by @smnandre in #2344 - Store mount methods in compiler pass by @smnandre in #2357
- Cache template class resolution by @smnandre in #2364
- Ignore "nested" for Alpine & Vue attributes by @smnandre in #2328
StimulusBundle
- Update Jetbrains stimulus plugin url by @Basster in #2299
- Check controllers source files for laziness by @MatTheCat in #2304
- Mention
removeComments
will no longer be necessary by @MatTheCat in #2347
Turbo
-
Add generic
<Turbo:Stream>
component by @seb-jean in #2302 -
Add
<Turbo:Frame>
component by @seb-jean in #2303 -
Support custom
TurboStreamResponse
actions by @DRaichev in #2298 -
Add support for providing multiple mercure topics to
turbo_stream_listen
by @norkunas in #2407 - Delete whitespace for
<twig:Turbo:Stream:*>
components by @seb-jean in #2300
Icons
- Fix commands receive polluted SVG by @smnandre in #2314
- Prepare lock / warmup optimization by @smnandre in #2351
- Support aliases in LockIconsCommand by @smnandre in #2356
- Fetch icons in batch in Import command by @smnandre in #2352
- Use dedicated cache pool by @IndraGunawan in #2410
Map
- Add polyline support by @sblondeau in #2340
- Make UX Map compatible with Live Components (and some internal things) by @Kocal in #2385
- Update documentation by @smnandre in #2317
- Update
index.rst
by @LesRouxDominerontLeMonde in #2339 - Introduce
ux_map.google_maps.default_map_id
configuration by @Kocal in #2350 - Add documentation about
ux_map.google_maps.default_map_id
by @Kocal in #2358 - Remove duplicate question mark ? in DSN string by @alexander-schranz in #2371
- Fix Twig Component example by @ker0x in #2373
- Add position and missing closing parenthesis by @tacman in #2360
- Fix typos 'an' should be 'a' in READMEs by @tacman in #2398
- Fix and improve TypeScript types, refactor same logic into dedicated methods (to reduce file size) by @Kocal in #2406
Svelte
React
Translator
Site
- Update dependencies by @smnandre in #2293
- Fix React/Svelte/Vue demo by @smnandre in #2284
- Update docker compose configuration by @Nek- in #2305
- Update
bin/link-locally
by @smnandre in #2310 - Test Symfony 7.2 beta by @smnandre in #2323
- Use variable webfont by @smnandre in #2327
- Update demo components paths by @smnandre in #2336
- Fix FileTree markup (minor) by @smnandre in #2335
- Update symfony by @smnandre in #2346
- Fix typo on cookbook index by @kbond in #2355
Miscellaneous
- Add myself to code-owners by @Kocal in #2308
- Update the issue template by @smnandre in #2320
- Add CI workflow to compute diff between files dist files by @Kocal in #2269
- Add per-package Yarn scripts (build, watch, test, lint, ...) by @Kocal in #2326
- Some improvements for dependencies management when testing by @Kocal in #2349
- Fix some misc doc issues by @javiereguiluz in #2387
- Add PR template and auto-close PR on subtree split repositories by @Kocal in #2395
- Add
CONTRIBUTING.md
by @Kocal in #2408
New Contributors
- @MrYamous in #2295
- @Basster in #2299
- @LesRouxDominerontLeMonde in #2339
- @clussiana in #2342
- @alexander-schranz in #2371
- @DRaichev in #2298
- @sblondeau in #2340
- @HugoSEIGLE in #2377
Full Changelog: v2.21.0 -> v2.22.0