Skip to content

Commit 23ddea9

Browse files
postcss-color-golf-4.0.0 (#2343)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8580c19 commit 23ddea9

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

directory/postcss-color-golf.json

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "postcss-color-golf",
3-
"version": "3.0.0",
4-
"description": "PostCSS plugin that aggressively minifies and optimizes CSS color values for maximum code golf and minimal output characters.",
3+
"version": "4.0.0",
4+
"description": "PostCSS plugin for aggressive minification and optimization of CSS color values. Make every color a hole-in-one for your bundle size!",
55
"author": {
66
"name": "xero",
77
"url": "https://x-e.ro"
@@ -10,15 +10,16 @@
1010
"main": "dist/index.cjs",
1111
"module": "dist/index.mjs",
1212
"types": "dist/index.d.ts",
13+
"type": "module",
1314
"exports": {
1415
"import": "./dist/index.mjs",
1516
"require": "./dist/cjs-proxy.cjs",
1617
"default": "./dist/index.cjs"
1718
},
1819
"scripts": {
19-
"test": "vitest run",
20-
"test:watch": "vitest",
21-
"build": "tsup src/index.ts --format esm,cjs && printf '%s' \"module.exports=require('./index.cjs').default;\" > ./dist/cjs-proxy.cjs"
20+
"lint": "node ./node_modules/eslint/bin/eslint.js",
21+
"build": "[ -d './dist' ] && rm -rf ./dist; tsup src/index.ts --format esm,cjs && printf '%s' \"module.exports=require('./index.cjs').default;\" > ./dist/cjs-proxy.cjs",
22+
"test": "vitest run"
2223
},
2324
"repository": {
2425
"type": "git",
@@ -31,47 +32,54 @@
3132
"minify",
3233
"color",
3334
"optimization",
35+
"short hex",
36+
"css minifier",
37+
"code golf",
38+
"culori",
39+
"css4",
3440
"hex",
3541
"rgb",
3642
"rgba",
3743
"color names",
3844
"shorten",
39-
"plugin",
40-
"css minifier",
41-
"code golf"
45+
"plugin"
4246
],
4347
"peerDependencies": {
4448
"postcss": "^8.0.0"
4549
},
50+
"dependencies": {
51+
"culori": "^4.0.2",
52+
"postcss-value-parser": "^4.2.0",
53+
"vuln-regex-detector": "^1.3.0"
54+
},
4655
"devDependencies": {
4756
"@eslint/js": "^9.31.0",
57+
"@types/culori": "^4.0.0",
4858
"@types/postcss-js": "^4.0.4",
49-
"color-parse": "^2.0.2",
5059
"eslint": "^9.31.0",
51-
"postcss-value-parser": "^4.2.0",
5260
"tsup": "^8.5.0",
5361
"typescript": "^5.8.3",
5462
"typescript-eslint": "^8.37.0",
5563
"vitest": "^3.2.4"
5664
},
57-
"_id": "postcss-color-golf@3.0.0",
58-
"gitHead": "a12f708b223c43704f1187882310393cfba4b152",
65+
"_id": "postcss-color-golf@4.0.0",
66+
"gitHead": "b7cae28605f3a60b8ffada17a712364ec00bc36a",
5967
"bugs": {
6068
"url": "https://github.com/xero/postcss-color-golf/issues"
6169
},
6270
"homepage": "https://github.com/xero/postcss-color-golf#readme",
6371
"_nodeVersion": "22.8.0",
6472
"_npmVersion": "10.8.2",
6573
"dist": {
66-
"integrity": "sha512-Y23W3c/QTJ9gU+FvjtB6Kl2qX+Ktf35zWnjopkBJpja8KLEg6uwfELRCo9c6UPvvxBNs1FEj6wOUzATdiby14w==",
67-
"shasum": "27a06a267e1abff99018982ac1f59108da4b20a7",
68-
"tarball": "https://registry.npmjs.org/postcss-color-golf/-/postcss-color-golf-3.0.0.tgz",
74+
"integrity": "sha512-W5vmo3NzbhSqWl4SiD4O96QYUgpjCFM1p/x95azy6IcZAMlXwoY6nBmu4JcHqiJBWluVmx9lnWFJN+zdHFSW2w==",
75+
"shasum": "e60a9c56948b7b4f27d5066cffcf2741e9597466",
76+
"tarball": "https://registry.npmjs.org/postcss-color-golf/-/postcss-color-golf-4.0.0.tgz",
6977
"fileCount": 8,
70-
"unpackedSize": 68935,
78+
"unpackedSize": 46309,
7179
"signatures": [
7280
{
7381
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
74-
"sig": "MEQCICMK6jChJL+Nn9H/iNa4u6bBfgDEtglCRAm3A9UBwwMuAiATGfxi3Hn7Ni7dmxD+8JMY6ZjLY6OL19tuXDEGQkVrsQ=="
82+
"sig": "MEQCIF0cCnXOeoEs9xgMl6D+islslaX7QqFKe6zKDp4SGpR5AiAO76VZysLg+1lI8DG/yD7C8xg15yob9H9ltZ0fR/eg1Q=="
7583
}
7684
]
7785
},
@@ -88,8 +96,8 @@
8896
],
8997
"_npmOperationalInternal": {
9098
"host": "s3://npm-registry-packages-npm-production",
91-
"tmp": "tmp/postcss-color-golf_3.0.0_1752729789907_0.8681272927168315"
99+
"tmp": "tmp/postcss-color-golf_4.0.0_1753000669999_0.44912542063969907"
92100
},
93101
"_hasShrinkwrap": false,
94-
"_time": "2025-07-17T05:23:10.109Z"
102+
"_time": "2025-07-20T08:37:50.215Z"
95103
}

0 commit comments

Comments
 (0)