postcss 8.2.3 → 8.2.4
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/CHANGELOG.md +5 -1
- package/README.md +1 -1
- package/lib/postcss.js +5 -3
- package/lib/processor.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
This project adheres to [Semantic Versioning](https://semver.org/).
|
3
3
|
|
4
|
+
## 8.2.4
|
5
|
+
* Added plugin name to `postcss.plugin()` warning (by Tom Williams).
|
6
|
+
* Fixed docs (by Bill Columbia).
|
7
|
+
|
4
8
|
## 8.2.3
|
5
|
-
*
|
9
|
+
* Fixed `JSON.stringify(Node[])` support (by Niklas Mischkulnig).
|
6
10
|
|
7
11
|
## 8.2.2
|
8
12
|
* Fixed CSS-in-JS support (by James Garbutt).
|
package/README.md
CHANGED
@@ -416,7 +416,7 @@ fs.readFile('src/app.css', (err, css) => {
|
|
416
416
|
.then(result => {
|
417
417
|
fs.writeFile('dest/app.css', result.css, () => true)
|
418
418
|
if ( result.map ) {
|
419
|
-
fs.writeFile('dest/app.css.map', result.map, () => true)
|
419
|
+
fs.writeFile('dest/app.css.map', result.map.toString(), () => true)
|
420
420
|
}
|
421
421
|
})
|
422
422
|
})
|
package/lib/postcss.js
CHANGED
@@ -22,19 +22,21 @@ function postcss (...plugins) {
|
|
22
22
|
if (plugins.length === 1 && Array.isArray(plugins[0])) {
|
23
23
|
plugins = plugins[0]
|
24
24
|
}
|
25
|
-
return new Processor(plugins
|
25
|
+
return new Processor(plugins)
|
26
26
|
}
|
27
27
|
|
28
28
|
postcss.plugin = function plugin (name, initializer) {
|
29
29
|
if (console && console.warn) {
|
30
30
|
console.warn(
|
31
|
-
|
31
|
+
name +
|
32
|
+
': postcss.plugin was deprecated. Migration guide:\n' +
|
32
33
|
'https://evilmartians.com/chronicles/postcss-8-plugin-migration'
|
33
34
|
)
|
34
35
|
if (process.env.LANG && process.env.LANG.startsWith('cn')) {
|
35
36
|
// istanbul ignore next
|
36
37
|
console.warn(
|
37
|
-
|
38
|
+
name +
|
39
|
+
': 里面 postcss.plugin 被弃用. 迁移指南:\n' +
|
38
40
|
'https://www.w3ctech.com/topic/2226'
|
39
41
|
)
|
40
42
|
}
|
package/lib/processor.js
CHANGED