Commit 66a15a7
fix(hud): version badge cache ignores post-install version changes (#159)
## Summary
- Version badge cached both `current` and `latest` versions with 24h TTL
- After upgrading DevFlow, the stale cached `current` caused the upgrade
notice to persist
- Fix: cache only stores `latest` (npm registry result); installed
version is always read live from `manifest.json`
## Test plan
- [x] `npm run build` passes
- [x] `npm test` — all 362 tests pass
- [ ] Manual: write stale cache with `current: 1.8.1, latest: 1.8.2`
while manifest says `1.8.2` → badge should NOT appear
Co-authored-by: Dean Sharon <deanshrn@gmain.com>1 parent ffa6200 commit 66a15a7
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | | - | |
| 87 | + | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
0 commit comments