postcss 8.1.3 → 8.1.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.
Potentially problematic release.
This version of postcss might be problematic. Click here for more details.
- package/CHANGELOG.md +12 -0
- package/lib/at-rule.js +1 -0
- package/lib/comment.js +1 -0
- package/lib/container.js +1 -0
- package/lib/css-syntax-error.js +1 -0
- package/lib/declaration.js +1 -0
- package/lib/input.js +1 -0
- package/lib/lazy-result.js +1 -0
- package/lib/list.js +1 -0
- package/lib/node.d.ts +2 -2
- package/lib/node.js +1 -0
- package/lib/parse.js +1 -0
- package/lib/postcss.d.ts +3 -1
- package/lib/postcss.js +1 -0
- package/lib/previous-map.js +1 -0
- package/lib/processor.js +2 -1
- package/lib/result.js +1 -0
- package/lib/root.js +1 -0
- package/lib/rule.js +1 -0
- package/lib/stringify.js +4 -1
- package/lib/warning.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
3
3
|
|
4
|
+
## 8.1.7
|
5
|
+
* Fix `import` support in TypeScript (by Remco Haszing).
|
6
|
+
|
7
|
+
## 8.1.6
|
8
|
+
* Reverted `package.exports` Node.js 15 fix.
|
9
|
+
|
10
|
+
## 8.1.5
|
11
|
+
* Fixed Node.js 15 warning (by 沈鸿飞).
|
12
|
+
|
13
|
+
## 8.1.4
|
14
|
+
* Fixed TypeScript definition (by Arthur Petrie).
|
15
|
+
|
4
16
|
## 8.1.3
|
5
17
|
* Added `package.types`.
|
6
18
|
|
package/lib/at-rule.js
CHANGED
package/lib/comment.js
CHANGED
package/lib/container.js
CHANGED
package/lib/css-syntax-error.js
CHANGED
package/lib/declaration.js
CHANGED
package/lib/input.js
CHANGED
package/lib/lazy-result.js
CHANGED
package/lib/list.js
CHANGED
package/lib/node.d.ts
CHANGED
@@ -22,12 +22,12 @@ export type ChildProps =
|
|
22
22
|
|
23
23
|
export interface Position {
|
24
24
|
/**
|
25
|
-
* Source offset in file.
|
25
|
+
* Source offset in file. It starts from 0.
|
26
26
|
*/
|
27
27
|
offset: number
|
28
28
|
|
29
29
|
/**
|
30
|
-
* Source line in file.
|
30
|
+
* Source line in file. In contrast to `offset` it starts from 1.
|
31
31
|
*/
|
32
32
|
column: number
|
33
33
|
|
package/lib/node.js
CHANGED
package/lib/parse.js
CHANGED
package/lib/postcss.d.ts
CHANGED
@@ -409,8 +409,10 @@ export interface Postcss {
|
|
409
409
|
}
|
410
410
|
|
411
411
|
export const stringify: Stringifier
|
412
|
-
export const atRule: Postcss['atRule']
|
413
412
|
export const parse: Parser
|
413
|
+
|
414
|
+
export const comment: Postcss['comment']
|
415
|
+
export const atRule: Postcss['atRule']
|
414
416
|
export const decl: Postcss['decl']
|
415
417
|
export const rule: Postcss['rule']
|
416
418
|
export const root: Postcss['root']
|
package/lib/postcss.js
CHANGED
package/lib/previous-map.js
CHANGED
package/lib/processor.js
CHANGED
@@ -5,7 +5,7 @@ let Root = require('./root')
|
|
5
5
|
|
6
6
|
class Processor {
|
7
7
|
constructor (plugins = []) {
|
8
|
-
this.version = '8.1.
|
8
|
+
this.version = '8.1.7'
|
9
9
|
this.plugins = this.normalize(plugins)
|
10
10
|
}
|
11
11
|
|
@@ -65,5 +65,6 @@ class Processor {
|
|
65
65
|
}
|
66
66
|
|
67
67
|
module.exports = Processor
|
68
|
+
Processor.default = Processor
|
68
69
|
|
69
70
|
Root.registerProcessor(Processor)
|
package/lib/result.js
CHANGED
package/lib/root.js
CHANGED
package/lib/rule.js
CHANGED
package/lib/stringify.js
CHANGED
@@ -2,7 +2,10 @@
|
|
2
2
|
|
3
3
|
let Stringifier = require('./stringifier')
|
4
4
|
|
5
|
-
|
5
|
+
function stringify (node, builder) {
|
6
6
|
let str = new Stringifier(builder)
|
7
7
|
str.stringify(node)
|
8
8
|
}
|
9
|
+
|
10
|
+
module.exports = stringify
|
11
|
+
stringify.default = stringify
|
package/lib/warning.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "postcss",
|
3
|
-
"version": "8.1.
|
3
|
+
"version": "8.1.7",
|
4
4
|
"description": "Tool for transforming styles with JS plugins",
|
5
5
|
"engines": {
|
6
6
|
"node": "^10 || ^12 || >=14"
|
@@ -37,7 +37,7 @@
|
|
37
37
|
"dependencies": {
|
38
38
|
"colorette": "^1.2.1",
|
39
39
|
"line-column": "^1.0.2",
|
40
|
-
"nanoid": "^3.1.
|
40
|
+
"nanoid": "^3.1.16",
|
41
41
|
"source-map": "^0.6.1"
|
42
42
|
},
|
43
43
|
"browser": {
|