Skip to content

Commit 545ea79

Browse files
committed
release 4.2.0
1 parent 2b844da commit 545ea79

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
view_component (4.1.1)
4+
view_component (4.2.0)
55
actionview (>= 7.1.0)
66
activesupport (>= 7.1.0)
77
concurrent-ruby (~> 1)

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nav_order: 6
1010

1111
## main
1212

13+
## 4.2.0
14+
1315
* Fix translation scope resolution in deeply nested component blocks (3+ levels). Translations called inside deeply nested slot blocks using `renders_many`/`renders_one` were incorrectly resolving to an intermediate component's scope instead of the partial's scope where the block was defined. The fix captures the virtual path at block definition time and restores it during block execution, ensuring translations always resolve relative to where the block was created regardless of nesting depth.
1416

1517
*Nathaniel Watts*

docs/_data/library.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 4.1.1
1+
version: 4.2.0

lib/view_component/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
module ViewComponent
44
module VERSION
55
MAJOR = 4
6-
MINOR = 1
7-
PATCH = 1
6+
MINOR = 2
7+
PATCH = 0
88
PRE = nil
99

1010
STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")

0 commit comments

Comments
 (0)