Skip to content

Releases: ViewComponent/view_component

v2.13.0

02 Jul 17:44
fe8b6f2

Choose a tag to compare

  • Add the ability to disable the render monkey patch with config.view_component.render_monkey_patch_enabled. In versions of Rails < 6.1, add render_component and render_component_to_string methods which can be used for rendering components instead of render.

    Johannes Engl

v2.12.0

30 Jun 17:37
33648bc

Choose a tag to compare

  • Implement Slots as potential successor to Content Areas.

    Jens Ljungblad, Brian Bugh, Jon Palmer, Joel Hawksley

v2.11.1

17 Jun 17:51
8ff0046

Choose a tag to compare

  • Fix kwarg warnings in Ruby 2.7.

    Joel Hawksley

v2.11.0

16 Jun 19:02
a20b755

Choose a tag to compare

  • Ensure Rails configuration is available within components.

    Trevor Broaddus

  • Fix bug where global Rails helpers are inaccessible from nested components. Before, helpers was pointing to parent component.

    Franco Sebregondi

v2.10.0

15 Jun 20:33
2bcbfb5

Choose a tag to compare

  • Raise an ArgumentError with a helpful message when Ruby cannot parse a component class.

    Max Beizer

v2.9.0

12 Jun 21:21
faad42a

Choose a tag to compare

  • Cache components per-request in development, preventing unnecessary recompilation during a single request.

    Felipe Sateler

v2.8.0

08 Jun 15:36
6a4fb20

Choose a tag to compare

  • Add before_render, deprecating before_render_check.

    Joel Hawksley

v2.7.0

19 May 17:38
41ada75

Choose a tag to compare

  • Add rendered_component method to ViewComponent::TestHelpers which exposes the raw output of the rendered component.

    Richard Macklin

  • Support sidecar directories for views and other assets.

    Jon Palmer

v2.6.0

14 May 15:45
399048e

Choose a tag to compare

  • Add config.view_component.preview_route to set the endpoint for component previews. By default /rails/view_components is used.

    Juan Manuel Ramallo

  • Raise error when initializer omits with_collection_parameter.

    Joel Hawksley

v2.5.1

21 Apr 21:24
b2a14b5

Choose a tag to compare

  • Compile component before rendering collection.

    Rainer Borene