Releases: ViewComponent/view_component
v3.20.0
v3.19.0
v3.18.0
-
Enable components to use
@request
andrequest
methods/ivars.Blake Williams
-
Fix bug where implicit locales in component filenames threw a
NameError
.Chloe Fons
-
Register ViewComponent tests directory for
rails stats
.Javier Aranda
-
Wrap entire compile step in a mutex to make it more resilient to race conditions.
Blake Williams
-
Add Niva to companies who use
ViewComponent
.Daniel Vu Dao
-
Fix
preview_paths
in docs.Javier Aranda
v3.17.0
-
Use struct instead openstruct in lib code.
Oleksii Vasyliev
-
Fix bug where stimulus controller was not added to ERB when stimulus was activated by default.
Denis Pasin
-
Add typescript support to stimulus generator.
Denis Pasin
-
Fix the example of #vc_test_request in the API reference to use the correct method name.
Alberto Rocha
-
Fix development mode race condition that caused an invalid duplicate template error.
Blake Williams
v3.16.0
-
Add template information to multiple template error messages.
Joel Hawksley
-
Add
ostruct
to gemspec file to suppress stdlib removal warning.Jonathan Underwood
v3.15.1
-
Re-add
@private
, undocumented.identifier
method that was only meant for internal framework use but was used by some downstream consumers. This method will be removed in a coming minor release.Joel Hawksley
v3.15.0
-
Add basic internal testing for memory allocations.
Joel Hawksley
-
Add support for request formats.
Joel Hawksley
-
Add
rendered_json
test helper.Joel Hawksley
-
Add
with_format
test helper.Joel Hawksley
-
Warn if using Ruby < 3.2 or Rails < 7.1, which won't be supported by ViewComponent v4, to be released no earlier than April 1, 2025.
Joel Hawksley
-
Add Kicksite to list of companies using ViewComponent.
Adil Lari
-
Allow overridden slot methods to use
super
.Andrew Schwartz
-
Add Rails engine support to generators.
Tomasz Kowalewski
-
Register stats directories with
Rails::CodeStatistics.register_directory
to supportrails stats
in Rails 8.Petrik de Heus
-
Fixed type declaration for
ViewComponent::TestHelpers.with_controller_class
parameter.Graham Rogers
v3.14.0
-
Defer to built-in caching for language environment setup, rather than manually using
actions/cache
in CI.Simon Fish
-
Add test coverage for use of
turbo_stream
helpers in components whencapture_compatibility_patch_enabled
istrue
.Simon Fish
-
Add experimental
SlotableDefault
module, allowing components to define adefault_SLOTNAME
method to provide a default value for slots.Joel Hawksley
-
Add documentation on rendering ViewComponents outside of the view context.
Joel Hawksley
-
Look for preview files that end in
preview.rb
rather than_preview.rb
to allow previews to exist in sidecar directory with test files.Seth Herr
-
Add
assert_component_rendered
test helper.Reegan Viljoen
-
Add
prefix:
option touse_helpers
.Reegan Viljoen
-
Add support for Rails 7.2.
Reegan Viljoen
v3.13.0
-
Add ruby head and YJIT to CI.
Reegan Viljoen
-
Fixed a bug where inline templates where unable to remove trailing whitespace without throwing an error.
Reegan Viljoen
-
Fixed CI for Rails main.
Reegan Viljoen
-
Add
from:
option touse_helpers
to allow for more flexible helper inclusion from modules.Reegan Viljoen
-
Fixed ruby head matcher issue.
Reegan Viljoen