@thejaredwilcurt/csslop 0.0.40 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +9 -12
- package/src/rules/stringify.js +2 -8
- package/src/value/math-expression.js +1103 -0
- package/src/value/math.js +110 -99
- package/src/value/minify.js +73 -13
- package/vite.config.js +0 -4
package/README.md
CHANGED
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
* Gemini 3.1 Pro (High Thinking)
|
|
32
32
|
* GPT-5.4 High (Thinking)
|
|
33
33
|
|
|
34
|
-
These were the latest and greatest models at the time.
|
|
34
|
+
These were the latest and greatest models at the time.
|
|
35
35
|
|
|
36
36
|
**AI's used during maintenance:**
|
|
37
37
|
|
|
38
|
-
As new tests are created upstream I use whatever the latest models are
|
|
38
|
+
As new tests are created upstream I use whatever the latest models are and document them in the release notes.
|
|
39
39
|
|
|
40
40
|
These tools were prompted to pass the tests in the `/copiedTests` folder that came from `keithamus/css-minify-tests`.
|
|
41
41
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@thejaredwilcurt/csslop",
|
|
3
3
|
"main": "index.js",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.42",
|
|
6
6
|
"description": "Experimental CSS minification",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"prestart": "node ./scripts/pre/start.js",
|
|
@@ -22,28 +22,25 @@
|
|
|
22
22
|
"outdated": "npm outdated",
|
|
23
23
|
"proto": "proto pin node latest --resolve --tool-native && proto pin npm latest --resolve --tool-native && git status"
|
|
24
24
|
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@csstools/css-calc": "^3.4.0"
|
|
27
|
-
},
|
|
28
25
|
"devDependencies": {
|
|
29
26
|
"@codemirror/autocomplete": "^6.20.3",
|
|
30
27
|
"@codemirror/lang-css": "^6.3.1",
|
|
31
|
-
"@codemirror/view": "^6.43.
|
|
28
|
+
"@codemirror/view": "^6.43.14",
|
|
32
29
|
"@eslint/js": "^10.0.1",
|
|
33
30
|
"@node-projects/css-parser": "^5.2.0",
|
|
34
31
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
35
32
|
"codemirror": "^6.0.2",
|
|
36
|
-
"eslint": "^10.
|
|
33
|
+
"eslint": "^10.13.0",
|
|
37
34
|
"eslint-config-tjw-base": "^5.0.0",
|
|
38
35
|
"eslint-config-tjw-import-x": "^1.0.1",
|
|
39
36
|
"eslint-config-tjw-jsdoc": "^2.0.1",
|
|
40
37
|
"eslint-plugin-import-x": "^4.17.0",
|
|
41
|
-
"eslint-plugin-jsdoc": "^
|
|
38
|
+
"eslint-plugin-jsdoc": "^65.3.8",
|
|
42
39
|
"fflate": "^0.8.3",
|
|
43
|
-
"globals": "^17.
|
|
44
|
-
"pretty-ms": "^
|
|
40
|
+
"globals": "^17.13.0",
|
|
41
|
+
"pretty-ms": "^10.0.0",
|
|
45
42
|
"real-world-css-libraries": "^1.0.8",
|
|
46
|
-
"vite": "^8.3.
|
|
43
|
+
"vite": "^8.3.4"
|
|
47
44
|
},
|
|
48
45
|
"author": "The Jared Wilcurt",
|
|
49
46
|
"homepage": "https://github.com/TheJaredWilcurt/csslop#readme",
|
|
@@ -60,11 +57,11 @@
|
|
|
60
57
|
"devEngines": {
|
|
61
58
|
"runtime": {
|
|
62
59
|
"name": "node",
|
|
63
|
-
"version": "26.
|
|
60
|
+
"version": "26.12.0"
|
|
64
61
|
},
|
|
65
62
|
"packageManager": {
|
|
66
63
|
"name": "npm",
|
|
67
|
-
"version": "12.
|
|
64
|
+
"version": "12.2.0"
|
|
68
65
|
}
|
|
69
66
|
}
|
|
70
67
|
}
|
package/src/rules/stringify.js
CHANGED
|
@@ -404,14 +404,8 @@ function stringifyRule (rule, context) {
|
|
|
404
404
|
if (canUnwrapSupports(supports)) {
|
|
405
405
|
return children;
|
|
406
406
|
}
|
|
407
|
-
//
|
|
408
|
-
const
|
|
409
|
-
let supportsSeparator;
|
|
410
|
-
if (needsTightSpacing) {
|
|
411
|
-
supportsSeparator = '';
|
|
412
|
-
} else {
|
|
413
|
-
supportsSeparator = ' ';
|
|
414
|
-
}
|
|
407
|
+
// A condition beginning with "(" can follow the at-rule name without whitespace.
|
|
408
|
+
const supportsSeparator = supports.startsWith('(') ? '' : ' ';
|
|
415
409
|
return '@supports' + supportsSeparator + supports + '{' + children + '}';
|
|
416
410
|
}
|
|
417
411
|
|