@hienlh/ppm 0.9.90 → 0.9.91

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.91] - 2026-04-15
4
+
5
+ ### Fixed
6
+ - **Git Graph broken after stash visualization**: Stash virtual commits were inserted after parent in array but graph algorithm scans forward — graph silently broke when stashes existed. Fixed insertion order (stash before parent, same pattern as uncommitted).
7
+
3
8
  ## [0.9.90] - 2026-04-15
4
9
 
5
10
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hienlh/ppm",
3
- "version": "0.9.90",
3
+ "version": "0.9.91",
4
4
  "description": "Personal Project Manager — mobile-first web IDE with AI assistance",
5
5
  "author": "hienlh",
6
6
  "license": "MIT",
@@ -1402,7 +1402,8 @@ function getDisplayCommits() {
1402
1402
  if (Object.keys(parentIndexes).length > 0) {
1403
1403
  const result = [];
1404
1404
  for (const c of commits) {
1405
- result.push(c);
1405
+ // Stash virtual commits must come BEFORE their parent in the array
1406
+ // (graph algorithm scans forward to find parents — same pattern as uncommitted)
1406
1407
  const stashesForCommit = parentIndexes[c.hash];
1407
1408
  if (stashesForCommit) {
1408
1409
  for (const s of stashesForCommit) {
@@ -1417,6 +1418,7 @@ function getDisplayCommits() {
1417
1418
  });
1418
1419
  }
1419
1420
  }
1421
+ result.push(c);
1420
1422
  }
1421
1423
  commits = result;
1422
1424
  }