Skip to content

Releases: ViewComponent/view_component

v2.68.0

15 Aug 22:48
a4bc4e0
Compare
Choose a tag to compare
  • Update gemspec author to be ViewComponent team.

    Joel Hawksley

  • Fix bug where ViewComponent::Compiler wasn't required.

    Joel Hawksley

v2.67.0

15 Aug 17:29
8e51b73
Compare
Choose a tag to compare
  • Use ViewComponent::Base.config as the internal endpoint for config.

    Simon Fish

  • Fix bug where #with_request_url, when used with query string, set the incorrect request.path and request.fullpath.

    Franz Liedke

  • Add link to ViewComponentAttributes in Resources section of docs.

    Romaric Pascal

  • render_preview test helper is available by default. It is no longer necessary to include ViewComponent::RenderPreviewHelper.

    Joel Hawksley

v2.66.0

09 Aug 13:50
7f4ea54
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
  • Add support for render_preview in RSpec tests.

    Thomas Hutterer