no-mistakes 0.45.0 → 0.46.0

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.
@@ -1,12 +1,42 @@
1
- import type { FlowOptions } from "./flow-types";
1
+ import type {
2
+ CiEnvOptions,
3
+ CiImpactOptions,
4
+ CiTopologyOptions,
5
+ ImpactedChecksOptions,
6
+ } from "./ci-types";
7
+ import type { FetchesOptions, FlowOptions } from "./flow-types";
2
8
  import type { ImportUsagesOptions } from "./import-usage-types";
9
+ import type { MermaidValidationOptions } from "./mermaid-types";
3
10
  import type {
11
+ DataPwOptions,
4
12
  EffectsOptions,
5
13
  EffectsReport,
14
+ RegistryExtensionOptions,
6
15
  RscCallersOptions,
7
16
  RscCallersReport,
8
17
  } from "./named-query-types";
9
- import type { PlaywrightOptions, PlaywrightRelatedOptions } from "./report-types";
18
+ import type {
19
+ CallSitesOptions,
20
+ DeadExportsOptions,
21
+ ExportsOfOptions,
22
+ ImportersOptions,
23
+ ResolveCheckFilesOptions,
24
+ ResolveCheckOptions,
25
+ } from "./query-types";
26
+ import type {
27
+ InfraOptions,
28
+ PlaywrightOptions,
29
+ PlaywrightRelatedOptions,
30
+ SwiftOptions,
31
+ } from "./report-types";
32
+ import type {
33
+ LockfileDiffOptions,
34
+ TestsImpactOptions,
35
+ TestsPlanDocumentOptions,
36
+ TestsPlanOptions,
37
+ TestsTargetsOptions,
38
+ TestsWhyOptions,
39
+ } from "./test-types";
10
40
  import type {
11
41
  CheckOptions,
12
42
  ProjectOptions,
@@ -27,6 +57,9 @@ type BatchedReactUsagesOptions = Pick<
27
57
  > &
28
58
  Required<Pick<ProjectOptions, "target">>;
29
59
  type BatchedCheckOptions = Pick<CheckOptions, "root" | "tsconfig" | "config" | "includeSuppressed">;
60
+ type BatchedQueryFileOptions<T> = Omit<T, "root" | "tsconfig">;
61
+ type BatchedRootConfigOptions<T> = Omit<T, "root" | "config">;
62
+ type BatchedRootTsConfigOptions<T> = Omit<T, "root" | "tsconfig" | "config">;
30
63
 
31
64
  export type AnalyzeProjectReportRequest =
32
65
  | ({ type: "dependencies" | "dependents" | "related"; id?: string } & BatchedTraverseOptions)
@@ -53,7 +86,40 @@ export type AnalyzeProjectReportRequest =
53
86
  id?: string;
54
87
  } & Omit<PlaywrightOptions, "root" | "config">)
55
88
  | ({ type: "playwrightRelated"; id?: string } & Omit<PlaywrightRelatedOptions, "root" | "config">)
56
- | ({ type: "check"; id?: string } & BatchedCheckOptions);
89
+ | ({ type: "check"; id?: string } & BatchedCheckOptions)
90
+ | ({ type: "importers"; id?: string } & BatchedQueryFileOptions<ImportersOptions>)
91
+ | ({ type: "exportsOf"; id?: string } & BatchedQueryFileOptions<ExportsOfOptions>)
92
+ | ({ type: "deadExports"; id?: string } & BatchedQueryFileOptions<DeadExportsOptions>)
93
+ | ({ type: "callSites"; id?: string } & BatchedQueryFileOptions<CallSitesOptions>)
94
+ | ({
95
+ type: "resolveCheck";
96
+ id?: string;
97
+ } & BatchedQueryFileOptions<ResolveCheckOptions | ResolveCheckFilesOptions>)
98
+ | ({ type: "fetches"; id?: string } & BatchedRootConfigOptions<FetchesOptions>)
99
+ | ({ type: "dataPw"; id?: string } & BatchedRootConfigOptions<DataPwOptions>)
100
+ | ({ type: "registryExtension"; id?: string } & Omit<RegistryExtensionOptions, "root">)
101
+ | ({ type: "testsPlan"; id?: string } & BatchedRootTsConfigOptions<TestsPlanOptions>)
102
+ | ({ type: "testsImpact"; id?: string } & BatchedRootTsConfigOptions<TestsImpactOptions>)
103
+ | ({ type: "testsTargets"; id?: string } & Omit<TestsTargetsOptions, "root" | "config">)
104
+ | ({ type: "testsWhy"; id?: string } & BatchedRootTsConfigOptions<TestsWhyOptions>)
105
+ | ({
106
+ type: "testsComment" | "testsGraph" | "testsGraphMermaid";
107
+ id?: string;
108
+ } & TestsPlanDocumentOptions)
109
+ | ({ type: "lockfileDiff"; id?: string } & Omit<LockfileDiffOptions, "root">)
110
+ | ({ type: "ciImpact"; id?: string } & BatchedRootConfigOptions<CiImpactOptions>)
111
+ | ({ type: "ciEnv"; id?: string } & BatchedRootConfigOptions<CiEnvOptions>)
112
+ | ({ type: "ciTopology"; id?: string } & BatchedRootConfigOptions<CiTopologyOptions>)
113
+ | ({ type: "impactedChecks"; id?: string } & BatchedRootTsConfigOptions<ImpactedChecksOptions>)
114
+ | ({
115
+ type: "infraResourceRefs" | "infraOutputs" | "infraTestFor";
116
+ id?: string;
117
+ } & BatchedRootConfigOptions<InfraOptions>)
118
+ | ({
119
+ type: "swiftImporters" | "swiftTestTargets";
120
+ id?: string;
121
+ } & BatchedRootConfigOptions<SwiftOptions>)
122
+ | ({ type: "validateMermaidMarkdown"; id?: string } & MermaidValidationOptions);
57
123
 
58
124
  export interface AnalyzeProjectOptions {
59
125
  /** Project root. Defaults to the current working directory. */
package/ci-types.d.ts CHANGED
@@ -31,7 +31,12 @@ export interface ImpactedChecksOptions {
31
31
  head?: string;
32
32
  changedFiles?: string[];
33
33
  changedFilesFile?: string;
34
+ /** Unified diff file path. Conflicts with `diffStdin` and `diffCommand`. */
34
35
  diff?: string;
36
+ /** Read a unified diff from stdin. Conflicts with `diff` and `diffCommand`. */
37
+ diffStdin?: boolean;
38
+ /** Shell command whose stdout is a unified diff. Conflicts with `diff` and `diffStdin`. */
39
+ diffCommand?: string;
35
40
  /** Return configured generic commands only; skip test-framework discovery and selection. */
36
41
  genericOnly?: boolean;
37
42
  /** Include ordered analysis phase timings in the returned report. */
@@ -6,6 +6,11 @@ export interface InvocationOptions {
6
6
  lockTimeout?: number | null;
7
7
  /** Fail immediately instead of waiting when another invocation holds the lock. */
8
8
  failOnLock?: boolean;
9
+ /**
10
+ * Rayon worker count. Omit to leave the process pool unchanged.
11
+ * `0` uses the CPU count, matching CLI `--jobs 0`.
12
+ */
13
+ jobs?: number | null;
9
14
  }
10
15
 
11
16
  export type WithInvocationOptions<T> = T & InvocationOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "no-mistakes",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "Static codebase analysis tools for TS/JS dependencies, dependents, and symbols",
5
5
  "license": "MIT",
6
6
  "repository": {