• v3.37.2 9fe790e0a7

    v3.37.2 Stable

    dpsifr released this 2025-10-11 02:28:49 +02:00 | 828 commits to main since this release

    Downloads
  • v3.37.1 bde27e68ab

    v3.37.1 Stable

    dpsifr released this 2025-10-11 01:54:27 +02:00 | 830 commits to main since this release

    Downloads
  • v3.37.0 30063d440a

    dpsifr released this 2025-10-11 01:26:45 +02:00 | 832 commits to main since this release

    Downloads
  • v3.36.1 ae1077b0fe

    v3.36.1 Stable

    dpsifr released this 2025-10-10 23:50:24 +02:00 | 834 commits to main since this release

    🐛 Critical GCS Storage Fixes

    This patch release fixes three critical bugs in the GCS storage adapter that prevented production use:

    Bugs Fixed

    1. Missing metadata in getNode() - Entities were returned without metadata fields, causing brain.get() to return null
    2. Index rebuild failure - HNSW index rebuilding failed after container restarts due to missing metadata
    3. Invalid GCS API parameters - Passing Number.MAX_SAFE_INTEGER to GCS maxResults parameter caused API errors

    Changes

    • Add metadata field to getNode() return value
    • Add MAX_GCS_PAGE_SIZE constant (5000) for GCS API compliance
    • Cap maxResults in pagination methods to prevent API errors
    • Update storage type from 'gcs-native' to 'gcs' for consistency

    GCS storage is now production-ready and fully compatible with filesystem storage behavior.

    Thanks

    Special thanks to the Soulcraft Studio team for detailed bug reports that made these fixes possible! 🙏

    Full Changelog: https://github.com/soulcraftlabs/brainy/compare/v3.36.0...v3.36.1

    Downloads
  • v3.36.0 8ba8336fca

    dpsifr released this 2025-10-10 23:28:48 +02:00 | 836 commits to main since this release

    Downloads
  • v3.35.0 6037db3d85

    v3.35.0 Stable

    dpsifr released this 2025-10-10 20:15:37 +02:00 | 841 commits to main since this release

    Downloads
  • v3.34.0 51e468bc15

    dpsifr released this 2025-10-10 03:33:37 +02:00 | 844 commits to main since this release

    Downloads
  • v3.32.2 27764b8b9f

    dpsifr released this 2025-10-10 02:15:09 +02:00 | 849 commits to main since this release

    Critical Bug Fix: Container Restart Persistence

    This release fixes two critical production bugs affecting serverless/containerized deployments (Cloud Run, Fargate, Lambda).

    Bugs Fixed

    1. brain.find({ where: {...} }) returns empty array after restart
    2. brain.init() returns 0 entities after container restart

    Root Cause

    Count persistence was optimized to save only every 10 operations. If <10 entities were added before container restart, counts were never persisted to storage. After restart: totalNounCount = 0, causing empty query results.

    Impact

    The basic write→restart→read scenario now works correctly for all storage adapters.

    Test Scenario (Now Fixed)

    // Service A: Add 2 entities
    await brain.add({ data: 'Entity 1' })
    await brain.add({ data: 'Entity 2' })
    
    // Container restarts (Cloud Run, Fargate, etc.)
    
    // Service B: Query data
    const stats = await brain.getStats()
    console.log(stats.entities.total) // Was: 0 ❌ | Now: 2 ✅
    
    const results = await brain.find({ where: { status: 'active' }})
    console.log(results.length) // Was: 0 ❌ | Now: 2 ✅
    

    Changes

    • baseStorageAdapter.ts: Persist counts on EVERY operation
    • gcsStorage.ts: Better error handling for count initialization

    Full Changelog: https://github.com/soulcraftlabs/brainy/compare/v3.32.1...v3.32.2

    Downloads
  • v3.32.1 2ec7536333

    v3.32.1 Stable

    dpsifr released this 2025-10-10 02:00:16 +02:00 | 851 commits to main since this release

    Downloads
  • v3.32.0 d88c10fdb6

    v3.32.0 Stable

    dpsifr released this 2025-10-10 00:10:02 +02:00 | 854 commits to main since this release

    Downloads