tailwind_merge 1.3.2 → 1.3.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: c68866007d409f90232114a3954cc9df8b852bf8cabaf719c778cb5074ff4ee9
4
- data.tar.gz: d8c11eccbfb6fccfc78d03f7d7e5c0aba582b8cae3d37da4978a4d3b3ca8186f
3
+ metadata.gz: 783e008ab85c57a6d835bcd2c2aeb0bf1c3ee97706a42673dc89a798534295a1
4
+ data.tar.gz: 48641de285e39bee44cde99ecc9977edea9da0541358d308cf6d28e53bb5ab48
5
5
  SHA512:
6
- metadata.gz: e2a806dee8941c3a6e203cc57c7c72245bdd6402b08859e6575fb7dc3626a56a16caf78252c363adc31e241ef0b796e5eab97f87392838ba7361862695e5da61
7
- data.tar.gz: 00154a1c2915432a42eb6cd2e26fc23b0159a1e78e1e5fbaa86bc16c9db3130527f1d278d6a6207c36f1765fd736c78656214a07ec25ef0bbb026cf550aa7617
6
+ metadata.gz: e1b4bbf12cc96c9480ebe0313569a1938ef210b8df82e42253e7edba1c9657923bc03eb874152dac5a910b2f3f7d8ca5731cc01826ab3373097b54652a89d5e9
7
+ data.tar.gz: 27d39e9beaad0731d1a64cdcc0d0831c9f29b5dd36c949e0a667fc6de4ca3759ff0202875a94c1be5ae1955c1da714f2c2ee1dab2f62c961ddb142ad02ae1b4e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [v1.3.3] - 31-01-2026
2
+ ## What's Changed
3
+ * Update minitest requirement from ~> 5.6 to ~> 6.0 in the bundler-dependencies group by @dependabot[bot] in https://github.com/gjtorikian/tailwind_merge/pull/70
4
+ * prevent arbitrary font-family and font-weight from merging by @gjtorikian in https://github.com/gjtorikian/tailwind_merge/pull/71
5
+
6
+
7
+ **Full Changelog**: https://github.com/gjtorikian/tailwind_merge/compare/v1.3.2...v1.3.3
1
8
  # [v1.3.2] - 26-12-2025
2
9
  ## What's Changed
3
10
  * Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/gjtorikian/tailwind_merge/pull/64
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gemspec
7
7
 
8
8
  gem "rake", "~> 13.0"
9
9
 
10
- gem "minitest", "~> 5.0"
10
+ gem "minitest", "~> 6.0"
11
11
 
12
12
  gem "rubocop", "~> 1.21"
13
13
 
@@ -769,8 +769,8 @@ module TailwindMerge
769
769
  {
770
770
  "font" => [
771
771
  THEME_FONT_WEIGHT,
772
- IS_ARBITRARY_VARIABLE,
773
- IS_ARBITRARY_NUMBER,
772
+ IS_ARBITRARY_VARIABLE_WEIGHT,
773
+ IS_ARBITRARY_WEIGHT,
774
774
  ],
775
775
  },
776
776
  ],
@@ -799,7 +799,7 @@ module TailwindMerge
799
799
  # Font Family
800
800
  # @see https://tailwindcss.com/docs/font-family
801
801
  ##
802
- "font-family" => [{ "font" => [IS_ARBITRARY_VARIABLE_FAMILY_NAME, IS_ARBITRARY_VALUE, THEME_FONT] }],
802
+ "font-family" => [{ "font" => [IS_ARBITRARY_VARIABLE_FAMILY_NAME, IS_ARBITRARY_FAMILY_NAME, THEME_FONT] }],
803
803
  ##
804
804
  # Font Variant Numeric
805
805
  # @see https://tailwindcss.com/docs/font-variant-numeric
@@ -102,6 +102,14 @@ module TailwindMerge
102
102
  arbitrary_value?(value, IS_LABEL_NUMBER, IS_NUMBER)
103
103
  }
104
104
 
105
+ IS_ARBITRARY_WEIGHT = ->(value) {
106
+ arbitrary_value?(value, IS_LABEL_WEIGHT, IS_ANY)
107
+ }
108
+
109
+ IS_ARBITRARY_FAMILY_NAME = ->(value) {
110
+ arbitrary_value?(value, IS_LABEL_FAMILY_NAME, IS_NEVER)
111
+ }
112
+
105
113
  IS_ARBITRARY_POSITION = ->(value) {
106
114
  arbitrary_value?(value, IS_LABEL_POSITION, IS_NEVER)
107
115
  }
@@ -142,6 +150,10 @@ module TailwindMerge
142
150
  arbitrary_variable?(value, IS_LABEL_SHADOW, should_match_no_label: true)
143
151
  }
144
152
 
153
+ IS_ARBITRARY_VARIABLE_WEIGHT = ->(value) {
154
+ arbitrary_variable?(value, IS_LABEL_WEIGHT, should_match_no_label: true)
155
+ }
156
+
145
157
  ############
146
158
  # Labels
147
159
  ############
@@ -170,6 +182,10 @@ module TailwindMerge
170
182
  label == "family-name"
171
183
  }
172
184
 
185
+ IS_LABEL_WEIGHT = ->(label) {
186
+ label == "number" || label == "weight"
187
+ }
188
+
173
189
  IS_LABEL_SHADOW = ->(label) {
174
190
  label == "shadow"
175
191
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TailwindMerge
4
- VERSION = "1.3.2"
4
+ VERSION = "1.3.3"
5
5
  end
@@ -22,6 +22,8 @@ Gem::Specification.new do |spec|
22
22
  "rubygems_mfa_required" => "true",
23
23
  }
24
24
 
25
+ spec.required_ruby_version = [">= 3.2"]
26
+
25
27
  # Specify which files should be added to the gem when it is released.
26
28
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
29
  spec.files = Dir.chdir(__dir__) do
@@ -35,6 +37,6 @@ Gem::Specification.new do |spec|
35
37
 
36
38
  spec.add_dependency("sin_lru_redux", "~> 2.5")
37
39
 
38
- spec.add_development_dependency("minitest", "~> 5.6")
40
+ spec.add_development_dependency("minitest", "~> 6.0")
39
41
  spec.add_development_dependency("minitest-focus", "~> 1.1")
40
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailwind_merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.6'
32
+ version: '6.0'
33
33
  type: :development
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '5.6'
39
+ version: '6.0'
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: minitest-focus
42
42
  requirement: !ruby/object:Gem::Requirement
@@ -73,15 +73,15 @@ files:
73
73
  - lib/tailwind_merge/version.rb
74
74
  - script/test
75
75
  - tailwind_merge.gemspec
76
- homepage: https://github.com/gjtorikian/tailwind_merge/tree/v1.3.2
76
+ homepage: https://github.com/gjtorikian/tailwind_merge/tree/v1.3.3
77
77
  licenses:
78
78
  - MIT
79
79
  metadata:
80
- homepage_uri: https://github.com/gjtorikian/tailwind_merge/tree/v1.3.2
81
- source_code_uri: https://github.com/gjtorikian/tailwind_merge/tree/v1.3.2
82
- changelog_uri: https://github.com/gjtorikian/tailwind_merge/blob/v1.3.2/CHANGELOG.md
80
+ homepage_uri: https://github.com/gjtorikian/tailwind_merge/tree/v1.3.3
81
+ source_code_uri: https://github.com/gjtorikian/tailwind_merge/tree/v1.3.3
82
+ changelog_uri: https://github.com/gjtorikian/tailwind_merge/blob/v1.3.3/CHANGELOG.md
83
83
  bug_tracker_uri: https://github.com/gjtorikian/tailwind_merge/issues
84
- documentation_uri: https://rubydoc.info/gems/tailwind_merge/1.3.2
84
+ documentation_uri: https://rubydoc.info/gems/tailwind_merge/1.3.3
85
85
  funding_uri: https://github.com/sponsors/gjtorikian
86
86
  rubygems_mfa_required: 'true'
87
87
  rdoc_options: []
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: '0'
94
+ version: '3.2'
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="