postcss-selector-parser
Advanced tools
Changelog
3.1.1
Changelog
3.1.0
attrNode.spaces
and attrNode.raws
since the 3.0.0
release.Attribute#offsetOf(part)
to get the offset location of
attribute parts like "operator"
and "value"
. This is most
often added to Attribute#sourceIndex
for error reporting.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