Skip to content

Releases: ViewComponent/view_component

v2.21.0

26 Oct 22:25
b30c35c
Compare
Choose a tag to compare
  • Only compile components at application initialization if eager loading is enabled.

    Joel Hawksley

v2.20.0

19 Oct 18:49
57dc526
Compare
Choose a tag to compare
  • Don't add /test/components/previews to preview_paths if directory doesn't exist.

    Andy Holland

  • Add preview_controller option to override the controller used for component previews.

    Matt Swanson, Blake Williams, Juan Manuel Ramallo

v2.19.1

21 Sep 19:29
931551d
Compare
Choose a tag to compare
  • Check if Rails.application is loaded.

    Gleydson Tavares

  • Add documentation for webpack configuration when using Stimulus controllers.

    Ciprian Redinciuc

v2.19.0

14 Sep 22:20
b414440
Compare
Choose a tag to compare
  • Extend documentation for using Stimulus within sidecar directories.

    Ciprian Redinciuc

  • Subclassed components inherit templates from parent.

    Blake Williams

  • Fix uninitialized constant error from with_collection when eager_load is disabled.

    Josh Gross

v2.18.2

09 Sep 14:00
13c71b7
Compare
Choose a tag to compare
  • 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

10 Aug 20:49
c0129a9
Compare
Choose a tag to compare
  • Fix bug where previews didn't work when monkey patch was disabled.

    Mixer Gutierrez

v2.18.0

27 Jul 15:57
f33f9bc
Compare
Choose a tag to compare
  • 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

27 Jul 15:50
edf1a20
Compare
Choose a tag to compare
  • Fix bug where rendering Slot with empty block resulted in error.

    Joel Hawksley

v2.17.0

21 Jul 20:27
5b2c32d
Compare
Choose a tag to compare
  • Slots return stripped HTML, removing leading and trailing whitespace.

    Jason Long, Joel Hawksley

v2.16.0

15 Jul 19:58
1e9f430
Compare
Choose a tag to compare
  • Add --sidecar option to the erb, haml and slim generators. Places the generated template in the sidecar directory.

    Michael van Rooijen