Skip to content

Releases: ViewComponent/view_component

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

v2.59.0

13 Jul 21:41
34351b2
Compare
Choose a tag to compare

v2.58.0

13 Jul 19:21
8f32b89
Compare
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

v2.57.1

15 Jun 22:32
b81584b
Compare
Choose a tag to compare
  • Fix issue causing NoMethodErrors when calling helper methods from components rendered as part of a collection.

  • Fix syntax error in the ERB example in the polymorphic slots docs.

    Cameron Dutro

v2.57.0

10 Jun 20:41
3e54e2d
Compare
Choose a tag to compare
  • Add missing require for Translatable module in Base.

    Hans Lemuet

  • Allow anything that responds to #render_in to be rendered in the parent component's view context.

    Cameron Dutro

  • Fix script/release so it honors semver.

    Cameron Dutro

v2.56.2

02 Jun 21:54
cd029f7
Compare
Choose a tag to compare
  • Restore removed rendered_component, marking it for deprecation in v3.0.0.

    Tyson Gach, Richard Macklin, Joel Hawksley

v2.56.1

01 Jun 12:21
ca42e05
Compare
Choose a tag to compare
  • Rename private accessor rendered_component to rendered_content.

    Yoshiyuki Hirano, Simon Dawson