This project adheres to Semantic Versioning.
node_modules
(by Chris Eppstein).postcss-sass
suggestion to syntax error on .sass
input.postcss.vendor
for values with spaces (by 刘祺).Processor#version
.from
option (by Michele Locati).[
and ]
tokens to parse [attr=;] {}
correctly.ignoreErrors
options to tokenizer (by Andrey Popp).map.from
option (by Mark Finger).<no source>
mappings for nodes without source (by Bogdan Chadkin).map.prev
option (by Chris Montoro).Result#warn
now returns new created warning.postcss.plugin
call.utf8
encoding name.append(string)
.Node#warn
(by Ben Briggs).Node#clone()
on null
value somewhere in node.index
and word
options in Warning#toString
(by Bogdan Chadkin).LazyResult
as input CSS.5.0.7
that caused the module to be published as
ES6 code.Declaration#value
(by Bogdan Chadkin).Root#source
.\r\n
(by Mohammad Younes).url()
parsing.selectors
in Rule
constructor.Root
node.remove(index)
to be compatible with 4.x plugin.safe
option. Move Safe Parser to separate project.Node#toString
does not include before
for root nodes.Root
API.eachInside
, eachDecl
, eachRule
, eachAtRule
and eachComment
in favor of walk
, walkDecls
, walkRules
, walkAtRules
and walkComments
(by Jed Mao).Container#remove
and Node#removeSelf
in favor of Container#removeChild
and Node#remove
(by Ben Briggs).Node#replace
in favor of replaceWith
(by Ben Briggs).Node#raws
object.Node#style
in favor of raw
.CssSyntaxError#generated
in favor of input
.Node#cleanStyles
in favor of cleanRaws
.Root#prevMap
in favor of Root.source.input.map
.syntax
, parser
and stringifier
options for Custom Syntaxes.Node#toString
.Result#content
alias for non-CSS syntaxes.plugin.process(css)
shortcut to every plugin function (by Ben Briggs).Node#warn
shortcut (by Ben Briggs).word
and index
options to errors and warnings (by David Clark).line
, column
properties to Warning
.supports-color
library to detect color support in error output.Rule#selectors
setter detects separators.postcss.stringify
method.url()
parsing.postcss.plugin
.plugin
field in CssSyntaxError
.node.clone()
.Processor
instance in postcss()
constructor too.postcss.list
(by Bogdan Chadkin).var space = postcss.list.space
.Result#messages
.postcss.plugin()
to create plugins with a standard API.Result
instance to plugins as the second argument.CssSyntaxError#plugin
.CssSyntaxError#showSourceCode()
.postcss.list
and postcss.vendor
aliases.Processor#version
.!important
statement with spaces and comments inside (by Ben Briggs).prop
or value
(by Philip Peterson).error.generated
.babel
from released package dependencies (by Andres Suarez).source.input
to Root
too.Container#childs
to nodes
.PostCSS#processors
to plugins
.Node#replaceValues()
method.Node#moveTo()
, moveBefore()
and moveAfter()
methods.Node#cloneBefore()
and cloneAfter()
shortcuts.Node#next()
, prev()
and root()
shortcuts.Node#replaceWith()
method.Node#error()
method.Container#removeAll()
method.eachDecl()
and eachAtRule()
.Node#source.input
and move source.file
or source.id
to input
.Rule
, AtRule
and Comment
nodes changes.CssSyntaxError#stack
(by Maxime Thirouin).Root#normalize
in some inserts.@page
)
and nested declarations for plugins like postcss-nested
.childs
property, instead of decls
and rules
.map.inline
and map.sourcesContent
options are now true
by default.each
, insertAfter
) on children array changes.from
option from previous source map file
field.to
value to from
if to
option is missing.from
option.;
is missed between declarations.PostCSS
instance or list of plugins to use()
method.Result
instance to process()
method.@import"file"
.sourceMappingURL
annotation comment cleaning.sourceMappingURL
comment on map.annotation: false
.before
if Root
first child got removed.prepend()
on empty Root
.use()
with functions like autoprefixer
.use()
via object with .postcss
property.opts
from Processor#process(css, opts)
to processors.Node#replace
method.CssSyntaxError#reason
property.sourcesContent
if there is no from
and to
options.to
and from
options for inline source maps.Node#source.id
if file name is unknown.map.sourcesContent
option to add origin content to sourcesContent
inside map.Root
in Container#append
and same methods.Root#prevMap
with information about previous map.Result
now is lazy and it will generate output CSS only if you use css
or map
property.map.prev
option to set previous map.inlineMap
option to map.inline
.mapAnnotation
option to map.annotation
.Result#map
now return SourceMapGenerator
object, instead of string.map: 'inline'
shortcut for map: { inline: true }
option.Node#source.file
now will contains absolute path.Declaration#between
style on node clone.Root
or Result
as first argument in process()
.Result#root
.source-map
(by Simon Lydell).Rule#selectors
(by Simon Lydell).Comment
node for comments between declarations or rules.first
and last
shortcuts to container nodes.!important
to separated property in Declaration
.false
.eachInside
method to recursively iterate all nodes.selectors
shortcut to get selectors array.toResult
method to Rule
to simplify work with several input files.value
, rule’s selector
and at-rule’s params
by storing spaces in between
property.process()
now returns object with css
and map
keys.file
to from
.Node#remove()
method to removeSelf()
to fix name conflict.source
property with origin file
and node end position.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.