Files
Mana-Loop/docs/circular-deps.txt
T
n8n-gitea 85637e353a
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m20s
fix: add missing elements migration and harden unlockElement action
- Add missing elements to mana store migration: when loading an old save
  that doesn't have all elements from ELEMENTS (e.g. saves from before
  composite/exotic elements were added), the migration now creates the
  missing elements with proper default state
- Harden unlockElement action to handle the case where an element doesn't
  exist in the store (creates a valid element state instead of corrupting
  with { unlocked: true } missing current/max/baseMax)
- Add regression tests (14 tests) for Earth element unlock and migration
  scenarios including old saves with missing elements

Fixes #338, #339
2026-06-10 10:00:03 +02:00

12 lines
585 B
Plaintext

# Circular Dependencies
Generated: 2026-06-10T07:56:31.400Z
Found: 2 circular chain(s) — these MUST be fixed before modifying involved files.
1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
2. 2) stores/combatStore.ts > stores/combat-descent-actions.ts > stores/attunementStore.ts
## How to fix
1. Identify which import in the chain can be extracted to a shared types/utils file.
2. Move the shared type or function there.
3. Both files import from the new shared module instead of each other.
4. Run: bunx madge --circular src/lib/game (should return clean)