next-arch-map 0.1.15 → 0.1.17

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
@@ -266,12 +266,10 @@ function logAnalyzeSummary(graph, outputFile, projectRoot) {
266
266
  const pageCount = graph.nodes.filter((node) => node.type === "page").length;
267
267
  const endpointCount = graph.nodes.filter((node) => node.type === "endpoint").length;
268
268
  const dbCount = graph.nodes.filter((node) => node.type === "db").length;
269
- const uiCount = graph.nodes.filter((node) => node.type === "ui").length;
270
269
  console.log([
271
270
  `pages=${pageCount}`,
272
271
  `endpoints=${endpointCount}`,
273
272
  `db=${dbCount}`,
274
- `ui=${uiCount}`,
275
273
  `edges=${graph.edges.length}`,
276
274
  `file=${path.relative(projectRoot, outputFile)}`,
277
275
  ].join(" "));
package/dist/index.d.ts CHANGED
@@ -7,7 +7,6 @@ export type AnalyzeProjectOptions = {
7
7
  httpClientIdentifiers?: string[];
8
8
  httpClientMethods?: string[];
9
9
  dbClientIdentifiers?: string[];
10
- uiImportPathGlobs?: string[];
11
10
  };
12
11
  export declare function analyzeProject(options: AnalyzeProjectOptions): Promise<Graph>;
13
12
  export { diffGraphs } from "./diff.js";
@@ -15,6 +14,5 @@ export type { DiffStatus, EdgeDiff, GraphDiff, NodeDiff } from "./diff.js";
15
14
  export type { Edge, EdgeKind, Graph, Node, NodeType } from "./model.js";
16
15
  export { analyzePagesToEndpoints } from "./analyzers/pagesToEndpoints.js";
17
16
  export { analyzeEndpointsToDb } from "./analyzers/endpointsToDb.js";
18
- export { analyzePagesToUi } from "./analyzers/pagesToUi.js";
19
17
  export { mergeGraphs, mergePartial } from "./merge.js";
20
18
  export { getDbModelsForPage, getEndpointsForPage, getPagesForDbModel } from "./query.js";
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { analyzeEndpointsToDb } from "./analyzers/endpointsToDb.js";
2
2
  import { analyzePagesToEndpoints } from "./analyzers/pagesToEndpoints.js";
3
- import { analyzePagesToUi } from "./analyzers/pagesToUi.js";
4
3
  import { mergePartial } from "./merge.js";
5
4
  export async function analyzeProject(options) {
6
5
  const pagesToEndpoints = await analyzePagesToEndpoints({
@@ -15,16 +14,10 @@ export async function analyzeProject(options) {
15
14
  apiDirs: options.apiDirs,
16
15
  dbClientIdentifiers: options.dbClientIdentifiers,
17
16
  });
18
- const pagesToUi = await analyzePagesToUi({
19
- projectRoot: options.projectRoot,
20
- appDirs: options.appDirs,
21
- uiImportPathGlobs: options.uiImportPathGlobs,
22
- });
23
- return mergePartial(mergePartial(pagesToEndpoints, endpointsToDb), pagesToUi);
17
+ return mergePartial(pagesToEndpoints, endpointsToDb);
24
18
  }
25
19
  export { diffGraphs } from "./diff.js";
26
20
  export { analyzePagesToEndpoints } from "./analyzers/pagesToEndpoints.js";
27
21
  export { analyzeEndpointsToDb } from "./analyzers/endpointsToDb.js";
28
- export { analyzePagesToUi } from "./analyzers/pagesToUi.js";
29
22
  export { mergeGraphs, mergePartial } from "./merge.js";
30
23
  export { getDbModelsForPage, getEndpointsForPage, getPagesForDbModel } from "./query.js";
package/dist/model.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export type NodeType = "page" | "endpoint" | "db" | "ui" | "handler" | "action";
1
+ export type NodeType = "page" | "endpoint" | "db" | "handler" | "action";
2
2
  export type Node = {
3
3
  id: string;
4
4
  type: NodeType;
5
5
  label: string;
6
6
  meta?: Record<string, any>;
7
7
  };
8
- export type EdgeKind = "page-endpoint" | "endpoint-db" | "page-ui" | "endpoint-handler" | "page-action" | "action-endpoint";
8
+ export type EdgeKind = "page-endpoint" | "endpoint-db" | "endpoint-handler" | "page-action" | "action-endpoint";
9
9
  export type Edge = {
10
10
  from: string;
11
11
  to: string;
package/dist/serve.js CHANGED
@@ -29,7 +29,6 @@ export async function serve(options) {
29
29
  const handlerCount = currentGraph.nodes.filter((node) => node.type === "handler").length;
30
30
  const actionCount = currentGraph.nodes.filter((node) => node.type === "action").length;
31
31
  const dbCount = currentGraph.nodes.filter((node) => node.type === "db").length;
32
- const uiCount = currentGraph.nodes.filter((node) => node.type === "ui").length;
33
32
  console.log([
34
33
  "mode=serve",
35
34
  `pages=${pageCount}`,
@@ -37,7 +36,6 @@ export async function serve(options) {
37
36
  `endpoints=${endpointCount}`,
38
37
  `handlers=${handlerCount}`,
39
38
  `db=${dbCount}`,
40
- `ui=${uiCount}`,
41
39
  `nodes=${currentGraph.nodes.length}`,
42
40
  `edges=${currentGraph.edges.length}`,
43
41
  ].join(" "));
package/dist/utils.d.ts CHANGED
@@ -71,12 +71,3 @@ export declare function buildDbNode(modelName: string, filePath: string): {
71
71
  model: string;
72
72
  };
73
73
  };
74
- export declare function buildUiNode(componentName: string, filePath: string): {
75
- id: string;
76
- type: "ui";
77
- label: string;
78
- meta: {
79
- filePath: string;
80
- component: string;
81
- };
82
- };
package/dist/utils.js CHANGED
@@ -292,14 +292,3 @@ export function buildDbNode(modelName, filePath) {
292
292
  },
293
293
  };
294
294
  }
295
- export function buildUiNode(componentName, filePath) {
296
- return {
297
- id: `ui:${componentName}`,
298
- type: "ui",
299
- label: componentName,
300
- meta: {
301
- filePath,
302
- component: componentName,
303
- },
304
- };
305
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-arch-map",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Static analyzer that builds a multi-layer architecture graph for Next.js-style apps.",
5
5
  "type": "module",
6
6
  "bin": {