autoprefixer 9.8.1 → 9.8.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,18 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 9.8.5
5
+ * Improved Grid Layout warnings (by Daniel Tonon).
6
+
7
+ ## 9.8.4
8
+ * Replace color output library.
9
+
10
+ ## 9.8.3
11
+ * Return old non-LTS Node.js versions to avoid breaking changes.
12
+
13
+ ## 9.8.2
14
+ * Remove Node.js 13.0-13.7 from supported engines, because of buggy ESM support.
15
+
4
16
  ## 9.8.1
5
17
  * Replace `chalk` to `kleur` (by Luke Edwards).
6
18
  * Update docs (by @mbomb007).
@@ -2,12 +2,12 @@
2
2
 
3
3
  var browserslist = require('browserslist');
4
4
 
5
+ var colorette = require('colorette');
6
+
5
7
  var postcss = require('postcss');
6
8
 
7
9
  var agents = require('caniuse-lite').agents;
8
10
 
9
- var kleur = require('kleur/colors');
10
-
11
11
  var Browsers = require('./browsers');
12
12
 
13
13
  var Prefixes = require('./prefixes');
@@ -75,9 +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 (kleur.red) {
79
- console.warn(kleur.red(WARNING.replace(/`[^`]+`/g, function (i) {
80
- return kleur.yellow(i.slice(1, -1));
78
+ if (colorette.red) {
79
+ console.warn(colorette.red(WARNING.replace(/`[^`]+`/g, function (i) {
80
+ return colorette.yellow(i.slice(1, -1));
81
81
  })));
82
82
  } else {
83
83
  console.warn(WARNING);
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,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "9.8.1",
3
+ "version": "9.8.5",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "keywords": ["autoprefixer", "css", "prefix", "postcss", "postcss-plugin"],
6
6
  "bin": "./bin/autoprefixer",
@@ -11,13 +11,10 @@
11
11
  "author": "Andrey Sitnik <andrey@sitnik.ru>",
12
12
  "license": "MIT",
13
13
  "repository": "postcss/autoprefixer",
14
- "engines": {
15
- "node": ">=6.0.0"
16
- },
17
14
  "dependencies": {
18
15
  "browserslist": "^4.12.0",
19
- "caniuse-lite": "^1.0.30001084",
20
- "kleur": "^4.0.1",
16
+ "caniuse-lite": "^1.0.30001097",
17
+ "colorette": "^1.2.0",
21
18
  "normalize-range": "^0.1.2",
22
19
  "num2fraction": "^1.2.2",
23
20
  "postcss": "^7.0.32",
@@ -25,6 +22,7 @@
25
22
  },
26
23
  "eslintIgnore": ["build/"],
27
24
  "browser": {
25
+ "colorette": false,
28
26
  "chalk": false
29
27
  },
30
28
  "main": "lib/autoprefixer"