Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 12, 2026

Bumps view_component from 4.1.1 to 4.2.0.

Release notes

Sourced from view_component's releases.

4.2.0

  • Fix translation scope resolution in deeply nested component blocks (3+ levels). Translations called inside deeply nested slot blocks using renders_many/renders_one were 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_inline with 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 rails and railties gems 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_compile class 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.2 upper bound for activesupport and actionview dependencies.

    Hans Lemuet

  • Test compatibility with Herb/ReActionView.

... (truncated)

Changelog

Sourced from view_component's changelog.

4.2.0

  • Fix translation scope resolution in deeply nested component blocks (3+ levels). Translations called inside deeply nested slot blocks using renders_many/renders_one were 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_inline with 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 rails and railties gems 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_compile class 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.2 upper bound for activesupport and actionview dependencies.

    Hans Lemuet

... (truncated)

Commits
  • 1722b70 fix push_gem.yml
  • de73b36 Merge pull request #2529 from ViewComponent/release-4-2-0
  • b3e27b4 another lockfile update attempt
  • 545ea79 release 4.2.0
  • 2b844da Merge pull request #2520 from thewatts/nw/nested-partial-translations
  • 8a8bbba Update docs/CHANGELOG.md
  • a7a8aae Merge pull request #2522 from ViewComponent/dependabot/bundler/m-1.7.0
  • 4457ede Bump m from 1.6.2 to 1.7.0
  • a3ecb14 Merge pull request #2523 from ViewComponent/dependabot/bundler/minitest-6.0.1
  • b04eb72 Bump minitest from 5.27.0 to 6.0.1
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [view_component](https://github.com/viewcomponent/view_component) from 4.1.1 to 4.2.0.
- [Release notes](https://github.com/viewcomponent/view_component/releases)
- [Changelog](https://github.com/ViewComponent/view_component/blob/main/docs/CHANGELOG.md)
- [Commits](ViewComponent/view_component@v4.1.1...v4.2.0)

---
updated-dependencies:
- dependency-name: view_component
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant