tailwindcss 3.0.12 → 3.0.13
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 +12 -5
- package/lib/cli.js +8 -16
- package/lib/corePlugins.js +69 -138
- package/lib/featureFlags.js +1 -2
- package/lib/lib/expandTailwindAtRules.js +2 -4
- package/lib/lib/generateRules.js +1 -2
- package/lib/lib/partitionApplyAtRules.js +53 -0
- package/lib/lib/setupContextUtils.js +52 -118
- package/lib/processTailwindFeatures.js +2 -0
- package/lib/util/createPlugin.js +1 -2
- package/lib/util/createUtilityPlugin.js +4 -8
- package/lib/util/flattenColorPalette.js +1 -3
- package/lib/util/normalizeConfig.js +6 -12
- package/lib/util/normalizeScreens.js +2 -4
- package/lib/util/pluginUtils.js +5 -12
- package/lib/util/resolveConfig.js +9 -18
- package/lib/util/resolveConfigPath.js +1 -2
- package/lib/util/toColorValue.js +1 -2
- package/lib/util/transformThemeValue.js +4 -8
- package/package.json +5 -7
- package/peers/index.js +46 -45
- package/src/lib/partitionApplyAtRules.js +52 -0
- package/src/lib/setupContextUtils.js +5 -74
- package/src/processTailwindFeatures.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,12 @@ 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.13] - 2022-01-11
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Fix consecutive builds with at apply producing different CSS ([#6999](https://github.com/tailwindlabs/tailwindcss/pull/6999))
|
|
17
|
+
|
|
12
18
|
## [3.0.12] - 2022-01-07
|
|
13
19
|
|
|
14
20
|
### Fixed
|
|
@@ -17,10 +23,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
17
23
|
- Ensure we can apply classes that are grouped with non-class selectors ([#6922](https://github.com/tailwindlabs/tailwindcss/pull/6922))
|
|
18
24
|
- Improve standalone CLI compatibility on Linux by switching to the `linuxstatic` build target ([#6914](https://github.com/tailwindlabs/tailwindcss/pull/6914))
|
|
19
25
|
- Ensure `@apply` works consistently with or without `@layer` ([#6938](https://github.com/tailwindlabs/tailwindcss/pull/6938))
|
|
20
|
-
- Only emit defaults when using base layer ([#
|
|
21
|
-
- Emit plugin defaults regardless of usage ([#
|
|
22
|
-
- Move default border color back to preflight ([#
|
|
23
|
-
- Change `experimental.optimizeUniversalDefaults` to only work with `@tailwind base` ([#
|
|
26
|
+
- Only emit defaults when using base layer ([#6926](https://github.com/tailwindlabs/tailwindcss/pull/6926))
|
|
27
|
+
- Emit plugin defaults regardless of usage ([#6926](https://github.com/tailwindlabs/tailwindcss/pull/6926))
|
|
28
|
+
- Move default border color back to preflight ([#6926](https://github.com/tailwindlabs/tailwindcss/pull/6926))
|
|
29
|
+
- Change `experimental.optimizeUniversalDefaults` to only work with `@tailwind base` ([#6926](https://github.com/tailwindlabs/tailwindcss/pull/6926))
|
|
24
30
|
|
|
25
31
|
## [3.0.11] - 2022-01-05
|
|
26
32
|
|
|
@@ -1792,7 +1798,8 @@ No release notes
|
|
|
1792
1798
|
|
|
1793
1799
|
- Everything!
|
|
1794
1800
|
|
|
1795
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.
|
|
1801
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.13...HEAD
|
|
1802
|
+
[3.0.13]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.12...v3.0.13
|
|
1796
1803
|
[3.0.12]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.11...v3.0.12
|
|
1797
1804
|
[3.0.11]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.10...v3.0.11
|
|
1798
1805
|
[3.0.10]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.9...v3.0.10
|
package/lib/cli.js
CHANGED
|
@@ -89,8 +89,7 @@ function help({ message , usage , commands: commands1 , options }) {
|
|
|
89
89
|
}
|
|
90
90
|
// Render options
|
|
91
91
|
if (options) {
|
|
92
|
-
let groupedOptions = {
|
|
93
|
-
};
|
|
92
|
+
let groupedOptions = {};
|
|
94
93
|
for (let [key, value] of Object.entries(options)){
|
|
95
94
|
if (typeof value === 'object') {
|
|
96
95
|
groupedOptions[key] = {
|
|
@@ -370,13 +369,11 @@ async function build() {
|
|
|
370
369
|
let { plugins: configPlugins } = customPostCssPath ? await (async ()=>{
|
|
371
370
|
let file = _path.default.resolve(customPostCssPath);
|
|
372
371
|
// Implementation, see: https://unpkg.com/browse/postcss-load-config@3.0.1/src/index.js
|
|
373
|
-
let { config ={
|
|
374
|
-
} } = await (0, _cosmiconfig).cosmiconfig('postcss').load(file);
|
|
372
|
+
let { config ={} } = await (0, _cosmiconfig).cosmiconfig('postcss').load(file);
|
|
375
373
|
if (typeof config === 'function') {
|
|
376
374
|
config = config();
|
|
377
375
|
} else {
|
|
378
|
-
config = Object.assign({
|
|
379
|
-
}, config);
|
|
376
|
+
config = Object.assign({}, config);
|
|
380
377
|
}
|
|
381
378
|
if (!config.plugins) {
|
|
382
379
|
config.plugins = [];
|
|
@@ -402,8 +399,7 @@ async function build() {
|
|
|
402
399
|
];
|
|
403
400
|
}
|
|
404
401
|
function resolveConfig() {
|
|
405
|
-
let config = configPath ? require(configPath) : {
|
|
406
|
-
};
|
|
402
|
+
let config = configPath ? require(configPath) : {};
|
|
407
403
|
let resolvedConfig = (0, _resolveConfig).default(config);
|
|
408
404
|
if (args['--purge']) {
|
|
409
405
|
_log.default.warn('purge-flag-deprecated', [
|
|
@@ -482,8 +478,7 @@ async function build() {
|
|
|
482
478
|
// Try to load a local `autoprefixer` version first
|
|
483
479
|
try {
|
|
484
480
|
return require('autoprefixer');
|
|
485
|
-
} catch {
|
|
486
|
-
}
|
|
481
|
+
} catch {}
|
|
487
482
|
return (0, _indexJs).lazyAutoprefixer();
|
|
488
483
|
})(),
|
|
489
484
|
args['--minify'] && (()=>{
|
|
@@ -498,8 +493,7 @@ async function build() {
|
|
|
498
493
|
// Try to load a local `cssnano` version first
|
|
499
494
|
try {
|
|
500
495
|
return require('cssnano');
|
|
501
|
-
} catch {
|
|
502
|
-
}
|
|
496
|
+
} catch {}
|
|
503
497
|
return (0, _indexJs).lazyCssnano()(options);
|
|
504
498
|
})(),
|
|
505
499
|
].filter(Boolean);
|
|
@@ -575,8 +569,7 @@ async function build() {
|
|
|
575
569
|
// Try to load a local `autoprefixer` version first
|
|
576
570
|
try {
|
|
577
571
|
return require('autoprefixer');
|
|
578
|
-
} catch {
|
|
579
|
-
}
|
|
572
|
+
} catch {}
|
|
580
573
|
return (0, _indexJs).lazyAutoprefixer();
|
|
581
574
|
})(),
|
|
582
575
|
args['--minify'] && (()=>{
|
|
@@ -591,8 +584,7 @@ async function build() {
|
|
|
591
584
|
// Try to load a local `cssnano` version first
|
|
592
585
|
try {
|
|
593
586
|
return require('cssnano');
|
|
594
|
-
} catch {
|
|
595
|
-
}
|
|
587
|
+
} catch {}
|
|
596
588
|
return (0, _indexJs).lazyCssnano()(options);
|
|
597
589
|
})(),
|
|
598
590
|
].filter(Boolean);
|