Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss

Package Overview
Dependencies
Maintainers
1
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss - npm Package Compare versions

Comparing version 8.2.1 to 8.2.2

5

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](https://semver.org/).
## 8.2.2
* Fixed CSS-in-JS support (by James Garbutt).
* Fixed plugin types (by Ludovico Fischer).
* Fixed `Result#warn()` types.
## 8.2.1

@@ -5,0 +10,0 @@ * Fixed `Node#toJSON()` and `postcss.fromJSON()` (by Niklas Mischkulnig).

51

lib/container.d.ts

@@ -94,4 +94,5 @@ import Node, { ChildNode, NodeProps, ChildProps } from './node.js'

*/
each (callback: (node: ChildNode, index: number) => void): void
each (callback: (node: ChildNode, index: number) => false): false
each (
callback: (node: ChildNode, index: number) => false | void
): false | undefined

@@ -117,4 +118,5 @@ /**

*/
walk (callback: (node: ChildNode, index: number) => void): void
walk (callback: (node: ChildNode, index: number) => false): false
walk (
callback: (node: ChildNode, index: number) => false | void
): false | undefined

@@ -152,10 +154,7 @@ /**

propFilter: string | RegExp,
callback: (decl: Declaration, index: number) => void
): void
walkDecls (callback: (decl: Declaration, index: number) => void): void
callback: (decl: Declaration, index: number) => false | void
): false | undefined
walkDecls (
propFilter: string | RegExp,
callback: (decl: Declaration, index: number) => false
): false
walkDecls (callback: (decl: Declaration, index: number) => false): false
callback: (decl: Declaration, index: number) => false | void
): false | undefined

@@ -186,10 +185,7 @@ /**

selectorFilter: string | RegExp,
callback: (atRule: Rule, index: number) => void
): void
walkRules (callback: (atRule: Rule, index: number) => void): void
callback: (atRule: Rule, index: number) => false | void
): false | undefined
walkRules (
selectorFilter: string | RegExp,
callback: (atRule: Rule, index: number) => false
): false
walkRules (callback: (atRule: Rule, index: number) => false): false
callback: (atRule: Rule, index: number) => false | void
): false | undefined

@@ -227,10 +223,7 @@ /**

nameFilter: string | RegExp,
callback: (atRule: AtRule, index: number) => void
): void
walkAtRules (callback: (atRule: AtRule, index: number) => void): void
callback: (atRule: AtRule, index: number) => false | void
): false | undefined
walkAtRules (
nameFilter: string | RegExp,
callback: (atRule: AtRule, index: number) => false
): false
walkAtRules (callback: (atRule: AtRule, index: number) => false): false
callback: (atRule: AtRule, index: number) => false | void
): false | undefined

@@ -254,6 +247,8 @@ /**

walkComments (callback: (comment: Comment, indexed: number) => void): void
walkComments (
callback: (comment: Comment, indexed: number) => boolean
): boolean
callback: (comment: Comment, indexed: number) => false | void
): false | undefined
walkComments (
callback: (comment: Comment, indexed: number) => false | void
): false | undefined

@@ -260,0 +255,0 @@ /**

@@ -173,3 +173,3 @@ import { SourceMapGenerator, RawSourceMap } from 'source-map'

export interface PluginCreator<PluginOptions> {
(opts?: PluginOptions): Plugin
(opts?: PluginOptions): Plugin | Processor
postcss: true

@@ -176,0 +176,0 @@ }

@@ -8,3 +8,3 @@ 'use strict'

constructor (plugins = []) {
this.version = '8.2.1'
this.version = '8.2.2'
this.plugins = this.normalize(plugins)

@@ -11,0 +11,0 @@ }

@@ -180,3 +180,3 @@ import {

*/
warn (message: string, options?: WarningOptions): void
warn (message: string, options?: WarningOptions): Warning

@@ -183,0 +183,0 @@ /**

@@ -28,2 +28,11 @@ 'use strict'

stringify (node, semicolon) {
/* istanbul ignore if */
if (!this[node.type]) {
throw new Error(
'Unknown AST node type ' +
node.type +
'. ' +
'Maybe you need to change PostCSS stringifier.'
)
}
this[node.type](node, semicolon)

@@ -33,3 +42,2 @@ }

root (node) {
this.root = node
this.body(node)

@@ -36,0 +44,0 @@ if (node.raws.after) this.builder(node.raws.after)

{
"name": "postcss",
"version": "8.2.1",
"version": "8.2.2",
"description": "Tool for transforming styles with JS plugins",

@@ -5,0 +5,0 @@ "engines": {

@@ -103,4 +103,5 @@ # PostCSS [![Gitter][chat-img]][chat]

* [`postcss-write-svg`] allows you to write simple SVG directly in your CSS.
* [`webp-in-css`] to use WebP image format in CSS background.
* [`avif-in-css`] to use AVIF image format in CSS background.
### Linters

@@ -140,2 +141,4 @@

[`css-modules`]: https://github.com/css-modules/css-modules
[`webp-in-css`]: https://github.com/ai/webp-in-css
[`avif-in-css`]: https://github.com/nucliweb/avif-in-css
[`colorguard`]: https://github.com/SlexAxton/css-colorguard

@@ -151,3 +154,2 @@ [`stylelint`]: https://github.com/stylelint/stylelint

## Syntaxes

@@ -154,0 +156,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc