summaryrefslogtreecommitdiff
path: root/node_modules/@csstools/postcss-is-pseudo-class/CHANGELOG.md
blob: 124534341a81d1b6c0a054ddf8bea96cc5fd2aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Changes to PostCSS Is Pseudo Class

### 4.0.3

_October 2, 2023_

- Prevent incorrect transforms when `:is()` is wrapped in `:has()`.

### 4.0.2

_September 18, 2023_

- Improve performance

### 4.0.1

_September 2, 2023_

- Fix substitution when selectors have mixed types for compound selectors where one of two parts is a `:is()` pseudo class.

```diff
header:is(.a .b) {}

/* becomes : */

- header.a .b {}
+ .a header.b {}
```

### 4.0.0

_July 3, 2023_

- Change license to `MIT-0` ([read more about this change in the blog post](https://preset-env.cssdb.org/blog/license-change/))
- Updated [`@csstools/selector-specificity`](https://github.com/csstools/postcss-plugins/tree/main/packages/selector-specificity) to [`3.0.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/selector-specificity/CHANGELOG.md#300) (major)

### 3.2.1

_May 19, 2023_

- Fix compound selectors with `*`.

```diff
:is(.a *):is(h1, h2, h3) {}

/* becomes : */

- .a *h1, .a *h2, .a *h3 {}
+ .a h1, .a h2, .a h3 {}
```

### 3.2.0

_April 10, 2023_

- Add support for more complex selector patterns. In particular anything where `:is()` is in the left-most compound selector.

### 3.1.1

_February 8, 2023_

- Reduce the amount of duplicate fallback CSS.

### 3.1.0

_February 2, 2023_

- Fix is pseudo inside a not pseudo (`:not(:is(h1, h2, h3))`)
- Reduce the output size when all selectors are known to be valid

### 3.0.1

_January 28, 2023_

- Improve `types` declaration in `package.json`

### 3.0.0

_January 24, 2023_

- Updated: Support for Node v14+ (major).

### 2.0.7

_July 8, 2022_

- Fix case insensitive matching.

### 2.0.6

_June 23, 2022_

- Fix selector order with any pseudo element.
- Fix transforming pseudo elements in `:is()`. Following the specification pseudo elements are invalid and we now transform to a known invalid pseudo element.
- Add `onPseudoElement` plugin option. Set `{ onPseudoElement: 'warning' }` to receive warnings when this plugin encounters an unprocessable pseudo element.

### 2.0.5

_June 4, 2022_

- Update `@csstools/selector-specificity` (major)

### 2.0.4

_May 17, 2022_

- Fix selector order with `:before` and other pseudo elements.

### 2.0.3

_May 11, 2022_

- Use `@csstools/selector-specificity` for specificity calculations.

### 2.0.2

_April 4, 2022_

- Improved : compound selector order with pseudo elements
- Improved : selector specificity calculation.

### 2.0.1

_March 4, 2022_

- Preserve selector order as much as possible. Fixes issues where pseudo elements `::before` were moved.

### 2.0.0

_January 31, 2022_

- Remove `skip` flag in `onComplexSelectors` option.

If a complex selector is encountered that has no known equivalent, it will always be skipped and preserved now.

The previous behavior was to remove `:is()` even if that broke the selector.

### 1.0.1

_January 17, 2022_

- Fix selector order

### 1.0.0

_January 13, 2022_

- initial release