Socket
Socket
Sign inDemoInstall

postcss-color-hex-alpha

Package Overview
Dependencies
5
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.0.2 to 9.0.3

97

CHANGELOG.md
# Changes to PostCSS Color Hex Alpha
### 9.0.2 (February 6, 2023)
### 9.0.3
- Reduce the amount of duplicate fallback CSS.
_December 15, 2023_
### 9.0.1 (January 28, 2023)
- Fix type definitions
- Improve `types` declaration in `package.json`
### 9.0.2
### 9.0.0 (January 24, 2023)
_February 6, 2023_
- Updated: Support for Node v14+ (major).
- Reduce the amount of duplicate fallback CSS.
### 8.0.4 (June 10, 2022)
### 9.0.1
- Fixed: Issue with SVG hashes being interpreted as hex colors
_January 28, 2023_
### 8.0.3 (February 5, 2022)
- Improve `types` declaration in `package.json`
- Improved `es module` and `commonjs` compatibility
### 8.0.2 (January 2, 2022)
- Removed Sourcemaps from package tarball.
- Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121).
### 8.0.1 (December 16, 2021)
- Changed: now uses `postcss-value-parser` for parsing.
- Updated: documentation
### 8.0.0 (September 22, 2021)
- Updated: PostCSS Values Parser to v8 (major).
- Added missing `dist` to bundle.
- Added missing `exports` to `package.json`
- Added missing `types` to `package.json`
- Added bundling & testing as prepublish step.
### 7.0.0 (January 12, 2021)
- Updated: Support for PostCSS v8+
### 6.0.0 (April 25, 2020)
- Updated: `postcss` to 7.0.27 (patch).
- Updated: `postcss-values-parser` to 3.2.0 (major).
- Updated: Node support to 10.0.0 (major).
- Updated: Feature to use new percentage syntax.
- Removed: Support for the removed `gray()` function.
### 5.0.3 (March 30, 2019)
- Fixed: Issue with SVG hashes being interpretted as hex colors
- Updated: `postcss` to 7.0.14 (patch)
- Updated: `postcss-values-parser` to 2.0.1 (patch)
### 5.0.2 (September 18, 2018)
- Updated: PostCSS Values Parser 2 (patch for this project)
### 5.0.1 (September 18, 2018)
- Fixed: Issue correclty calculating each channel
### 5.0.0 (September 18, 2018)
- Initial version
### 4.0.0 (September 17, 2018)
- Updated: Support for PostCSS v7+
- Updated: Support for Node v6+
- Updated: color v3+
### 3.0.0 (May 15, 2017)
- Added: compatibility with postcss v6.x
- Updated dependencies
### 2.0.0 (September 8, 2015)
- Added: compatibility with postcss v5.x
- Removed: compatiblity with postcss v4.x
### 1.3.0 (August 13, 2015)
- Added: compatibility with postcss v4.1.x
([#3](https://github.com/postcss/postcss-color-hex-alpha/pull/3))
### 1.1.0 (November 25, 2014)
- Enhanced exceptions
### 1.0.0 - (October 4, 2014)
Initial release from [postcss-color](https://github.com/postcss/postcss-color)
[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-hex-alpha/CHANGELOG.md)

10

dist/index.d.ts
import type { PluginCreator } from 'postcss';
declare const creator: PluginCreator<pluginOptions>;
export default creator;
/** postcss-color-hex-alpha plugin options */
export type pluginOptions = {
export declare type pluginOptions = {
/** Preserve the original notation. default: false */
preserve?: boolean;
};
declare const creator: PluginCreator<pluginOptions>;
export default creator;
export { }
{
"name": "postcss-color-hex-alpha",
"description": "Use 4 & 8 character hex color notation in CSS",
"version": "9.0.2",
"version": "9.0.3",
"contributors": [

@@ -24,18 +24,27 @@ {

"license": "MIT",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/csstools"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"engines": {
"node": "^14 || ^16 || >=18"
},
"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"
}
}

@@ -55,15 +64,2 @@ },

},
"scripts": {
"prebuild": "npm run clean",
"build": "rollup -c ../../rollup/default.mjs",
"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",
"lint": "npm run lint:eslint && npm run lint:package-json",
"lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
"lint:package-json": "node ../../.github/bin/format-package-json.mjs",
"prepublishOnly": "npm run clean && npm run build && npm run test",
"test": "node .tape.mjs && npm run test:exports",
"test:exports": "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-hex-alpha#readme",

@@ -91,12 +87,3 @@ "repository": {

"w3c"
],
"csstools": {
"cssdbId": "hexadecimal-alpha-notation",
"exportName": "postcssColorHexAlpha",
"humanReadableName": "PostCSS Color Hex Alpha",
"specUrl": "https://www.w3.org/TR/css-color-4/#hex-notation"
},
"volta": {
"extends": "../../package.json"
}
]
}

@@ -5,2 +5,6 @@ # PostCSS Color Hex Alpha [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]

```bash
npm install postcss-color-hex-alpha --save-dev
```
[PostCSS Color Hex Alpha] lets you use 4 & 8 character hex color notation in

@@ -7,0 +11,0 @@ CSS, following the [CSS Color Module] specification.

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