You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CHANGELOG.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,11 +47,10 @@ Please report any issues at [https://github.com/ViewComponent/view_component/iss
47
47
48
48
### Breaking changes (dev/test)
49
49
50
-
*Rename`config.generate.component_parent_class` to `config.generate.parent_class`.
51
-
*Remove `config.test_controller` in favor of `vc_test_controller_class` test helper method.
52
-
*`config.component_parent_class` is now `config.generate.component_parent_class`, moving the generator-specific option to the generator configuration namespace.
50
+
*Remove`config.view_component.test_controller` in favor of `vc_test_controller_class` test helper method.
51
+
*`config.view_component.component_parent_class` is now `config.view_component.generate.parent_class`, moving the generator-specific option to the generator configuration namespace.
52
+
*`config.view_component.view_component_path` is now `config.view_component.generate.path`, as components have long since been able to exist in any directory.
53
53
* Move previews-related configuration (`enabled`, `route`, `paths`, `default_layout`, `controller`) to under `previews` namespace.
54
-
*`config.view_component_path` is now `config.generate.path`, as components have long since been able to exist in any directory.
55
54
*`--inline` generator option now generates inline template. Use `--call` to generate `#call` method.
56
55
* Remove broken integration with `rails stats` that ignored components outside of `app/components`.
57
56
* Remove `preview_source` functionality. Consider using [Lookbook](https://lookbook.build/) instead.
@@ -76,7 +75,7 @@ Please report any issues at [https://github.com/ViewComponent/view_component/iss
76
75
### Bug fixes
77
76
78
77
* Fix bug where virtual path wasn't reset, breaking translations outside of components.
79
-
* Fix bug where `config.previews.enabled` didn't function properly in production environments.
78
+
* Fix bug where `config.view_component.previews.enabled` didn't function properly in production environments.
80
79
* Fix bug in `SlotableDefault` where default couldn't be overridden when content was passed as a block.
81
80
* Fix bug where request-aware helpers didn't work outside of the request context.
82
81
*`ViewComponentsSystemTestController` shouldn't be useable outside of test environment
@@ -91,7 +90,7 @@ Please report any issues at [https://github.com/ViewComponent/view_component/iss
91
90
* Update documentation on performance to reflect more representative benchmark showing 2-3x speed increase over partials.
92
91
* Add documentation note about instrumentation negatively affecting performance.
93
92
* Remove unnecessary ENABLE_RELOADING test suite flag.
94
-
*`config.previews.default_layout` should default to nil.
93
+
*`config.view_component.previews.default_layout` should default to nil.
95
94
* Add test coverage for uncovered code.
96
95
* Test against `turbo-rails``v2` and `rspec-rails``v7`.
0 commit comments