@projectwallace/css-analyzer 7.0.1 → 7.1.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
@@ -105,6 +105,21 @@ export function analyze(css: string, options?: Options): {
105
105
  } | {
106
106
  uniqueWithLocations?: undefined;
107
107
  });
108
+ features: {
109
+ total: number;
110
+ totalUnique: number;
111
+ uniquenessRatio: number;
112
+ unique: Record<string, number>;
113
+ } & ({
114
+ uniqueWithLocations: Record<string, {
115
+ line: number;
116
+ column: number;
117
+ offset: number;
118
+ length: number;
119
+ }[]>;
120
+ } | {
121
+ uniqueWithLocations?: undefined;
122
+ });
108
123
  };
109
124
  charset: {
110
125
  total: number;
@@ -185,7 +200,7 @@ export function analyze(css: string, options?: Options): {
185
200
  ratio: number;
186
201
  };
187
202
  };
188
- container: {
203
+ container: ({
189
204
  total: number;
190
205
  totalUnique: number;
191
206
  uniquenessRatio: number;
@@ -199,7 +214,23 @@ export function analyze(css: string, options?: Options): {
199
214
  }[]>;
200
215
  } | {
201
216
  uniqueWithLocations?: undefined;
202
- });
217
+ })) & {
218
+ names: {
219
+ total: number;
220
+ totalUnique: number;
221
+ uniquenessRatio: number;
222
+ unique: Record<string, number>;
223
+ } & ({
224
+ uniqueWithLocations: Record<string, {
225
+ line: number;
226
+ column: number;
227
+ offset: number;
228
+ length: number;
229
+ }[]>;
230
+ } | {
231
+ uniqueWithLocations?: undefined;
232
+ });
233
+ };
203
234
  layer: {
204
235
  total: number;
205
236
  totalUnique: number;
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@projectwallace/css-analyzer",
3
- "version": "7.0.1",
3
+ "description": "The best CSS analyzer out there. Check design tokens, complexity, specificity, performance and more.",
4
+ "version": "7.1.0",
4
5
  "author": "Bart Veneman",
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "git+https://github.com/projectwallace/css-analyzer.git"
8
9
  },
9
- "homepage": "https://www.projectwallace.com/oss",
10
+ "homepage": "https://github.com/projectwallace/css-analyzer",
10
11
  "issues": "https://github.com/projectwallace/css-analyzer/issues",
11
12
  "license": "MIT",
12
13
  "type": "module",
@@ -45,7 +46,7 @@
45
46
  ],
46
47
  "dependencies": {
47
48
  "@bramus/specificity": "^2.4.1",
48
- "css-tree": "^2.3.1"
49
+ "css-tree": "^3.1.0"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@codecov/vite-plugin": "^1.9.0",
@@ -53,8 +54,5 @@
53
54
  "uvu": "^0.5.6",
54
55
  "vite": "^6.3.4",
55
56
  "vite-plugin-dts": "^4.5.0"
56
- },
57
- "mangle": {
58
- "regex": "^_[^_]"
59
57
  }
60
58
  }