ruvector/crates
rUv 44ca725139 fix: Resolve database locking and package loading issues
This commit addresses two critical bugs identified in the comprehensive review:

1. Database Locking Bug (Rust):
   - Problem: Multiple VectorDB instances couldn't share the same database file
   - Root cause: redb::Database uses exclusive file locking
   - Solution: Implemented global connection pool in storage.rs using
     Lazy<Mutex<HashMap<PathBuf, Arc<Database>>>>
   - Multiple VectorDB instances now share Arc<Database> for same path
   - Location: crates/ruvector-core/src/storage.rs

2. Package Name Mismatch (NPM):
   - Problem: ruvector-core was using non-existent scoped package names
   - Fixed platformMap to use correct unscoped names:
     * @ruvector/core-linux-x64 → ruvector-core-linux-x64-gnu
     * @ruvector/core-linux-arm64 → ruvector-core-linux-arm64-gnu
     * @ruvector/core-darwin-x64 → ruvector-core-darwin-x64
     * @ruvector/core-darwin-arm64 → ruvector-core-darwin-arm64
     * @ruvector/core-win32-x64 → ruvector-core-win32-x64-msvc
   - Updated error messages to reference correct package names
   - Location: npm/packages/core/index.js

Version Updates:
- ruvector-core: 0.1.1 → 0.1.2
- ruvector: 0.1.5 → 0.1.6

Published Packages:
- ruvector-core@0.1.2 (npm)
- ruvector@0.1.6 (npm)

Breaking Changes: None
Backwards Compatible: Yes

Test Coverage:
- Added test_multiple_instances_same_path() to verify connection pooling
- Library builds successfully with storage feature enabled
- CLI commands now work correctly with updated package resolution

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 21:00:23 +00:00
..
profiling Reorganize repository structure 2025-11-19 20:53:37 +00:00
ruvector-bench feat: Phase 3 - WASM architecture with in-memory storage 2025-11-21 13:40:34 +00:00
ruvector-cli feat: Phase 3 - WASM architecture with in-memory storage 2025-11-21 13:40:34 +00:00
ruvector-core fix: Resolve database locking and package loading issues 2025-11-21 21:00:23 +00:00
ruvector-node feat: Phase 3 - WASM architecture with in-memory storage 2025-11-21 13:40:34 +00:00
ruvector-router-cli chore: Rename router-* crates to ruvector-router-* and publish all 2025-11-21 15:13:26 +00:00
ruvector-router-core chore: Rename router-* crates to ruvector-router-* and publish all 2025-11-21 15:13:26 +00:00
ruvector-router-ffi chore: Rename router-* crates to ruvector-router-* and publish all 2025-11-21 15:13:26 +00:00
ruvector-router-wasm chore: Rename router-* crates to ruvector-router-* and publish all 2025-11-21 15:13:26 +00:00
ruvector-wasm feat: Phase 3 - WASM architecture with in-memory storage 2025-11-21 13:40:34 +00:00