postcss-convert-values 7.0.5 → 7.0.7

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-convert-values",
3
- "version": "7.0.5",
3
+ "version": "7.0.7",
4
4
  "description": "Convert values with PostCSS (e.g. ms -> s)",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "repository": "cssnano/cssnano",
26
26
  "dependencies": {
27
- "browserslist": "^4.24.5",
27
+ "browserslist": "^4.25.1",
28
28
  "postcss-value-parser": "^4.2.0"
29
29
  },
30
30
  "bugs": {
@@ -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.6"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "postcss": "^8.4.32"
package/src/index.js CHANGED
@@ -50,6 +50,7 @@ const keepZeroPercentAlways = new Set([
50
50
  'hsl',
51
51
  'hsla',
52
52
  'hwb',
53
+ 'linear',
53
54
  ]);
54
55
 
55
56
  const keepZeroPercentageInKeyframe = new Set([
@@ -157,7 +158,10 @@ function shouldKeepZeroUnit(decl, browsers) {
157
158
  (node) =>
158
159
  node.type === 'decl' &&
159
160
  node.prop.toLowerCase() === 'syntax' &&
160
- (node.value === "'<percentage>'" || node.value === '"<percentage>"')
161
+ (node.value === "'<percentage>'" ||
162
+ node.value === '"<percentage>"' ||
163
+ node.value === "'<length-percentage>'" ||
164
+ node.value === '"<length-percentage>"')
161
165
  )) ||
162
166
  keepWhenZero.has(lowerCasedProp)
163
167
  );
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAmNA;;;;;GAKG;AAEH;;;;GAIG;AACH,sCAHW,OAAO,GACN,OAAO,SAAS,EAAE,MAAM,CAwBnC;;;;;sBAjCY,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;2BAC7B;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE;2BAC5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;eACpD;IAAC,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CAAC,GAAG,cAAc,GAAG,mBAAmB,GAAG,mBAAmB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAuNA;;;;;GAKG;AAEH;;;;GAIG;AACH,sCAHW,OAAO,GACN,OAAO,SAAS,EAAE,MAAM,CAwBnC;;;;;sBAjCY,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;2BAC7B;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE;2BAC5C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;eACpD;IAAC,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;CAAC,GAAG,cAAc,GAAG,mBAAmB,GAAG,mBAAmB"}