Skip to content

Releases: ViewComponent/view_component

v2.23.2

15 Dec 18:01
0bce19f
Compare
Choose a tag to compare
  • Fix bug where rendering a component with_collection from a controller raised an error.

    Joel Hawksley

v2.23.1

10 Dec 16:43
274fab0
Compare
Choose a tag to compare
  • Fixed out-of-order rendering bug in ActionView::SlotableV2

    Blake Williams

v2.23.0

09 Dec 22:03
9a1a68c
Compare
Choose a tag to compare
  • Add ActionView::SlotableV2

    • with_slot becomes renders_one.

    • with_slot collection: true becomes renders_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 content attribute to render content, instead relying on to_s. e.g. <%= my_slot %>.

    • Slot values are no longer set via the slot method, and instead use the name of the slot.

      Blake Williams

  • Add frozen_string_literal: true to generated component template.

    Max Beizer

v2.22.1

10 Nov 14:55
6cbe5c1
Compare
Choose a tag to compare
  • Revert refactor that broke rendering for some users.

    Joel Hawksley

v2.22.0

09 Nov 23:10
baed5e9
Compare
Choose a tag to compare
  • Add #with_variant to enable inline component variant rendering without template files.

    Nathan Jones

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