Skip to content

Releases: ViewComponent/view_component

v2.3.0

14 Apr 21:44
d316e02
Compare
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
Compare
Choose a tag to compare
  • Add Base.format for better compatibility with ActionView::Template.

    Joel Hawksley

v2.2.1

01 Apr 15:22
0ec3e84
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

v1.15.0

09 Mar 20:06
17d87b2
Compare
Choose a tag to compare
  • Re-introduce ActionView::Component::TestHelpers.

    Joel Hawksley

  • Bypass monkey patch on Rails 6.1 builds.

    Joel Hawksley

  • Make ActionView::Helpers::TagHelper available in Previews.

    def with_html_content
      render(MyComponent.new) do
        tag.div do
          content_tag(:span, "Hello")
        end
      end
    end

    Sean Doyle

v1.14.1

03 Mar 21:23
fc6e8a2
Compare
Choose a tag to compare
  • Fix bug where generator created invalid test code.

    Joel Hawksley