postcss-color-functional-notation
Advanced tools
Comparing version 6.0.2 to 6.0.3
164
CHANGELOG.md
# Changes to PostCSS Color Functional Notation | ||
### 6.0.3 | ||
_December 15, 2023_ | ||
- Ensure that fallback values are always valid legacy 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) | ||
### 6.0.2 | ||
@@ -16,154 +26,2 @@ | ||
### 6.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/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) | ||
### 5.1.0 | ||
_June 1, 2023_ | ||
- Added `@csstools/postcss-progressive-custom-properties` for improved support of custom properties. | ||
- Updated `@csstools/postcss-progressive-custom-properties` to `2.3.0` (minor) | ||
### 5.0.2 | ||
_February 6, 2023_ | ||
- Reduce the amount of duplicate fallback CSS. | ||
### 5.0.1 | ||
_January 28, 2023_ | ||
- Improve `types` declaration in `package.json` | ||
### 5.0.0 | ||
_January 24, 2023_ | ||
- Updated: Support for Node v14+ (major). | ||
### 4.2.4 | ||
_July 8, 2022_ | ||
- Fix case insensitive matching. | ||
### 4.2.3 | ||
_May 19, 2022_ | ||
- Handle modern channel values in legacy notation (comma separated) | ||
```css | ||
.color { | ||
color: rgba(0, 255, 0, 50%); | ||
} | ||
/* becomes */ | ||
.color { | ||
color: rgba(0, 255, 0, 0.5); | ||
} | ||
``` | ||
### 4.2.2 | ||
_February 5, 2022_ | ||
- Improved `es module` and `commonjs` compatibility | ||
### 4.2.1 | ||
_January 2, 2022_ | ||
- Removed Sourcemaps from package tarball. | ||
- Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121). | ||
### 4.2.0 | ||
_December 27, 2021_ | ||
- Added: support for Alpha value as the fourth argument in comma separated values notation. | ||
### 4.1.0 | ||
_December 15, 2021_ | ||
- Added: support for Alpha value as a CSS variable in `rgb()` and `rgba()`. | ||
### 4.0.2 | ||
_December 13, 2021_ | ||
- Changed: now uses `postcss-value-parser` for parsing. | ||
- Updated: documentation | ||
- Added: support for CSS variables with `preserve: true` option. | ||
### 4.0.1 | ||
_November 18, 2021_ | ||
- Added: Safeguards against postcss-values-parser potentially throwing an error. | ||
- Updated: postcss-value-parser to 6.0.1 (patch) | ||
### 4.0.0 | ||
_September 17, 2021_ | ||
- Updated: Support for PostCS 8+ (major). | ||
- Updated: Support for Node 12+ (major). | ||
### 3.0.2 | ||
_April 25, 2020_ | ||
- Updated: Publish | ||
### 3.0.1 | ||
_April 25, 2020_ | ||
- Updated: Using `walkType` to evade walker bug in `postcss-values-parser` | ||
### 3.0.0 | ||
_April 25, 2020_ | ||
- Updated: Support for Node 10+ | ||
- Updated: `postcss` to 7.0.27 (patch) | ||
- Updated: `postcss-values-parser` to 3.2.0 (minor) | ||
### 2.0.1 | ||
_September 18, 2018_ | ||
- Updated: PostCSS Values Parser 2 (patch for this project) | ||
### 2.0.0 | ||
_September 17, 2018_ | ||
- Updated: Support for PostCSS v7+ | ||
- Updated: Support for Node 6+ | ||
### 1.0.2 | ||
_July 13, 2018_ | ||
- Fixed: Poorly detected hsl() and rgb() now resolve correctly | ||
### 1.0.1 | ||
_May 11, 2018_ | ||
- Fixed: A non-percentage 0 works alongside other percentages | ||
### 1.0.0 | ||
_May 7, 2018_ | ||
- Initial version | ||
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-functional-notation/CHANGELOG.md) |
import type { PluginCreator } from 'postcss'; | ||
/** postcss-color-functional-notation plugin options */ | ||
export type pluginOptions = { | ||
export declare type pluginOptions = { | ||
/** Preserve the original notation. default: false */ | ||
@@ -9,3 +10,6 @@ preserve?: boolean; | ||
}; | ||
declare const postcssPlugin: PluginCreator<pluginOptions>; | ||
export default postcssPlugin; | ||
export { } |
{ | ||
"name": "postcss-color-functional-notation", | ||
"description": "Use space and slash separated color notation in CSS", | ||
"version": "6.0.2", | ||
"version": "6.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" | ||
} | ||
} | ||
@@ -39,4 +42,6 @@ }, | ||
"dependencies": { | ||
"@csstools/postcss-progressive-custom-properties": "^3.0.2", | ||
"postcss-value-parser": "^4.2.0" | ||
"@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" | ||
}, | ||
@@ -46,13 +51,2 @@ "peerDependencies": { | ||
}, | ||
"devDependencies": { | ||
"@csstools/postcss-tape": "*" | ||
}, | ||
"scripts": { | ||
"build": "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" | ||
}, | ||
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-functional-notation#readme", | ||
@@ -81,10 +75,3 @@ "repository": { | ||
"syntax" | ||
], | ||
"csstools": { | ||
"exportName": "postcssColorFunctionalNotation", | ||
"humanReadableName": "PostCSS Color Functional Notation" | ||
}, | ||
"volta": { | ||
"extends": "../../package.json" | ||
} | ||
] | ||
} |
@@ -91,3 +91,4 @@ # PostCSS Color Functional Notation [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss] | ||
⚠️ 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). | ||
@@ -94,0 +95,0 @@ ```js |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
0
109
Yes
12421
5
7
25
2
+ Added@csstools/color-helpers@4.2.0(transitive)
+ Added@csstools/css-calc@1.2.0(transitive)
+ Added@csstools/css-color-parser@1.6.3(transitive)
+ Added@csstools/css-parser-algorithms@2.6.1(transitive)
+ Added@csstools/css-tokenizer@2.2.4(transitive)
- Removedpostcss-value-parser@^4.2.0
Updated@csstools/postcss-progressive-custom-properties@^3.0.3