Releases: ViewComponent/view_component
v2.70.0
-
render_previewcan pass parameters to preview.Joel Hawksley
-
Fix docs typos.
Joel Hawksley
-
Add architectural decisions to documentation and rename sidebar sections.
Joel Hawksley
-
Clarify documentation on testability of Rails views.
Joel Hawksley
-
Add Arrows to list of companies using ViewComponent.
Matt Swanson
-
Add WIP to list of companies using ViewComponent.
Marc Köhlbrugge
-
Update slots documentation to include how to reference slots.
Brittany Ellich
-
Add Clio to list of companies using ViewComponent.
Mike Buckley
v2.69.0
-
Add missing
requireto fixpvcbuild.Joel Hawksley
-
Add
config.view_component.use_consistent_rendering_lifecycleto ensure side-effects incontentare consistently evaluated before components are rendered. This change effectively means thatcontentis evaluated for every component render whererender?returns true. As a result, code that's passed to a component via a block/content will now always be evaluated, before#call, which can reveal bugs in existing components. This configuration option defaults tofalsebut will be enabled in 3.0 and the old behavior will be removed.Blake Williams
-
Update Prism to version 1.28.0.
Thomas Hutterer
-
Corrects the deprecation warning for named slots to show the file and line where the slot is called.
River Bailey
v2.68.0
-
Update
gemspecauthor to be ViewComponent team.Joel Hawksley
-
Fix bug where
ViewComponent::Compilerwasn't required.Joel Hawksley
v2.67.0
-
Use ViewComponent::Base.config as the internal endpoint for config.
Simon Fish
-
Fix bug where
#with_request_url, when used with query string, set the incorrectrequest.pathandrequest.fullpath.Franz Liedke
-
Add link to ViewComponentAttributes in Resources section of docs.
Romaric Pascal
-
render_previewtest helper is available by default. It is no longer necessary to includeViewComponent::RenderPreviewHelper.Joel Hawksley
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