@projectwallace/css-analyzer 7.6.3 → 8.0.0

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/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { calculate as calculateSpecificity } from './selectors/specificity.js';
1
2
  import { CollectionCount } from './collection.js';
2
3
  import { colorFunctions } from './values/colors.js';
3
4
  import { colorKeywords } from './values/colors.js';
@@ -536,6 +537,8 @@ declare function analyzeInternal<T extends boolean>(css: string, options: Option
536
537
  };
537
538
  };
538
539
 
540
+ export { calculateSpecificity }
541
+
539
542
  export { colorFunctions }
540
543
 
541
544
  export { colorKeywords }
package/package.json CHANGED
@@ -1,66 +1,66 @@
1
1
  {
2
- "name": "@projectwallace/css-analyzer",
3
- "description": "The best CSS analyzer out there. Check design tokens, complexity, specificity, performance and more.",
4
- "version": "7.6.3",
5
- "author": "Bart Veneman",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/projectwallace/css-analyzer.git"
9
- },
10
- "homepage": "https://github.com/projectwallace/css-analyzer",
11
- "issues": "https://github.com/projectwallace/css-analyzer/issues",
12
- "license": "MIT",
13
- "type": "module",
14
- "files": [
15
- "dist"
16
- ],
17
- "main": "./dist/css-analyzer.js",
18
- "types": "./dist/index.d.ts",
19
- "exports": {
20
- "types": "./dist/index.d.ts",
21
- "default": "./dist/css-analyzer.js"
22
- },
23
- "engines": {
24
- "node": ">=18.0.0"
25
- },
26
- "scripts": {
27
- "lint": "oxlint --config .oxlintrc.json",
28
- "lint-package": "publint",
29
- "test": "vitest",
30
- "check": "tsc --noEmit",
31
- "build": "vite build"
32
- },
33
- "keywords": [
34
- "projectwallace",
35
- "wallace",
36
- "css",
37
- "stylesheet",
38
- "stats",
39
- "statistics",
40
- "analytics",
41
- "performance",
42
- "styleguide",
43
- "metrics",
44
- "designsystem",
45
- "fonts",
46
- "colors",
47
- "quality",
48
- "code"
49
- ],
50
- "dependencies": {
51
- "@bramus/specificity": "^2.4.2",
52
- "css-tree": "^3.1.0"
53
- },
54
- "devDependencies": {
55
- "@codecov/vite-plugin": "^1.9.1",
56
- "@types/css-tree": "^2.3.11",
57
- "c8": "^10.1.3",
58
- "oxlint": "^1.26.0",
59
- "prettier": "^3.6.2",
60
- "publint": "^0.3.15",
61
- "typescript": "^5.9.3",
62
- "vite": "^6.3.4",
63
- "vite-plugin-dts": "^4.5.4",
64
- "vitest": "^4.0.8"
65
- }
2
+ "name": "@projectwallace/css-analyzer",
3
+ "description": "The best CSS analyzer out there. Check design tokens, complexity, specificity, performance and more.",
4
+ "version": "8.0.0",
5
+ "author": "Bart Veneman",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/projectwallace/css-analyzer.git"
9
+ },
10
+ "homepage": "https://github.com/projectwallace/css-analyzer",
11
+ "issues": "https://github.com/projectwallace/css-analyzer/issues",
12
+ "license": "MIT",
13
+ "type": "module",
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "main": "./dist/css-analyzer.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/css-analyzer.js"
22
+ },
23
+ "engines": {
24
+ "node": ">=18.0.0"
25
+ },
26
+ "scripts": {
27
+ "lint": "oxlint --config .oxlintrc.json",
28
+ "lint-package": "publint",
29
+ "test": "vitest",
30
+ "check": "tsc --noEmit",
31
+ "build": "vite build",
32
+ "knip": "knip"
33
+ },
34
+ "keywords": [
35
+ "projectwallace",
36
+ "wallace",
37
+ "css",
38
+ "stylesheet",
39
+ "stats",
40
+ "statistics",
41
+ "analytics",
42
+ "performance",
43
+ "styleguide",
44
+ "metrics",
45
+ "designsystem",
46
+ "fonts",
47
+ "colors",
48
+ "quality",
49
+ "code"
50
+ ],
51
+ "dependencies": {
52
+ "@projectwallace/css-parser": "^0.12.2"
53
+ },
54
+ "devDependencies": {
55
+ "@codecov/vite-plugin": "^1.9.1",
56
+ "c8": "^10.1.3",
57
+ "knip": "^5.68.0",
58
+ "oxlint": "^1.26.0",
59
+ "prettier": "^3.6.2",
60
+ "publint": "^0.3.15",
61
+ "typescript": "^5.9.3",
62
+ "vite": "^6.3.4",
63
+ "vite-plugin-dts": "^4.5.4",
64
+ "vitest": "^4.0.8"
65
+ }
66
66
  }