postcss 8.1.9 → 8.1.10

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,10 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](https://semver.org/).
3
3
 
4
+ ## 8.1.10
5
+ * Fixed `LazyResult` type export (by Evan You).
6
+ * Fixed `LazyResult` type compatibility with `Promise` (by Anton Kastritskiy).
7
+
4
8
  ## 8.1.9
5
9
  * Reduced dependencies number (by Bogdan Chadkin).
6
10
 
@@ -13,7 +13,7 @@ import Root from './root.js'
13
13
  * const lazy = postcss([autoprefixer]).process(css)
14
14
  * ```
15
15
  */
16
- export default class LazyResult implements Promise<Result> {
16
+ export default class LazyResult implements PromiseLike<Result> {
17
17
  /**
18
18
  * Processes input CSS through synchronous and asynchronous plugins
19
19
  * and calls `onFulfilled` with a Result instance. If a plugin throws
package/lib/postcss.d.ts CHANGED
@@ -13,6 +13,7 @@ import Root, { RootProps } from './root.js'
13
13
  import Comment, { CommentProps } from './comment.js'
14
14
  import AtRule, { AtRuleProps } from './at-rule.js'
15
15
  import Result, { Message } from './result.js'
16
+ import LazyResult from './lazy-result.js'
16
17
  import Rule, { RuleProps } from './rule.js'
17
18
  import Container, { ContainerProps } from './container.js'
18
19
  import Warning, { WarningOptions } from './warning.js'
@@ -48,6 +49,7 @@ export {
48
49
  Rule,
49
50
  Root,
50
51
  Result,
52
+ LazyResult,
51
53
  Input
52
54
  }
53
55
 
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.9'
8
+ this.version = '8.1.10'
9
9
  this.plugins = this.normalize(plugins)
10
10
  }
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss",
3
- "version": "8.1.9",
3
+ "version": "8.1.10",
4
4
  "description": "Tool for transforming styles with JS plugins",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"