autoprefixer 9.8.3 → 9.8.4

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,9 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 9.8.4
5
+ * Replace color output library.
6
+
4
7
  ## 9.8.3
5
8
  * Return old non-LTS Node.js versions to avoid breaking changes.
6
9
 
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "9.8.3",
3
+ "version": "9.8.4",
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 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
16
- },
17
14
  "dependencies": {
18
15
  "browserslist": "^4.12.0",
19
16
  "caniuse-lite": "^1.0.30001087",
20
- "kleur": "^4.0.1",
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"