Releases: ViewComponent/view_component
v2.23.2
- 
Fix bug where rendering a component
with_collectionfrom a controller raised an error.Joel Hawksley
 
v2.23.1
- 
Fixed out-of-order rendering bug in
ActionView::SlotableV2Blake Williams
 
v2.23.0
- 
Add
ActionView::SlotableV2- 
with_slotbecomesrenders_one. - 
with_slot collection: truebecomesrenders_many. - 
Slot definitions now accept either a component class, component class name, or a lambda instead of a
class_name:keyword argument. - 
Slots now support positional arguments.
 - 
Slots no longer use the
contentattribute to render content, instead relying onto_s. e.g.<%= my_slot %>. - 
Slot values are no longer set via the
slotmethod, and instead use the name of the slot.Blake Williams
 
 - 
 - 
Add
frozen_string_literal: trueto generated component template.Max Beizer
 
v2.22.1
- 
Revert refactor that broke rendering for some users.
Joel Hawksley
 
v2.22.0
- 
Add #with_variant to enable inline component variant rendering without template files.
Nathan Jones
 
v2.21.0
v2.20.0
v2.19.1
v2.19.0
v2.18.2
- 
Raise an error if controller or view context is accessed during initialize as they are only available in render.
Julian Nadeau
 - 
Collate test coverage across CI builds, ensuring 100% test coverage.
Joel Hawksley