postcss-selector-parser
Advanced tools
Changelog
3.0.0
process
API is now
async, and the sync API is now accessed through processSync
instead.process()
and processSync()
now return a string instead of the Processor
instance.ast()
and astSync()
methods have been added to the Processor
. These
return the Root
node of the selectors after processing them.transform()
and transformSync()
methods have been added to the
Processor
. These return the value returned by the processor callback
after processing the selectors.process
, ast
and transform
(and their sync variants) now accept a
postcss
rule node. When provided, better errors are generated and selector
processing is automatically set back to the rule selector (unless the updateSelector
option is set to false
.)The pattern of:
rule.selector = processor.process(rule.selector).result.toString();
is now:
processor.processSync(rule)
Changelog
2.2.3
Changelog
2.2.2
Changelog
2.2.1
Changelog
2.2.0
Changelog
2.1.1
Changelog
2.1.0
Changelog
2.0.0
This release contains the following breaking changes:
eachInside
iterators to walk
. For example, eachTag
is now
walkTags
, and eachInside
is now walk
.Node#removeSelf()
to Node#remove()
.Container#remove()
to Container#removeChild()
.Node#raw
to Node#raws
(thanks to @davidtheclark).&
as the nesting selector, rather than a tag selector.#{foo}
) as an
id selector (thanks to @davidtheclark).and;
[data-attr="foo=bar"]
) (thanks to @montmanu).quoted
and raw.unquoted
properties to attribute nodes
(thanks to @davidtheclark).