Skip to content

Commit 73ca49e

Browse files
authored
update dependencies (#1225)
1 parent 1569895 commit 73ca49e

File tree

10 files changed

+33
-62
lines changed

10 files changed

+33
-62
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin-packs/postcss-preset-env/test/basic.vendors-2.expect.css

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@
4545
.test-nesting-rules {
4646
order: 4;
4747

48-
& p {
49-
order: 5;
50-
}
51-
5248
order: 6;
5349
}
5450

51+
.test-nesting-rules p {
52+
order: 5;
53+
}
54+
5555
.test-nesting-rules,
5656
#test-is-pseudo {
5757
order: 7;
5858

59-
& + p {
60-
order: 8;
61-
}
62-
6359
order: 9;
6460
}
6561

62+
.test-nesting-rules + p, #test-is-pseudo + p {
63+
order: 8;
64+
}
65+
6666
@custom-media --narrow-window (max-width: 30em);
6767

6868
@media (--narrow-window) {
@@ -542,11 +542,9 @@
542542

543543
@custom-selector :--view-m [data-view-size=m];
544544

545-
.view {
546-
:--view-m & {
545+
:--view-m .view {
547546
background: red;
548547
}
549-
}
550548

551549
.nested-calc {
552550
order: calc(1 * (8 / 3 + (5 * 10)));
@@ -621,17 +619,17 @@
621619
}
622620

623621
.test-css-color-5-interop {
624-
color-1: color(from rgb(196, 129, 72) a98-rgb r g b / alpha);
622+
color-1: rgb(196, 129, 72);
625623
color-2: color(from rgb(196, 129, 72) a98-rgb r g b / none);
626-
color-3: color(from rgb(234, 133, 82) prophoto-rgb r g b);
624+
color-3: rgb(234, 133, 82);
627625
color-4: color(from rgb(234, 133, 82) prophoto-rgb r g none);
628-
color-5: hwb(from rgb(179, 157, 51) h w b);
629-
color-6: lab(from rgb(179, 35, 35) l a b);
630-
color-7: lch(from rgb(163, 57, 39) l c h);
631-
color-8: oklab(from rgb(141, 0, 0) l a b);
632-
color-8: oklab(from color(display-p3 0.50566 0.0781 0) l a b);
633-
color-9: oklch(from rgb(130, 31, 0) l c h);
634-
color-9: oklch(from color(display-p3 0.48896 0.1211 0) l c h);
626+
color-5: rgb(179, 157, 51);
627+
color-6: rgb(179, 35, 35);
628+
color-7: rgb(163, 57, 39);
629+
color-8: rgb(141, 0, 0);
630+
color-8: color(display-p3 0.50566 0.0781 0);
631+
color-9: rgb(130, 31, 0);
632+
color-9: color(display-p3 0.48896 0.1211 0);
635633
}
636634

637635
.test-property-with-var {

plugin-packs/postcss-preset-env/test/basic.vendors-3.expect.css

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@
4545
.test-nesting-rules {
4646
order: 4;
4747

48-
& p {
49-
order: 5;
50-
}
51-
5248
order: 6;
5349
}
5450

51+
.test-nesting-rules p {
52+
order: 5;
53+
}
54+
5555
.test-nesting-rules,
5656
#test-is-pseudo {
5757
order: 7;
5858

59-
& + p {
60-
order: 8;
61-
}
62-
6359
order: 9;
6460
}
6561

62+
.test-nesting-rules + p, #test-is-pseudo + p {
63+
order: 8;
64+
}
65+
6666
@custom-media --narrow-window (max-width: 30em);
6767

6868
@media (--narrow-window) {
@@ -541,11 +541,9 @@
541541

542542
@custom-selector :--view-m [data-view-size=m];
543543

544-
.view {
545-
:--view-m & {
544+
:--view-m .view {
546545
background: red;
547546
}
548-
}
549547

550548
.nested-calc {
551549
order: calc(1 * (8 / 3 + (5 * 10)));

plugins/css-blank-pseudo/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
109109

110110
if (i === selectorAST.nodes[0].nodes.length - 1) {
111111
// Append the class to the end of the selector if no combinator or pseudo element was found.
112-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
113112
selectorAST.nodes[0].append(parser.className({ value: POLYFILL_READY_CLASSNAME }));
114113
break;
115114
}
@@ -118,9 +117,7 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
118117

119118
if (selectorAST.nodes?.[0]?.nodes) {
120119
// Prepend a space combinator and the class to the beginning of the selector.
121-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
122120
selectorASTClone.nodes[0].prepend(parser.combinator({ value: ' ' }));
123-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
124121
selectorASTClone.nodes[0].prepend(parser.className({ value: POLYFILL_READY_CLASSNAME }));
125122
}
126123

plugins/css-has-pseudo/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,10 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
136136
if (x.type === 'selector') {
137137
x.nodes.forEach((y) => {
138138
delete y.parent;
139-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
140139
hasContainingSelector.append(y);
141140
});
142141
} else {
143142
delete x.parent;
144-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
145143
hasContainingSelector.append(x);
146144
}
147145
});
@@ -167,7 +165,6 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
167165
const replacementNodes = encodedSelectorAST.nodes[0].nodes;
168166

169167
for (let i = replacementNodes.length - 1; i >= 0; i--) {
170-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
171168
container.prepend(replacementNodes[i]);
172169
}
173170
});

plugins/postcss-attribute-case-insensitive/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ function createSensitiveAttributes(attribute: selectorParser.Attribute) {
3636
insensitive: false,
3737
});
3838

39-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
4039
newAttribute.setValue(x);
4140

4241
return newAttribute;
@@ -49,7 +48,6 @@ function createNewSelectors(selector: selectorParser.Selector) {
4948
selector.each((node) => {
5049
if (!nodeIsInsensitiveAttribute(node)) {
5150
newSelectors.forEach(newSelector => {
52-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
5351
newSelector.append(node.clone());
5452
});
5553
return;
@@ -61,9 +59,7 @@ function createNewSelectors(selector: selectorParser.Selector) {
6159
sensitiveAttributes.forEach(newNode => {
6260
newSelectors.forEach(newSelector => {
6361
const newSelectorWithNewNode = newSelector.clone({});
64-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
6562
newSelectorWithNewNode.append(newNode);
66-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
6763
newSelectorsWithSensitiveAttributes.push(newSelectorWithNewNode);
6864
});
6965
});

plugins/postcss-dir-pseudo-class/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
114114

115115
if (first && !firstIsHtml && !firstIsRoot && !firstIsSpaceCombinator) {
116116
parent.prepend(
117-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
118117
selectorParser.combinator({
119118
value: ' ',
120119
}),
@@ -171,19 +170,16 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
171170
parent.insertAfter(first, notDirAttr);
172171
} else {
173172
// prepend :root
174-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
175173
parent.prepend(notDirAttr);
176174
}
177175
} else if (firstIsHtml) {
178176
// insert dir attribute after html tag
179177
parent.insertAfter(first, dirAttr);
180178
} else if (options.shadow && !firstIsRoot) {
181179
// prepend :host-context([dir])
182-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
183180
parent.prepend(hostContextPseudo);
184181
} else {
185182
// otherwise, prepend the dir attribute
186-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
187183
parent.prepend(dirAttr);
188184
}
189185
});

plugins/postcss-focus-visible/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
9797

9898
if (i === selectorAST.nodes[0].nodes.length - 1) {
9999
// Append the class to the end of the selector if not combinator or pseudo element was found.
100-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
101100
selectorAST.nodes[0].append(parser.className({ value: POLYFILL_READY_CLASSNAME }));
102101
break;
103102
}
@@ -106,9 +105,7 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
106105

107106
if (selectorAST.nodes?.[0]?.nodes) {
108107
// Prepend a space combinator and the class to the beginning of the selector.
109-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
110108
selectorASTClone.nodes[0].prepend(parser.combinator({ value: ' ' }));
111-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
112109
selectorASTClone.nodes[0].prepend(parser.className({ value: POLYFILL_READY_CLASSNAME }));
113110
}
114111

plugins/postcss-focus-within/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
109109

110110
if (i === selectorAST.nodes[0].nodes.length - 1) {
111111
// Append the class to the end of the selector if not combinator or pseudo element was found.
112-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
113112
selectorAST.nodes[0].append(parser.className({ value: POLYFILL_READY_CLASSNAME }));
114113
break;
115114
}
@@ -118,9 +117,7 @@ const creator: PluginCreator<pluginOptions> = (opts?: pluginOptions) => {
118117

119118
if (selectorAST.nodes?.[0]?.nodes) {
120119
// Prepend a space combinator and the class to the beginning of the selector.
121-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
122120
selectorASTClone.nodes[0].prepend(parser.combinator({ value: ' ' }));
123-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
124121
selectorASTClone.nodes[0].prepend(parser.className({ value: POLYFILL_READY_CLASSNAME }));
125122
}
126123

plugins/postcss-pseudo-class-any-link/src/replace-any-link.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,21 @@ function modifiedSelector(selector: string, areaHrefNeedsFixing: boolean) {
5959
}
6060

6161
if (!areaHrefNeedsFixing) {
62-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
6362
replacements.push([linkAST.clone(), visitedAST.clone()]);
6463
return;
6564
}
6665

6766
const tags = getTagElementsNextToPseudo(pseudo);
6867
if (tags.includes('area')) {
69-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
7068
replacements.push([linkAST.clone(), visitedAST.clone(), hrefAST.clone()]);
7169
return;
7270
}
7371

7472
if (tags.length) {
75-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
7673
replacements.push([linkAST.clone(), visitedAST.clone()]);
7774
return;
7875
}
7976

80-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
8177
replacements.push([linkAST.clone(), visitedAST.clone(), areaHrefAST.clone()]);
8278
});
8379

@@ -89,7 +85,6 @@ function modifiedSelector(selector: string, areaHrefNeedsFixing: boolean) {
8985

9086
replacementsCartesianProduct.forEach((replacement) => {
9187
const clone = selectorsAST.clone();
92-
// @ts-expect-error https://github.com/postcss/postcss-selector-parser/pull/284
9388
clone.walkPseudos((pseudo) => {
9489
if (pseudo.value.toLowerCase() !== ':any-link' || (pseudo.nodes && pseudo.nodes.length)) {
9590
return;

0 commit comments

Comments
 (0)