@csstools/postcss-is-pseudo-class
Advanced tools
Comparing version 2.0.7 to 3.0.0
# Changes to PostCSS Is Pseudo Class | ||
### 3.0.0 (January 24, 2023) | ||
- Updated: Support for Node v14+ (major). | ||
### 2.0.7 (July 8, 2022) | ||
@@ -4,0 +8,0 @@ |
import type { PluginCreator } from 'postcss'; | ||
declare type pluginOptions = { | ||
/** postcss-is-pseudo-class plugin options */ | ||
export type pluginOptions = { | ||
/** Preserve the original notation. default: false */ | ||
preserve?: boolean; | ||
/** | ||
* Warn on complex selectors in `:is` pseudo class functions. | ||
* default: _not set_ | ||
*/ | ||
onComplexSelector?: 'warning'; | ||
/** | ||
* Warn when pseudo elements are used in `:is` pseudo class functions. | ||
* default: _not set_ | ||
*/ | ||
onPseudoElement?: 'warning'; | ||
/** | ||
* Change the selector used to adjust specificity. | ||
* default: `does-not-exist`. | ||
*/ | ||
specificityMatchingName?: string; | ||
@@ -7,0 +21,0 @@ }; |
{ | ||
"name": "@csstools/postcss-is-pseudo-class", | ||
"description": "A pseudo-class for matching elements in a selector list", | ||
"version": "2.0.7", | ||
"version": "3.0.0", | ||
"author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
@@ -12,3 +12,3 @@ "license": "CC0-1.0", | ||
"engines": { | ||
"node": "^12 || ^14 || >=16" | ||
"node": "^14 || ^16 || >=18" | ||
}, | ||
@@ -36,10 +36,11 @@ "main": "dist/index.cjs", | ||
"peerDependencies": { | ||
"postcss": "^8.2" | ||
"postcss": "^8.4" | ||
}, | ||
"devDependencies": { | ||
"puppeteer": "^15.1.1" | ||
"puppeteer": "^19.5.2" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c ../../rollup/default.js", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"", | ||
"prebuild": "npm run clean", | ||
"build": "rollup -c ../../rollup/default.mjs", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"", | ||
"docs": "node ../../.github/bin/generate-docs/install.mjs", | ||
@@ -46,0 +47,0 @@ "lint": "npm run lint:eslint && npm run lint:package-json", |
@@ -55,4 +55,4 @@ # PostCSS Is Pseudo [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][postcss] | ||
| [Node](INSTALL.md#node) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) | | ||
| --- | --- | --- | --- | --- | | ||
| [Node](INSTALL.md#node) | [Webpack](INSTALL.md#webpack) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) | | ||
| --- | --- | --- | --- | | ||
@@ -100,3 +100,3 @@ ## Options | ||
The `specificityMatchingName` option allows you to change to selector used to adjust specificity. | ||
The `specificityMatchingName` option allows you to change the selector used to adjust specificity. | ||
The default value is `does-not-exist`. | ||
@@ -103,0 +103,0 @@ If this is an actual class, id or tag name in your code, you will need to set a different option here. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31048
86