Releases: ViewComponent/view_component
v2.5.0
-
Add counter variables when rendering collections.
Frank S
-
Add the ability to access params from preview examples.
Fabio Cantoni
v2.4.0
-
Add
#render_to_stringsupport.Jarod Reid
-
Declare explicit dependency on
activesupport.Richard Macklin
-
Remove
autoloads of internal modules (Previewable,RenderMonkeyPatch,RenderingMonkeyPatch).Richard Macklin
-
Remove
capybaradependency.Richard Macklin
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.formatfor better compatibility withActionView::Template.Joel Hawksley
v2.2.1
-
Fix bug where template could not be found if
inheritedwas 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
ViewComponentnamespace, 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_classhas 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_renderedtest helper.Joel Hawksley
-
Check for Rails before invocation.
Dave Paola
-
Allow components to be rendered without a template file (aka inline component).
Rainer Borene