Skip to content
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

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

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

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

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

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

Compare
Choose a tag to compare

2.49.1

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

    Cameron Dutro

Compare
Choose a tag to compare

2.31.2

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

    Cameron Dutro

d4678fd
Compare
Choose a tag to compare
  • Fix path handling for evaluated view components that broke in Ruby 3.1.

    Adam Hess

  • Fix support for the default: option for a global translation.

    Elia Schito

  • Ensure i18n scope is a symbol to protect lookups.

    Simon Fish

  • Small update to preview docs to include rspec mention.

    Leigh Halliday

  • Small improvements to collection iteration docs.

    Brian O'Rourke

  • Add good and bad examples to ViewComponents in practice.

    Joel Hawksley

  • Add Ruby 3.1 and Rails 7.0 to CI

    Peter Goldstein

e702e60
Compare
Choose a tag to compare
  • Correct path in example test command in Contributing docs.

    Mark Wilkinson

  • Update link to GOV.UK Components library in the resources list.

    Peter Yates

  • Add Lookbook to Resources docs page.

    Mark Perkins

  • Add blocking compiler mode for use in Rails development and testing modes, improving thread safety.

    Horia Radu

  • Add generators to support tailwindcss-rails.

    Dino Maric, Hans Lemuet

  • Add a namespaced component example to docs.

    Hans Lemuet

  • Setup Appraisal to add flexibility when testing ViewComponent against multiple Rails versions.

    Hans Lemuet

  • Return correct values for request.path and request.query_string methods when using the with_request_url test helper.

    Vasiliy Matyushin

  • Improve style in generators docs.

    Hans Lemuet

  • Correctly type Ruby version strings and update Rails versions used in CI configuration.

    Hans Lemuet

  • Make ViewComponent::Collection act like a collection of view components.

    Sammy Henningsson

  • Update @param of #render_inline to include ViewComponent::Collection.

    Yutaka Kamei

  • Add Wecasa to users list.

    Mohamed Ziata