Releases: ViewComponent/view_component
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
v2.18.1
-
Fix bug where previews didn't work when monkey patch was disabled.
Mixer Gutierrez
v2.18.0
-
Fix auto-loading of previews (changes no longer require a server restart)
Matt Brictson
-
Add
default_preview_layout
configuration option to load custom app/views/layouts.Jared White, Juan Manuel Ramallo
-
Calculate virtual_path once for all instances of a component class to improve performance.
Brad Parker
v2.17.1
-
Fix bug where rendering Slot with empty block resulted in error.
Joel Hawksley
v2.17.0
-
Slots return stripped HTML, removing leading and trailing whitespace.
Jason Long, Joel Hawksley
v2.16.0
-
Add
--sidecar
option to the erb, haml and slim generators. Places the generated template in the sidecar directory.Michael van Rooijen