• v5.3.1 c1d4de4105

    dpsifr released this 2025-11-04 22:07:53 +01:00 | 615 commits to main since this release

    🐛 Critical Bug Fixes

    This patch release resolves three critical bugs that broke COW versioning and entity versioning features in v5.3.0.

    Fixed

    1. COW Ref Resolution Bug (lines 2354, 2856, 2895 in ):

      • getHistory(), commit(), deleteBranch() were prepending 'heads/' to branch names
      • This caused RefManager to resolve 'heads/main' to 'refs/heads/heads/main'
      • Actual ref file at 'refs/heads/main' could not be found
      • Result: "Ref not found: heads/main" error breaking all COW operations
      • Impact: COW versioning was completely non-functional for all users
    2. VersionManager commitHash Bug (lines 212, 222 in ):

      • save() was assigning entire Ref object to commitHash instead of ref.commitHash
      • Expected string, got object causing type mismatches in version metadata
    3. Test Infrastructure: Fixed test mocks to properly handle metadata queries and version entities

    Test Results

    • Before: 16 test failures
    • After: All VersionManager tests passing (24/24 )
    • Total: 1183/1208 tests passing (98%)

    Upgrade

    npm update @soulcraft/brainy
    

    Workshop Team: This fixes the "Ref not found: heads/main" error you reported! 🎉

    Downloads