Releases: ViewComponent/view_component
v2.3.0
-
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
-
Add
Base.format
for better compatibility withActionView::Template
.Joel Hawksley
v2.2.1
-
Fix bug where template could not be found if
inherited
was redefined.Joel Hawksley
v2.2.0
-
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
-
Support rendering collections (e.g.,
render(MyComponent.with_collection(@items))
).Tim Clem
v2.0.0
-
Move to
ViewComponent
namespace, removing all references toActionView
.- 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
.
- The gem name is now
v1.17.0
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
-
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
-
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
-
Fix bug where generator created invalid test code.
Joel Hawksley