view_component breaking changes
view_component 4.0.0 (July 30, 2025) is its newest release with breaking changes, 23 of them. The first: Removes rails stats integration in view_component 4.0.0. Every breaking API change we have recorded in view_component on RubyGems: 72 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.25.0, released November 20, 2026. Source repository
Its 4.0.0 release requires Ruby 3.2.0 or later. Ruby end of life dates.
- From 3.0.0 to 4.0.0: 23 breaking changes in 1 version.
- From 2.0.0 to 4.0.0: 63 breaking changes in 2 versions.
view_component 4.0.0 breaking changes
- Removed
Components outside app/components are no longer counted by rails stats. github.com - Removed
Collection.components
Code calling this method from outside will fail. github.com - Removed
ComponentError
Code referencing this class will fail. github.com - Removed
config.view_component.test_controller
Use the vc_test_controller_class test helper method instead. github.com - Removed
config.view_component.use_deprecated_instrumentation_name
Events always use the render.view_component name now. github.com - Removed
EmptyOrInvalidInitializerError
Dry::Initializer is now supported, so this error is no longer raised. github.com - Removed
format
Code calling these methods will fail. github.com - Removed
preview_source
Consider using Lookbook instead. github.com - Removed
render_component
Code calling render_component or relying on the render monkey patch must change how it renders components. github.com - Removed
Slotable.register_polymorphic_slot
Code calling this method from outside will fail. github.com - Removed
use_helper
Use include MyHelper or the helpers. proxy instead. github.com - Renamed
component
Run the generator as rails g view_component:component instead of rails g component. github.com - Renamed
config.view_component.component_parent_class
Set the option under the generate namespace with the new name. github.com - Renamed
config.view_component.previews
Options such as enabled, route and paths now live under the previews namespace. github.com - Renamed
config.view_component.view_component_path
Set the option as config.view_component.generate.path instead. github.com - Behavior changed
Templates matching the request format are no longer preferred; Rails rules for picking the template apply. github.com - Behavior changed
Test helper parsing now uses the HTML5 parser. github.com - Behavior changed
The capture compatibility patch is gone. In some edge cases, switch to the helpers. proxy. github.com - Behavior changed
Template variant names with a dot are no longer picked up, matching Rails. github.com - Behavior changed
--inline
Use --call to generate a #call method instead. github.com - Behavior changed
ViewComponent.Base
Components without their own initializer can no longer be passed arbitrary arguments. github.com - Default changed
config.view_component.previews.default_layout
Previews no longer use a default layout unless one is set. github.com - Configuration changed
The package now requires Rails 7.1.0 or later. github.com
view_component 3.0.0 breaking changes
- Removed
The gem now supports Ruby 2.7 and later only. github.com - Removed
Slot setter methods are gone. Use the with_SLOT_NAME methods instead. github.com - Removed
Loading the engine manually is no longer supported. Remove require "view_component/engine" from the Gemfile. github.com - Removed
before_render_check
The before_render_check method is removed. github.com - Removed
config.preview_path
The config.preview_path option is removed. Use config.preview_paths instead. github.com - Removed
content_areas
The content_areas feature is removed. Use Slots instead. github.com - Removed
generate_*
The generate_* methods are removed. Use generate.* instead. github.com - Removed
PolymorphicSlots
PolymorphicSlots is incorporated into Slotable. Remove references to it. github.com - Removed
rendered_component
rendered_component is removed. Use rendered_content instead. github.com - Removed
SlotsV1
SlotsV1 is removed. Use SlotsV2 instead. github.com
And 30 more in this version. Sign up to see every change
view_component 2.0.0 breaking changes
- Removed
ActiveModel.Validations
Components no longer support ActiveModel::Validations, and generators no longer add them. github.com - Removed
render
Components must be rendered with render(MyComponent.new); all other render syntaxes no longer work. github.com - Removed
to_component_class
Calls to to_component_class must be removed or rewritten. github.com - Renamed
The gem is now published as view_component, so the dependency name in Gemfile must change. github.com - Renamed
Code that references the old ActionView-based names must switch to the ViewComponent namespace. github.com - Behavior changed
Previews are now served at /rails/view_components instead of the previous path. github.com - Behavior changed
Generated components no longer contain validation code. github.com - Behavior changed
Under Rails 6.1 the gem no longer monkey patches Rails, so code relying on those patches may change. github.com - Configuration changed
All gem settings must be set under config.view_component. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.