tailwindcss 3.4.10 → 3.4.12
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.
- package/CHANGELOG.md +15 -1
- package/lib/lib/expandTailwindAtRules.js +2 -2
- package/lib/lib/resolveDefaultsAtRules.js +13 -15
- package/lib/util/dataTypes.js +2 -1
- package/package.json +1 -1
- package/src/lib/expandTailwindAtRules.js +1 -1
- package/src/lib/resolveDefaultsAtRules.js +11 -13
- package/src/util/dataTypes.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
- Nothing yet!
|
|
11
11
|
|
|
12
|
+
## [3.4.12] - 2024-09-17
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Ensure using `@apply` with utilities that use `@defaults` works with rules defined in the base layer when using `optimizeUniversalDefaults` ([#14427](https://github.com/tailwindlabs/tailwindcss/pull/14427))
|
|
17
|
+
|
|
18
|
+
## [3.4.11] - 2024-09-11
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Allow `anchor-size(…)` in arbitrary values ([#14393](https://github.com/tailwindlabs/tailwindcss/pull/14393))
|
|
23
|
+
|
|
12
24
|
## [3.4.10] - 2024-08-13
|
|
13
25
|
|
|
14
26
|
### Fixed
|
|
@@ -2431,7 +2443,9 @@ No release notes
|
|
|
2431
2443
|
|
|
2432
2444
|
- Everything!
|
|
2433
2445
|
|
|
2434
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.
|
|
2446
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.12...HEAD
|
|
2447
|
+
[3.4.12]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.11...v3.4.12
|
|
2448
|
+
[3.4.11]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.10...v3.4.11
|
|
2435
2449
|
[3.4.10]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.9...v3.4.10
|
|
2436
2450
|
[3.4.9]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.8...v3.4.9
|
|
2437
2451
|
[3.4.8]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.7...v3.4.8
|
|
@@ -203,8 +203,8 @@ function expandTailwindAtRules(context) {
|
|
|
203
203
|
// Replace any Tailwind directives with generated CSS
|
|
204
204
|
if (layerNodes.base) {
|
|
205
205
|
layerNodes.base.before((0, _cloneNodes.default)([
|
|
206
|
-
...
|
|
207
|
-
...
|
|
206
|
+
...defaultNodes,
|
|
207
|
+
...baseNodes
|
|
208
208
|
], layerNodes.base.source, {
|
|
209
209
|
layer: "base"
|
|
210
210
|
}));
|
|
@@ -120,21 +120,19 @@ function resolveDefaultsAtRules({ tailwindConfig }) {
|
|
|
120
120
|
selectors.add(selector);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
if (
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
universal.before(universalRule);
|
|
137
|
-
}
|
|
123
|
+
if (selectorGroups.size === 0) {
|
|
124
|
+
universal.remove();
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
for (let [, selectors] of selectorGroups){
|
|
128
|
+
let universalRule = _postcss.default.rule({
|
|
129
|
+
source: universal.source
|
|
130
|
+
});
|
|
131
|
+
universalRule.selectors = [
|
|
132
|
+
...selectors
|
|
133
|
+
];
|
|
134
|
+
universalRule.append(universal.nodes.map((node)=>node.clone()));
|
|
135
|
+
universal.before(universalRule);
|
|
138
136
|
}
|
|
139
137
|
universal.remove();
|
|
140
138
|
}
|
package/lib/util/dataTypes.js
CHANGED
|
@@ -174,7 +174,8 @@ function normalizeAttributeSelectors(value) {
|
|
|
174
174
|
"conic-gradient",
|
|
175
175
|
"repeating-radial-gradient",
|
|
176
176
|
"repeating-linear-gradient",
|
|
177
|
-
"repeating-conic-gradient"
|
|
177
|
+
"repeating-conic-gradient",
|
|
178
|
+
"anchor-size"
|
|
178
179
|
];
|
|
179
180
|
return value.replace(/(calc|min|max|clamp)\(.+\)/g, (match)=>{
|
|
180
181
|
let result = "";
|
package/package.json
CHANGED
|
@@ -192,7 +192,7 @@ export default function expandTailwindAtRules(context) {
|
|
|
192
192
|
|
|
193
193
|
if (layerNodes.base) {
|
|
194
194
|
layerNodes.base.before(
|
|
195
|
-
cloneNodes([...
|
|
195
|
+
cloneNodes([...defaultNodes, ...baseNodes], layerNodes.base.source, {
|
|
196
196
|
layer: 'base',
|
|
197
197
|
})
|
|
198
198
|
)
|
|
@@ -118,22 +118,20 @@ export default function resolveDefaultsAtRules({ tailwindConfig }) {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
if (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
121
|
+
if (selectorGroups.size === 0) {
|
|
122
|
+
universal.remove()
|
|
123
|
+
continue
|
|
124
|
+
}
|
|
126
125
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
for (let [, selectors] of selectorGroups) {
|
|
127
|
+
let universalRule = postcss.rule({
|
|
128
|
+
source: universal.source,
|
|
129
|
+
})
|
|
131
130
|
|
|
132
|
-
|
|
131
|
+
universalRule.selectors = [...selectors]
|
|
133
132
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
133
|
+
universalRule.append(universal.nodes.map((node) => node.clone()))
|
|
134
|
+
universal.before(universalRule)
|
|
137
135
|
}
|
|
138
136
|
|
|
139
137
|
universal.remove()
|
package/src/util/dataTypes.js
CHANGED