v6.0.0
MAJOR 2026-03-01Added — Enterprise Engine
- MVCC Concurrency — Multi-Version Concurrency Control. Readers never block writers. Write-write conflicts surface as
ConflictErrorinstead of deadlocking. - DashMap Auto-Scaling — Replaced fixed stripe
Vec<Mutex<()>>with lock-freeDashMapthat auto-scales with CPU cores. Configurable viastripeCount. - mmap O(1) Startup — Memory-mapped file loading via
memmap2. Near-instant open regardless of database size. Tunable viabufferPoolSizeMBandbufferPageSizeKB. .explain()API — Query introspection returningscanType,filtersApplied,sortApplied,matchedCount,executionTimeMs, and more.- WAL Replication — Stream WAL entries to replicas with CRC32 integrity verification. Async and sync acknowledgment modes.
- Point-in-Time Recovery (PITR) — Archive WAL files and restore data to any previous timestamp via
createSnapshot()/restoreSnapshot(). - Zero-Copy N-API Streams — Chunked result streaming prevents V8 GC spikes with large result sets.
- Pluggable Storage Adapters —
adapters.ts:StorageAdapterinterface +FileSystemAdapter,MemoryAdapter,LocalStorageAdapter,IndexedDBAdapter,HttpAdapter. - WASM Fallback — Tier 3 loading: automatically falls back to
wasm-shim.jswhen no native binary is present and Rust is unavailable. 100% install success. - Lite Mode Build —
bun run build:lite: WASM-only distribution <2MB for Lambda / edge / browser. - Prebuilt Binaries — Binaries for Linux (x64/arm64 gnu+musl), macOS (x64/arm64/universal), Windows (x64/arm64). All live in
prebuilds/. - CI & npm Publish — New
ci.ymlworkflow: builds all platforms, runs tests, publishes to npm with provenance on release tags.
Changed
index.jsrewritten — all.nodebinaries resolved fromprebuilds/via aprebuild()helper.scripts/build-on-demand.js— output directory changed toprebuilds/(auto-created)..gitignore—prebuilds/*.nodetracked (negation), internal planning docs andlite/ignored.- Write throughput updated to ~545k ops/s (was ~260k in v4.x).
Rust Dependencies Added
memmap2 = "0.9",crc32fast = "1.3",dashmap = "6",lru = "0.12"
v5.5.2
PATCH 2025Fixed
- Minor type declaration alignment for
walStatus()return type. - Improved error messages for schema validation failures.
v5.5.0
MAJOR 2025Added
- Native Query Engine — Full query pipeline in Rust: filter → sort → skip → limit → select in a single N-API call. Up to 20× faster than JS fallback.
- Smart Memory Management — LRU-based cold storage eviction.
memoryLimit,coldStorageDir,evictionThresholdPct,evictionTargetPctoptions.offload(),restore(),memoryStats(),checkMemoryPressure()APIs. - Striped Write Locks — 64-stripe collection-level lock manager. Writes to different collections proceed concurrently. Deadlock-free batch locking via sorted stripe acquisition.
- Parallel aggregation and parallel join added to Rayon query layer.
Changed
- Write throughput nearly doubled (~545k vs ~260k ops/s) due to striped concurrency.
v5.1.0
MINOR 2025Added
- Schema Validation — JSON Schema-like field constraints:
type,enum,minimum,maximum,pattern,minLength,maxLength,minItems,maxItems,uniqueItems,required. slowQueryThresholdMsoption to automatically log slow queries.
v4.5.0
MAJOR 2025Added — Hybrid Architecture
- Configurable Durability Modes —
none,lazy,batched(Group Commit WAL),sync. - Process Locking — OS-level advisory file locking:
exclusive,shared,none. walFlushMs,walBatchSize,lockTimeoutMsoptions for fine-grained tuning.sync()for explicit durability flush.walStatus()to inspect WAL enabled state and committed LSN.
v4.0.0
MAJOR 2025Added — Multi-Core
- Multi-core parallel processing via Rayon:
parallelQuery(),parallelAggregate(),parallelLookup(),batchSetParallel(). getSystemInfo()— runtime CPU and parallelism diagnostics.- Adaptive parallelism: single-threaded for <100 items, parallel for ≥100 items.
v3.x
MINOR 2024–2025Added
- TTL —
setWithTTL(),setTTL(),getTTL(),clearTTL(),hasTTL(). - Pub/Sub —
subscribe(),on('change')with wildcard pattern matching. - Snapshots —
createSnapshot(),restoreSnapshot(). - Transactions —
transaction()with automatic rollback. - Middleware —
before(),after()hooks on all operations. - Encryption — AES-256-GCM at rest via
encryptionKey. - Pagination —
paginate(). - Aggregations —
sum(),avg(),min(),max(),distinct(),groupBy(). - O(1) Indices — define in constructor, query via
findByIndex().
v2.x
MINOR 2024Added
push(),pull()— array helpers.add(),subtract()— atomic math operations.find(),findAll()— predicate and object-matcher search.- Chainable query builder:
query().where().sort().limit().skip().select().exec(). batch()— multi-operation write.keys(),values(),count(),stats().
v1.x
INITIAL 2024Added
- Initial release: Rust N-API core via NAPI-RS.
set(),get(),has(),delete(),save(),close().- Automatic nested path creation, JSON file persistence.