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
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,18 @@ nav_order: 6
10
10
11
11
## main
12
12
13
+
## 4.0.1
14
+
13
15
* Setup Trusted Publishing to RubyGems to improve software supply chain safety.
14
16
15
17
*Hans Lemuet*
16
18
19
+
* Conditionally add the `ViewComponent::Base#format` method back for Rails 7.1 only.
20
+
* Compute and check lockfiles into source control.
21
+
* Constrain Rails versions in gemfiles to only allow the patch version to vary, eg. `~> 7.1.0` instead of `~> 7.1`.
22
+
23
+
*Cameron Dutro*
24
+
17
25
* Share the view context in tests to prevent out-of-order rendering issues for certain advanced use-cases, eg. testing instances of Rails' `FormBuilder`.
18
26
19
27
*Cameron Dutro*
@@ -45,11 +53,10 @@ Please report any issues at [https://github.com/ViewComponent/view_component/iss
45
53
46
54
### Breaking changes (dev/test)
47
55
48
-
*Rename`config.generate.component_parent_class` to `config.generate.parent_class`.
49
-
*Remove `config.test_controller` in favor of `vc_test_controller_class` test helper method.
50
-
*`config.component_parent_class` is now `config.generate.component_parent_class`, moving the generator-specific option to the generator configuration namespace.
56
+
*Remove`config.view_component.test_controller` in favor of `vc_test_controller_class` test helper method.
57
+
*`config.view_component.component_parent_class` is now `config.view_component.generate.parent_class`, moving the generator-specific option to the generator configuration namespace.
58
+
*`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.
51
59
* Move previews-related configuration (`enabled`, `route`, `paths`, `default_layout`, `controller`) to under `previews` namespace.
52
-
*`config.view_component_path` is now `config.generate.path`, as components have long since been able to exist in any directory.
53
60
*`--inline` generator option now generates inline template. Use `--call` to generate `#call` method.
54
61
* Remove broken integration with `rails stats` that ignored components outside of `app/components`.
55
62
* Remove `preview_source` functionality. Consider using [Lookbook](https://lookbook.build/) instead.
@@ -74,7 +81,7 @@ Please report any issues at [https://github.com/ViewComponent/view_component/iss
74
81
### Bug fixes
75
82
76
83
* Fix bug where virtual path wasn't reset, breaking translations outside of components.
77
-
* Fix bug where `config.previews.enabled` didn't function properly in production environments.
84
+
* Fix bug where `config.view_component.previews.enabled` didn't function properly in production environments.
78
85
* Fix bug in `SlotableDefault` where default couldn't be overridden when content was passed as a block.
79
86
* Fix bug where request-aware helpers didn't work outside of the request context.
80
87
*`ViewComponentsSystemTestController` shouldn't be useable outside of test environment
@@ -89,7 +96,7 @@ Please report any issues at [https://github.com/ViewComponent/view_component/iss
89
96
* Update documentation on performance to reflect more representative benchmark showing 2-3x speed increase over partials.
90
97
* Add documentation note about instrumentation negatively affecting performance.
91
98
* Remove unnecessary ENABLE_RELOADING test suite flag.
92
-
*`config.previews.default_layout` should default to nil.
99
+
*`config.view_component.previews.default_layout` should default to nil.
93
100
* Add test coverage for uncovered code.
94
101
* Test against `turbo-rails``v2` and `rspec-rails``v7`.
0 commit comments