Releases: ViewComponent/view_component
v2.56.1
-
Rename private accessor
rendered_component
torendered_content
.Yoshiyuki Hirano, Simon Dawson
v2.56.0
-
Introduce experimental
render_preview
test helper. Note:@rendered_component
inTestHelpers
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
-
Add
render_parent
convenience method to avoid confusion between<%= super %>
and<% super %>
in template code.Cameron Dutro
-
Add note about discouraging inheritance.
Joel Hawksley
-
Clean up grammar in documentation.
Joel Hawksley
-
The ViewComponent team at GitHub is hiring! We're looking for a Rails engineer with accessibility experience: https://boards.greenhouse.io/github/jobs/4020166. Reach out to [email protected] with any questions!
-
The ViewComponent team is hosting a happy hour at RailsConf. Join us for snacks, drinks, and stickers: https://www.eventbrite.com/e/viewcomponent-happy-hour-tickets-304168585427
v2.54.1
-
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
-
Add
with_*
slot API for defining slots. Note: we plan to deprecate the nonwith_*
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
-
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
-
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
-
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
-
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