Skip to content

fix(hud): version badge cache ignores post-install version changes#159

Merged
dean0x merged 1 commit intomainfrom
fix/version-badge-cache
Mar 22, 2026
Merged

fix(hud): version badge cache ignores post-install version changes#159
dean0x merged 1 commit intomainfrom
fix/version-badge-cache

Conversation

@dean0x
Copy link
Owner

@dean0x dean0x commented Mar 22, 2026

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

  • npm run build passes
  • 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

Cache now stores only npm `latest` version. Installed version is always
read live from manifest.json, so upgrading between cache refreshes no
longer shows a stale upgrade notice.
@dean0x dean0x merged commit 66a15a7 into main Mar 22, 2026
3 of 4 checks passed
@dean0x dean0x deleted the fix/version-badge-cache branch March 22, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant