postcss 8.4.13 → 8.4.14
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.
Potentially problematic release.
This version of postcss might be problematic. Click here for more details.
- package/lib/postcss.js +15 -13
- package/lib/processor.js +1 -1
- package/package.json +2 -2
package/lib/postcss.js
CHANGED
@@ -27,25 +27,27 @@ function postcss(...plugins) {
|
|
27
27
|
}
|
28
28
|
|
29
29
|
postcss.plugin = function plugin(name, initializer) {
|
30
|
-
|
31
|
-
|
30
|
+
let warningPrinted = false
|
31
|
+
function creator(...args) {
|
32
32
|
// eslint-disable-next-line no-console
|
33
|
-
console.warn
|
34
|
-
|
35
|
-
': postcss.plugin was deprecated. Migration guide:\n' +
|
36
|
-
'https://evilmartians.com/chronicles/postcss-8-plugin-migration'
|
37
|
-
)
|
38
|
-
if (process.env.LANG && process.env.LANG.startsWith('cn')) {
|
39
|
-
/* c8 ignore next 7 */
|
33
|
+
if (console && console.warn && !warningPrinted) {
|
34
|
+
warningPrinted = true
|
40
35
|
// eslint-disable-next-line no-console
|
41
36
|
console.warn(
|
42
37
|
name +
|
43
|
-
':
|
44
|
-
'https://
|
38
|
+
': postcss.plugin was deprecated. Migration guide:\n' +
|
39
|
+
'https://evilmartians.com/chronicles/postcss-8-plugin-migration'
|
45
40
|
)
|
41
|
+
if (process.env.LANG && process.env.LANG.startsWith('cn')) {
|
42
|
+
/* c8 ignore next 7 */
|
43
|
+
// eslint-disable-next-line no-console
|
44
|
+
console.warn(
|
45
|
+
name +
|
46
|
+
': 里面 postcss.plugin 被弃用. 迁移指南:\n' +
|
47
|
+
'https://www.w3ctech.com/topic/2226'
|
48
|
+
)
|
49
|
+
}
|
46
50
|
}
|
47
|
-
}
|
48
|
-
function creator(...args) {
|
49
51
|
let transformer = initializer(...args)
|
50
52
|
transformer.postcssPlugin = name
|
51
53
|
transformer.postcssVersion = new Processor().version
|
package/lib/processor.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "postcss",
|
3
|
-
"version": "8.4.
|
3
|
+
"version": "8.4.14",
|
4
4
|
"description": "Tool for transforming styles with JS plugins",
|
5
5
|
"engines": {
|
6
6
|
"node": "^10 || ^12 || >=14"
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"url": "https://github.com/postcss/postcss/issues"
|
72
72
|
},
|
73
73
|
"dependencies": {
|
74
|
-
"nanoid": "^3.3.
|
74
|
+
"nanoid": "^3.3.4",
|
75
75
|
"picocolors": "^1.0.0",
|
76
76
|
"source-map-js": "^1.0.2"
|
77
77
|
},
|