autoprefixer 9.8.4 → 9.8.8

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.
@@ -2,12 +2,12 @@
2
2
 
3
3
  var browserslist = require('browserslist');
4
4
 
5
- var colorette = require('colorette');
6
-
7
5
  var postcss = require('postcss');
8
6
 
9
7
  var agents = require('caniuse-lite').agents;
10
8
 
9
+ var pico = require('picocolors');
10
+
11
11
  var Browsers = require('./browsers');
12
12
 
13
13
  var Prefixes = require('./prefixes');
@@ -75,13 +75,9 @@ module.exports = postcss.plugin('autoprefixer', function () {
75
75
  reqs = options.overrideBrowserslist;
76
76
  } else if (options.browsers) {
77
77
  if (typeof console !== 'undefined' && console.warn) {
78
- if (colorette.red) {
79
- console.warn(colorette.red(WARNING.replace(/`[^`]+`/g, function (i) {
80
- return colorette.yellow(i.slice(1, -1));
81
- })));
82
- } else {
83
- console.warn(WARNING);
84
- }
78
+ console.warn(pico.red(WARNING.replace(/`[^`]+`/g, function (i) {
79
+ return pico.yellow(i.slice(1, -1));
80
+ })));
85
81
  }
86
82
 
87
83
  reqs = options.browsers;
@@ -89,7 +85,8 @@ module.exports = postcss.plugin('autoprefixer', function () {
89
85
 
90
86
  var brwlstOpts = {
91
87
  ignoreUnknownVersions: options.ignoreUnknownVersions,
92
- stats: options.stats
88
+ stats: options.stats,
89
+ env: options.env
93
90
  };
94
91
 
95
92
  function loadPrefixes(opts) {
package/lib/browsers.js CHANGED
@@ -60,7 +60,6 @@ var Browsers = /*#__PURE__*/function () {
60
60
  }
61
61
 
62
62
  opts.path = this.options.from;
63
- opts.env = this.options.env;
64
63
  return browserslist(requirements, opts);
65
64
  }
66
65
  /**
package/lib/processor.js CHANGED
@@ -137,7 +137,13 @@ var Processor = /*#__PURE__*/function () {
137
137
  node: decl
138
138
  });
139
139
  } else {
140
- if (gridPrefixes) {
140
+ if (gridPrefixes && _this.gridStatus(decl, result)) {
141
+ if (decl.value === 'subgrid') {
142
+ result.warn('IE does not support subgrid', {
143
+ node: decl
144
+ });
145
+ }
146
+
141
147
  if (/^(align|justify|place)-items$/.test(prop) && insideGrid(decl)) {
142
148
  var fixed = prop.replace('-items', '-self');
143
149
  result.warn("IE does not support " + prop + " on grid containers. " + ("Try using " + fixed + " on child elements instead: ") + (decl.parent.selector + " > * { " + fixed + ": " + decl.value + " }"), {
@@ -295,7 +301,7 @@ var Processor = /*#__PURE__*/function () {
295
301
  }
296
302
  }
297
303
 
298
- if (display !== 'flex' && _this.gridStatus(decl, result) !== false) {
304
+ if (_this.gridStatus(decl, result) !== false) {
299
305
  prefixer = _this.prefixes.add['grid-row-align'];
300
306
 
301
307
  if (prefixer && prefixer.prefixes) {
@@ -304,9 +310,7 @@ var Processor = /*#__PURE__*/function () {
304
310
  }
305
311
  } else if (decl.prop === 'justify-self') {
306
312
  // justify-self flexbox or grid
307
- var _display = _this.displayType(decl);
308
-
309
- if (_display !== 'flex' && _this.gridStatus(decl, result) !== false) {
313
+ if (_this.gridStatus(decl, result) !== false) {
310
314
  prefixer = _this.prefixes.add['grid-column-align'];
311
315
 
312
316
  if (prefixer && prefixer.prefixes) {
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "9.8.4",
3
+ "version": "9.8.8",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
- "keywords": ["autoprefixer", "css", "prefix", "postcss", "postcss-plugin"],
5
+ "keywords": [
6
+ "autoprefixer",
7
+ "css",
8
+ "prefix",
9
+ "postcss",
10
+ "postcss-plugin"
11
+ ],
6
12
  "bin": "./bin/autoprefixer",
7
13
  "funding": {
8
14
  "type": "tidelift",
@@ -13,17 +19,12 @@
13
19
  "repository": "postcss/autoprefixer",
14
20
  "dependencies": {
15
21
  "browserslist": "^4.12.0",
16
- "caniuse-lite": "^1.0.30001087",
17
- "colorette": "^1.2.0",
22
+ "caniuse-lite": "^1.0.30001109",
18
23
  "normalize-range": "^0.1.2",
19
24
  "num2fraction": "^1.2.2",
25
+ "picocolors": "^0.2.1",
20
26
  "postcss": "^7.0.32",
21
27
  "postcss-value-parser": "^4.1.0"
22
28
  },
23
- "eslintIgnore": ["build/"],
24
- "browser": {
25
- "colorette": false,
26
- "chalk": false
27
- },
28
29
  "main": "lib/autoprefixer"
29
- }
30
+ }