Releases: ViewComponent/view_component
v2.41.0
-
Add
sprockets-railsdevelopment dependency to fix test suite failures when using rails@main.Blake Williams
-
Fix Ruby indentation warning.
Blake Williams
-
Add
--parentgenerator option to specify the parent class. -
Add config option
config.view_component.component_parent_classto change it project-wide.Hans Lemuet
-
Update docs to add example for using Devise helpers in tests.
Matthew Rider
-
Fix bug where
with_collection_parameterdid not inherit from parent component.Will Drexler, Christian Campoli
-
Allow query parameters in
with_request_urltest helper.Javi Martín
-
Add "how to render a component to a string" to FAQ.
Hans Lemuet
-
Add
#render_into API docs.Hans Lemuet
-
Forward keyword arguments from slot wrapper to component instance.
Cameron Dutro
v2.40.0
-
Replace antipatterns section in the documentation with best practices.
Blake Williams
-
Add components to
rails statstask.Nicolas Brousse
-
Fix bug when using Slim and writing a slot whose block evaluates to
nil.Yousuf Jukaku
-
Add documentation for test helpers.
Joel Hawksley
v2.39.0
-
Clarify documentation of
with_variantas an override of Action Pack.Blake Williams, Cameron Dutro, Joel Hawksley
-
Update docs page to be called Javascript and CSS, rename Building ViewComponents to Guide.
Joel Hawksley
-
Deprecate
Base#with_variant.Cameron Dutro
-
Error out in the CI if docs/api.md has to be regenerated.
Dany Marcoux
v2.38.0
v2.37.0
-
Clarify slots example in docs to reduce naming confusion.
Joel Hawksley, Blake Williams
-
Fix error in documentation for
render_manypassthrough slots.Ollie Nye
-
Add test case for conflict with internal
@variantvariable.David Backeus
-
Document decision to not change naming convention recommendation to remove
-Componentsuffix.Joel Hawksley
-
Fix typo in documentation.
Ryo.gift
-
Add inline template example to benchmark script.
Andrew Tait
-
Fix benchmark scripts.
Andrew Tait
-
Run benchmarks in CI.
Joel Hawksley
v2.36.0
-
Add
slot_typehelper method.Jon Palmer
-
Add test case for rendering a ViewComponent with slots in a controller.
Simon Fish
-
Add example ViewComponent to documentation landing page.
Joel Hawksley
-
Set maximum line length to 120.
Joel Hawksley
-
Setting a collection slot with the plural setter (
component.items(array)forrenders_many :items) returns the array of slots.Jon Palmer
-
Update error messages to be more descriptive and helpful.
Joel Hawksley
-
Raise an error if the slot name for renders_many is :contents
Simon Fish
v2.35.0
-
Only load assets for Preview source highlighting if previews are enabled.
Joel Hawksley
-
Fix references to moved documentation files.
Richard Macklin
-
Ensure consistent indentation with Rubocop.
Joel Hawksley
-
Bump
activesupportupper bound from< 7.0to< 8.0.Richard Macklin
-
Add ERB Lint for a few basic rules.
Joel Hawksley
-
Sort
gemspecdependencies alphabetically.Joel Hawksley
-
Lock
method_sourceat1.0to avoid open-ended dependency.Joel Hawksley
-
Require all PRs to include changelog entries.
Joel Hawksley
-
Rename test app and move files under /test/sandbox.
Matt-Yorkley
-
Make view_component_path config option available on ViewComponent::Base.
Matt-Yorkley
-
Add @boardfish to Triage.
Joel Hawksley
-
Adds support to change default components path (app/components) with
config.view_component.view_component_path.lfalcao
-
Rename private instance variables (such as @variant) to reduce potential conflicts with subclasses.
Joel Hawksley
-
Add documentation for configuration options.
Joel Hawksley
-
Add view helper
preview_sourcefor rendering a source code preview below previews. -
Add config option
config.view_component.show_previews_sourcefor enabling the source preview.Johannes Engl
-
Add documentation for compatibility with ActionText.
Jared Planter
v2.34.0
-
Add the ability to enable ActiveSupport notifications (
!render.view_componentevent) withconfig.view_component.instrumentation_enabled.Svyatoslav Kryukov
-
Add Generators page to documentation.
Hans Lemuet
-
Fix bug where ViewComponents did not work in ActionMailers.
dark-panda
v2.33.0
-
Add support for
_iterationparameter when rendering in a collectionWill Cosgrove
-
Don't raise an error when rendering empty components.
Alex Robbin
v2.32.0
-
Enable previews by default in test environment.
Edouard Piron
-
Fix test helper compatibility with Rails 7.0, TestRequest, and TestSession.
Leo Correa
-
Add experimental
_output_postamblelifecyle method.Joel Hawksley
-
Add compatibility notes on FAQ.
Matheus Richard
-
Add Bridgetown on Compatibility documentation.
Matheus Richard
-
Are you interested in building the future of ViewComponent? GitHub is looking to hire a Senior Engineer to work on Primer ViewComponents and ViewComponent. Apply here: US/Canada / Europe. Feel free to reach out to [email protected] with any questions.
Joel Hawksley