Skip to content

v0.52.0

Choose a tag to compare

@pentiminax pentiminax released this 03 Jun 16:58

What's Changed

This release focuses on improving API Platform-backed DataTables, especially when rows need server-rendered templates or action metadata.

Added

  • Added backend template rendering for API Platform rows, enabling Twig-aware columns to be rendered after API Platform data is fetched.
  • Added the apiPlatformTemplateRendering(url, tableToken) DataTable option and automatic configuration when API Platform tables contain template-aware columns.
  • Added a new POST route, /datatables/ajax/templates, used to render API Platform rows through the Symfony row-mapping pipeline.
  • Added global search forwarding for API Platform requests via the q query parameter.
  • Added default empty defaultContent handling for API Platform columns with missing fields.
  • Added server-side action id resolution into __ux_datatables_actions, improving edit/delete/detail action rendering when row ids are not directly available.

Improved

  • Improved action column rendering so action ids can come from resolved row metadata instead of only raw row fields.
  • Improved search compatibility with stricter SQL engines by avoiding text LIKE predicates on non-text Doctrine field types such as dates, booleans, numbers, JSON, and binary fields.
  • Improved relation field type detection for search filtering.

Documentation

  • Updated API Platform integration docs with the new global search parameter behavior.

Verification

  • PHPUnit: 647 tests passing.
  • TypeScript typecheck: passing.
  • Vitest: 13 test files, 132 tests passing.

Full Changelog: v0.51.0...v0.52.0