Releases: ViewComponent/view_component
v2.62.0
-
Remove the experimental global output buffer feature.
-
Restore functionality that used to attempt to compile templates on each call to
#render_in
. -
Un-pin
rails
main
dependency.Cameron Dutro
-
Add blank space between "in" and "ViewComponent" in a deprecation warning.
Vikram Dighe
-
Add HappyCo to list of companies using ViewComponent.
Josh Clayton
v2.61.1
-
Revert
Expose Capybara DSL methods directly inside tests.
This change unintentionally broke other Capybara methods and thus introduced a regression. We aren't confident that we can fail forward so we have decided to revert this change.Joel Hawksley, Blake Williams
-
Revert change making content evaluation consistent.
Blake Williams
-
Pin
rails
main
dependency due to incompatibility with Global Output Buffer.Joel Hawksley
v2.61.0
-
Ensure side-effects in
content
are consistently evaluated before components are rendered. This change effectively means thatcontent
is evaluated for every component render whererender?
returns true. As a result, code that is passed to a component via a block/content will now always be evaluated, before#call
, which can reveal bugs in existing components.Blake Williams
v2.60.0
-
Add support for
render_preview
in RSpec tests.Thomas Hutterer
v2.59.0
-
Expose Capybara DSL methods directly inside tests.
The following Capybara methods are now available directly without having to use the
page
method:all
first
text
find
find_all
find_button
find_by_id
find_field
find_link
has_content?
has_text?
has_css?
has_no_content?
has_no_text?
has_no_css?
has_no_xpath?
has_xpath?
has_link?
has_no_link?
has_button?
has_no_button?
has_field?
has_no_field?
has_checked_field?
has_unchecked_field?
has_no_table?
has_table?
has_select?
has_no_select?
has_selector?
has_no_selector?
has_no_checked_field?
has_no_unchecked_field?
-
Add support for
within*
Capybara DLS methods:-
Jacob Carlborg
v2.58.0
Welcome to the team, Hans and Simon! ❤️
-
Add @boardfish and @Spone as maintainers.
Joel Hawksley, Cameron Dutro, Blake Williams
-
Switch to
standardrb
.Joel Hawksley
-
Add BootrAils article to resources.
Joel Hawksley
-
Re-compile updated, inherited templates when class caching is disabled.
Patrick Arnett
-
Add the latest version to the docs index.
-
Improve the docs: add the versions various features were introduced in.
Hans Lemuet
-
Update docs to reflect lack of block content support in controllers.
Joel Hawksley
-
Prevent adding duplicates to
autoload_paths
.Thomas Hutterer
-
Add FreeAgent to list of companies using ViewComponent.
Simon Fish
-
Include polymorphic slots in
ViewComponent::Base
by default.Cameron Dutro
-
Add per-component config option for stripping newlines from templates before compilation.
Cameron Dutro
-
Add link to article by Matouš Borák.
Joel Hawksley
v2.57.1
v2.57.0
v2.56.2
-
Restore removed
rendered_component
, marking it for deprecation in v3.0.0.Tyson Gach, Richard Macklin, Joel Hawksley
v2.56.1
-
Rename private accessor
rendered_component
torendered_content
.Yoshiyuki Hirano, Simon Dawson