tailwindcss 3.0.10 → 3.0.11
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
CHANGED
|
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
- Nothing yet!
|
|
11
11
|
|
|
12
|
+
## [3.0.11] - 2022-01-05
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Preserve case of css variables added by plugins ([#6888](https://github.com/tailwindlabs/tailwindcss/pull/6888))
|
|
17
|
+
- Ignore content files that don't exist ([#6901](https://github.com/tailwindlabs/tailwindcss/pull/6901))
|
|
18
|
+
- Revert apply defaults in isolation ([9fdc391](https://github.com/tailwindlabs/tailwindcss/commit/9fdc391d4ff93e7e350f5ce439060176b1f0162f))
|
|
19
|
+
|
|
12
20
|
## [3.0.10] - 2022-01-04
|
|
13
21
|
|
|
14
22
|
### Fixed
|
|
@@ -1771,7 +1779,8 @@ No release notes
|
|
|
1771
1779
|
|
|
1772
1780
|
- Everything!
|
|
1773
1781
|
|
|
1774
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.
|
|
1782
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.11...HEAD
|
|
1783
|
+
[3.0.11]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.10...v3.0.11
|
|
1775
1784
|
[3.0.10]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.9...v3.0.10
|
|
1776
1785
|
[3.0.9]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.8...v3.0.9
|
|
1777
1786
|
[3.0.8]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.7...v3.0.8
|
|
@@ -143,7 +143,7 @@ function expandTailwindAtRules(context) {
|
|
|
143
143
|
utilities: null,
|
|
144
144
|
variants: null
|
|
145
145
|
};
|
|
146
|
-
let hasApply = false
|
|
146
|
+
// let hasApply = false
|
|
147
147
|
root.walkAtRules((rule)=>{
|
|
148
148
|
// Make sure this file contains Tailwind directives. If not, we can save
|
|
149
149
|
// a lot of work and bail early. Also we don't have to register our touch
|
|
@@ -154,15 +154,15 @@ function expandTailwindAtRules(context) {
|
|
|
154
154
|
layerNodes[rule.params] = rule;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
157
|
+
// We also want to check for @apply because the user can
|
|
158
|
+
// apply classes in an isolated environment like CSS
|
|
159
|
+
// modules and we still need to inject defaults
|
|
160
|
+
// if (rule.name === 'apply') {
|
|
161
|
+
// hasApply = true
|
|
162
|
+
// }
|
|
163
163
|
});
|
|
164
164
|
if (Object.values(layerNodes).every((n)=>n === null
|
|
165
|
-
)
|
|
165
|
+
)) {
|
|
166
166
|
return root;
|
|
167
167
|
}
|
|
168
168
|
// ---
|
|
@@ -463,11 +463,17 @@ function getFileModifiedMap(context) {
|
|
|
463
463
|
function trackModified(files, fileModifiedMap) {
|
|
464
464
|
let changed = false;
|
|
465
465
|
for (let file of files){
|
|
466
|
+
var ref;
|
|
466
467
|
if (!file) continue;
|
|
467
468
|
let parsed = _url.default.parse(file);
|
|
468
469
|
let pathname = parsed.hash ? parsed.href.replace(parsed.hash, '') : parsed.href;
|
|
469
470
|
pathname = parsed.search ? pathname.replace(parsed.search, '') : pathname;
|
|
470
|
-
let newModified = _fs.default.statSync(decodeURIComponent(pathname)
|
|
471
|
+
let newModified = (ref = _fs.default.statSync(decodeURIComponent(pathname), {
|
|
472
|
+
throwIfNoEntry: false
|
|
473
|
+
})) === null || ref === void 0 ? void 0 : ref.mtimeMs;
|
|
474
|
+
if (!newModified) {
|
|
475
|
+
continue;
|
|
476
|
+
}
|
|
471
477
|
if (!fileModifiedMap.has(file) || newModified > fileModifiedMap.get(file)) {
|
|
472
478
|
changed = true;
|
|
473
479
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"is-glob": "^4.0.3",
|
|
80
80
|
"normalize-path": "^3.0.0",
|
|
81
81
|
"object-hash": "^2.2.0",
|
|
82
|
-
"postcss-js": "^
|
|
82
|
+
"postcss-js": "^4.0.0",
|
|
83
83
|
"postcss-load-config": "^3.1.0",
|
|
84
84
|
"postcss-nested": "5.0.6",
|
|
85
85
|
"postcss-selector-parser": "^6.0.7",
|
|
@@ -140,7 +140,7 @@ export default function expandTailwindAtRules(context) {
|
|
|
140
140
|
variants: null,
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
let hasApply = false
|
|
143
|
+
// let hasApply = false
|
|
144
144
|
|
|
145
145
|
root.walkAtRules((rule) => {
|
|
146
146
|
// Make sure this file contains Tailwind directives. If not, we can save
|
|
@@ -156,12 +156,12 @@ export default function expandTailwindAtRules(context) {
|
|
|
156
156
|
// We also want to check for @apply because the user can
|
|
157
157
|
// apply classes in an isolated environment like CSS
|
|
158
158
|
// modules and we still need to inject defaults
|
|
159
|
-
if (rule.name === 'apply') {
|
|
160
|
-
|
|
161
|
-
}
|
|
159
|
+
// if (rule.name === 'apply') {
|
|
160
|
+
// hasApply = true
|
|
161
|
+
// }
|
|
162
162
|
})
|
|
163
163
|
|
|
164
|
-
if (Object.values(layerNodes).every((n) => n === null)
|
|
164
|
+
if (Object.values(layerNodes).every((n) => n === null)) {
|
|
165
165
|
return root
|
|
166
166
|
}
|
|
167
167
|
|
|
@@ -435,7 +435,14 @@ function trackModified(files, fileModifiedMap) {
|
|
|
435
435
|
let parsed = url.parse(file)
|
|
436
436
|
let pathname = parsed.hash ? parsed.href.replace(parsed.hash, '') : parsed.href
|
|
437
437
|
pathname = parsed.search ? pathname.replace(parsed.search, '') : pathname
|
|
438
|
-
let newModified = fs.statSync(decodeURIComponent(pathname))
|
|
438
|
+
let newModified = fs.statSync(decodeURIComponent(pathname), { throwIfNoEntry: false })?.mtimeMs
|
|
439
|
+
if (!newModified) {
|
|
440
|
+
// It could happen that a file is passed in that doesn't exist. E.g.:
|
|
441
|
+
// postcss-cli will provide you a fake path when reading from stdin. This
|
|
442
|
+
// path then looks like /path-to-your-project/stdin In that case we just
|
|
443
|
+
// want to ignore it and don't track changes at all.
|
|
444
|
+
continue
|
|
445
|
+
}
|
|
439
446
|
|
|
440
447
|
if (!fileModifiedMap.has(file) || newModified > fileModifiedMap.get(file)) {
|
|
441
448
|
changed = true
|