Skip to content

Releases: ViewComponent/view_component

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

v2.56.0

31 May 21:10
0b55bb7
Compare
Choose a tag to compare
  • Introduce experimental render_preview test helper. Note: @rendered_component in TestHelpers has been renamed to @rendered_content.

    Joel Hawksley

  • Move framework tests into sandbox application.

    Joel Hawksley

  • Add G2 to list of companies that use ViewComponent.

    Jack Shuff

  • Add Within3 to list of companies that use ViewComponent.

    Drew Bragg

  • Add Mission Met to list of companies that use ViewComponent.

    Nick Smith

  • Fix #with_request_url test helper not parsing nested query parameters into nested hashes.

    Richard Marbach

v2.55.0

13 May 12:43
1ada27f
Compare
Choose a tag to compare

v2.54.1

11 May 17:02
ec5a524
Compare
Choose a tag to compare
  • Update docs dependencies.

    Joel Hawksley

  • Resolve warning in slots API.

  • Raise in the test environment when ViewComponent code emits a warning.

    Blake Williams

v2.54.0

10 May 17:09
dcd84fd
Compare
Choose a tag to compare
  • Add with_* slot API for defining slots. Note: we plan to deprecate the non with_* API for slots in an upcoming release.

    Blake Williams

  • Add QuickNode to list of companies that heavily rely on ViewComponent.

    Luc Castera

  • Include the Translatable module by default.

    Elia Schito

  • Update docs dependencies.

    Joel Hawksley

v2.53.0

20 Apr 19:40
e797dc0
Compare
Choose a tag to compare
  • Add support for relative I18n scopes to translations.

    Elia Schito

  • Update CI configuration to use latest Rails 7.0.

    Hans Lemuet

  • Document how to use blocks with lambda slots.

    Sam Partington

  • Skip Rails 5.2 in local test environment if using incompatible Ruby version.

    Cameron Dutro, Blake Williams, Joel Hawksley

  • Improve landing page documentation.

    Jason Swett

  • Add Bearer to list of companies that heavily rely on ViewComponent.

    Yaroslav Shmarov

  • Add articles to resources page.

    Joel Hawksley

v2.52.0

25 Mar 18:12
Compare
Choose a tag to compare
  • Add ADR for separate slot getter/setter API.

    Blake Williams

  • Add the option to use a "global" output buffer so form_for and friends can be used with view components.

    Cameron Dutro, Blake Williams

  • Fix fragment caching in partials when global output buffer is enabled.

  • Fix template inheritance when eager loading is disabled.

    Cameron Dutro

v2.51.0

19 Mar 17:42
3a6a957
Compare
Choose a tag to compare
  • Update the docs only when releasing a new version.

    Hans Lemuet

  • Alphabetize companies using ViewComponent and add Brightline to the list.

    Jack Schuss

  • Add CMYK value for ViewComponent Red color on logo page.

    Dylan Smith

  • Improve performance by moving template compilation from #render_in to #render_template_for.

    Cameron Dutro

v2.50.0

10 Mar 15:47
9ca762f
Compare
Choose a tag to compare
  • Add tests for layout usage when rendering via controller.

    Felipe Sateler

  • Support returning Arrays from i18n files, and support marking them as HTML-safe translations.

    foca

  • Add Cometeer and Framework to users list.

    Elia Schito

  • Update Microsoft Vale styles.

    Simon Fish

  • Fix example in testing guide for how to setup default Rails tests.

    Steven Hansen

  • Update benchmark script to render multiple components/partials instead of a single instance per-run.

    Blake Williams

  • Add predicate methods #{slot_name}? to slots.

    Hans Lemuet

  • Use a dedicated deprecation instance, silence it while testing.

    Max Beizer, Hans Lemuet, Elia Schito

  • Fix Ruby warnings.

    Hans Lemuet

  • Place all generator options under config.generate namespace.

    Simon Fish

  • Allow preview generator to use provided component attributes.

  • Add config option config.view_component.generate.preview to enable project-wide preview generation.

  • Ensure all generated .rb files include # frozen_string_literal: true statement.

    Bob Maerten

  • Add Shogun to users list.

    Bernie Chiu

v2.49.1

02 Mar 22:14
Compare
Choose a tag to compare

2.49.1

  • Patch XSS vulnerability in ViewComponent::Translatable module caused by improperly escaped interpolation arguments.

    Cameron Dutro