This repository has been archived by the owner on May 28, 2024. It is now read-only.
chore(deps): update dependency view_component to v3 #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
"~> 2"
->"~> 3"
By merging this PR, the below vulnerabilities will be automatically resolved:
Release Notes
viewcomponent/view_component (view_component)
v3.9.0
Compare Source
Don’t break
rails stats
if 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.
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_postamble
is blank.Mitchell Henke
Ensure HTML output safety.
Cameron Dutro
v3.8.0
Compare Source
Use correct value for the
config.action_dispatch.show_exceptions
config 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_many
Hugo 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
call
would cause aNameError
Blake Williams
Add
use_helper
API.Reegan Viljoen
Fix bug where the
Rails
module 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_url
test helper.Andrew Duthie
v3.7.0
Compare Source
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
v3.6.0
Compare Source
Refer to
helpers
inNameError
message in development and test environments.Simon Fish
Fix API documentation and revert unnecessary change in
preview.rb
.Richard Macklin
Initialize ViewComponent::Config with defaults before framework load.
Simon Fish
Add 3.2 to the list of Ruby CI versions
Igor Drozdov
Stop running PVC's
docs:preview
rake task in CI, as the old docsite has been removed.Cameron Dutro
Minor testing documentation improvement.
Travis Gaff
Add SearchApi to users list.
Sebastjan Prachovskij
Fix
#with_request_url
to ensurerequest.query_parameters
is an instance of ActiveSupport::HashWithIndifferentAccess.milk1000cc
Add PeopleForce to list of companies using ViewComponent.
Volodymyr Khandiuk
v3.5.0
Compare Source
v3.4.0
Compare Source
Avoid including Rails
url_helpers
intoPreview
class when they're not defined.Richard Macklin
Allow instrumentation to be automatically included in Server-Timing headers generated by Rails. To enable this set the config
config.use_deprecated_instrumentation_name = false
. The old key!render.view_component
is deprecated: update ActiveSupport::Notification subscriptions torender.view_component
.Travis Gaff
v3.3.0
Compare Source
Include InlineTemplate by default in Base. Note: It's no longer necessary to include
ViewComponent::InlineTemplate
to use inline templates.Joel Hawksley
Allow Setting host when using the
with_request_url
test helper.Daniel Alfaro
Resolve ambiguous preview paths when using components without the Component suffix.
Reed Law
v3.2.0
Compare Source
Fix viewcomponent.org Axe violations.
Joel Hawksley
Fix example of RSpec configuration in docs
Pasha Kalashnikov
Add URL helpers to previews
Reegan Viljoen
v3.1.0
Compare Source
Check
defined?(Rails) && Rails.application
before usingViewComponent::Base.config.view_component_path
.Donapieppo
Allow customization of polymorphic slot setters.
Cameron Dutro
Fix duplication in configuration docs.
Tom Chen
Fix helpers not reloading in development.
Jonathan del Strother
Add
SECURITY.md
.Joel Hawksley
Add Ophelos to list of companies using ViewComponent.
Graham Rogers
Add FlightLogger to list of companies using ViewComponent.
Joseph Carpenter
Fix coverage reports overwriting each other when running locally.
Jonathan del Strother
Add @reeganviljoen to triage team.
Reegan Viljoen
v3.0.0
Compare Source
1,000+ days and 100+ releases later, the 200+ contributors to ViewComponent are proud to ship v3.0.0!
We're so grateful for all the work of community members to get us to this release. Whether it’s filing bug reports, designing APIs in long-winded discussion threads, or writing code itself, ViewComponent is built by the community, for the community. We couldn’t be more proud of what we’re building together ❤️
This release makes the following breaking changes, many of which have long been deprecated:
BREAKING: Remove deprecated slots setter methods. Use
with_SLOT_NAME
instead.Joel Hawksley
BREAKING: Remove deprecated SlotsV1 in favor of current SlotsV2.
Joel Hawksley
BREAKING: Remove deprecated
content_areas
feature. Use Slots instead.Joel Hawksley
BREAKING: Remove deprecated support for loading ViewComponent engine manually. Make sure
require "view_component/engine"
is removed fromGemfile
.Joel Hawksley
BREAKING: Remove deprecated
generate_*
methods. Usegenerate.*
instead.Joel Hawksley
BREAKING: Remove deprecated
with_variant
method.Joel Hawksley
BREAKING: Remove deprecated
rendered_component
in favor ofrendered_content
.Joel Hawksley
BREAKING: Remove deprecated
config.preview_path
in favor ofconfig.preview_paths
.Joel Hawksley
BREAKING: Support Ruby 2.7+ instead of 2.4+
Joel Hawksley
BREAKING: Remove deprecated
before_render_check
.Joel Hawksley
BREAKING: Change counter variable to start iterating from
0
instead of1
.Frank S
BREAKING:
#SLOT_NAME
getter no longer accepts arguments. This change was missed as part of the earlier deprecation in3.0.0.rc1
.Joel Hawksley
BREAKING: Raise
TranslateCalledBeforeRenderError
,ControllerCalledBeforeRenderError
, orHelpersCalledBeforeRenderError
instead ofViewContextCalledBeforeRenderError
.Joel Hawksley
BREAKING: Raise
SlotPredicateNameError
,RedefinedSlotError
,ReservedSingularSlotNameError
,ContentSlotNameError
,InvalidSlotDefinitionError
,ReservedPluralSlotNameError
,ContentAlreadySetForPolymorphicSlotErrror
,SystemTestControllerOnlyAllowedInTestError
,SystemTestControllerNefariousPathError
,NoMatchingTemplatesForPreviewError
,MultipleMatchingTemplatesForPreviewError
,DuplicateContentError
,EmptyOrInvalidInitializerError
,MissingCollectionArgumentError
,ReservedParameterError
,InvalidCollectionArgumentError
,MultipleInlineTemplatesError
,MissingPreviewTemplateError
,DuplicateSlotContentError
orNilWithContentError
instead of generic error classes.Joel Hawksley
BREAKING: Rename
SlotV2
toSlot
andSlotableV2
toSlotable
.Joel Hawksley
BREAKING: Incorporate
PolymorphicSlots
intoSlotable
. To migrate, remove any references toPolymorphicSlots
as they are no longer necessary.Joel Hawksley
BREAKING: Rename private TestHelpers#controller, #build_controller, #request, and #preview_class to avoid conflicts. Note: While these methods were undocumented and marked as private, they were accessible in tests. As such, we're considering this to be a breaking change.
Joel Hawksley
v2.83.0
Compare Source
Ensure HTML output safety.
Cameron Dutro