autoprefixer 10.2.1 → 10.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 10.2.5
5
+ * Fixed `:` support in `@supports` (by Dmitry Semigradsky).
6
+ * Fixed docs (by Christian Oliff).
7
+
8
+ ## 10.2.4
9
+ * Fixed browser names in `npx autoprefixer --info`.
10
+
11
+ ## 10.2.3
12
+ * Fixed PostCSS 8 support.
13
+
14
+ ## 10.2.2
15
+ * Fixed PostCSS 8 plugins compatibility.
16
+
4
17
  ## 10.2.1
5
18
  * Fixed `transition-property` warnings (by @Sheraff).
6
19
 
package/README.md CHANGED
@@ -1001,8 +1001,8 @@ IE will place `.grid-cell`, `::before` and `::after` in row 1 column 1.
1001
1001
  Modern browsers on the other hand will place `::before` in row 1 column 1,
1002
1002
  `.grid-cell` in row 1 column 2, and `::after` in row 2 column 1.
1003
1003
 
1004
- See this [Code Pen](https://codepen.io/daniel-tonon/pen/gBymVw) to see a visualization
1005
- of the issue. View the Code Pen in both a modern browser and IE to see the difference.
1004
+ See this [CodePen](https://codepen.io/daniel-tonon/pen/gBymVw) to see a visualization
1005
+ of the issue. View the CodePen in both a modern browser and IE to see the difference.
1006
1006
 
1007
1007
  Note that you can still create `::before` and `::after` elements as long as you manually
1008
1008
  place them outside the explicit grid.
package/data/prefixes.js CHANGED
@@ -241,6 +241,7 @@ f(require('caniuse-lite/data/features/css-filter-function'), browsers =>
241
241
 
242
242
  // Backdrop-filter
243
243
  let backdrop = require('caniuse-lite/data/features/css-backdrop-filter')
244
+
244
245
  f(backdrop, { match: /y\sx|y\s#2/ }, browsers =>
245
246
  prefix(['backdrop-filter'], {
246
247
  feature: 'css-backdrop-filter',
@@ -305,6 +306,7 @@ f(require('caniuse-lite/data/features/user-select-none'), browsers =>
305
306
 
306
307
  // Flexible Box Layout
307
308
  let flexbox = require('caniuse-lite/data/features/flexbox')
309
+
308
310
  f(flexbox, { match: /a\sx/ }, browsers => {
309
311
  browsers = browsers.map(i => {
310
312
  if (/ie|firefox/.test(i)) {
@@ -685,6 +687,7 @@ f(require('caniuse-lite/data/features/css-deviceadaptation'), browsers =>
685
687
 
686
688
  // Resolution Media Queries
687
689
  let resolut = require('caniuse-lite/data/features/css-media-resolution')
690
+
688
691
  f(resolut, { match: /( x($| )|a #2)/ }, browsers =>
689
692
  prefix(['@resolution'], {
690
693
  feature: 'css-media-resolution',
@@ -757,6 +760,7 @@ f(logicalProps, { match: /x\s#2/ }, browsers =>
757
760
 
758
761
  // CSS appearance
759
762
  let appearance = require('caniuse-lite/data/features/css-appearance')
763
+
760
764
  f(appearance, { match: /#2|x/ }, browsers =>
761
765
  prefix(['appearance'], {
762
766
  feature: 'css-appearance',
@@ -810,6 +814,7 @@ f(require('caniuse-lite/data/features/css-image-set'), browsers =>
810
814
 
811
815
  // Writing Mode
812
816
  let writingMode = require('caniuse-lite/data/features/css-writing-mode')
817
+
813
818
  f(writingMode, { match: /a|x/ }, browsers =>
814
819
  prefix(['writing-mode'], {
815
820
  feature: 'css-writing-mode',
@@ -944,6 +949,7 @@ f(bidi, { match: /y x/ }, browsers =>
944
949
 
945
950
  // overscroll-behavior selector
946
951
  let over = require('caniuse-lite/data/features/css-overscroll-behavior')
952
+
947
953
  f(over, { match: /a #1/ }, browsers =>
948
954
  prefix(['overscroll-behavior'], {
949
955
  feature: 'css-overscroll-behavior',
@@ -120,7 +120,7 @@ module.exports = (...reqs) => {
120
120
  })
121
121
 
122
122
  return {
123
- Once (root) {
123
+ OnceExit (root) {
124
124
  timeCapsule(result, prefixes)
125
125
  if (options.remove !== false) {
126
126
  prefixes.processor.remove(root, result)
@@ -337,7 +337,7 @@ function changeDuplicateAreaSelectors (ruleSelectors, templateSelectors) {
337
337
  */
338
338
  function selectorsEqual (ruleA, ruleB) {
339
339
  return ruleA.selectors.some(sel => {
340
- return ruleB.selectors.some(s => s === sel)
340
+ return ruleB.selectors.includes(sel)
341
341
  })
342
342
  }
343
343
 
package/lib/info.js CHANGED
@@ -7,12 +7,16 @@ function capitalize (str) {
7
7
  const NAMES = {
8
8
  ie: 'IE',
9
9
  ie_mob: 'IE Mobile',
10
- ios_saf: 'iOS',
10
+ ios_saf: 'iOS Safari',
11
11
  op_mini: 'Opera Mini',
12
12
  op_mob: 'Opera Mobile',
13
13
  and_chr: 'Chrome for Android',
14
14
  and_ff: 'Firefox for Android',
15
- and_uc: 'UC for Android'
15
+ and_uc: 'UC for Android',
16
+ and_qq: 'QQ Browser',
17
+ kaios: 'KaiOS Browser',
18
+ baidu: 'Baidu Browser',
19
+ samsung: 'Samsung Internet'
16
20
  }
17
21
 
18
22
  function prefix (name, prefixes, note) {
package/lib/prefixer.js CHANGED
@@ -18,7 +18,11 @@ function clone (obj, parent) {
18
18
  cloned[i] = value
19
19
  } else if (Array.isArray(value)) {
20
20
  cloned[i] = value.map(x => clone(x, cloned))
21
- } else if (i !== '_autoprefixerPrefix' && i !== '_autoprefixerValues') {
21
+ } else if (
22
+ i !== '_autoprefixerPrefix' &&
23
+ i !== '_autoprefixerValues' &&
24
+ i !== 'proxyCache'
25
+ ) {
22
26
  if (typeof value === 'object' && value !== null) {
23
27
  value = clone(value, cloned)
24
28
  }
package/lib/supports.js CHANGED
@@ -223,10 +223,18 @@ class Supports {
223
223
  }
224
224
 
225
225
  nodes = nodes.filter(i => i !== '')
226
- if (typeof nodes[0] === 'string' && nodes[0].includes(':')) {
227
- return [brackets.stringify(nodes)]
228
- }
229
226
 
227
+ if (typeof nodes[0] === 'string') {
228
+ let firstNode = nodes[0].trim()
229
+
230
+ if (
231
+ firstNode.includes(':') ||
232
+ firstNode === 'selector' ||
233
+ firstNode === 'not selector'
234
+ ) {
235
+ return [brackets.stringify(nodes)]
236
+ }
237
+ }
230
238
  return nodes.map(i => this.normalize(i))
231
239
  }
232
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "10.2.1",
3
+ "version": "10.2.5",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"
@@ -26,9 +26,9 @@
26
26
  "postcss": "^8.1.0"
27
27
  },
28
28
  "dependencies": {
29
- "browserslist": "^4.16.1",
30
- "caniuse-lite": "^1.0.30001173",
31
- "colorette": "^1.2.1",
29
+ "browserslist": "^4.16.3",
30
+ "caniuse-lite": "^1.0.30001196",
31
+ "colorette": "^1.2.2",
32
32
  "fraction.js": "^4.0.13",
33
33
  "normalize-range": "^0.1.2",
34
34
  "postcss-value-parser": "^4.1.0"