@csstools/postcss-gradients-interpolation-method
Advanced tools
Comparing version 4.0.7 to 4.0.8
125
CHANGELOG.md
# Changes to PostCSS Gradients Interpolation Method | ||
### 4.0.8 | ||
_December 15, 2023_ | ||
- Skip transforms when a color value contains experimental syntax | ||
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#222) (patch) | ||
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.4.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#240) (minor) | ||
- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.0.3`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#303) (patch) | ||
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.5.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#150) (minor) | ||
### 4.0.7 | ||
@@ -16,115 +26,2 @@ | ||
### 4.0.5 | ||
_September 24, 2023_ | ||
- Small performance improvements | ||
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#221) (patch) | ||
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.3.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#232) (patch) | ||
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.3.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#132) (patch) | ||
### 4.0.4 | ||
_September 18, 2023_ | ||
- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.0.1`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#301) (patch) | ||
### 4.0.3 | ||
_September 2, 2023_ | ||
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.3.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#131) (patch) | ||
### 4.0.2 | ||
_August 28, 2023_ | ||
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.3.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#130) (minor) | ||
### 4.0.1 | ||
_July 24, 2023_ | ||
- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#220) (minor) | ||
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.3.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#231) (patch) | ||
### 4.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/)) | ||
- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.3.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#230) (minor) | ||
- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.0.0`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#300) (major) | ||
- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`1.2.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#122) (patch) | ||
### 3.0.6 | ||
_June 1, 2023_ | ||
- Updated `@csstools/postcss-progressive-custom-properties` to `2.3.0` (minor) | ||
### 3.0.5 | ||
_May 19, 2023_ | ||
- Updated `@csstools/postcss-progressive-custom-properties` to `2.2.0` (minor) | ||
- Updated `@csstools/css-color-parser` to `1.2.0` (minor) | ||
### 3.0.4 | ||
_April 17, 2023_ | ||
- Fix infinite loop when parsing gradient functions. (see : https://github.com/csstools/postcss-plugins/issues/948) | ||
### 3.0.3 | ||
_April 10, 2023_ | ||
- Updated `@csstools/css-tokenizer` to `2.1.1` (patch) | ||
- Updated `@csstools/css-parser-algorithms` to `2.1.1` (patch) | ||
- Updated `@csstools/css-color-parser` to `1.1.2` (patch) | ||
### 3.0.2 | ||
_April 10, 2023_ | ||
- Fix interpolation method `longer`, `increasing`,... for color stops with the same color. | ||
### 3.0.1 | ||
_March 28, 2023_ | ||
- Skip gamut mapping for interpolation color hints. | ||
### 3.0.0 | ||
_March 25, 2023_ | ||
- Handle `color-mix()` internally with `@csstools/css-color-parser` | ||
### 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.0.1 | ||
_March 7, 2022_ | ||
- fix dependencies | ||
### 1.0.0 | ||
_March 4, 2022_ | ||
- Initial version | ||
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method/CHANGELOG.md) |
import type { PluginCreator } from 'postcss'; | ||
/** postcss-gradients-interpolation-method plugin options */ | ||
export type pluginOptions = { | ||
export declare type pluginOptions = { | ||
/** Preserve the original notation. default: true */ | ||
@@ -9,3 +10,6 @@ preserve?: boolean; | ||
}; | ||
declare const postcssPlugin: PluginCreator<pluginOptions>; | ||
export default postcssPlugin; | ||
export { } |
{ | ||
"name": "@csstools/postcss-gradients-interpolation-method", | ||
"description": "Use interpolation methods in CSS gradient functions", | ||
"version": "4.0.7", | ||
"version": "4.0.8", | ||
"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" | ||
} | ||
} | ||
@@ -39,6 +42,6 @@ }, | ||
"dependencies": { | ||
"@csstools/css-color-parser": "^1.4.0", | ||
"@csstools/css-parser-algorithms": "^2.3.2", | ||
"@csstools/css-tokenizer": "^2.2.1", | ||
"@csstools/postcss-progressive-custom-properties": "^3.0.2" | ||
"@csstools/css-color-parser": "^1.5.0", | ||
"@csstools/css-parser-algorithms": "^2.4.0", | ||
"@csstools/css-tokenizer": "^2.2.2", | ||
"@csstools/postcss-progressive-custom-properties": "^3.0.3" | ||
}, | ||
@@ -48,13 +51,2 @@ "peerDependencies": { | ||
}, | ||
"devDependencies": { | ||
"@csstools/postcss-tape": "*" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c ../../rollup/default.mjs", | ||
"docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.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" | ||
}, | ||
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method#readme", | ||
@@ -81,12 +73,3 @@ "repository": { | ||
"syntax" | ||
], | ||
"csstools": { | ||
"cssdbId": "gradients-interpolation-method", | ||
"exportName": "postcssGradientsInterpolationMethod", | ||
"humanReadableName": "PostCSS Gradients Interpolation Method", | ||
"specUrl": "https://drafts.csswg.org/css-images-4/#linear-gradients" | ||
}, | ||
"volta": { | ||
"extends": "../../package.json" | ||
} | ||
] | ||
} |
@@ -40,3 +40,4 @@ # PostCSS Gradients Interpolation Method [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS] | ||
⚠️ Color stops with only a color or only an interpolation hint are not supported. | ||
> [!CAUTION] | ||
> Color stops with only a color or only an interpolation hint are not supported. | ||
@@ -56,4 +57,5 @@ For best results you should always provide at least the color and position for each color stop. | ||
⚠️ Variable colors are also not supported. | ||
We can not mix colors when the color is a variable. | ||
> [!CAUTION] | ||
> Variable colors are not supported. | ||
> We can not mix colors when the color is a variable. | ||
@@ -134,3 +136,4 @@ ```pcss | ||
⚠️ We only recommend disabling this when you set `preserve` to `false` or if you bring your own fix for Custom Properties. See what the plugin does in its [README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties#readme). | ||
> [!NOTE] | ||
> We only recommend disabling this when you set `preserve` to `false` or if you bring your own fix for Custom Properties. See what the plugin does in its [README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties#readme). | ||
@@ -137,0 +140,0 @@ ```js |
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
0
173
Yes
23829
7
58