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
@@ -41,11 +41,10 @@ Please report any issues at [https://github.com/ViewComponent/view_component/iss
41
41
42
42
### Breaking changes (dev/test)
43
43
44
-
*Rename`config.generate.component_parent_class` to `config.generate.parent_class`.
45
-
*Remove `config.test_controller` in favor of `vc_test_controller_class` test helper method.
46
-
*`config.component_parent_class` is now `config.generate.component_parent_class`, moving the generator-specific option to the generator configuration namespace.
44
+
*Remove`config.view_component.test_controller` in favor of `vc_test_controller_class` test helper method.
45
+
*`config.view_component.component_parent_class` is now `config.view_component.generate.parent_class`, moving the generator-specific option to the generator configuration namespace.
46
+
*`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.
47
47
* Move previews-related configuration (`enabled`, `route`, `paths`, `default_layout`, `controller`) to under `previews` namespace.
48
-
*`config.view_component_path` is now `config.generate.path`, as components have long since been able to exist in any directory.
49
48
*`--inline` generator option now generates inline template. Use `--call` to generate `#call` method.
50
49
* Remove broken integration with `rails stats` that ignored components outside of `app/components`.
51
50
* Remove `preview_source` functionality. Consider using [Lookbook](https://lookbook.build/) instead.
@@ -70,7 +69,7 @@ Please report any issues at [https://github.com/ViewComponent/view_component/iss
70
69
### Bug fixes
71
70
72
71
* Fix bug where virtual path wasn't reset, breaking translations outside of components.
73
-
* Fix bug where `config.previews.enabled` didn't function properly in production environments.
72
+
* Fix bug where `config.view_component.previews.enabled` didn't function properly in production environments.
74
73
* Fix bug in `SlotableDefault` where default couldn't be overridden when content was passed as a block.
75
74
* Fix bug where request-aware helpers didn't work outside of the request context.
76
75
*`ViewComponentsSystemTestController` shouldn't be useable outside of test environment
@@ -85,7 +84,7 @@ Please report any issues at [https://github.com/ViewComponent/view_component/iss
85
84
* Update documentation on performance to reflect more representative benchmark showing 2-3x speed increase over partials.
86
85
* Add documentation note about instrumentation negatively affecting performance.
87
86
* Remove unnecessary ENABLE_RELOADING test suite flag.
88
-
*`config.previews.default_layout` should default to nil.
87
+
*`config.view_component.previews.default_layout` should default to nil.
89
88
* Add test coverage for uncovered code.
90
89
* Test against `turbo-rails``v2` and `rspec-rails``v7`.
0 commit comments