react-doctor 0.4.0-dev.fe5f3de → 0.4.1-dev.7d4b996

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]="646273cf-f6f6-5523-a0f4-a333f73e0d4f")}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]="6ef6b306-718a-5ef6-81bb-b6465cd32f04")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
5
5
  import * as path$1 from "node:path";
@@ -6405,7 +6405,11 @@ const DIAGNOSTIC_CATEGORY_BUCKETS = [
6405
6405
  "Accessibility",
6406
6406
  "Maintainability"
6407
6407
  ];
6408
- const APP_ONLY_RULE_KEYS = new Set(["react-hooks-js/static-components", "react-doctor/no-render-prop-children"]);
6408
+ const APP_ONLY_RULE_KEYS = new Set([
6409
+ "react-hooks-js/static-components",
6410
+ "react-doctor/no-render-prop-children",
6411
+ "react-doctor/prefer-explicit-variants"
6412
+ ]);
6409
6413
  const COMPILER_CLEANUP_BUCKET = "compiler-cleanup";
6410
6414
  const COMPILER_CLEANUP_RULE_KEYS = new Set(["react-doctor/react-compiler-no-manual-memoization"]);
6411
6415
  const MAX_GLOB_PATTERN_LENGTH_CHARS = 1024;
@@ -12211,7 +12215,7 @@ const makeNoopConsole = () => ({
12211
12215
  });
12212
12216
  //#endregion
12213
12217
  //#region src/cli/utils/version.ts
12214
- const VERSION = "0.4.0-dev.fe5f3de";
12218
+ const VERSION = "0.4.1-dev.7d4b996";
12215
12219
  //#endregion
12216
12220
  //#region src/cli/utils/json-mode.ts
12217
12221
  let context = null;
@@ -12569,13 +12573,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
12569
12573
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
12570
12574
  * standard `SENTRY_RELEASE` override.
12571
12575
  */
12572
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.0-dev.fe5f3de`;
12576
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.1-dev.7d4b996`;
12573
12577
  /**
12574
12578
  * Deployment environment shown in Sentry's environment filter. Defaults to
12575
12579
  * `production` for tagged releases and `development` for dev/unbuilt versions,
12576
12580
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
12577
12581
  */
12578
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.0-dev.fe5f3de") ? "development" : "production");
12582
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.1-dev.7d4b996") ? "development" : "production");
12579
12583
  /**
12580
12584
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
12581
12585
  * (set to `0` to disable tracing) and falls back to
@@ -21468,4 +21472,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
21468
21472
  export {};
21469
21473
 
21470
21474
  //# sourceMappingURL=cli.js.map
21471
- //# debugId=646273cf-f6f6-5523-a0f4-a333f73e0d4f
21475
+ //# debugId=6ef6b306-718a-5ef6-81bb-b6465cd32f04
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]="3118af5e-d2d7-5885-a74e-4011b2abc203")}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]="f737dd06-c590-5a34-8fb0-b8aa0278cc0d")}catch(e){}}();
3
3
  import { createRequire } from "node:module";
4
4
  import * as Schema from "effect/Schema";
5
5
  import * as fs$1 from "node:fs";
@@ -3376,7 +3376,11 @@ const DIAGNOSTIC_CATEGORY_BUCKETS = [
3376
3376
  "Accessibility",
3377
3377
  "Maintainability"
3378
3378
  ];
3379
- const APP_ONLY_RULE_KEYS = new Set(["react-hooks-js/static-components", "react-doctor/no-render-prop-children"]);
3379
+ const APP_ONLY_RULE_KEYS = new Set([
3380
+ "react-hooks-js/static-components",
3381
+ "react-doctor/no-render-prop-children",
3382
+ "react-doctor/prefer-explicit-variants"
3383
+ ]);
3380
3384
  const COMPILER_CLEANUP_BUCKET = "compiler-cleanup";
3381
3385
  const COMPILER_CLEANUP_RULE_KEYS = new Set(["react-doctor/react-compiler-no-manual-memoization"]);
3382
3386
  const MAX_GLOB_PATTERN_LENGTH_CHARS = 1024;
@@ -8949,4 +8953,4 @@ const toJsonReport = (result, options) => buildJsonReport({
8949
8953
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
8950
8954
 
8951
8955
  //# sourceMappingURL=index.js.map
8952
- //# debugId=3118af5e-d2d7-5885-a74e-4011b2abc203
8956
+ //# debugId=f737dd06-c590-5a34-8fb0-b8aa0278cc0d
package/dist/lsp.js CHANGED
@@ -3387,7 +3387,11 @@ const DIAGNOSTIC_CATEGORY_BUCKETS = [
3387
3387
  "Accessibility",
3388
3388
  "Maintainability"
3389
3389
  ];
3390
- const APP_ONLY_RULE_KEYS = new Set(["react-hooks-js/static-components", "react-doctor/no-render-prop-children"]);
3390
+ const APP_ONLY_RULE_KEYS = new Set([
3391
+ "react-hooks-js/static-components",
3392
+ "react-doctor/no-render-prop-children",
3393
+ "react-doctor/prefer-explicit-variants"
3394
+ ]);
3391
3395
  const COMPILER_CLEANUP_BUCKET = "compiler-cleanup";
3392
3396
  const COMPILER_CLEANUP_RULE_KEYS = new Set(["react-doctor/react-compiler-no-manual-memoization"]);
3393
3397
  const MAX_GLOB_PATTERN_LENGTH_CHARS = 1024;
@@ -8732,7 +8736,7 @@ const getRuleMetadata = (plugin, rule) => {
8732
8736
  /** Display name used in client-facing messages and progress titles. */
8733
8737
  const SERVER_DISPLAY_NAME = "React Doctor";
8734
8738
  /** Server version reported in `serverInfo`; injected at build, `dev` from source. */
8735
- const SERVER_VERSION = "0.2.12";
8739
+ const SERVER_VERSION = "0.2.13";
8736
8740
  /** `Diagnostic.source` shown next to every published diagnostic. */
8737
8741
  const DIAGNOSTIC_SOURCE = "react-doctor";
8738
8742
  /**
@@ -10820,5 +10824,5 @@ const startLanguageServer = () => {
10820
10824
  };
10821
10825
  //#endregion
10822
10826
  export { startLanguageServer };
10823
- !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]="87d08504-e094-5770-8f0d-a1195e0df93c")}catch(e){}}();
10824
- //# debugId=87d08504-e094-5770-8f0d-a1195e0df93c
10827
+ !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]="8723a353-8e8c-5ecc-8264-6fbb48af2b40")}catch(e){}}();
10828
+ //# debugId=8723a353-8e8c-5ecc-8264-6fbb48af2b40
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.4.0-dev.fe5f3de",
3
+ "version": "0.4.1-dev.7d4b996",
4
4
  "description": "Diagnose and fix React codebases for security, performance, correctness, accessibility, bundle-size, and architecture issues",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -55,7 +55,7 @@
55
55
  "agent-install": "0.0.5",
56
56
  "conf": "^15.1.0",
57
57
  "confbox": "^0.2.4",
58
- "deslop-js": "^0.0.20",
58
+ "deslop-js": "^0.0.21",
59
59
  "effect": "4.0.0-beta.70",
60
60
  "eslint-plugin-react-hooks": "^7.1.1",
61
61
  "jiti": "^2.7.0",
@@ -66,7 +66,7 @@
66
66
  "vscode-languageserver": "^9.0.1",
67
67
  "vscode-languageserver-textdocument": "^1.0.12",
68
68
  "vscode-uri": "^3.1.0",
69
- "oxlint-plugin-react-doctor": "0.4.0-dev.fe5f3de"
69
+ "oxlint-plugin-react-doctor": "0.4.1-dev.7d4b996"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/babel__code-frame": "^7.27.0",
@@ -74,9 +74,9 @@
74
74
  "@xterm/headless": "^6.0.0",
75
75
  "commander": "^14.0.3",
76
76
  "ora": "^9.4.0",
77
- "@react-doctor/core": "0.3.0",
78
- "@react-doctor/language-server": "0.2.12",
79
- "@react-doctor/api": "0.2.20"
77
+ "@react-doctor/api": "0.2.21",
78
+ "@react-doctor/core": "0.3.1",
79
+ "@react-doctor/language-server": "0.2.13"
80
80
  },
81
81
  "engines": {
82
82
  "node": "^20.19.0 || >=22.12.0"