postcss-custom-selectors
Advanced tools
Comparing version 7.0.0 to 7.1.0
# Changes to PostCSS Custom Selectors | ||
### 7.1.0 (January 24, 2023) | ||
- Added: Support for Cascade Layers. | ||
### 7.0.0 (November 14, 2022) | ||
@@ -4,0 +8,0 @@ |
import type { PluginCreator } from 'postcss'; | ||
export interface PluginOptions { | ||
/** Determines whether Custom Selectors and selectors using custom selectors should be preserved in their original form. */ | ||
/** postcss-custom-selectors plugin options */ | ||
export type pluginOptions = { | ||
/** Preserve the original notation. default: false */ | ||
preserve?: boolean; | ||
} | ||
declare const creator: PluginCreator<PluginOptions>; | ||
}; | ||
declare const creator: PluginCreator<pluginOptions>; | ||
export default creator; |
{ | ||
"name": "postcss-custom-selectors", | ||
"description": "Use Custom Selectors in CSS", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"contributors": [ | ||
@@ -51,2 +51,5 @@ { | ||
"dependencies": { | ||
"@csstools/cascade-layer-name-parser": "^1.0.0", | ||
"@csstools/css-parser-algorithms": "^2.0.0", | ||
"@csstools/css-tokenizer": "^2.0.0", | ||
"postcss-selector-parser": "^6.0.4" | ||
@@ -58,4 +61,5 @@ }, | ||
"scripts": { | ||
"prebuild": "npm run clean", | ||
"build": "rollup -c ../../rollup/default.mjs", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"", | ||
"docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs", | ||
@@ -93,2 +97,3 @@ "lint": "npm run lint:eslint && npm run lint:package-json", | ||
"csstools": { | ||
"assumesToProcessBundledCSS": true, | ||
"cssdbId": "custom-selectors", | ||
@@ -95,0 +100,0 @@ "exportName": "postcssCustomSelectors", |
@@ -1,2 +0,2 @@ | ||
# PostCSS Custom Selectors [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss] | ||
# PostCSS Custom Selectors [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS] | ||
@@ -43,4 +43,9 @@ [<img alt="npm version" src="https://img.shields.io/npm/v/postcss-custom-selectors.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/custom-selectors.svg" height="20">][css-url] [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] [<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord] | ||
| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) | | ||
| --- | --- | --- | --- | --- | --- | | ||
- [Node](INSTALL.md#node) | ||
- [PostCSS CLI](INSTALL.md#postcss-cli) | ||
- [PostCSS Load Config](INSTALL.md#postcss-load-config) | ||
- [Webpack](INSTALL.md#webpack) | ||
- [Next.js](INSTALL.md#nextjs) | ||
- [Gulp](INSTALL.md#gulp) | ||
- [Grunt](INSTALL.md#grunt) | ||
@@ -83,7 +88,4 @@ ## Options | ||
[Gulp PostCSS]: https://github.com/postcss/gulp-postcss | ||
[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss | ||
[PostCSS]: https://github.com/postcss/postcss | ||
[PostCSS Loader]: https://github.com/postcss/postcss-loader | ||
[PostCSS Custom Selectors]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-selectors | ||
[Custom Selectors Specification]: https://drafts.csswg.org/css-extensions/#custom-selectors |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17585
11
50
90
5
+ Added@csstools/cascade-layer-name-parser@1.0.9(transitive)
+ Added@csstools/css-parser-algorithms@2.6.1(transitive)
+ Added@csstools/css-tokenizer@2.2.4(transitive)