Skip to content

Releases: ViewComponent/view_component

v2.66.0

09 Aug 13:50
7f4ea54

Choose a tag to compare

  • Add missing generate.sidecar, generate.stimulus_controller, generate.locale, generate.distinct_locale_files, generate.preview config options to config.view_component.

    Simon Fish

v2.65.0

09 Aug 13:27
8ed02f9

Choose a tag to compare

  • Raise ArgumentError when 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

03 Aug 12:34
b8febaf

Choose a tag to compare

  • Add warn_on_deprecated_slot_setter flag 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 in v3.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 m to development environment.

    Joel Hawksley

  • Fix potential deadlock scenario in the compiler's development mode.

    Blake Williams

v2.63.0

01 Aug 19:48
18dd241

Choose a tag to compare

  • Fixed typo in renders_many documentation.

    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_component is used.

    Daniel Scheffknecht

v2.62.0

25 Jul 18:54
2cb49f1

Choose a tag to compare

  • Remove the experimental global output buffer feature.

  • Restore functionality that used to attempt to compile templates on each call to #render_in.

  • Un-pin rails main dependency.

    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

21 Jul 16:53
b626eca

Choose a tag to compare

  • 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 rails main dependency due to incompatibility with Global Output Buffer.

    Joel Hawksley

v2.61.0

18 Jul 18:43
515f6bb

Choose a tag to compare

  • Ensure side-effects in content are consistently evaluated before components are rendered. This change effectively means that content is evaluated for every component render where render? returns true. As a result, code that is passed to a component via a block/content will now always be evaluated, before #call, which can reveal bugs in existing components.

    Blake Williams

v2.60.0

18 Jul 16:59

Choose a tag to compare

  • Add support for render_preview in RSpec tests.

    Thomas Hutterer

v2.59.0

13 Jul 21:41
34351b2

Choose a tag to compare

v2.58.0

13 Jul 19:21
8f32b89

Choose a tag to compare

IMG_7070

Welcome to the team, Hans and Simon! ❤️

  • Add @boardfish and @Spone as maintainers.

    Joel Hawksley, Cameron Dutro, Blake Williams

  • Switch to standardrb.

    Joel Hawksley

  • Add BootrAils article to resources.

    Joel Hawksley

  • Re-compile updated, inherited templates when class caching is disabled.

    Patrick Arnett

  • Add the latest version to the docs index.

  • Improve the docs: add the versions various features were introduced in.

    Hans Lemuet

  • Update docs to reflect lack of block content support in controllers.

    Joel Hawksley

  • Prevent adding duplicates to autoload_paths.

    Thomas Hutterer

  • Add FreeAgent to list of companies using ViewComponent.

    Simon Fish

  • Include polymorphic slots in ViewComponent::Base by default.

    Cameron Dutro

  • Add per-component config option for stripping newlines from templates before compilation.

    Cameron Dutro

  • Add link to article by Matouš Borák.

    Joel Hawksley