@syntax-syllogism/flow-delta 0.5.1 → 0.6.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.
package/README.md CHANGED
@@ -14,6 +14,11 @@ Inspired by Google's [Flow Lens](https://github.com/google/flow-lens), with a
14
14
  focus on CI review workflows for GitLab merge requests and GitHub pull requests.
15
15
  We also opted for our own HTML output over plantuml, graphviz, or mermaid.
16
16
 
17
+ The package also ships [FlexiPageDelta](docs/flexipage.md), a sibling tool for
18
+ semantic diffs of `.flexipage-meta.xml` metadata. It renders an offline
19
+ hierarchical outline and provides `flexipage-delta`,
20
+ `flexipage-delta-gitlab`, and `flexipage-delta-github` binaries.
21
+
17
22
  - [Sample GitLab project with artifacts](https://gitlab.com/j.p.richter/flow-delta-example/-/merge_requests/)
18
23
  - [Sample GitHub project with artifacts](https://github.com/Syntax-Syllogism/flow-delta-example/pulls)
19
24
 
@@ -39,6 +44,13 @@ flow-delta --old before.flow-meta.xml --new after.flow-meta.xml --out ./flow-del
39
44
 
40
45
  See [docs/cli.md](docs/cli.md) for full file-mode and git-mode options.
41
46
 
47
+ For FlexiPage metadata, use the sibling CLI documented in
48
+ [docs/flexipage.md](docs/flexipage.md):
49
+
50
+ ```bash
51
+ npx flexipage-delta --old before.flexipage-meta.xml --new after.flexipage-meta.xml --out ./flexipage-delta-out --json
52
+ ```
53
+
42
54
  ```bash
43
55
  # File mode — compare two local files
44
56
  npx @syntax-syllogism/flow-delta --old before.flow-meta.xml --new after.flow-meta.xml --out ./flow-delta-out --json
@@ -70,7 +82,9 @@ build step:
70
82
  ```bash
71
83
  npm install
72
84
  npm test # parser + semantic diff / render / CLI suites
73
- npm run render:fixtures # render every diff fixture to flow-delta-out/fixtures/
85
+ npm run render:fixtures # render all Flow + FlexiPage fixtures
86
+ npm run render:fixtures -- flow # Flow only
87
+ npm run render:fixtures -- flexipage # FlexiPage only
74
88
  npx tsx src/cli.ts --old before.flow-meta.xml --new after.flow-meta.xml --out ./flow-delta-out --json
75
89
  ```
76
90
 
package/dist/cli.js CHANGED
@@ -560,7 +560,8 @@ function collectNodes(parsed) {
560
560
  continue;
561
561
  }
562
562
  for (const node of nodes) {
563
- result.push(toNode(node, type));
563
+ const graphNode = toNode(node, type);
564
+ if (graphNode) result.push(graphNode);
564
565
  }
565
566
  }
566
567
  return result;
@@ -835,7 +836,7 @@ async function layoutDiff(diff) {
835
836
  }
836
837
  };
837
838
  }
838
- var elk = new ELK();
839
+ var elk = new ELK.default();
839
840
  async function layoutView(diff, nodeVisible, edgeVisible) {
840
841
  const nodes = diff.nodes.filter(nodeVisible);
841
842
  const nodeIds = new Set(nodes.map((node) => node.id));
@@ -848,8 +849,8 @@ async function layoutView(diff, nodeVisible, edgeVisible) {
848
849
  layoutOptions: {
849
850
  "elk.algorithm": "layered",
850
851
  "elk.direction": "DOWN",
851
- "elk.layered.spacing.nodeNodeBetweenLayers": 60,
852
- "elk.spacing.nodeNode": 40
852
+ "elk.layered.spacing.nodeNodeBetweenLayers": "60",
853
+ "elk.spacing.nodeNode": "40"
853
854
  },
854
855
  children: nodes.map((node) => ({
855
856
  id: node.id,
@@ -1558,8 +1559,10 @@ function snapshotPanelClientScript() {
1558
1559
  return "const LONG_TEXT_THRESHOLD = " + LONG_TEXT_THRESHOLD + ";\nconst COLLECTION_KEYS = new Set(" + JSON.stringify(COLLECTION_KEY_NAMES) + ");\n\n" + functions;
1559
1560
  }
1560
1561
 
1561
- // src/render/render-html.ts
1562
+ // src/render/shell.ts
1562
1563
  var THEME_STORAGE_KEY = "flow-delta-theme";
1564
+
1565
+ // src/render/render-html.ts
1563
1566
  function renderHtml(layout) {
1564
1567
  const data = {
1565
1568
  diff: layout.diff,