• v6.2.4 ea53c11fea

    dpsifr released this 2025-12-02 20:22:17 +01:00 | 511 commits to main since this release

    Bug Fix

    Critical fix for asOf() time-travel queries

    Problem

    brain.asOf(commitId) was failing with:

    Historical storage requires underlying storage to have COW enabled.
    Call brain.init() first to initialize COW.
    

    This occurred even when COW was properly initialized.

    Root Cause

    Property name mismatch in HistoricalStorageAdapter:

    • Was looking for: _commitLog, _blobStorage, _treeObject (with underscores)
    • Actually set as: commitLog, blobStorage (no underscores, no treeObject)

    Fix

    • Corrected property access to use commitLog and blobStorage
    • Removed unused treeObject property (TreeObject is dynamically imported)
    • Removed unused static import

    Affected Features

    • brain.asOf(commitId) - Time-travel queries Fixed
    • brain.fork() - Already working correctly
    • brain.commit() - Already working correctly
    • brain.getHistory() - Already working correctly

    Upgrade

    npm install @soulcraft/brainy@6.2.4
    

    Reported by: Soulcraft Workshop Team

    🤖 Generated with Claude Code

    Downloads