tailwindcss 3.0.17 → 3.0.18
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,13 @@ 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.18] - 2022-01-28
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Fix `@apply` order regression (in `addComponents`, `addUtilities`, ...) ([#7232](https://github.com/tailwindlabs/tailwindcss/pull/7232))
|
|
17
|
+
- Quick fix for incorrect arbitrary properties when using URLs ([#7252](https://github.com/tailwindlabs/tailwindcss/pull/7252))
|
|
18
|
+
|
|
12
19
|
## [3.0.17] - 2022-01-26
|
|
13
20
|
|
|
14
21
|
### Fixed
|
|
@@ -1829,7 +1836,8 @@ No release notes
|
|
|
1829
1836
|
|
|
1830
1837
|
- Everything!
|
|
1831
1838
|
|
|
1832
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.
|
|
1839
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.18...HEAD
|
|
1840
|
+
[3.0.18]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.17...v3.0.18
|
|
1833
1841
|
[3.0.17]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.16...v3.0.17
|
|
1834
1842
|
[3.0.16]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.15...v3.0.16
|
|
1835
1843
|
[3.0.15]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.14...v3.0.15
|
package/lib/lib/generateRules.js
CHANGED
|
@@ -265,7 +265,8 @@ function parseRules(rule, cache, options = {}) {
|
|
|
265
265
|
}
|
|
266
266
|
const IS_VALID_PROPERTY_NAME = /^[a-z_-]/;
|
|
267
267
|
function isValidPropName(name) {
|
|
268
|
-
|
|
268
|
+
// TODO: properly fix this!
|
|
269
|
+
return IS_VALID_PROPERTY_NAME.test(name) && !name.startsWith('http');
|
|
269
270
|
}
|
|
270
271
|
function isParsableCssValue(property, value) {
|
|
271
272
|
try {
|
|
@@ -24,6 +24,8 @@ function processTailwindFeatures(setupContext) {
|
|
|
24
24
|
return function(root, result) {
|
|
25
25
|
let { tailwindDirectives , applyDirectives } = (0, _normalizeTailwindDirectives).default(root);
|
|
26
26
|
(0, _detectNesting).default()(root, result);
|
|
27
|
+
// Partition apply rules that are found in the css
|
|
28
|
+
// itself.
|
|
27
29
|
(0, _partitionApplyAtRules).default()(root, result);
|
|
28
30
|
let context = setupContext({
|
|
29
31
|
tailwindDirectives,
|
|
@@ -44,6 +46,9 @@ function processTailwindFeatures(setupContext) {
|
|
|
44
46
|
}
|
|
45
47
|
(0, _featureFlags).issueFlagNotices(context.tailwindConfig);
|
|
46
48
|
(0, _expandTailwindAtRules).default(context)(root, result);
|
|
49
|
+
// Partition apply rules that are generated by
|
|
50
|
+
// addComponents, addUtilities and so on.
|
|
51
|
+
(0, _partitionApplyAtRules).default()(root, result);
|
|
47
52
|
(0, _expandApplyAtRules).default(context)(root, result);
|
|
48
53
|
(0, _evaluateTailwindFunctions).default(context)(root, result);
|
|
49
54
|
(0, _substituteScreenAtRules).default(context)(root, result);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.18",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"postcss-js": "^4.0.0",
|
|
81
81
|
"postcss-load-config": "^3.1.0",
|
|
82
82
|
"postcss-nested": "5.0.6",
|
|
83
|
-
"postcss-selector-parser": "^6.0.
|
|
83
|
+
"postcss-selector-parser": "^6.0.9",
|
|
84
84
|
"postcss-value-parser": "^4.2.0",
|
|
85
85
|
"quick-lru": "^5.1.1",
|
|
86
86
|
"resolve": "^1.21.0"
|
package/src/lib/generateRules.js
CHANGED
|
@@ -262,7 +262,8 @@ function parseRules(rule, cache, options = {}) {
|
|
|
262
262
|
const IS_VALID_PROPERTY_NAME = /^[a-z_-]/
|
|
263
263
|
|
|
264
264
|
function isValidPropName(name) {
|
|
265
|
-
|
|
265
|
+
// TODO: properly fix this!
|
|
266
|
+
return IS_VALID_PROPERTY_NAME.test(name) && !name.startsWith('http')
|
|
266
267
|
}
|
|
267
268
|
|
|
268
269
|
function isParsableCssValue(property, value) {
|
|
@@ -16,6 +16,9 @@ export default function processTailwindFeatures(setupContext) {
|
|
|
16
16
|
let { tailwindDirectives, applyDirectives } = normalizeTailwindDirectives(root)
|
|
17
17
|
|
|
18
18
|
detectNesting()(root, result)
|
|
19
|
+
|
|
20
|
+
// Partition apply rules that are found in the css
|
|
21
|
+
// itself.
|
|
19
22
|
partitionApplyAtRules()(root, result)
|
|
20
23
|
|
|
21
24
|
let context = setupContext({
|
|
@@ -42,6 +45,9 @@ export default function processTailwindFeatures(setupContext) {
|
|
|
42
45
|
issueFlagNotices(context.tailwindConfig)
|
|
43
46
|
|
|
44
47
|
expandTailwindAtRules(context)(root, result)
|
|
48
|
+
// Partition apply rules that are generated by
|
|
49
|
+
// addComponents, addUtilities and so on.
|
|
50
|
+
partitionApplyAtRules()(root, result)
|
|
45
51
|
expandApplyAtRules(context)(root, result)
|
|
46
52
|
evaluateTailwindFunctions(context)(root, result)
|
|
47
53
|
substituteScreenAtRules(context)(root, result)
|