Skip to content

Releases: ViewComponent/view_component

v2.5.0

20 Apr 17:43
b6dd985

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

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

v2.3.0

14 Apr 21:44
d316e02

Choose a tag to compare

  • Allow using inline render method(s) defined on a parent.

    Simon Rand

  • Fix bug where inline variant render methods would never be called.

    Simon Rand

  • ViewComponent preview index views use Rails internal layout instead of application's layout

    Juan Manuel Ramallo

v2.2.2

07 Apr 22:37
f1f6360

Choose a tag to compare

  • Add Base.format for better compatibility with ActionView::Template.

    Joel Hawksley

v2.2.1

01 Apr 15:22
0ec3e84

Choose a tag to compare

  • Fix bug where template could not be found if inherited was redefined.

    Joel Hawksley

v2.2.0

31 Mar 21:23
127c312

Choose a tag to compare

  • Add support for config.action_view.annotate_template_file_names (coming in Rails 6.1).

    Joel Hawksley

  • Remove initializer requirement.

    Vasiliy Ermolovich

v2.1.0

27 Mar 18:00
600e187

Choose a tag to compare

  • Support rendering collections (e.g., render(MyComponent.with_collection(@items))).

    Tim Clem

v2.0.0

23 Mar 15:57
a1635d4

Choose a tag to compare

  • Move to ViewComponent namespace, removing all references to ActionView.

    • The gem name is now view_component.
    • ViewComponent previews are now accessed at /rails/view_components.
    • ViewComponents can only be rendered with the instance syntax: render(MyComponent.new). Support for all other syntaxes has been removed.
    • ActiveModel::Validations have been removed. ViewComponent generators no longer include validations.
    • In Rails 6.1, no monkey patching is used.
    • to_component_class has been removed.
    • All gem configuration is now in config.view_component.

v1.17.0

23 Mar 15:53
be46b71

Choose a tag to compare

Note: This is the last release under the actionview-component namespace. It has been published under the new name for the library, view_component. Update your Gemfiles!

  • Support Ruby 2.4 in CI.

    Andrew Mason

  • ViewComponent generators do not not prompt for content requirement.

    Joel Hawksley

  • Add post-install message that gem has been renamed to view_component.

    Joel Hawksley

v1.16.0

20 Mar 18:01
32f90e6

Choose a tag to compare

  • Add refute_component_rendered test helper.

    Joel Hawksley

  • Check for Rails before invocation.

    Dave Paola

  • Allow components to be rendered without a template file (aka inline component).

    Rainer Borene