react-doctor 0.9.0 → 0.9.1-dev.54ba416

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]="feb9c2a0-9dd0-5d55-9a9c-7e330f908bd3")}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]="082c13c1-ba8f-56d5-9944-c005ab0edc0e")}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";
@@ -64994,7 +64994,7 @@ const SOCKET_FREE_USER_AGENT = "react-doctor-supply-chain";
64994
64994
  const FILE_LINT_CACHE_FILENAME = "file-lint-cache.json";
64995
64995
  const FILE_LINT_CACHE_MAX_FILE_COUNT = 5e4;
64996
64996
  const SIDECAR_LINT_CACHE_FILENAME = "sidecar-lint-cache.json";
64997
- const CORE_PACKAGE_VERSION = "0.9.0";
64997
+ const CORE_PACKAGE_VERSION = "0.9.1";
64998
64998
  const DEAD_CODE_CACHE_FILENAME = "dead-code-cache.json";
64999
64999
  const DEAD_CODE_SUMMARY_CACHE_FILENAME = "dead-code-summaries.json";
65000
65000
  const SUPPLY_CHAIN_PLUGIN = "socket";
@@ -65379,6 +65379,7 @@ const frameworkMergeRank = (framework) => {
65379
65379
  return MOBILE_FRAMEWORKS.has(framework) ? 2 : 1;
65380
65380
  };
65381
65381
  const REACT_COMPILER_LINT_PACKAGES = new Set(["eslint-plugin-react-compiler"]);
65382
+ const REACT_COMPILER_RUNTIME_PACKAGES = new Set(["react-compiler-runtime"]);
65382
65383
  const NEXT_CONFIG_FILENAMES = [
65383
65384
  "next.config.js",
65384
65385
  "next.config.mjs",
@@ -66085,7 +66086,7 @@ const hasCompilerConfigurationInAncestors = (directory) => {
66085
66086
  }
66086
66087
  return false;
66087
66088
  };
66088
- const detectReactCompiler = (directory, packageJson) => hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
66089
+ const detectReactCompiler = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
66089
66090
  const detectReactCompilerLintPlugin = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_LINT_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_LINT_PACKAGES);
66090
66091
  const detectNextjsStaticExport = (directory) => NEXT_CONFIG_FILENAMES.some((filename) => {
66091
66092
  const filePath = Path.join(directory, filename);
@@ -77409,7 +77410,7 @@ const makeNoopConsole = () => ({
77409
77410
  });
77410
77411
  //#endregion
77411
77412
  //#region src/cli/utils/version.ts
77412
- const VERSION = "0.9.0";
77413
+ const VERSION = "0.9.1-dev.54ba416";
77413
77414
  //#endregion
77414
77415
  //#region src/cli/utils/json-mode.ts
77415
77416
  let context = null;
@@ -77767,13 +77768,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
77767
77768
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
77768
77769
  * standard `SENTRY_RELEASE` override.
77769
77770
  */
77770
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.0`;
77771
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.9.1-dev.54ba416`;
77771
77772
  /**
77772
77773
  * Deployment environment shown in Sentry's environment filter. Defaults to
77773
77774
  * `production` for tagged releases and `development` for dev/unbuilt versions,
77774
77775
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
77775
77776
  */
77776
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.0") ? "development" : "production");
77777
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.9.1-dev.54ba416") ? "development" : "production");
77777
77778
  /**
77778
77779
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
77779
77780
  * (set to `0` to disable tracing) and falls back to
@@ -96468,7 +96469,7 @@ ${formatExampleLines([
96468
96469
  ])}
96469
96470
 
96470
96471
  ${highlighter.dim("Scope:")}
96471
- Runs only rules tagged ${highlighter.info("design")}, including focused rules that stay opt-in during a general health scan.
96472
+ Runs every rule tagged ${highlighter.info("design")}; all design rules stay opt-in during a general health scan.
96472
96473
  Dead-code, supply-chain, external lint-config, custom-plugin, and health-score passes are skipped.
96473
96474
  Standard scan flags such as ${highlighter.info("--scope")}, ${highlighter.info("--project")}, ${highlighter.info("--verbose")}, and ${highlighter.info("--json")} still work.
96474
96475
  `;
@@ -96571,4 +96572,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
96571
96572
  export { toForwardSlashes as A, highlighter as B, buildRulePriorityMap as C, resolveBlockingLevel as D, formatLearnMoreLine as E, isCiEnvironment as F, sync as G, mergeReactDoctorConfigs as H, DIAGNOSTIC_CATEGORY_BUCKETS as I, void_ as K, Progress as L, isUnicodeSupported as M, METRIC as N, isReactDoctorWorkflowInstalled as O, TUI_REPORT_DETAIL_WIDTH_FRACTION as P, Reporter as R, hasLintHardFailure as S, formatFixRecipeLine as T, resolveScanTarget as U, mapWithConcurrency as V, runPromise as W, canAnimateOnboarding as _, resolveCliInspectOptions as a, buildCodeFrame as b, detectLaunchableAgents as c, launchCliAgent as d, isShareOptedOut as f, doctorFace as g, easeOutCubic as h, selectProjects as i, findNearestPackageDirectory as j, recordCount as k, CLI_AGENT_BINARIES as l, printFooter as m, shouldFailScanGate as n, countUniqueScannedFiles as o, inspect as p, succeed$3 as q, discoverWorkspacePackages as r, setUpGitHubActions as s, exitGracefully as t, copyToClipboard as u, computeProjectedScore as v, buildSortedRuleGroups as w, buildNoScoreMessage as x, formatElapsedTime as y, getCategoryImpact as z };
96572
96573
 
96573
96574
  //# sourceMappingURL=cli.js.map
96574
- //# debugId=feb9c2a0-9dd0-5d55-9a9c-7e330f908bd3
96575
+ //# debugId=082c13c1-ba8f-56d5-9944-c005ab0edc0e
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]="702b5b0d-3117-5622-b161-1cb17deb6636")}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]="eb93b210-c190-581c-8fe2-f1e1c70e0bab")}catch(e){}}();
3
3
  import { i as __toESM$1, r as __require, t as __commonJSMin$1 } from "./chunk-ChKA3wi6.js";
4
4
  import { createRequire } from "node:module";
5
5
  import reactDoctorPlugin, { ALL_REACT_DOCTOR_RULE_KEYS, CROSS_FILE_DEPENDENCY_COLLECTORS, CROSS_FILE_RULE_IDS, FRAMEWORK_SPECIFIC_RULE_KEYS, FRAMEWORK_TOKENS, MOTION_LIBRARY_PACKAGES, REACT_COMPILER_RULES, REACT_DOCTOR_RULES, classifySecurityScanFile, collectCrossFileDependencyProbes, resetManifestCaches, shouldReadSecurityScanContent } from "oxlint-plugin-react-doctor";
@@ -61791,7 +61791,7 @@ const SOCKET_FREE_USER_AGENT = "react-doctor-supply-chain";
61791
61791
  const FILE_LINT_CACHE_FILENAME = "file-lint-cache.json";
61792
61792
  const FILE_LINT_CACHE_MAX_FILE_COUNT = 5e4;
61793
61793
  const SIDECAR_LINT_CACHE_FILENAME = "sidecar-lint-cache.json";
61794
- const CORE_PACKAGE_VERSION = "0.9.0";
61794
+ const CORE_PACKAGE_VERSION = "0.9.1";
61795
61795
  const DEAD_CODE_CACHE_FILENAME = "dead-code-cache.json";
61796
61796
  const DEAD_CODE_SUMMARY_CACHE_FILENAME = "dead-code-summaries.json";
61797
61797
  const SUPPLY_CHAIN_PLUGIN = "socket";
@@ -62182,6 +62182,7 @@ const frameworkMergeRank = (framework) => {
62182
62182
  return MOBILE_FRAMEWORKS.has(framework) ? 2 : 1;
62183
62183
  };
62184
62184
  const REACT_COMPILER_LINT_PACKAGES = new Set(["eslint-plugin-react-compiler"]);
62185
+ const REACT_COMPILER_RUNTIME_PACKAGES = new Set(["react-compiler-runtime"]);
62185
62186
  const NEXT_CONFIG_FILENAMES = [
62186
62187
  "next.config.js",
62187
62188
  "next.config.mjs",
@@ -62888,7 +62889,7 @@ const hasCompilerConfigurationInAncestors = (directory) => {
62888
62889
  }
62889
62890
  return false;
62890
62891
  };
62891
- const detectReactCompiler = (directory, packageJson) => hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
62892
+ const detectReactCompiler = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
62892
62893
  const detectReactCompilerLintPlugin = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_LINT_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_LINT_PACKAGES);
62893
62894
  const detectNextjsStaticExport = (directory) => NEXT_CONFIG_FILENAMES.some((filename) => {
62894
62895
  const filePath = Path.join(directory, filename);
@@ -73883,4 +73884,4 @@ const toJsonReport = (result, options) => buildJsonReport({
73883
73884
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
73884
73885
 
73885
73886
  //# sourceMappingURL=index.js.map
73886
- //# debugId=702b5b0d-3117-5622-b161-1cb17deb6636
73887
+ //# debugId=eb93b210-c190-581c-8fe2-f1e1c70e0bab
package/dist/lsp.js CHANGED
@@ -61844,7 +61844,7 @@ const SOCKET_FREE_USER_AGENT = "react-doctor-supply-chain";
61844
61844
  const FILE_LINT_CACHE_FILENAME = "file-lint-cache.json";
61845
61845
  const FILE_LINT_CACHE_MAX_FILE_COUNT = 5e4;
61846
61846
  const SIDECAR_LINT_CACHE_FILENAME = "sidecar-lint-cache.json";
61847
- const CORE_PACKAGE_VERSION = "0.9.0";
61847
+ const CORE_PACKAGE_VERSION = "0.9.1";
61848
61848
  const DEAD_CODE_CACHE_FILENAME = "dead-code-cache.json";
61849
61849
  const DEAD_CODE_SUMMARY_CACHE_FILENAME = "dead-code-summaries.json";
61850
61850
  const SUPPLY_CHAIN_PLUGIN = "socket";
@@ -62235,6 +62235,7 @@ const frameworkMergeRank = (framework) => {
62235
62235
  return MOBILE_FRAMEWORKS.has(framework) ? 2 : 1;
62236
62236
  };
62237
62237
  const REACT_COMPILER_LINT_PACKAGES = new Set(["eslint-plugin-react-compiler"]);
62238
+ const REACT_COMPILER_RUNTIME_PACKAGES = new Set(["react-compiler-runtime"]);
62238
62239
  const NEXT_CONFIG_FILENAMES = [
62239
62240
  "next.config.js",
62240
62241
  "next.config.mjs",
@@ -62941,7 +62942,7 @@ const hasCompilerConfigurationInAncestors = (directory) => {
62941
62942
  }
62942
62943
  return false;
62943
62944
  };
62944
- const detectReactCompiler = (directory, packageJson) => hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
62945
+ const detectReactCompiler = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_RUNTIME_PACKAGES) || hasCompilerConfiguration(directory, packageJson) || hasCompilerConfigurationInAncestors(directory);
62945
62946
  const detectReactCompilerLintPlugin = (directory, packageJson) => hasCompilerPackage(packageJson, REACT_COMPILER_LINT_PACKAGES) || hasCompilerPackageInAncestors(directory, REACT_COMPILER_LINT_PACKAGES);
62946
62947
  const detectNextjsStaticExport = (directory) => NEXT_CONFIG_FILENAMES.some((filename) => {
62947
62948
  const filePath = Path.join(directory, filename);
@@ -73474,7 +73475,7 @@ const computeConfigFingerprint = (projectDirectory, version) => {
73474
73475
  /** Display name used in client-facing messages and progress titles. */
73475
73476
  const SERVER_DISPLAY_NAME = "React Doctor";
73476
73477
  /** Server version reported in `serverInfo`; injected at build, `dev` from source. */
73477
- const SERVER_VERSION = "0.9.0";
73478
+ const SERVER_VERSION = "0.9.1";
73478
73479
  /** `Diagnostic.source` shown next to every published diagnostic. */
73479
73480
  const DIAGNOSTIC_SOURCE = "react-doctor";
73480
73481
  /**
@@ -75504,5 +75505,5 @@ const startLanguageServer = () => {
75504
75505
  };
75505
75506
  //#endregion
75506
75507
  export { startLanguageServer };
75507
- !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]="4174ed31-6572-57ab-ac95-6089329d703f")}catch(e){}}();
75508
- //# debugId=4174ed31-6572-57ab-ac95-6089329d703f
75508
+ !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]="aeb8bc8c-7094-5b26-bb18-e269e2d4318a")}catch(e){}}();
75509
+ //# debugId=aeb8bc8c-7094-5b26-bb18-e269e2d4318a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.9.0",
3
+ "version": "0.9.1-dev.54ba416",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -69,8 +69,8 @@
69
69
  "vscode-languageserver-textdocument": "^1.0.12",
70
70
  "vscode-uri": "^3.1.0",
71
71
  "yaml": "^2.9.0",
72
- "deslop-js": "0.9.0",
73
- "oxlint-plugin-react-doctor": "0.9.0"
72
+ "oxlint-plugin-react-doctor": "0.9.1-dev.54ba416",
73
+ "deslop-js": "0.9.1"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/babel__code-frame": "^7.27.0",
@@ -80,9 +80,9 @@
80
80
  "commander": "^14.0.3",
81
81
  "ink-testing-library": "^4.0.0",
82
82
  "ora": "^9.4.0",
83
- "@react-doctor/api": "0.9.0",
84
- "@react-doctor/core": "0.9.0",
85
- "@react-doctor/language-server": "0.9.0"
83
+ "@react-doctor/language-server": "0.9.1",
84
+ "@react-doctor/core": "0.9.1",
85
+ "@react-doctor/api": "0.9.1"
86
86
  },
87
87
  "engines": {
88
88
  "node": "^20.19.0 || >=22.13.0"