postcss 8.1.1 → 8.1.2

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 CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 8.1.2
5
+ * Fix API docs (by Arthur Petrie).
6
+ * Improve plugin guide (by Yunus Gaziev).
7
+ * Prepare code base for Deno support (by Oscar Otero).
8
+
4
9
  ## 8.1.1
5
10
  * Update funding link.
6
11
 
package/lib/comment.d.ts CHANGED
@@ -14,7 +14,7 @@ interface CommentRaws {
14
14
  /**
15
15
  * The space symbols between the comment’s text.
16
16
  */
17
- right?: boolean
17
+ right?: string
18
18
  }
19
19
 
20
20
  export interface CommentProps extends NodeProps {
package/lib/container.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
- let { isClean } = require('./symbols')
4
3
  let Declaration = require('./declaration')
4
+ let { isClean } = require('./symbols')
5
5
  let Comment = require('./comment')
6
6
  let Node = require('./node')
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
- let { isClean } = require('./symbols')
4
3
  let MapGenerator = require('./map-generator')
4
+ let { isClean } = require('./symbols')
5
5
  let stringify = require('./stringify')
6
6
  let warnOnce = require('./warn-once')
7
7
  let Result = require('./result')
package/lib/parse.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict'
2
2
 
3
+ let Container = require('./container')
3
4
  let Parser = require('./parser')
4
5
  let Input = require('./input')
5
- let Container = require('./container')
6
6
 
7
7
  function parse (css, opts) {
8
8
  let input = new Input(css, opts)
@@ -1,8 +1,8 @@
1
1
  'use strict'
2
2
 
3
+ let { existsSync, readFileSync } = require('fs')
3
4
  let { dirname, join } = require('path')
4
5
  let mozilla = require('source-map')
5
- let fs = require('fs')
6
6
 
7
7
  function fromBase64 (str) {
8
8
  if (Buffer) {
@@ -86,9 +86,9 @@ class PreviousMap {
86
86
 
87
87
  loadFile (path) {
88
88
  this.root = dirname(path)
89
- if (fs.existsSync && fs.existsSync(path)) {
89
+ if (existsSync(path)) {
90
90
  this.mapFile = path
91
- return fs.readFileSync(path, 'utf-8').toString().trim()
91
+ return readFileSync(path, 'utf-8').toString().trim()
92
92
  }
93
93
  }
94
94
 
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.1'
8
+ this.version = '8.1.2'
9
9
  this.plugins = this.normalize(plugins)
10
10
  }
11
11
 
package/lib/symbols.js CHANGED
@@ -1,5 +1,3 @@
1
1
  'use strict'
2
2
 
3
- module.exports = {
4
- isClean: Symbol('isClean')
5
- }
3
+ module.exports.isClean = Symbol('isClean')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "8.1.1",
3
+ "version": "8.1.2",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"