postcss 8.2.2 → 8.2.3
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 +3 -0
- package/lib/css-syntax-error.d.ts +1 -1
- package/lib/fromJSON.js +2 -0
- package/lib/node.js +3 -3
- package/lib/postcss.d.ts +1 -0
- package/lib/processor.js +1 -1
- package/lib/root.d.ts +0 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
This project adheres to [Semantic Versioning](https://semver.org/).
|
3
3
|
|
4
|
+
## 8.2.3
|
5
|
+
* FIx `JSON.stringify(Node[])` support (by Niklas Mischkulnig).
|
6
|
+
|
4
7
|
## 8.2.2
|
5
8
|
* Fixed CSS-in-JS support (by James Garbutt).
|
6
9
|
* Fixed plugin types (by Ludovico Fischer).
|
package/lib/fromJSON.js
CHANGED
package/lib/node.js
CHANGED
@@ -166,7 +166,7 @@ class Node {
|
|
166
166
|
if (!keepBetween) delete this.raws.between
|
167
167
|
}
|
168
168
|
|
169
|
-
toJSON (inputs) {
|
169
|
+
toJSON (_, inputs) {
|
170
170
|
let fixed = {}
|
171
171
|
let emitInputs = inputs == null
|
172
172
|
inputs = inputs || new Map()
|
@@ -183,13 +183,13 @@ class Node {
|
|
183
183
|
if (Array.isArray(value)) {
|
184
184
|
fixed[name] = value.map(i => {
|
185
185
|
if (typeof i === 'object' && i.toJSON) {
|
186
|
-
return i.toJSON(inputs)
|
186
|
+
return i.toJSON(null, inputs)
|
187
187
|
} else {
|
188
188
|
return i
|
189
189
|
}
|
190
190
|
})
|
191
191
|
} else if (typeof value === 'object' && value.toJSON) {
|
192
|
-
fixed[name] = value.toJSON(inputs)
|
192
|
+
fixed[name] = value.toJSON(null, inputs)
|
193
193
|
} else if (name === 'source') {
|
194
194
|
let inputId = inputs.get(value.input)
|
195
195
|
if (inputId == null) {
|
package/lib/postcss.d.ts
CHANGED
package/lib/processor.js
CHANGED
package/lib/root.d.ts
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
import Container, { ContainerProps } from './container.js'
|
2
2
|
import { ProcessOptions } from './postcss.js'
|
3
|
-
import { ChildNode } from './node.js'
|
4
|
-
import Declaration from './declaration.js'
|
5
|
-
import Comment from './comment.js'
|
6
|
-
import AtRule from './at-rule.js'
|
7
3
|
import Result from './result.js'
|
8
|
-
import Rule from './rule.js'
|
9
4
|
|
10
5
|
interface RootRaws {
|
11
6
|
/**
|