react-doctor 0.5.8-dev.a7ad969 → 0.5.8-dev.b6d1a87

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/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="eb7a01bc-f737-5207-b430-b8fee7a1895f")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1e81c0a2-fd08-5f5b-ba28-bd5f7587e0f4")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import * as NodeChildProcess from "node:child_process";
5
5
  import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
@@ -40522,6 +40522,11 @@ const toCanonicalPath = (filePath) => {
40522
40522
  };
40523
40523
  const DEAD_CODE_PLUGIN = "deslop";
40524
40524
  const DEAD_CODE_CATEGORY = "Maintainability";
40525
+ const REACT_DOCTOR_TOOLCHAIN_PACKAGES = new Set([
40526
+ "react-doctor",
40527
+ "eslint-plugin-react-doctor",
40528
+ "oxlint-plugin-react-doctor"
40529
+ ]);
40525
40530
  const DEAD_CODE_WORKER_SCRIPT = `
40526
40531
  const inputChunks = [];
40527
40532
  process.stdin.on("data", (chunk) => inputChunks.push(chunk));
@@ -40827,6 +40832,7 @@ const checkDeadCode = async (options) => {
40827
40832
  });
40828
40833
  }
40829
40834
  for (const unusedDependency of result.unusedDependencies) {
40835
+ if (REACT_DOCTOR_TOOLCHAIN_PACKAGES.has(unusedDependency.name)) continue;
40830
40836
  const label = unusedDependency.isDevDependency ? "devDependency" : "dependency";
40831
40837
  diagnostics.push({
40832
40838
  filePath: "package.json",
@@ -45103,7 +45109,7 @@ const makeNoopConsole = () => ({
45103
45109
  });
45104
45110
  //#endregion
45105
45111
  //#region src/cli/utils/version.ts
45106
- const VERSION = "0.5.8-dev.a7ad969";
45112
+ const VERSION = "0.5.8-dev.b6d1a87";
45107
45113
  //#endregion
45108
45114
  //#region src/cli/utils/json-mode.ts
45109
45115
  let context = null;
@@ -45472,13 +45478,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
45472
45478
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
45473
45479
  * standard `SENTRY_RELEASE` override.
45474
45480
  */
45475
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.8-dev.a7ad969`;
45481
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.8-dev.b6d1a87`;
45476
45482
  /**
45477
45483
  * Deployment environment shown in Sentry's environment filter. Defaults to
45478
45484
  * `production` for tagged releases and `development` for dev/unbuilt versions,
45479
45485
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
45480
45486
  */
45481
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.8-dev.a7ad969") ? "development" : "production");
45487
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.8-dev.b6d1a87") ? "development" : "production");
45482
45488
  /**
45483
45489
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
45484
45490
  * (set to `0` to disable tracing) and falls back to
@@ -50562,6 +50568,7 @@ const NON_BLOCKING_REACT_DOCTOR_COMMAND = [
50562
50568
  `if ${REACT_DOCTOR_COMMAND} > "$react_doctor_output" 2>&1; then`,
50563
50569
  "rm -f \"$react_doctor_output\";",
50564
50570
  "else",
50571
+ "cat \"$react_doctor_output\" >&2;",
50565
50572
  "rm -f \"$react_doctor_output\";",
50566
50573
  `printf "%s\\n" "React Doctor found staged regressions." "Run ${REACT_DOCTOR_COMMAND} to inspect." "Want them fixed? Ask your agent to run that command and resolve the findings." >&2;`,
50567
50574
  "fi"
@@ -52502,6 +52509,7 @@ const buildReactDoctorHookBlock = () => [
52502
52509
  "if react_doctor_scan_staged_files > \"$react_doctor_output\" 2>&1; then",
52503
52510
  " rm -f \"$react_doctor_output\"",
52504
52511
  "else",
52512
+ " cat \"$react_doctor_output\" >&2",
52505
52513
  " rm -f \"$react_doctor_output\"",
52506
52514
  ` printf '%s\\n' "React Doctor found staged regressions." "Run ${REACT_DOCTOR_COMMAND} to inspect." "Want them fixed? Ask your agent to run that command and resolve the findings." >&2`,
52507
52515
  "fi",
@@ -55764,4 +55772,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
55764
55772
  export {};
55765
55773
 
55766
55774
  //# sourceMappingURL=cli.js.map
55767
- //# debugId=eb7a01bc-f737-5207-b430-b8fee7a1895f
55775
+ //# debugId=1e81c0a2-fd08-5f5b-ba28-bd5f7587e0f4
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9807b1bf-1e62-5421-ad35-d1f4129c1538")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="faa2d232-c423-58f8-97f4-ba8d41a199d7")}catch(e){}}();
3
3
  import { r as __toESM$1, t as __commonJSMin$1 } from "./chunk-N93fKeF6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import * as NFS from "node:fs";
@@ -37290,6 +37290,11 @@ const toCanonicalPath = (filePath) => {
37290
37290
  };
37291
37291
  const DEAD_CODE_PLUGIN = "deslop";
37292
37292
  const DEAD_CODE_CATEGORY = "Maintainability";
37293
+ const REACT_DOCTOR_TOOLCHAIN_PACKAGES = new Set([
37294
+ "react-doctor",
37295
+ "eslint-plugin-react-doctor",
37296
+ "oxlint-plugin-react-doctor"
37297
+ ]);
37293
37298
  const DEAD_CODE_WORKER_SCRIPT = `
37294
37299
  const inputChunks = [];
37295
37300
  process.stdin.on("data", (chunk) => inputChunks.push(chunk));
@@ -37595,6 +37600,7 @@ const checkDeadCode = async (options) => {
37595
37600
  });
37596
37601
  }
37597
37602
  for (const unusedDependency of result.unusedDependencies) {
37603
+ if (REACT_DOCTOR_TOOLCHAIN_PACKAGES.has(unusedDependency.name)) continue;
37598
37604
  const label = unusedDependency.isDevDependency ? "devDependency" : "dependency";
37599
37605
  diagnostics.push({
37600
37606
  filePath: "package.json",
@@ -41645,4 +41651,4 @@ const toJsonReport = (result, options) => buildJsonReport({
41645
41651
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
41646
41652
 
41647
41653
  //# sourceMappingURL=index.js.map
41648
- //# debugId=9807b1bf-1e62-5421-ad35-d1f4129c1538
41654
+ //# debugId=faa2d232-c423-58f8-97f4-ba8d41a199d7
package/dist/lsp.js CHANGED
@@ -37275,6 +37275,11 @@ const toCanonicalPath = (filePath) => {
37275
37275
  };
37276
37276
  const DEAD_CODE_PLUGIN = "deslop";
37277
37277
  const DEAD_CODE_CATEGORY = "Maintainability";
37278
+ const REACT_DOCTOR_TOOLCHAIN_PACKAGES = new Set([
37279
+ "react-doctor",
37280
+ "eslint-plugin-react-doctor",
37281
+ "oxlint-plugin-react-doctor"
37282
+ ]);
37278
37283
  const DEAD_CODE_WORKER_SCRIPT = `
37279
37284
  const inputChunks = [];
37280
37285
  process.stdin.on("data", (chunk) => inputChunks.push(chunk));
@@ -37580,6 +37585,7 @@ const checkDeadCode = async (options) => {
37580
37585
  });
37581
37586
  }
37582
37587
  for (const unusedDependency of result.unusedDependencies) {
37588
+ if (REACT_DOCTOR_TOOLCHAIN_PACKAGES.has(unusedDependency.name)) continue;
37583
37589
  const label = unusedDependency.isDevDependency ? "devDependency" : "dependency";
37584
37590
  diagnostics.push({
37585
37591
  filePath: "package.json",
@@ -43365,5 +43371,5 @@ const startLanguageServer = () => {
43365
43371
  };
43366
43372
  //#endregion
43367
43373
  export { startLanguageServer };
43368
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c5b6c740-461d-5f65-a993-9e6d35ad9113")}catch(e){}}();
43369
- //# debugId=c5b6c740-461d-5f65-a993-9e6d35ad9113
43374
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="47940f68-872d-59ed-bdd2-40ef7848566c")}catch(e){}}();
43375
+ //# debugId=47940f68-872d-59ed-bdd2-40ef7848566c
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.5.8-dev.a7ad969",
3
+ "version": "0.5.8-dev.b6d1a87",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -65,7 +65,7 @@
65
65
  "vscode-languageserver-textdocument": "^1.0.12",
66
66
  "vscode-uri": "^3.1.0",
67
67
  "deslop-js": "0.5.8",
68
- "oxlint-plugin-react-doctor": "0.5.8-dev.a7ad969"
68
+ "oxlint-plugin-react-doctor": "0.5.8-dev.b6d1a87"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/babel__code-frame": "^7.27.0",