postcss 8.4.39 → 8.4.40

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/at-rule.d.ts CHANGED
@@ -88,7 +88,9 @@ declare class AtRule_ extends Container {
88
88
  * media.name //=> 'media'
89
89
  * ```
90
90
  */
91
- name: string
91
+ get name(): string
92
+ set name(value: string)
93
+
92
94
  /**
93
95
  * An array containing the layer’s children.
94
96
  *
@@ -118,7 +120,8 @@ declare class AtRule_ extends Container {
118
120
  * media.params //=> 'print, screen'
119
121
  * ```
120
122
  */
121
- params: string
123
+ get params(): string
124
+ set params(value: string)
122
125
  parent: ContainerWithChildren | undefined
123
126
 
124
127
  raws: AtRule.AtRuleRaws
package/lib/comment.d.ts CHANGED
@@ -51,7 +51,8 @@ declare class Comment_ extends Node {
51
51
  /**
52
52
  * The comment's text.
53
53
  */
54
- text: string
54
+ get text(): string
55
+ set text(value: string)
55
56
 
56
57
  type: 'comment'
57
58
 
package/lib/container.js CHANGED
@@ -15,11 +15,11 @@ function cleanSource(nodes) {
15
15
  })
16
16
  }
17
17
 
18
- function markDirtyUp(node) {
18
+ function markTreeDirty(node) {
19
19
  node[isClean] = false
20
20
  if (node.proxyOf.nodes) {
21
21
  for (let i of node.proxyOf.nodes) {
22
- markDirtyUp(i)
22
+ markTreeDirty(i)
23
23
  }
24
24
  }
25
25
  }
@@ -153,7 +153,11 @@ class Container extends Node {
153
153
  insertBefore(exist, add) {
154
154
  let existIndex = this.index(exist)
155
155
  let type = existIndex === 0 ? 'prepend' : false
156
- let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse()
156
+ let nodes = this.normalize(
157
+ add,
158
+ this.proxyOf.nodes[existIndex],
159
+ type
160
+ ).reverse()
157
161
  existIndex = this.index(exist)
158
162
  for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node)
159
163
 
@@ -209,7 +213,7 @@ class Container extends Node {
209
213
  if (!i[my]) Container.rebuild(i)
210
214
  i = i.proxyOf
211
215
  if (i.parent) i.parent.removeChild(i)
212
- if (i[isClean]) markDirtyUp(i)
216
+ if (i[isClean]) markTreeDirty(i)
213
217
  if (typeof i.raws.before === 'undefined') {
214
218
  if (sample && typeof sample.raws.before !== 'undefined') {
215
219
  i.raws.before = sample.raws.before.replace(/\S/g, '')
@@ -77,7 +77,8 @@ declare class Declaration_ extends Node {
77
77
  * root.first.last.important //=> undefined
78
78
  * ```
79
79
  */
80
- important: boolean
80
+ get important(): boolean
81
+ set important(value: boolean)
81
82
 
82
83
  parent: ContainerWithChildren | undefined
83
84
 
@@ -91,7 +92,8 @@ declare class Declaration_ extends Node {
91
92
  * decl.prop //=> 'color'
92
93
  * ```
93
94
  */
94
- prop: string
95
+ get prop(): string
96
+ set prop(value: string)
95
97
 
96
98
  raws: Declaration.DeclarationRaws
97
99
 
@@ -114,7 +116,8 @@ declare class Declaration_ extends Node {
114
116
  * decl.value //=> 'black'
115
117
  * ```
116
118
  */
117
- value: string
119
+ get value(): string
120
+ set value(value: string)
118
121
 
119
122
  /**
120
123
  * It represents a getter that returns `true` if a declaration starts with
@@ -134,7 +137,8 @@ declare class Declaration_ extends Node {
134
137
  * one.variable //=> true
135
138
  * ```
136
139
  */
137
- variable: boolean
140
+ get variable(): boolean
141
+ set varaible(value: string)
138
142
 
139
143
  constructor(defaults?: Declaration.DeclarationProps)
140
144
  assign(overrides: Declaration.DeclarationProps | object): this
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.39'
10
+ this.version = '8.4.40'
11
11
  this.plugins = this.normalize(plugins)
12
12
  }
13
13
 
package/lib/rule.d.ts CHANGED
@@ -84,7 +84,8 @@ declare class Rule_ extends Container {
84
84
  * rule.selector //=> 'a, b'
85
85
  * ```
86
86
  */
87
- selector: string
87
+ get selector(): string
88
+ set selector(value: string);
88
89
 
89
90
  /**
90
91
  * An array containing the rule’s individual selectors.
@@ -101,7 +102,8 @@ declare class Rule_ extends Container {
101
102
  * rule.selector //=> 'a, strong'
102
103
  * ```
103
104
  */
104
- selectors: string[]
105
+ get selectors(): string[]
106
+ set selectors(values: string[]);
105
107
 
106
108
  type: 'rule'
107
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "8.4.39",
3
+ "version": "8.4.40",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"