postcss 8.4.42 → 8.4.44

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/lib/container.js CHANGED
@@ -210,7 +210,7 @@ class Container extends Node {
210
210
 
211
211
  let processed = nodes.map(i => {
212
212
  /* c8 ignore next */
213
- if (!i[my]) Container.rebuild(i)
213
+ if (!i[my] || !i.markClean) Container.rebuild(i)
214
214
  i = i.proxyOf
215
215
  if (i.parent) i.parent.removeChild(i)
216
216
  if (i[isClean]) markTreeDirty(i)
@@ -269,7 +269,7 @@ class LazyResult {
269
269
  if (this.hasListener) {
270
270
  let root = this.result.root
271
271
  while (!root[isClean]) {
272
- root.markClean()
272
+ root[isClean] = true
273
273
  let stack = [toStack(root)]
274
274
  while (stack.length > 0) {
275
275
  let promise = this.visitTick(stack)
@@ -374,7 +374,7 @@ class LazyResult {
374
374
  if (this.hasListener) {
375
375
  let root = this.result.root
376
376
  while (!root[isClean]) {
377
- root.markClean()
377
+ root[isClean] = true
378
378
  this.walkSync(root)
379
379
  }
380
380
  if (this.listeners.OnceExit) {
@@ -456,7 +456,7 @@ class LazyResult {
456
456
  while ((child = node.nodes[node.indexes[iterator]])) {
457
457
  node.indexes[iterator] += 1
458
458
  if (!child[isClean]) {
459
- child.markClean()
459
+ child[isClean] = true
460
460
  stack.push(toStack(child))
461
461
  return
462
462
  }
@@ -471,7 +471,7 @@ class LazyResult {
471
471
  visit.eventIndex += 1
472
472
  if (event === CHILDREN) {
473
473
  if (node.nodes && node.nodes.length) {
474
- node.markClean()
474
+ node[isClean] = true
475
475
  visit.iterator = node.getIterator()
476
476
  }
477
477
  return
@@ -484,7 +484,7 @@ class LazyResult {
484
484
  }
485
485
 
486
486
  walkSync(node) {
487
- node.markClean()
487
+ node[isClean] = true
488
488
  let events = getEvents(node)
489
489
  for (let event of events) {
490
490
  if (event === CHILDREN) {
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.4.42'
10
+ this.version = '8.4.44'
11
11
  this.plugins = this.normalize(plugins)
12
12
  }
13
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "8.4.42",
3
+ "version": "8.4.44",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"