Releases: postcss/postcss
Releases · postcss/postcss
8.2.6
- Fixed
Maximum call stack size exceeded
in Node#toJSON
.
- Fixed docs (by @inokawa).
8.2.5
- Fixed escaped characters handling in
list.split
(by @nex3).
8.2.3
- Fixed
JSON.stringify(Node[])
support (by @mischnic).
8.2.2
- Fixed CSS-in-JS support (by @43081j).
- Fixed plugin types (by @ludofischer).
- Fixed
Result#warn()
types.
8.2.1
- Fixed
Node#toJSON()
and postcss.fromJSON()
(by @mischnic).
8.2 “Prince Orobas”
PostCSS 8.2 added a new API to serialize and deserialize CSS AST to JSON.
import { parse, fromJSON } from 'postcss'
let root = parse('a{}', { from: 'input.css' })
let json = root.toJSON()
// save to file, send by network, etc
let root2 = fromJSON(json)
Thanks to @mischnic for his work.