Update postcss-selector-parser to the latest version 馃殌 #296
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The dependency postcss-selector-parser was updated from
4.0.0
to5.0.0
.This version is not covered by your current version range.
If you don鈥檛 accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for 5.0.0
Summary of Changes
.a .b
) is stored in the AST has changed..a /for/ .b
) are now properly parsed as a combinator./
was encountered have been fixed.v6.0.0
.Changes to the Descendent Combinator
In prior releases, the value of a descendant combinator with multiple spaces included all the spaces.
.a .b
: Extra spaces are now stored as space before.combinator.value === " "
combinator.value === " " && combinator.spaces.before === " "
.a /*comment*/.b
: A comment at the end of the combinator causes extra space to become after space.combinator.value === " "
combinator.raws.value === " /*comment/"
combinator.value === " "
combinator.spaces.after === " "
combinator.raws.spaces.after === " /*comment*/"
.a<newline>.b
: whitespace that doesn't start or end with a single space character is stored as a raw value.combinator.value === "\n"
combinator.raws.value === undefined
combinator.value === " "
combinator.raws.value === "\n"
Support for "Named Combinators"
Although, nonstandard and unlikely to ever become a standard, combinators like
/deep/
and/for/
are now properly supported.Because they've been taken off the standardization track, there is no spec-official name for combinators of the form
/<ident>/
. However, I talked to Tab Atkins and we agreed to call them "named combinators" so now they are called that.Before this release such named combinators were parsed without intention and generated three nodes of type
"tag"
where the first and last nodes had a value of"/"
..a /for/ .b
is parsed as a combinator.root.nodes[0].nodes[1].type === "tag"
root.nodes[0].nodes[1].value === "/"
root.nodes[0].nodes[1].type === "combinator"
root.nodes[0].nodes[1].value === "/for/"
.a /F\6fR/ .b
escapes are handled and uppercase is normalized.root.nodes[0].nodes[2].type === "tag"
root.nodes[0].nodes[2].value === "F\\6fR"
root.nodes[0].nodes[1].type === "combinator"
root.nodes[0].nodes[1].value === "/for/"
root.nodes[0].nodes[1].raws.value === "/F\\6fR/"
Source position checks and lookups
A new API was added to look up a node based on the source location.
5.0.0-rc.0
This release has BREAKING CHANGES that were required to fix regressions
in 4.0.0 and to make the Combinator Node API consistent for all combinator
types. Please read carefully.
5.0.0-rc.1
To ease adoption of the v5.0 release, we have relaxed the node version
check performed by npm at installation time to allow for node 4, which
remains officially unsupported, but likely to continue working for the
time being.
5.0.0-rc.4
(in attribute) were not parsed correctly.
cssesc
to 2.0.0 (major).selector with pseudos, and tokens after combinators.
5.0.0
Commits
The new version differs by 36 commits.
b47e255
5.0.0
3838c63
Update API.md processor example
dec5d31
Update PostCSS to 7.0.7 (patch)
5ad61d6
Allow escaped dot within class name
c6e79b4
5.0.0-rc.4
23d702b
chore: remove outdated integration tests
0d573ed
test: custom selectors
4f44148
test: tag with attribute
63996af
test: universal selector with pseudo
ce4f3ca
Update dependencies
1f96ac2
Update minor dependencies
c396fad
Update PostCSS to v7
01f6b22
Move
babel-eslint
to devDeps4494845
npm audit fix
ccd499a
Fixed 150
There are 36 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don鈥檛 help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 馃尨