Skip to content

Releases: ViewComponent/view_component

v2.11.1

17 Jun 17:51
8ff0046
Compare
Choose a tag to compare
  • Fix kwarg warnings in Ruby 2.7.

    Joel Hawksley

v2.11.0

16 Jun 19:02
a20b755
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
  • Add before_render, deprecating before_render_check.

    Joel Hawksley

v2.7.0

19 May 17:38
41ada75
Compare
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
Compare
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
Compare
Choose a tag to compare
  • Compile component before rendering collection.

    Rainer Borene

v2.5.0

20 Apr 17:43
b6dd985
Compare
Choose a tag to compare
  • Add counter variables when rendering collections.

    Frank S

  • Add the ability to access params from preview examples.

    Fabio Cantoni

v2.4.0

16 Apr 19:58
a7ca347
Compare
Choose a tag to compare
  • Add #render_to_string support.

    Jarod Reid

  • Declare explicit dependency on activesupport.

    Richard Macklin

  • Remove autoloads of internal modules (Previewable, RenderMonkeyPatch, RenderingMonkeyPatch).

    Richard Macklin

  • Remove capybara dependency.

    Richard Macklin