postcss-custom-properties
Advanced tools
Comparing version
# Changes to PostCSS Custom Properties | ||
### 13.1.0 (January 24, 2023) | ||
- Added: Support for Cascade Layers. | ||
- Improve plugin performance (port of fixes in `v12.1.11`) | ||
### 13.0.0 (November 14, 2022) | ||
@@ -25,2 +30,6 @@ | ||
### 12.1.11 (December 1, 2022) | ||
- Improve plugin performance | ||
### 12.1.10 (October 20, 2022) | ||
@@ -106,3 +115,3 @@ | ||
- Allow `.mjs` in `importFrom` | ||
- Converted to typescript | ||
- Converted to TypeScript | ||
- Correct typings for plugin options | ||
@@ -109,0 +118,0 @@ - Fix unicode support in custom property names |
import type { PluginCreator } from 'postcss'; | ||
export interface PluginOptions { | ||
/** Determines whether properties using custom properties should be preserved in their original form. */ | ||
/** postcss-custom-properties plugin options */ | ||
export type pluginOptions = { | ||
/** Preserve the original notation. default: true */ | ||
preserve?: boolean; | ||
} | ||
declare const creator: PluginCreator<PluginOptions>; | ||
}; | ||
declare const creator: PluginCreator<pluginOptions>; | ||
export default creator; |
@@ -1,3 +0,4 @@ | ||
declare function isBlockIgnored(ruleOrDeclaration: any): boolean; | ||
declare function isRuleIgnored(rule: any): boolean; | ||
export { isBlockIgnored, isRuleIgnored, }; | ||
import type { Container, Declaration } from 'postcss'; | ||
declare function isBlockIgnored(container: Container): any; | ||
declare function isDeclarationIgnored(decl: Declaration): boolean; | ||
export { isBlockIgnored, isDeclarationIgnored, }; |
{ | ||
"name": "postcss-custom-properties", | ||
"description": "Use Custom Properties Queries in CSS", | ||
"version": "13.0.0", | ||
"version": "13.1.0", | ||
"author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
@@ -35,2 +35,5 @@ "contributors": [ | ||
"dependencies": { | ||
"@csstools/cascade-layer-name-parser": "^1.0.0", | ||
"@csstools/css-parser-algorithms": "^2.0.0", | ||
"@csstools/css-tokenizer": "^2.0.0", | ||
"postcss-value-parser": "^4.2.0" | ||
@@ -45,4 +48,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", | ||
@@ -78,2 +82,3 @@ "lint": "npm run lint:eslint && npm run lint:package-json", | ||
"csstools": { | ||
"assumesToProcessBundledCSS": true, | ||
"cssdbId": "custom-properties", | ||
@@ -80,0 +85,0 @@ "exportName": "postcssCustomProperties", |
@@ -1,2 +0,2 @@ | ||
# PostCSS Custom Properties [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss] | ||
# PostCSS Custom Properties [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS] | ||
@@ -82,4 +82,9 @@ [<img alt="npm version" src="https://img.shields.io/npm/v/postcss-custom-properties.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/custom-properties.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) | ||
@@ -148,7 +153,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 Properties]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties | ||
[CSS Custom Properties]: https://www.w3.org/TR/css-variables-1/ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31425
16.08%13
18.18%67
52.27%155
1.31%5
150%+ Added
+ Added
+ Added