@depup/postcss 8.5.21-depup.0 → 8.5.22-depup.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.
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/postcss
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [postcss](https://www.npmjs.com/package/postcss) @ 8.5.21 |
17
- | Processed | 2026-07-21 |
16
+ | Original | [postcss](https://www.npmjs.com/package/postcss) @ 8.5.22 |
17
+ | Processed | 2026-07-22 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 1 |
20
20
 
package/changes.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "to": "^6.0.0"
6
6
  }
7
7
  },
8
- "timestamp": "2026-07-21T17:29:17.055Z",
8
+ "timestamp": "2026-07-22T08:55:33.566Z",
9
9
  "totalUpdated": 1
10
10
  }
package/lib/processor.js CHANGED
@@ -7,7 +7,7 @@ let Root = require('./root')
7
7
 
8
8
  class Processor {
9
9
  constructor(plugins = []) {
10
- this.version = '8.5.21'
10
+ this.version = '8.5.22'
11
11
  this.plugins = this.normalize(plugins)
12
12
  }
13
13
 
@@ -62,14 +62,15 @@ function pushBody(str, stack, node) {
62
62
  for (let i = nodes.length - 1; i >= 0; i--) {
63
63
  let child = nodes[i]
64
64
  let childSemicolon = last !== i || semicolon
65
- // A childless at-rule that still has following siblings must be
66
- // terminated. Without the semicolon those trailing comments are folded
67
- // into the at-rule's prelude and disappear when the output is re-parsed.
65
+ // A childless at-rule or a custom property declaration that still has
66
+ // following siblings must be terminated. Without the semicolon those
67
+ // trailing comments are folded into the at-rule's prelude or the custom
68
+ // property's value and disappear when the output is re-parsed.
68
69
  if (
69
70
  !childSemicolon &&
70
71
  i < nodes.length - 1 &&
71
- child.type === 'atrule' &&
72
- !child.nodes
72
+ ((child.type === 'atrule' && !child.nodes) ||
73
+ (child.type === 'decl' && child.prop.startsWith('--')))
73
74
  ) {
74
75
  childSemicolon = true
75
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depup/postcss",
3
- "version": "8.5.21-depup.0",
3
+ "version": "8.5.22-depup.0",
4
4
  "description": "Tool for transforming styles with JS plugins (with updated dependencies)",
5
5
  "keywords": [
6
6
  "postcss",
@@ -99,8 +99,8 @@
99
99
  },
100
100
  "depsUpdated": 1,
101
101
  "originalPackage": "postcss",
102
- "originalVersion": "8.5.21",
103
- "processedAt": "2026-07-21T17:29:18.301Z",
102
+ "originalVersion": "8.5.22",
103
+ "processedAt": "2026-07-22T08:55:34.234Z",
104
104
  "smokeTest": "passed"
105
105
  }
106
106
  }