PostCSS v5.0 Release Notes
-
- ✂ Remove
safe
option. Move Safe Parser to separate project. Node#toString
does not includebefore
for root nodes.- ✂ Remove plugin returning
Root
API. - ✂ Remove Promise polyfill for node.js 0.10.
- 🗄 Deprecate
eachInside
,eachDecl
,eachRule
,eachAtRule
andeachComment
in favor ofwalk
,walkDecls
,walkRules
,walkAtRules
andwalkComments
(by Jed Mao). - 🚚 Deprecate
Container#remove
andNode#removeSelf
in favor ofContainer#removeChild
andNode#remove
(by Ben Briggs). - 🗄 Deprecate
Node#replace
in favor ofreplaceWith
(by Ben Briggs). - 🗄 Deprecate raw properties in favor of
Node#raws
object. - 💅 Deprecate
Node#style
in favor ofraw
. - 🗄 Deprecate
CssSyntaxError#generated
in favor ofinput
. - 💅 Deprecate
Node#cleanStyles
in favor ofcleanRaws
. - 🗄 Deprecate
Root#prevMap
in favor ofRoot.source.input.map
. - ➕ Add
syntax
,parser
andstringifier
options for Custom Syntaxes. - ➕ Add stringifier option to
Node#toString
. - ➕ Add
Result#content
alias for non-CSS syntaxes. - ➕ Add
plugin.process(css)
shortcut to every plugin function (by Ben Briggs). - ➕ Add multiple nodes support to insert methods (by Jonathan Neal).
- ➕ Add
Node#warn
shortcut (by Ben Briggs). - ➕ Add
word
andindex
options to errors and warnings (by David Clark). - ➕ Add
line
,column
properties toWarning
. - 👉 Use
supports-color
library to detect color support in error output. - ➕ Add type definitions for TypeScript plugin developers (by Jed Mao).
Rule#selectors
setter detects separators.- ➕ Add
postcss.stringify
method. - 🔌 Throw descriptive errors for incorrectly formatted plugins.
- ➕ Add docs to npm release.
- 🛠 Fix
url()
parsing. - 🛠 Fix Windows support (by Jed Mao).
- ✂ Remove