svelte-vitals 0.37.1 → 0.38.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/bin.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  readCoreVersion,
10
10
  readPackageVersion,
11
11
  run
12
- } from "./chunk-I2MKPWWT.js";
12
+ } from "./chunk-2WDZJQGD.js";
13
13
  import {
14
14
  consoleIO
15
15
  } from "./chunk-SLUMRYUD.js";
@@ -1493,7 +1493,7 @@ async function analyzeProject(opts = {}) {
1493
1493
  ),
1494
1494
  config
1495
1495
  );
1496
- return { results, config, version: readPackageVersion(), warnings };
1496
+ return { results, config, version: readPackageVersion(), ruleIds: rules.map((r) => r.id), warnings };
1497
1497
  }
1498
1498
  async function applyScope(results, opts) {
1499
1499
  const errorLog = opts.errorLog ?? ((line) => console.error(line));
@@ -1673,7 +1673,7 @@ async function run(opts = {}) {
1673
1673
  );
1674
1674
  }
1675
1675
  if (reporter === "json") {
1676
- log(formatJsonReport(results, config, { version }));
1676
+ log(formatJsonReport(results, config, { version }, analysis.ruleIds));
1677
1677
  } else if (reporter === "agent") {
1678
1678
  log(formatAgentReport(results, config));
1679
1679
  } else if (reporter === "sarif") {
package/dist/index.d.ts CHANGED
@@ -199,6 +199,8 @@ interface AnalyzeResult {
199
199
  results: Result[];
200
200
  config: Config;
201
201
  version: string;
202
+ /** Ids of the rules that ran, after `--category` narrowing. The JSON report lists these so a rule that found nothing stays distinguishable from one that was never selected. */
203
+ ruleIds: string[];
202
204
  /** Non-fatal config-file issues (unknown top-level keys, invalid enum values). Empty when no config file or none found. */
203
205
  warnings: string[];
204
206
  }
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  ruleOptionsSpec,
12
12
  run,
13
13
  spinnerEnabled
14
- } from "./chunk-I2MKPWWT.js";
14
+ } from "./chunk-2WDZJQGD.js";
15
15
  export {
16
16
  ProjectError,
17
17
  analyzeProject,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-vitals",
3
- "version": "0.37.1",
3
+ "version": "0.38.0",
4
4
  "description": "A SvelteKit SEO checker — not a runtime Web Vitals reporter. Static analysis of your routes' head metadata.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -41,11 +41,11 @@
41
41
  "dependencies": {
42
42
  "@clack/prompts": "^1.7.0",
43
43
  "log-update": "^8.0.0",
44
- "magicast": "^0.5.3",
44
+ "magicast": "^0.5.4",
45
45
  "mri": "^1.2.0",
46
46
  "svelte": "^5.56.8",
47
47
  "tinyglobby": "^0.2.17",
48
- "@svelte-vitals/core": "0.32.0"
48
+ "@svelte-vitals/core": "0.33.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/estree": "^1.0.9",