• v6.0.1 f5f998619a

    v6.0.1 Stable

    dpsifr released this 2025-11-20 17:42:35 +01:00 | 525 commits to main since this release

    🐛 Critical Hotfix - v6.0.1

    Fixes infinite loop during storage initialization on fresh workspaces

    This release fixes a critical production blocker where FileSystemStorage (and all storage adapters) entered an infinite loop on fresh installation.

    Root Cause

    In v6.0.0, BaseStorage.init() set isInitialized = true at the END of initialization. If any code path during initialization called ensureInitialized(), it would trigger init() recursively because the flag was still false.

    Fix

    Set isInitialized = true at the START of BaseStorage.init() (before any initialization work) to prevent recursive calls. Flag is reset to false on error to allow retries.

    Impact

    • Fixes production blocker reported by Workshop team
    • All 8 storage adapters fixed (FileSystem, Memory, S3, R2, GCS, Azure, OPFS, Historical)
    • Init completes in ~1 second on fresh installation (was hanging indefinitely)
    • No new test failures introduced (1178 tests passing)

    Migration

    No code changes required - drop-in replacement for v6.0.0.

    See CHANGELOG.md for full details.

    Full Changelog: https://github.com/soulcraftlabs/brainy/compare/v6.0.0...v6.0.1

    Downloads