zaniah 0.12.1 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2880a0bf76786c774939df0c5d8c02cc287789607221c6a1739d71b50fcc2248
4
- data.tar.gz: f2ccf99f464295d8e7af77e61a0b38911f133728b979f868b4ede8ce2f4a5fdd
3
+ metadata.gz: 386e75cb5db3d2027ed3c94ca7bbb3df1d1f7c1980df89bf108456da24993255
4
+ data.tar.gz: 7f546b6bda16e84eccd36310ff8bc1f065bead904ad8cd68c5ef26a45b6ef913
5
5
  SHA512:
6
- metadata.gz: e1a950ab9299a1a0121469d98310c945b7dbefb611b87f286c28d769fbbcdb3d14fb3cc20d12c135b5620071cbcc1ac75dc3ac083bc4c6c4978558d1fd75fb36
7
- data.tar.gz: d31dd8cd5722a4bccccdc73f54e0cff07770d1094fe67a5d3ef000f097b950228f8b6a9f9ac05b0adc380d61a393c82ef24b66ff3810ffda3b8fdd8e3a904c8c
6
+ metadata.gz: 1e8b40e41c9f23d9d954e83fa78e8929cddbbc1e651244a409c30c9cfb14943821aaaf096b41febeba568e912761cbf2da18f768efc4c5c83642d6fb74a223bf
7
+ data.tar.gz: adc23e2da904fff7f30520676dcf961f303f6295d3bb914fd994c928b97ef6091ce05981f85d4b8587f1048ff2fc0c13fb91f4739ff3fbc6d3d1821a8e049b4e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.12.3 — 2026-10-02
4
+
5
+ - Improve redraw responsiveness in views with many styled controls.
6
+
7
+ ## 0.12.2 — 2026-10-02
8
+
9
+ - Reduce redraw allocations to improve rendering responsiveness.
10
+
3
11
  ## 0.12.1 — 2026-10-02
4
12
 
5
13
  - Prevent obsolete focus controls from accumulating across redraws, reducing memory use and keeping keyboard navigation on current controls.
@@ -27,8 +27,7 @@ module Zaniah
27
27
  end
28
28
 
29
29
  def style(**properties)
30
- @style = @style.merge(**properties)
31
- @style_set.merge(**properties)
30
+ @style = @style_set.merge(**properties).base
32
31
  self
33
32
  end
34
33
 
@@ -22,7 +22,11 @@ module Zaniah
22
22
 
23
23
  def initialize(**properties) = @values = DEFAULTS.merge(properties).freeze
24
24
  def [](name) = @values[name]
25
- def merge(**properties) = Style.new(**@values.merge(properties))
25
+ def merge(**properties)
26
+ style = Style.allocate
27
+ style.instance_variable_set(:@values, @values.merge(properties).freeze)
28
+ style
29
+ end
26
30
  def to_h = @values
27
31
 
28
32
  def inherit(parent)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zaniah
4
- VERSION = "0.12.1"
4
+ VERSION = "0.12.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zaniah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yudai Takada