react-doctor 0.7.4-dev.6821fe0 → 0.7.4-dev.70b5d99

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]="09731967-e6b8-5d9e-84b7-cb46a451b11a")}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]="3203840f-abe6-5c29-95e2-d00e2e042a00")}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";
@@ -37147,22 +37147,6 @@ const isPackageJsonReanimatedAware = (packageJson) => {
37147
37147
  };
37148
37148
  return Object.hasOwn(allDependencies, REANIMATED_DEPENDENCY_NAME$1);
37149
37149
  };
37150
- const SSR_DEPENDENCY_NAMES = new Set([
37151
- "@react-router/cloudflare",
37152
- "@react-router/node",
37153
- "@react-router/serve",
37154
- "vike",
37155
- "vite-plugin-ssr"
37156
- ]);
37157
- const isPackageJsonSsrAware = (packageJson) => {
37158
- const allDependencies = {
37159
- ...packageJson.peerDependencies,
37160
- ...packageJson.dependencies,
37161
- ...packageJson.devDependencies,
37162
- ...packageJson.optionalDependencies
37163
- };
37164
- return Object.keys(allDependencies).some((packageName) => SSR_DEPENDENCY_NAMES.has(packageName));
37165
- };
37166
37150
  const getWorkspacePatterns = (rootDirectory, packageJson) => {
37167
37151
  const pnpmPatterns = parsePnpmWorkspacePatterns(rootDirectory);
37168
37152
  if (pnpmPatterns.length > 0) return pnpmPatterns;
@@ -37303,7 +37287,6 @@ const evaluateManifestFacts = (facts, packageJson, directory) => {
37303
37287
  }
37304
37288
  facts.hasReactNativeAwarePackage = facts.hasReactNativeAwarePackage || isPackageJsonReactNativeAware(packageJson);
37305
37289
  facts.hasReanimatedAwarePackage = facts.hasReanimatedAwarePackage || isPackageJsonReanimatedAware(packageJson);
37306
- facts.hasSsrDependency = facts.hasSsrDependency || isPackageJsonSsrAware(packageJson);
37307
37290
  };
37308
37291
  const collectWorkspaceFacts = (rootDirectory, rootPackageJson, { collectReactGroup }) => {
37309
37292
  const facts = {
@@ -37325,7 +37308,6 @@ const collectWorkspaceFacts = (rootDirectory, rootPackageJson, { collectReactGro
37325
37308
  },
37326
37309
  hasReactNativeAwarePackage: false,
37327
37310
  hasReanimatedAwarePackage: false,
37328
- hasSsrDependency: false,
37329
37311
  reanimatedVersion: null
37330
37312
  };
37331
37313
  evaluateManifestFacts(facts, rootPackageJson, rootDirectory);
@@ -37562,7 +37544,6 @@ const discoverProjectWithoutPackageJson = (directory) => {
37562
37544
  hasTypeScript: hasOwnTsConfig,
37563
37545
  hasReactCompiler: false,
37564
37546
  hasTanStackQuery: false,
37565
- hasSsrDependency: false,
37566
37547
  preactVersion: null,
37567
37548
  preactMajorVersion: null,
37568
37549
  hasReactNativeWorkspace: false,
@@ -37682,7 +37663,6 @@ const discoverProject = (directory) => {
37682
37663
  hasTypeScript,
37683
37664
  hasReactCompiler: detectReactCompiler(directory, packageJson),
37684
37665
  hasTanStackQuery: hasTanStackQuery(packageJson),
37685
- hasSsrDependency: workspaceFacts.hasSsrDependency,
37686
37666
  preactVersion,
37687
37667
  preactMajorVersion: parseReactMajor(preactVersion),
37688
37668
  hasReactNativeWorkspace,
@@ -40536,12 +40516,6 @@ const CLIENT_ONLY_FRAMEWORKS = new Set([
40536
40516
  "react-native",
40537
40517
  "expo"
40538
40518
  ]);
40539
- const SSR_FRAMEWORKS = new Set([
40540
- "nextjs",
40541
- "remix",
40542
- "gatsby",
40543
- "tanstack-start"
40544
- ]);
40545
40519
  const addMajorLadder = (capabilities, name, major, earliest, latest) => {
40546
40520
  if (major === null) return;
40547
40521
  const cappedMajor = Math.min(major, latest);
@@ -40554,7 +40528,6 @@ const buildCapabilities = (project) => {
40554
40528
  if (project.framework === "expo" || project.framework === "react-native" || project.hasReactNativeWorkspace) capabilities.add("react-native");
40555
40529
  if (project.expoVersion !== null) capabilities.add("expo");
40556
40530
  if ((project.framework === "nextjs" || project.framework === "tanstack-start" || project.framework === "remix") && !project.isStaticExport) capabilities.add("server-actions");
40557
- if (SSR_FRAMEWORKS.has(project.framework) || project.hasSsrDependency) capabilities.add("ssr");
40558
40531
  if (CLIENT_ONLY_FRAMEWORKS.has(project.framework)) capabilities.add("client-only");
40559
40532
  if (project.isStaticExport) capabilities.add("nextjs:static-export");
40560
40533
  if (project.nextjsMajorVersion !== null && project.nextjsMajorVersion >= 15) capabilities.add("nextjs:15");
@@ -46629,7 +46602,7 @@ const makeNoopConsole = () => ({
46629
46602
  });
46630
46603
  //#endregion
46631
46604
  //#region src/cli/utils/version.ts
46632
- const VERSION = "0.7.4-dev.6821fe0";
46605
+ const VERSION = "0.7.4-dev.70b5d99";
46633
46606
  //#endregion
46634
46607
  //#region src/cli/utils/json-mode.ts
46635
46608
  let context = null;
@@ -46998,13 +46971,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
46998
46971
  * uploads source-map artifacts under, so stack frames symbolicate. Honors the
46999
46972
  * standard `SENTRY_RELEASE` override.
47000
46973
  */
47001
- const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.4-dev.6821fe0`;
46974
+ const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.7.4-dev.70b5d99`;
47002
46975
  /**
47003
46976
  * Deployment environment shown in Sentry's environment filter. Defaults to
47004
46977
  * `production` for tagged releases and `development` for dev/unbuilt versions,
47005
46978
  * overridable via the standard `SENTRY_ENVIRONMENT` env var.
47006
46979
  */
47007
- const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.4-dev.6821fe0") ? "development" : "production");
46980
+ const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.7.4-dev.70b5d99") ? "development" : "production");
47008
46981
  /**
47009
46982
  * Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
47010
46983
  * (set to `0` to disable tracing) and falls back to
@@ -65193,4 +65166,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
65193
65166
  export {};
65194
65167
 
65195
65168
  //# sourceMappingURL=cli.js.map
65196
- //# debugId=09731967-e6b8-5d9e-84b7-cb46a451b11a
65169
+ //# debugId=3203840f-abe6-5c29-95e2-d00e2e042a00
package/dist/index.d.ts CHANGED
@@ -9541,11 +9541,6 @@ interface ProjectInfo {
9541
9541
  hasTypeScript: boolean;
9542
9542
  hasReactCompiler: boolean;
9543
9543
  hasTanStackQuery: boolean;
9544
- /**
9545
- * `true` when the project or a workspace declares a Vite-based SSR runtime
9546
- * such as React Router's Node adapter, Vike, or vite-plugin-ssr.
9547
- */
9548
- hasSsrDependency: boolean;
9549
9544
  /**
9550
9545
  * The declared `preact` version spec, or `null` when Preact isn't a
9551
9546
  * dependency. Parallels `reactVersion` so a React-compatible runtime is
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]="95e70e55-12b7-5577-81f3-f5331db7ca53")}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]="fc8f34ed-4372-511a-95e8-0b1638d728fa")}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 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";
@@ -33952,22 +33952,6 @@ const isPackageJsonReanimatedAware = (packageJson) => {
33952
33952
  };
33953
33953
  return Object.hasOwn(allDependencies, REANIMATED_DEPENDENCY_NAME$1);
33954
33954
  };
33955
- const SSR_DEPENDENCY_NAMES = new Set([
33956
- "@react-router/cloudflare",
33957
- "@react-router/node",
33958
- "@react-router/serve",
33959
- "vike",
33960
- "vite-plugin-ssr"
33961
- ]);
33962
- const isPackageJsonSsrAware = (packageJson) => {
33963
- const allDependencies = {
33964
- ...packageJson.peerDependencies,
33965
- ...packageJson.dependencies,
33966
- ...packageJson.devDependencies,
33967
- ...packageJson.optionalDependencies
33968
- };
33969
- return Object.keys(allDependencies).some((packageName) => SSR_DEPENDENCY_NAMES.has(packageName));
33970
- };
33971
33955
  const getWorkspacePatterns = (rootDirectory, packageJson) => {
33972
33956
  const pnpmPatterns = parsePnpmWorkspacePatterns(rootDirectory);
33973
33957
  if (pnpmPatterns.length > 0) return pnpmPatterns;
@@ -34108,7 +34092,6 @@ const evaluateManifestFacts = (facts, packageJson, directory) => {
34108
34092
  }
34109
34093
  facts.hasReactNativeAwarePackage = facts.hasReactNativeAwarePackage || isPackageJsonReactNativeAware(packageJson);
34110
34094
  facts.hasReanimatedAwarePackage = facts.hasReanimatedAwarePackage || isPackageJsonReanimatedAware(packageJson);
34111
- facts.hasSsrDependency = facts.hasSsrDependency || isPackageJsonSsrAware(packageJson);
34112
34095
  };
34113
34096
  const collectWorkspaceFacts = (rootDirectory, rootPackageJson, { collectReactGroup }) => {
34114
34097
  const facts = {
@@ -34130,7 +34113,6 @@ const collectWorkspaceFacts = (rootDirectory, rootPackageJson, { collectReactGro
34130
34113
  },
34131
34114
  hasReactNativeAwarePackage: false,
34132
34115
  hasReanimatedAwarePackage: false,
34133
- hasSsrDependency: false,
34134
34116
  reanimatedVersion: null
34135
34117
  };
34136
34118
  evaluateManifestFacts(facts, rootPackageJson, rootDirectory);
@@ -34370,7 +34352,6 @@ const discoverProjectWithoutPackageJson = (directory) => {
34370
34352
  hasTypeScript: hasOwnTsConfig,
34371
34353
  hasReactCompiler: false,
34372
34354
  hasTanStackQuery: false,
34373
- hasSsrDependency: false,
34374
34355
  preactVersion: null,
34375
34356
  preactMajorVersion: null,
34376
34357
  hasReactNativeWorkspace: false,
@@ -34490,7 +34471,6 @@ const discoverProject = (directory) => {
34490
34471
  hasTypeScript,
34491
34472
  hasReactCompiler: detectReactCompiler(directory, packageJson),
34492
34473
  hasTanStackQuery: hasTanStackQuery(packageJson),
34493
- hasSsrDependency: workspaceFacts.hasSsrDependency,
34494
34474
  preactVersion,
34495
34475
  preactMajorVersion: parseReactMajor(preactVersion),
34496
34476
  hasReactNativeWorkspace,
@@ -37309,12 +37289,6 @@ const CLIENT_ONLY_FRAMEWORKS = new Set([
37309
37289
  "react-native",
37310
37290
  "expo"
37311
37291
  ]);
37312
- const SSR_FRAMEWORKS = new Set([
37313
- "nextjs",
37314
- "remix",
37315
- "gatsby",
37316
- "tanstack-start"
37317
- ]);
37318
37292
  const addMajorLadder = (capabilities, name, major, earliest, latest) => {
37319
37293
  if (major === null) return;
37320
37294
  const cappedMajor = Math.min(major, latest);
@@ -37327,7 +37301,6 @@ const buildCapabilities = (project) => {
37327
37301
  if (project.framework === "expo" || project.framework === "react-native" || project.hasReactNativeWorkspace) capabilities.add("react-native");
37328
37302
  if (project.expoVersion !== null) capabilities.add("expo");
37329
37303
  if ((project.framework === "nextjs" || project.framework === "tanstack-start" || project.framework === "remix") && !project.isStaticExport) capabilities.add("server-actions");
37330
- if (SSR_FRAMEWORKS.has(project.framework) || project.hasSsrDependency) capabilities.add("ssr");
37331
37304
  if (CLIENT_ONLY_FRAMEWORKS.has(project.framework)) capabilities.add("client-only");
37332
37305
  if (project.isStaticExport) capabilities.add("nextjs:static-export");
37333
37306
  if (project.nextjsMajorVersion !== null && project.nextjsMajorVersion >= 15) capabilities.add("nextjs:15");
@@ -43172,4 +43145,4 @@ const toJsonReport = (result, options) => buildJsonReport({
43172
43145
  export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, hasReactRuntime, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
43173
43146
 
43174
43147
  //# sourceMappingURL=index.js.map
43175
- //# debugId=95e70e55-12b7-5577-81f3-f5331db7ca53
43148
+ //# debugId=fc8f34ed-4372-511a-95e8-0b1638d728fa
package/dist/lsp.js CHANGED
@@ -34004,22 +34004,6 @@ const isPackageJsonReanimatedAware = (packageJson) => {
34004
34004
  };
34005
34005
  return Object.hasOwn(allDependencies, REANIMATED_DEPENDENCY_NAME$1);
34006
34006
  };
34007
- const SSR_DEPENDENCY_NAMES = new Set([
34008
- "@react-router/cloudflare",
34009
- "@react-router/node",
34010
- "@react-router/serve",
34011
- "vike",
34012
- "vite-plugin-ssr"
34013
- ]);
34014
- const isPackageJsonSsrAware = (packageJson) => {
34015
- const allDependencies = {
34016
- ...packageJson.peerDependencies,
34017
- ...packageJson.dependencies,
34018
- ...packageJson.devDependencies,
34019
- ...packageJson.optionalDependencies
34020
- };
34021
- return Object.keys(allDependencies).some((packageName) => SSR_DEPENDENCY_NAMES.has(packageName));
34022
- };
34023
34007
  const getWorkspacePatterns = (rootDirectory, packageJson) => {
34024
34008
  const pnpmPatterns = parsePnpmWorkspacePatterns(rootDirectory);
34025
34009
  if (pnpmPatterns.length > 0) return pnpmPatterns;
@@ -34160,7 +34144,6 @@ const evaluateManifestFacts = (facts, packageJson, directory) => {
34160
34144
  }
34161
34145
  facts.hasReactNativeAwarePackage = facts.hasReactNativeAwarePackage || isPackageJsonReactNativeAware(packageJson);
34162
34146
  facts.hasReanimatedAwarePackage = facts.hasReanimatedAwarePackage || isPackageJsonReanimatedAware(packageJson);
34163
- facts.hasSsrDependency = facts.hasSsrDependency || isPackageJsonSsrAware(packageJson);
34164
34147
  };
34165
34148
  const collectWorkspaceFacts = (rootDirectory, rootPackageJson, { collectReactGroup }) => {
34166
34149
  const facts = {
@@ -34182,7 +34165,6 @@ const collectWorkspaceFacts = (rootDirectory, rootPackageJson, { collectReactGro
34182
34165
  },
34183
34166
  hasReactNativeAwarePackage: false,
34184
34167
  hasReanimatedAwarePackage: false,
34185
- hasSsrDependency: false,
34186
34168
  reanimatedVersion: null
34187
34169
  };
34188
34170
  evaluateManifestFacts(facts, rootPackageJson, rootDirectory);
@@ -34422,7 +34404,6 @@ const discoverProjectWithoutPackageJson = (directory) => {
34422
34404
  hasTypeScript: hasOwnTsConfig,
34423
34405
  hasReactCompiler: false,
34424
34406
  hasTanStackQuery: false,
34425
- hasSsrDependency: false,
34426
34407
  preactVersion: null,
34427
34408
  preactMajorVersion: null,
34428
34409
  hasReactNativeWorkspace: false,
@@ -34542,7 +34523,6 @@ const discoverProject = (directory) => {
34542
34523
  hasTypeScript,
34543
34524
  hasReactCompiler: detectReactCompiler(directory, packageJson),
34544
34525
  hasTanStackQuery: hasTanStackQuery(packageJson),
34545
- hasSsrDependency: workspaceFacts.hasSsrDependency,
34546
34526
  preactVersion,
34547
34527
  preactMajorVersion: parseReactMajor(preactVersion),
34548
34528
  hasReactNativeWorkspace,
@@ -37287,12 +37267,6 @@ const CLIENT_ONLY_FRAMEWORKS = new Set([
37287
37267
  "react-native",
37288
37268
  "expo"
37289
37269
  ]);
37290
- const SSR_FRAMEWORKS = new Set([
37291
- "nextjs",
37292
- "remix",
37293
- "gatsby",
37294
- "tanstack-start"
37295
- ]);
37296
37270
  const addMajorLadder = (capabilities, name, major, earliest, latest) => {
37297
37271
  if (major === null) return;
37298
37272
  const cappedMajor = Math.min(major, latest);
@@ -37305,7 +37279,6 @@ const buildCapabilities = (project) => {
37305
37279
  if (project.framework === "expo" || project.framework === "react-native" || project.hasReactNativeWorkspace) capabilities.add("react-native");
37306
37280
  if (project.expoVersion !== null) capabilities.add("expo");
37307
37281
  if ((project.framework === "nextjs" || project.framework === "tanstack-start" || project.framework === "remix") && !project.isStaticExport) capabilities.add("server-actions");
37308
- if (SSR_FRAMEWORKS.has(project.framework) || project.hasSsrDependency) capabilities.add("ssr");
37309
37282
  if (CLIENT_ONLY_FRAMEWORKS.has(project.framework)) capabilities.add("client-only");
37310
37283
  if (project.isStaticExport) capabilities.add("nextjs:static-export");
37311
37284
  if (project.nextjsMajorVersion !== null && project.nextjsMajorVersion >= 15) capabilities.add("nextjs:15");
@@ -44816,5 +44789,5 @@ const startLanguageServer = () => {
44816
44789
  };
44817
44790
  //#endregion
44818
44791
  export { startLanguageServer };
44819
- !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]="c686dc30-13d8-539e-acb4-e8b997f967e6")}catch(e){}}();
44820
- //# debugId=c686dc30-13d8-539e-acb4-e8b997f967e6
44792
+ !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]="40aee606-c43b-5c71-8073-3be1f280e472")}catch(e){}}();
44793
+ //# debugId=40aee606-c43b-5c71-8073-3be1f280e472
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-doctor",
3
- "version": "0.7.4-dev.6821fe0",
3
+ "version": "0.7.4-dev.70b5d99",
4
4
  "description": "Your agent writes bad React. This catches it",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -65,8 +65,8 @@
65
65
  "vscode-languageserver-textdocument": "^1.0.12",
66
66
  "vscode-uri": "^3.1.0",
67
67
  "yaml": "^2.9.0",
68
- "oxlint-plugin-react-doctor": "0.7.4-dev.6821fe0",
69
- "deslop-js": "0.7.4"
68
+ "deslop-js": "0.7.4",
69
+ "oxlint-plugin-react-doctor": "0.7.4-dev.70b5d99"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/babel__code-frame": "^7.27.0",
@@ -74,8 +74,8 @@
74
74
  "@xterm/headless": "^6.0.0",
75
75
  "commander": "^14.0.3",
76
76
  "ora": "^9.4.0",
77
- "@react-doctor/api": "0.7.4",
78
77
  "@react-doctor/core": "0.7.4",
78
+ "@react-doctor/api": "0.7.4",
79
79
  "@react-doctor/language-server": "0.7.4"
80
80
  },
81
81
  "engines": {