react-doctor 0.5.6-dev.b08ca1c → 0.5.6-dev.eafac9d

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]="bb93aaad-ea85-5f1d-b2db-584f48671f66")}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]="54905d6a-f06f-5f80-9fb6-7d4ab857d553")}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";
@@ -39692,10 +39692,15 @@ const buildCapabilities = (project) => {
39692
39692
  }
39693
39693
  if (project.tailwindVersion !== null) {
39694
39694
  capabilities.add("tailwind");
39695
- if (isTailwindAtLeast(parseTailwindMajorMinor(project.tailwindVersion), {
39695
+ const tailwind = parseTailwindMajorMinor(project.tailwindVersion);
39696
+ if (isTailwindAtLeast(tailwind, {
39696
39697
  major: 3,
39697
39698
  minor: 4
39698
39699
  })) capabilities.add("tailwind:3.4");
39700
+ if (tailwind !== null && isTailwindAtLeast(tailwind, {
39701
+ major: 4,
39702
+ minor: 0
39703
+ })) capabilities.add("tailwind:4");
39699
39704
  }
39700
39705
  if (project.zodVersion !== null) {
39701
39706
  capabilities.add("zod");
@@ -43970,7 +43975,7 @@ const makeNoopConsole = () => ({
43970
43975
  });
43971
43976
  //#endregion
43972
43977
  //#region src/cli/utils/version.ts
43973
- const VERSION = "0.5.6-dev.b08ca1c";
43978
+ const VERSION = "0.5.6-dev.eafac9d";
43974
43979
  //#endregion
43975
43980
  //#region src/cli/utils/json-mode.ts
43976
43981
  let context = null;
@@ -44328,13 +44333,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
44328
44333
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
44329
44334
  * standard `SENTRY_RELEASE` override.
44330
44335
  */
44331
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.6-dev.b08ca1c`;
44336
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.5.6-dev.eafac9d`;
44332
44337
  /**
44333
44338
  * Deployment environment shown in Sentry's environment filter. Defaults to
44334
44339
  * `production` for tagged releases and `development` for dev/unbuilt versions,
44335
44340
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
44336
44341
  */
44337
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.6-dev.b08ca1c") ? "development" : "production");
44342
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.5.6-dev.eafac9d") ? "development" : "production");
44338
44343
  /**
44339
44344
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
44340
44345
  * (set to `0` to disable tracing) and falls back to
@@ -48116,7 +48121,7 @@ const AGENT_GUIDANCE_LINES = [
48116
48121
  "Investigate deeply where relevant: race conditions, security-sensitive flows, state propagation, multi-file refactors, and downstream dependency chains.",
48117
48122
  "Ignore pure style preferences, theoretical issues without real impact, missing features, and unrelated pre-existing code.",
48118
48123
  "Start with high-confidence fixes that preserve behavior. Leave low-confidence or product-dependent changes as notes.",
48119
- "Run `npx react-doctor@latest --verbose --diff` before and after changes, plus relevant tests after each focused batch.",
48124
+ "Run `npx react-doctor@latest --verbose --scope changed` before and after changes, plus relevant tests after each focused batch.",
48120
48125
  "When available, spawn subagents or isolated worktrees for independent rule families, then review and merge only the best safe fixes.",
48121
48126
  "Split unrelated, broad, or behavior-changing work into separate PRs/branches instead of one large cleanup.",
48122
48127
  "For confirmed issues that cannot be fixed now, create GitHub issues with the rule, file/line, confidence, impact, and proposed fix.",
@@ -50758,22 +50763,22 @@ const buildAgentHookScript = () => [
50758
50763
  "",
50759
50764
  "run_react_doctor() {",
50760
50765
  " if [ -x ./node_modules/.bin/react-doctor ]; then",
50761
- " ./node_modules/.bin/react-doctor --verbose --diff --blocking warning --no-score",
50766
+ " ./node_modules/.bin/react-doctor --verbose --scope changed --blocking warning --no-score",
50762
50767
  " return",
50763
50768
  " fi",
50764
50769
  "",
50765
50770
  " if command -v react-doctor >/dev/null 2>&1; then",
50766
- " react-doctor --verbose --diff --blocking warning --no-score",
50771
+ " react-doctor --verbose --scope changed --blocking warning --no-score",
50767
50772
  " return",
50768
50773
  " fi",
50769
50774
  "",
50770
50775
  " if command -v pnpm >/dev/null 2>&1; then",
50771
- " pnpm dlx react-doctor@latest --verbose --diff --blocking warning --no-score",
50776
+ " pnpm dlx react-doctor@latest --verbose --scope changed --blocking warning --no-score",
50772
50777
  " return",
50773
50778
  " fi",
50774
50779
  "",
50775
50780
  " if command -v npx >/dev/null 2>&1; then",
50776
- " npx --yes react-doctor@latest --verbose --diff --blocking warning --no-score",
50781
+ " npx --yes react-doctor@latest --verbose --scope changed --blocking warning --no-score",
50777
50782
  " return",
50778
50783
  " fi",
50779
50784
  "",
@@ -53870,7 +53875,7 @@ ${highlighter.dim("Examples:")}
53870
53875
  ${formatExampleLines([
53871
53876
  ["react-doctor", "scan the current project"],
53872
53877
  ["react-doctor ./apps/web", "scan a specific directory"],
53873
- ["react-doctor --diff main", "scan only files changed vs. main"],
53878
+ ["react-doctor --scope changed --base main", "scan only new issues vs. main"],
53874
53879
  ["react-doctor --project modules/a,modules/b", "score each module separately (names or paths)"],
53875
53880
  ["react-doctor --staged", "scan staged files (pre-commit hook)"],
53876
53881
  ["react-doctor --category Security", "show only one diagnostic category"],
@@ -53946,4 +53951,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
53946
53951
  export {};
53947
53952
 
53948
53953
  //# sourceMappingURL=cli.js.map
53949
- //# debugId=bb93aaad-ea85-5f1d-b2db-584f48671f66
53954
+ //# debugId=54905d6a-f06f-5f80-9fb6-7d4ab857d553
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]="a4394ddc-4e6c-5a18-aeeb-d60322b1c0dd")}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]="b4f6f7e7-99db-553a-aa15-14b646162f39")}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";
@@ -36472,10 +36472,15 @@ const buildCapabilities = (project) => {
36472
36472
  }
36473
36473
  if (project.tailwindVersion !== null) {
36474
36474
  capabilities.add("tailwind");
36475
- if (isTailwindAtLeast(parseTailwindMajorMinor(project.tailwindVersion), {
36475
+ const tailwind = parseTailwindMajorMinor(project.tailwindVersion);
36476
+ if (isTailwindAtLeast(tailwind, {
36476
36477
  major: 3,
36477
36478
  minor: 4
36478
36479
  })) capabilities.add("tailwind:3.4");
36480
+ if (tailwind !== null && isTailwindAtLeast(tailwind, {
36481
+ major: 4,
36482
+ minor: 0
36483
+ })) capabilities.add("tailwind:4");
36479
36484
  }
36480
36485
  if (project.zodVersion !== null) {
36481
36486
  capabilities.add("zod");
@@ -40571,4 +40576,4 @@ const toJsonReport = (result, options) => buildJsonReport({
40571
40576
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
40572
40577
 
40573
40578
  //# sourceMappingURL=index.js.map
40574
- //# debugId=a4394ddc-4e6c-5a18-aeeb-d60322b1c0dd
40579
+ //# debugId=b4f6f7e7-99db-553a-aa15-14b646162f39
package/dist/lsp.js CHANGED
@@ -36458,10 +36458,15 @@ const buildCapabilities = (project) => {
36458
36458
  }
36459
36459
  if (project.tailwindVersion !== null) {
36460
36460
  capabilities.add("tailwind");
36461
- if (isTailwindAtLeast(parseTailwindMajorMinor(project.tailwindVersion), {
36461
+ const tailwind = parseTailwindMajorMinor(project.tailwindVersion);
36462
+ if (isTailwindAtLeast(tailwind, {
36462
36463
  major: 3,
36463
36464
  minor: 4
36464
36465
  })) capabilities.add("tailwind:3.4");
36466
+ if (tailwind !== null && isTailwindAtLeast(tailwind, {
36467
+ major: 4,
36468
+ minor: 0
36469
+ })) capabilities.add("tailwind:4");
36465
36470
  }
36466
36471
  if (project.zodVersion !== null) {
36467
36472
  capabilities.add("zod");
@@ -42356,5 +42361,5 @@ const startLanguageServer = () => {
42356
42361
  };
42357
42362
  //#endregion
42358
42363
  export { startLanguageServer };
42359
- !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]="03349093-b1b2-5f21-bad3-7e212e5a7f91")}catch(e){}}();
42360
- //# debugId=03349093-b1b2-5f21-bad3-7e212e5a7f91
42364
+ !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]="9421149c-0ed9-5e00-81da-4f7dd8faf332")}catch(e){}}();
42365
+ //# debugId=9421149c-0ed9-5e00-81da-4f7dd8faf332
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.5.6-dev.b08ca1c",
3
+ "version": "0.5.6-dev.eafac9d",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -64,7 +64,7 @@
64
64
  "vscode-languageserver": "^9.0.1",
65
65
  "vscode-languageserver-textdocument": "^1.0.12",
66
66
  "vscode-uri": "^3.1.0",
67
- "oxlint-plugin-react-doctor": "0.5.6-dev.b08ca1c"
67
+ "oxlint-plugin-react-doctor": "0.5.6-dev.eafac9d"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@types/babel__code-frame": "^7.27.0",
@@ -72,9 +72,9 @@
72
72
  "@xterm/headless": "^6.0.0",
73
73
  "commander": "^14.0.3",
74
74
  "ora": "^9.4.0",
75
- "@react-doctor/language-server": "0.5.6",
75
+ "@react-doctor/core": "0.5.6",
76
76
  "@react-doctor/api": "0.5.6",
77
- "@react-doctor/core": "0.5.6"
77
+ "@react-doctor/language-server": "0.5.6"
78
78
  },
79
79
  "engines": {
80
80
  "node": "^20.19.0 || >=22.13.0"