Releases: ViewComponent/view_component
v2.11.1
-
Fix kwarg warnings in Ruby 2.7.
Joel Hawksley
v2.11.0
-
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
-
Raise an
ArgumentError
with a helpful message when Ruby cannot parse a component class.Max Beizer
v2.9.0
-
Cache components per-request in development, preventing unnecessary recompilation during a single request.
Felipe Sateler
v2.8.0
-
Add
before_render
, deprecatingbefore_render_check
.Joel Hawksley
v2.7.0
-
Add
rendered_component
method toViewComponent::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
-
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
-
Compile component before rendering collection.
Rainer Borene
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_string
support.Jarod Reid
-
Declare explicit dependency on
activesupport
.Richard Macklin
-
Remove
autoload
s of internal modules (Previewable
,RenderMonkeyPatch
,RenderingMonkeyPatch
).Richard Macklin
-
Remove
capybara
dependency.Richard Macklin