react-doctor 0.8.1-dev.fc1b3a3 → 0.8.1

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/index.d.ts CHANGED
@@ -9030,12 +9030,11 @@ interface Diagnostic {
9030
9030
  * Set when the finding's identity is the flagged element itself (a missing
9031
9031
  * attribute, a wrong element) rather than the flagged line's text — every
9032
9032
  * Accessibility-category finding, plus rules that opt in via their
9033
- * `matchByOccurrence` metadata flag. After strict evidence matching,
9034
- * `computeDiagnosticDelta` may match these by same-file `(plugin/rule,
9035
- * message)` occurrence count, so reformatting the flagged element doesn't
9036
- * reclassify a pre-existing finding as new. Resolved at diagnostic creation,
9037
- * where rule metadata is available. Absent means diagnosed-source-sensitive
9038
- * matching (the default).
9033
+ * `matchByOccurrence` metadata flag. `computeDiagnosticDelta` matches these
9034
+ * by `(filePath, plugin/rule)` occurrence count, so reformatting the flagged
9035
+ * line doesn't reclassify a pre-existing finding as new. Resolved at
9036
+ * diagnostic creation, where rule metadata is available. Absent means
9037
+ * line-text-sensitive matching (the default).
9039
9038
  */
9040
9039
  matchByOccurrence?: boolean;
9041
9040
  /**
@@ -9543,40 +9542,11 @@ interface ProjectInfo {
9543
9542
  zodVersion: string | null;
9544
9543
  /** Parsed major from `zodVersion`, or `null` when absent/unparseable. Mirrors `reactMajorVersion`. */
9545
9544
  zodMajorVersion: number | null;
9546
- /** Declared MobX core version spec. Optional so existing `ProjectInfo` consumers remain source-compatible. */
9547
- mobxVersion?: string | null;
9548
- /** Parsed major from `mobxVersion`, or `null` when absent/unparseable. */
9549
- mobxMajorVersion?: number | null;
9550
- hasMobxReact?: boolean;
9551
- mobxReactVersion?: string | null;
9552
- hasMobxReactLite?: boolean;
9553
- mobxReactLiteVersion?: string | null;
9554
- hasMobxStateTree?: boolean;
9555
- hasMobxReactObserver?: boolean;
9556
- /** Declared Zustand version spec. Optional so existing `ProjectInfo` consumers remain source-compatible. */
9557
- zustandVersion?: string | null;
9558
- /** Parsed major from `zustandVersion`, or `null` when absent/unparseable. */
9559
- zustandMajorVersion?: number | null;
9560
9545
  framework: Framework;
9561
9546
  hasTypeScript: boolean;
9562
9547
  hasReactCompiler: boolean;
9563
9548
  hasReactCompilerLintPlugin?: boolean;
9564
9549
  hasTanStackQuery: boolean;
9565
- hasRemotion?: boolean;
9566
- remotionVersion?: string | null;
9567
- remotionMajorVersion?: number | null;
9568
- hasI18nLibrary?: boolean;
9569
- tanstackQueryVersion?: string | null;
9570
- styledComponentsVersion?: string | null;
9571
- /**
9572
- * The declared `valtio` version spec, or `null` when no package in the
9573
- * analyzed project declares Valtio. `useSnapshot` has kept the same
9574
- * render-read contract across Valtio 1 and 2, so presence alone drives the
9575
- * `valtio` capability and its parsed major-version ladder.
9576
- */
9577
- valtioVersion: string | null;
9578
- /** Parsed major from `valtioVersion`, or `null` when absent/unparseable. */
9579
- valtioMajorVersion: number | null;
9580
9550
  /**
9581
9551
  * `true` when the project or a workspace declares a Vite-based SSR runtime
9582
9552
  * such as React Router's Node adapter, Vike, or vite-plugin-ssr.
@@ -9877,8 +9847,7 @@ interface InspectResult {
9877
9847
  baselineDelta?: {
9878
9848
  /** The commit the base content was read from (resolved merge-base). */baseRef: string; /** Findings present at base but gone at head — resolved by the change. */
9879
9849
  fixedCount: number; /** Total findings at base (over the same files), for context. */
9880
- baseTotalCount: number; /** Pre-existing findings matched after moving to a different file. */
9881
- crossFileMatchCount?: number;
9850
+ baseTotalCount: number;
9882
9851
  };
9883
9852
  }
9884
9853
  /**
@@ -10294,7 +10263,15 @@ declare const buildJsonReport: (input: BuildJsonReportInput) => JsonReportV3$1;
10294
10263
  * `GitBaseBranchMissing`) as clean user errors instead of crashes.
10295
10264
  */
10296
10265
  declare const getDiffInfo: (directory: string, explicitBaseBranch?: string, includeUntracked?: boolean) => Promise<DiffInfo | null>;
10297
- declare const filterSourceFiles: (filePaths: ReadonlyArray<string>) => string[];
10266
+ declare const filterSourceFiles: (filePaths: string[]) => string[];
10267
+ /**
10268
+ * Programmatic façade over `Git.changedLineRanges` (the `lines` scope). Diffs
10269
+ * `files` with `--unified=0` against `baseRef` (or the index when `cached`),
10270
+ * returning per-file changed line ranges relative to `directory`. Returns
10271
+ * `null` when the ranges can't be computed (git unavailable / unsafe ref /
10272
+ * non-zero exit) so the caller degrades to file-level scope; an empty array
10273
+ * means git succeeded but the files added no lines.
10274
+ */
10298
10275
  //#endregion
10299
10276
  //#region src/summarize-diagnostics.d.ts
10300
10277
  declare const summarizeDiagnostics: (diagnostics: Diagnostic[], worstScore?: number | null, worstScoreLabel?: string | null) => JsonReportSummary; //#endregion