Bump view_component dependency version#6681
Merged
compwron merged 1 commit intorubyforgood:mainfrom Jan 29, 2026
Merged
Conversation
4b2a687 to
83185e3
Compare
Closes rubyforgood#6596 In ViewComponent/view_component#2317, `view_component` 4.0 changed how to configure `previews.paths` from `config.view_component.preview_paths` to `config.view_component.previews.paths`. Official docs for the new configuration: https://viewcomponent.org/guide/previews.html#use-with-rspec
83185e3 to
340001e
Compare
compwron
approved these changes
Jan 29, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR upgrades the view_component dependency from version 3.22.0 to 4.2.0 and updates the configuration syntax to be compatible with the new version. Version 4.0 of view_component changed the configuration API for preview paths from config.view_component.preview_paths to config.view_component.previews.paths.
Changes:
- Updated view_component gem from 3.22.0 to 4.2.0
- Changed preview path configuration to use the new v4.x syntax
- Updated concurrent-ruby dependency from exact version 1.3.4 to ~> 1 (resolved to 1.3.5)
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| config/application.rb | Updated ViewComponent preview path configuration from preview_paths to previews.paths to match v4.x API |
| Gemfile.lock | Bumped view_component from 3.22.0 to 4.2.0 with updated dependency constraints and concurrent-ruby minor version update |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What github issue is this PR for, if any?
Closes #6596
Related: #6665
What changed, and why?
4.0changed how to configurepreviews.pathsfromconfig.view_component.preview_pathstoconfig.view_component.previews.paths. See ViewComponent/view_component#2317Official docs for the new configuration: https://viewcomponent.org/guide/previews.html#use-with-rspec
Screenshots please :)
N/A