postcss-colormin 5.3.0 → 6.0.0

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.
Files changed (2) hide show
  1. package/package.json +4 -5
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-colormin",
3
- "version": "5.3.0",
3
+ "version": "6.0.0",
4
4
  "description": "Minify colors in your CSS files with PostCSS.",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "repository": "cssnano/cssnano",
29
29
  "dependencies": {
30
- "browserslist": "^4.16.6",
30
+ "browserslist": "^4.21.4",
31
31
  "caniuse-api": "^3.0.0",
32
32
  "colord": "^2.9.1",
33
33
  "postcss-value-parser": "^4.2.0"
@@ -36,7 +36,7 @@
36
36
  "url": "https://github.com/cssnano/cssnano/issues"
37
37
  },
38
38
  "engines": {
39
- "node": "^10 || ^12 || >=14.0"
39
+ "node": "^14 || ^16 || >=18.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/caniuse-api": "^3.0.2",
@@ -44,6 +44,5 @@
44
44
  },
45
45
  "peerDependencies": {
46
46
  "postcss": "^8.2.15"
47
- },
48
- "readme": "# [postcss][postcss]-colormin\n\n> Minify colors in your CSS files with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-colormin) do:\n\n```\nnpm install postcss-colormin --save\n```\n\n\n## Example\n\n```js\nvar postcss = require('postcss')\nvar colormin = require('postcss-colormin');\n\nvar css = 'h1 {color: rgba(255, 0, 0, 1)}';\nconsole.log(postcss(colormin()).process(css).css);\n\n// => 'h1 {color:red}'\n```\n\nFor more examples see the [tests](src/__tests__/index.js).\n\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n\n[postcss]: https://github.com/postcss/postcss\n"
47
+ }
49
48
  }
package/src/index.js CHANGED
@@ -123,7 +123,7 @@ function pluginCreator(config = {}) {
123
123
  OnceExit(css) {
124
124
  css.walkDecls((decl) => {
125
125
  if (
126
- /^(composes|font|filter|-webkit-tap-highlight-color)/i.test(
126
+ /^(composes|font|src$|filter|-webkit-tap-highlight-color)/i.test(
127
127
  decl.prop
128
128
  )
129
129
  ) {