Releases: ViewComponent/view_component
v3.14.0
-
Defer to built-in caching for language environment setup, rather than manually using
actions/cachein CI.Simon Fish
-
Add test coverage for use of
turbo_streamhelpers in components whencapture_compatibility_patch_enabledistrue.Simon Fish
-
Add experimental
SlotableDefaultmodule, allowing components to define adefault_SLOTNAMEmethod 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.rbrather than_preview.rbto allow previews to exist in sidecar directory with test files.Seth Herr
-
Add
assert_component_renderedtest 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_helpersto allow for more flexible helper inclusion from modules.Reegan Viljoen
-
Fixed ruby head matcher issue.
Reegan Viljoen
v3.12.1
v3.12.0
-
Remove offline links from resources.
Paulo Henrique Meneses
-
Fix templates not being correctly populated when caller location label has a prefix.
On the upstream version of Ruby, method owners are now included in backtraces as prefixes. This caused the call stack filtering to not work as intended and thus
source_locationto be incorrect for child ViewComponents, consequently not populating templates correctly.Allan Pires, Jason Kim
-
Use component path for generating RSpec files.
When generating new RSpec files for components, the generator will use the
view_component_pathvalue in the config to decide where to put the new spec file. For instance, if theview_component_pathoption has been changed toapp/views/components, the generator will put the spec file inspec/views/components. If theview_component_pathdoesn't start withapp/, then the generator will fall back tospec/components/.This feature is enabled via the
config.view_component.generate.use_component_path_for_rspec_testsoption, defaulting tofalse. The default will change totruein ViewComponent v4.William Mathewson
v3.11.0
-
Fix running non-integration tests under Rails main.
Cameron Dutro
-
Better name and link for Avo.
Adrian Marin
-
Document using rack-mini-profiler with ViewComponent.
Thomas Carr
-
Move dependencies to gemspec.
Joel Hawksley
-
Include ViewComponent::UseHelpers by default.
Reegan Viljoen
-
Bump
pumain Gemfile.lock.Cameron Dutro
-
Add Keenly to users list.
Vinoth
v3.10.0
-
Fix html escaping in
#callfor non-strings.Reegan Viljoen, Cameron Dutro
-
Add
output_preambleto matchoutput_postamble, using the same safety checks.Kali Donovan, Michael Daross
-
Exclude html escaping of I18n reserved keys with
I18n::RESERVED_KEYSrather thanI18n.reserved_keys_pattern.Nick Coyne
-
Update CI configuration to use
Appraisal.Hans Lemuet, Simon Fish
v2.83.0
v3.9.0
-
Don’t break
rails statsif ViewComponent path is missing.Claudio Baccigalupo
-
Add deprecation warnings for EOL ruby and Rails versions and patches associated with them.
Reegan Viljoen
-
Add support for Ruby 3.3.
*Reegan Viljoen* -
Allow translations to be inherited and overridden in subclasses.
Elia Schito
-
Resolve console warnings when running test suite.
Joel Hawksley
-
Fix spelling in a local variable.
Olle Jonsson
-
Avoid duplicating rendered string when
output_postambleis blank.Mitchell Henke
-
Ensure HTML output safety.
Cameron Dutro
v3.8.0
-
Use correct value for the
config.action_dispatch.show_exceptionsconfig option for edge Rails.Cameron Dutro
-
Remove unsupported versions of Rails & Ruby from CI matrix.
Reegan Viljoen
-
Raise error when uncountable slot names are used in
renders_manyHugo Chantelauze
Reegan Viljoen -
Replace usage of
String#ends_with?withString#end_with?to reduce the dependency on ActiveSupport core extensions.halo
-
Don't add ActionDispatch::Static middleware unless
public_file_server.enabled.Daniel Gonzalez
Reegan Viljoen -
Resolve an issue where slots starting with
callwould cause aNameErrorBlake Williams
-
Add
use_helperAPI.Reegan Viljoen
-
Fix bug where the
Railsmodule wasn't being searched from the root namespace.Zenéixe
-
Fix bug where
#with_request_url, set the incorrectrequest.fullpath.Nachiket Pusalkar
-
Allow setting method when using the
with_request_urltest helper.Andrew Duthie
v3.7.0
-
Support Rails 7.1 in CI.
Reegan Viljoen
Cameron Dutro -
Document the capture compatibility patch on the Known issues page.
Simon Fish
-
Add Simundia to list of companies using ViewComponent.
Alexandre Ignjatovic
-
Reduce UnboundMethod objects by memoizing initialize_parameters.
Rainer Borene
-
Improve docs about inline templates interpolation.
Hans Lemuet
-
Update generators.md to clarify the way of changing
config.view_component.view_component_path.Shozo Hatta
-
Attempt to fix Ferrum timeout errors by creating driver with unique name.
Cameron Dutro