postcss-minify-gradients 7.0.1 → 7.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-minify-gradients",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "Minify gradient parameters with PostCSS.",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "repository": "cssnano/cssnano",
25
25
  "dependencies": {
26
- "colord": "^2.9.3",
26
+ "@colordx/core": "^5.0.3",
27
27
  "postcss-value-parser": "^4.2.0",
28
28
  "cssnano-utils": "^5.0.1"
29
29
  },
@@ -34,7 +34,7 @@
34
34
  "node": "^18.12.0 || ^20.9.0 || >=22.0"
35
35
  },
36
36
  "devDependencies": {
37
- "postcss": "^8.5.3"
37
+ "postcss": "^8.5.8"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "postcss": "^8.4.32"
package/src/index.js CHANGED
@@ -170,6 +170,7 @@ function optimise(decl) {
170
170
  }
171
171
  } else {
172
172
  if (arg[0].type === 'function') {
173
+ // eslint-disable-next-line no-useless-assignment
173
174
  color = `${arg[0].value}(${valueParser.stringify(arg[0].nodes)})`;
174
175
  }
175
176
 
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
  const { unit } = require('postcss-value-parser');
3
- const { colord, extend } = require('colord');
4
- const namesPlugin = require('colord/plugins/names');
3
+ const { colordx: colord, extend } = require('@colordx/core');
4
+ const hwbPlugin = require('@colordx/core/plugins/hwb');
5
+ const namesPlugin = require('@colordx/core/plugins/names');
5
6
 
6
- extend([/** @type {any} */ (namesPlugin)]);
7
+ extend([/** @type {any} */ (hwbPlugin), /** @type {any} */ (namesPlugin)]);
7
8
 
8
9
  /* Code derived from https://github.com/pigcan/is-color-stop */
9
10
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAiNA;;;GAGG;AACH,kCAFY,OAAO,SAAS,EAAE,MAAM,CASnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAkNA;;;GAGG;AACH,kCAFY,OAAO,SAAS,EAAE,MAAM,CASnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isColorStop.d.ts","sourceRoot":"","sources":["../src/isColorStop.js"],"names":[],"mappings":"AA2DiB,iCAJN,MAAM,SACN,MAAM,GACL,OAAO,CAIlB"}
1
+ {"version":3,"file":"isColorStop.d.ts","sourceRoot":"","sources":["../src/isColorStop.js"],"names":[],"mappings":"AA4DiB,iCAJN,MAAM,SACN,MAAM,GACL,OAAO,CAIlB"}