Files
worldmonitor/src-tauri
Fayez Bast 8c6177b927 fix(cache): dedupe cache key handling and harden cache lifecycle safety (#1570)
* fix(cache): dedupe cache key handling and harden cache lifecycle safety

* fix(cache): address review findings in circuit-breaker hardening PR

- src/utils/index.ts: remove duplicate re-export of storage-quota symbols;
  single import at bottom of file now serves both local use (saveToStorage)
  and re-export to consumers
- src/services/market/index.ts: document first-wins semantics on
  uppercaseMetaMap so the intent is clear to future readers
- src/services/persistent-cache.ts: replace double-negation regex predicate
  with explicit suffix.length === 0 form for readability
- src-tauri/src/main.rs: replace !any(ch != ':') with is_empty() ||
  all(ch == ':') — same logic, no double negation
- tests/tech-readiness-circuit-breakers.test.mjs: note that the typescript
  import is the devDep already required by tsc

---------

Co-authored-by: Elie Habib <elie.habib@gmail.com>
2026-03-19 11:08:04 +04:00
..