Update dependency view_component to v4.11.0 #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/view_component-4.x-lockfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
4.1.0→4.11.0Release Notes
viewcomponent/view_component (view_component)
v4.11.0: 4.11.0Compare Source
Update
render_insignature to accept**_for compatibility with Rails #50623.Joel Hawksley
Fix translation scope resolution in nested lambda-backed slots. Relative
t(".key")calls inside lambda-backed slots were resolving against an intermediate component's scope instead of the original partial's scope where the block was defined.Artin Boghosian
v4.10.0: 4.10.0Compare Source
Fix
NameError: uninitialized constant ViewComponent::SystemTestControllerNefariousPathErrorwhen booting in the test environment witheager_load = true.Joel Hawksley
Fix yielded content rendered at wrong location when using form helpers.
Joel Hawksley, Markus
v4.9.0: 4.9.0Compare Source
Fix path traversal vulnerability in
ViewComponentsSystemTestControllerwhere sibling directories sharing a string prefix with the allowed temp directory could bypass the path containment check. Thestart_with?check has been replaced with a separator-aware prefix check, and nefarious path errors now return a 404 instead of an unhandled exception.Joel Hawksley
Fix preview route vulnerability where inherited methods on
ViewComponent::Preview(such asrender_with_template) could be invoked via the preview URL, allowing arbitrary internal Rails templates to be rendered with attacker-controlled locals and request parameters.render_argsnow raisesAbstractController::ActionNotFoundfor any example not explicitly declared on the preview subclass.Joel Hawksley
Add
yard-lintto CI.Joel Hawksley
v4.8.0: 4.8.0Compare Source
Add
compile.view_componentActiveSupport::Notifications event for eager compilation at boot time.Joel Hawksley, GitHub Copilot
v4.7.0: 4.7.0Compare Source
Fix stale content cache when slots are accessed before
render_in.Jared Armstrong
Add rubocop-view_component to resources.
Andy Waite
Fix bug where inheritance of components with formatless templates improperly raised a NoMethodError.
GitHub Copilot, Joel Hawksley, Cameron Dutro
v4.6.0: 4.6.0Compare Source
Add
view_identifierto therender.view_componentinstrumentation event payload, containing the path to the component's template file (e.g.app/components/my_component.html.erb). For components using inline render methods,view_identifierwill benil.GitHub Copilot
Replace deprecated
require_dependencywithrequirein preview loading.GitHub Copilot
Return
html_safeempty string fromrender_inwhenrender?is false.GitHub Copilot
v4.5.0: 4.5.0Compare Source
Fix initialization ordering issue causing missing asset errors in Sprockets.
Cameron Dutro
v4.4.0: 4.4.0Compare Source
Fix segfaults when Ruby coverage is enabled.
George Holborn, Joel Hawksley
Add
protocolparameter towith_request_urltest helper to enable testing with HTTPS protocol.Joel Hawksley
v4.3.0: 4.3.0Compare Source
Fix load order issues for 3rd-party template handlers.
Cameron Dutro
Fix segfault when Ruby coverage is enabled with Rails 8.1 ERB templates.
George Holborn
Automatically merge dependabot PRs.
Joel Hawksley
Use Ruby 4.0.0 in CI and dev.
Joel Hawksley
v4.2.0: 4.2.0Compare Source
Fix translation scope resolution in deeply nested component blocks (3+ levels). Translations called inside deeply nested slot blocks using
renders_many/renders_onewere incorrectly resolving to an intermediate component's scope instead of the partial's scope where the block was defined. The fix captures the virtual path at block definition time and restores it during block execution, ensuring translations always resolve relative to where the block was created regardless of nesting depth.Nathaniel Watts
Allow
render_inlinewith Nokogiri::HTML5 to parse more arbitrary content including bare table content otherwise illegal fragments like<td>.Jonathan Rochkind
Remove known issue from docs as ActiveScaffold is now compatible with ViewComponent.
David Löwenfels
Add test to document the current behavior for resolving relative translation keys within partial blocks. When rendering a partial, relative translation keys are resolved relative to the partial's own path rather than the caller’s path. This test ensures that this behavior remains consistent.
Oussama Hilal
Allow I18n calls in
render?.23tux
ViewComponent now works without
railsandrailtiesgems loaded, enabling compatibility with Bridgetown 2.0.Tom Lord
Capture partial block in the component's context, allowing access to the component instance inside the block.
23tux
Add
after_compileclass method hook to enable extensions to run logic after component compilation.Jose Solás
Fix outdated reference to preview layout configuration in docs.
Lucas Geron
Allow ruby-head CI job to fail without failing workflow.
Hakan Ensari
Fix bug where error line numbers were incorrect in Rails 8.1.
Joel Hawksley
Remove
< 8.2upper bound foractivesupportandactionviewdependencies.Hans Lemuet
Test compatibility with Herb/ReActionView.
Joel Hawksley
Remove Who Uses ViewComponent section from docs.
Joel Hawksley
v4.1.1: 4.1.1Compare Source
Add Consultport to list of companies using ViewComponent.
Sebastian Nepote
Resolve deprecation warning for
ActiveSupport::Configurable.Simon Fish
Make
ViewComponent::VERSIONaccessible to other gems by default.Hans Lemuet
Added Reinvented Hospitality to the list of companies using ViewComponent.
Torgil Zechel
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
6df221ae262143e9e61aUpdate dependency view_component to v4.1.1to Update dependency view_component to v4.2.02143e9e61a437d4311fc437d4311fc26d0e7e5a6Update dependency view_component to v4.2.0to Update dependency view_component to v4.3.026d0e7e5a60032fdff83Update dependency view_component to v4.3.0to Update dependency view_component to v4.4.00032fdff83a2a8d5ccfbUpdate dependency view_component to v4.4.0to Update dependency view_component to v4.5.0a2a8d5ccfb1dd9f08439Update dependency view_component to v4.5.0to Update dependency view_component to v4.6.01dd9f08439d1a078749cUpdate dependency view_component to v4.6.0to Update dependency view_component to v4.7.0d1a078749c5db33e798bUpdate dependency view_component to v4.7.0to Update dependency view_component to v4.8.05db33e798b0568e1e1c6Update dependency view_component to v4.8.0to Update dependency view_component to v4.9.00568e1e1c679dc38980cUpdate dependency view_component to v4.9.0to Update dependency view_component to v4.10.079dc38980c82be3549d2Update dependency view_component to v4.10.0to Update dependency view_component to v4.11.0View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.