github ViewComponent/view_component v4.13.0
4.13.0

2 hours ago

4.13.0

  • Add support for Turbo-streaming ViewComponents.

    Ben Sheldon, Joel Hawksley

  • Reduce allocations and avoid redundant compiler work when rendering components and collections.

    Joel Hawksley

  • Stabilize rendering allocation tests with explicit warmups and exact expectations by Rails and Ruby.

    Joel Hawksley

  • Replace the custom memory allocation test helper with minitest-memory, preserving Ruby-version-specific allocation thresholds while improving failure diagnostics.

    Joel Hawksley

  • Add zizmor security analysis for GitHub Actions workflows to CI.

    Joel Hawksley

  • Remove the $PROGRAM_NAME version-printing line from version.rb so the file no longer reads a global variable (unshareable across Ractors). The version is still available via ViewComponent::VERSION::STRING.

    Joel Hawksley

  • Fix intermittent template compilation failures where line-number offsets and annotation stripping were decided when a template object was created instead of when it was compiled, so later changes to coverage or annotation settings produced off-by-one backtraces or blank output.

    Joel Hawksley

  • Freeze ViewComponent::VERSION::STRING so the version constant is immutable and Ractor-shareable.

    Joel Hawksley

  • Add audition Ractor-readiness checks to CI. Applied safe .freeze auto-fixes to string constants in ViewComponent::Errors and baselined existing findings so the gate fails only on new Ractor-isolation violations.

    Joel Hawksley

  • Update link to GOV.UK Components library in resources list to govuk-components.x-govuk.org

    Peter Yates

  • Fix NoMethodError: undefined method 'template_handler_extensions' when gathering sidecar templates on Rails main. Action View removed the ActionView::Template.template_handler_extensions method in newer versions; the compiler now reads the registered extensions through ActionView::Template::Handlers.extensions, which is the supported read-path API across all supported Rails versions (7.1+).

    Luiz Kowalski

Don't miss a new view_component release

NewReleases is sending notifications on new releases.