Releases: ViewComponent/view_component
v2.66.0
-
Add missing
generate.sidecar,generate.stimulus_controller,generate.locale,generate.distinct_locale_files,generate.previewconfig options toconfig.view_component.Simon Fish
v2.65.0
-
Raise
ArgumentErrorwhen conflicting Slots are defined.Before this change it was possible to define Slots with conflicting names, for example:
class MyComponent < ViewComponent::Base renders_one :item renders_many :items end
Joel Hawksley
v2.64.0
-
Add
warn_on_deprecated_slot_setterflag to opt-in to deprecation warning.In v2.54.0, the Slots API was updated to require the
with_*prefix for setting Slots. The non-with_*setters will be deprecated in a coming version and removed inv3.0.To enable the coming deprecation warning, add
warn_on_deprecated_slot_setter:class DeprecatedSlotsSetterComponent < ViewComponent::Base warn_on_deprecated_slot_setter end
Joel Hawksley
-
Add
mto development environment.Joel Hawksley
-
Fix potential deadlock scenario in the compiler's development mode.
Blake Williams
v2.63.0
-
Fixed typo in
renders_manydocumentation.Graham Rogers
-
Add documentation about working with
turbo-rails.Matheus Poli Camilo
-
Fix issue causing helper methods to not be available in nested components when the render monkey patch is disabled and
render_componentis used.Daniel Scheffknecht
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
railsmaindependency.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
railsmaindependency due to incompatibility with Global Output Buffer.Joel Hawksley
v2.61.0
-
Ensure side-effects in
contentare consistently evaluated before components are rendered. This change effectively means thatcontentis 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_previewin 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
pagemethod:allfirsttextfindfind_allfind_buttonfind_by_idfind_fieldfind_linkhas_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::Baseby 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