Socket
Socket
Sign inDemoInstall

@csstools/postcss-progressive-custom-properties

Package Overview
Dependencies
5
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.0.3

86

CHANGELOG.md
# Changes to PostCSS Progressive Custom Properties
### 3.0.3
_December 15, 2023_
- Fix type definitions
### 3.0.2

@@ -17,80 +23,2 @@

### 3.0.0
_July 3, 2023_
- Change license to `MIT-0` ([read more about this change in the blog post](https://preset-env.cssdb.org/blog/license-change/))
### 2.3.0
_June 1, 2023_
- Add support for regular properties whose values contain `var()`
```css
.property-with-var--1 {
color: rgba(87, 107, 149, var(--opacity));
color: rgb(87 107 149 / var(--opacity));
}
/* becomes */
.property-with-var--1 {
color: rgba(87, 107, 149, var(--opacity));
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
.property-with-var--1 {
color: rgb(87 107 149 / var(--opacity));
}
}
```
### 2.2.0
_May 19, 2023_
- Add relative color syntax support.
- Fix false positive matches for `rgb` and `hsl` modern function notations.
### 2.1.1
_March 25, 2023_
- Smaller `@supports` check for `color-mix`.
### 2.1.0
_February 2, 2023_
- Group support rules with the same params to reduce the output size.
### 2.0.1
_January 28, 2023_
- Improve `types` declaration in `package.json`
### 2.0.0
_January 24, 2023_
- Updated: Support for Node v14+ (major).
## 1.3.0 (March 7, 2022)
- Add matching rules for `color-mix`
- Fix matching rules for gradient functions
- Reduce matchers size
## 1.2.0 (February 15, 2022)
- More matching rules for [double position gradients](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-double-position-gradients#readme).
## 1.1.0 (February 12, 2022)
- No longer uses custom properties in `@supports` rules.
- Implement AST matching for values and units and generate minimal `@supports` for select features.
## 1.0.0 (February 6, 2022)
Initial release
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md)

5

dist/index.d.ts

@@ -1,3 +0,6 @@

import { type PluginCreator } from 'postcss';
import { PluginCreator } from 'postcss';
declare const creator: PluginCreator<null>;
export default creator;
export { }
{
"name": "@csstools/postcss-progressive-custom-properties",
"description": "Correctly declare progressive enhancements for CSS Custom Properties.",
"version": "3.0.2",
"version": "3.0.3",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",

@@ -20,11 +20,14 @@ "license": "MIT-0",

},
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"default": "./dist/index.mjs"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"default": "./dist/index.cjs"
}
}

@@ -44,13 +47,2 @@ },

},
"devDependencies": {
"@csstools/postcss-tape": "*"
},
"scripts": {
"build": "node ./generate/matchers.mjs && eslint --fix ./src/matchers.ts && rollup -c ../../rollup/default.mjs",
"docs": "node ../../.github/bin/generate-docs/install.mjs",
"lint": "node ../../.github/bin/format-package-json.mjs",
"prepublishOnly": "npm run build && npm run test",
"test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs",
"test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs"
},
"repository": {

@@ -72,10 +64,3 @@ "type": "git",

"vars"
],
"csstools": {
"exportName": "postcssProgressiveCustomProperties",
"humanReadableName": "PostCSS Progressive Custom Properties"
},
"volta": {
"extends": "../../package.json"
}
]
}

@@ -9,4 +9,5 @@ # PostCSS Progressive Custom Properties [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][postcss]

⚠️ It is not intended to be used directly by stylesheet authors.
Meant to be included in other PostCSS plugins that provide CSS value transforms as fallbacks.
> [!WARNING]
> It is not intended to be used directly by stylesheet authors.
> Meant to be included in other PostCSS plugins that provide CSS value transforms as fallbacks.

@@ -13,0 +14,0 @@ [Custom Properties are not discarded like regular declarations when invalid.](https://www.w3.org/TR/css-variables-1/#invalid-variables)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc