-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Update dependency postcss-selector-parser to v7 #16806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/postcss-selector-parser-7.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+24
−9
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
|
Size Change: +41.9 kB (+0.31%) Total Size: 13.5 MB
ℹ️ View Unchanged
|
bef174e to
08d1bee
Compare
commit: |
08d1bee to
8cc8466
Compare
8cc8466 to
b6efb66
Compare
This was referenced Feb 20, 2025
b6efb66 to
7cf2a5c
Compare
✅ Deploy Preview for prettier ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
7cf2a5c to
11b580f
Compare
bc013ca to
69062e0
Compare
69062e0 to
4c54ed2
Compare
4c54ed2 to
4d8dd75
Compare
4d8dd75 to
61a500f
Compare
61a500f to
e210fad
Compare
e210fad to
40e3959
Compare
40e3959 to
890a4f1
Compare
890a4f1 to
e01702c
Compare
e01702c to
f595f30
Compare
f595f30 to
9a4e097
Compare
9a4e097 to
528bb6c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
2.2.3→7.1.1Release Notes
postcss/postcss-selector-parser (postcss-selector-parser)
v7.1.1Compare Source
v7.1.0Compare Source
v7.0.0Compare Source
v6.1.2Compare Source
v6.1.1Compare Source
v6.1.0Compare Source
sourceIndextoSelectornodes (#290)v6.0.16Compare Source
indexargument toeach/walkcallback types (#289)v6.0.15Compare Source
v6.0.14Compare Source
v6.0.13Compare Source
v6.0.12Compare Source
clonearguments should be optionalv6.0.11Compare Source
v6.0.10Compare Source
isPseudoElement()supports:first-letterand:first-linev6.0.9Compare Source
Combinator.rawsproperty typev6.0.8Compare Source
v6.0.7Compare Source
v6.0.6Compare Source
v6.0.5Compare Source
v6.0.4Compare Source
v6.0.3Compare Source
v6.0.2Compare Source
v6.0.1Compare Source
indexargument toeach/walkcallback types (#289)v6.0.0Compare Source
cssescto 3.0.0 (major)idandclassselectorsv5.0.0Compare Source
v4.0.0Compare Source
This release has BREAKING CHANGES that were required to fix bugs regarding values with escape sequences. Please read carefully.
Identifiers with escapes - CSS escape sequences are now hidden from the public API by default.
The normal value of a node like a class name or ID, or an aspect of a node such as attribute
selector's value, is unescaped. Escapes representing Non-ascii characters are unescaped into
unicode characters. For example:
bu\tton, .\31 00, #i\2764\FE0Fu, [attr="value is \"quoted\""]will parse respectively to the values
button,100,i❤️u,value is "quoted".The original escape sequences for these values can be found in the corresponding property name
in
node.raws. Where possible, deprecation warnings were added, but the natureof escape handling makes it impossible to detect what is escaped or not. Our expectation is
that most users are neither expecting nor handling escape sequences in their use of this library,
and so for them, this is a bug fix. Users who are taking care to handle escapes correctly can
now update their code to remove the escape handling and let us do it for them.
Mutating values with escapes - When you make an update to a node property that has escape handling
The value is assumed to be unescaped, and any special characters are escaped automatically and
the corresponding
rawsvalue is immediately updated. This can result in changes to the originalescape format. Where the exact value of the escape sequence is important there are methods that
allow both values to be set in conjunction. There are a number of new convenience methods for
manipulating values that involve escapes, especially for attributes values where the quote mark
is involved. See #133 for an extensive
write-up on these changes.
Upgrade/API Example
In
3.xthere was no unescape handling and internal consistency of several properties was the caller's job to maintain. It was very easy for the developerto create a CSS file that did not parse correctly when some types of values
were in use.
In
4.0there is a convenient API for setting and mutating valuesthat may need escaping. Especially for attributes.
v3.1.2Compare Source
v3.1.1Compare Source
v3.1.0Compare Source
and whitespace. There's significant changes to
attrNode.spacesandattrNode.rawssince the3.0.0release.Attribute#offsetOf(part)to get the offset location ofattribute parts like
"operator"and"value". This is mostoften added to
Attribute#sourceIndexfor error reporting.v3.0.0Compare Source
Breaking changes
locations might be slightly different to the 2.x code.
no longer uses regular expressions to parse attribute selectors.
processAPI is nowasync, and the sync API is now accessed through
processSyncinstead.process()andprocessSync()now return a string instead of the Processorinstance.
Other changes
ast()andastSync()methods have been added to theProcessor. Thesereturn the
Rootnode of the selectors after processing them.transform()andtransformSync()methods have been added to theProcessor. These return the value returned by the processor callbackafter processing the selectors.
process,astandtransform(and their sync variants) now accept apostcssrule node. When provided, better errors are generated and selectorprocessing is automatically set back to the rule selector (unless the
updateSelectoroption is set tofalse.)Upgrade hints
The pattern of:
rule.selector = processor.process(rule.selector).result.toString();is now:
processor.processSync(rule)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.