RELEASE HISTORY

CHANGELOG

Every version, every improvement — from day one to the latest enterprise release.

v6.0.0

MAJOR 2026-03-01

Added — Enterprise Engine

  • MVCC Concurrency — Multi-Version Concurrency Control. Readers never block writers. Write-write conflicts surface as ConflictError instead of deadlocking.
  • DashMap Auto-Scaling — Replaced fixed stripe Vec<Mutex<()>> with lock-free DashMap that auto-scales with CPU cores. Configurable via stripeCount.
  • mmap O(1) Startup — Memory-mapped file loading via memmap2. Near-instant open regardless of database size. Tunable via bufferPoolSizeMB and bufferPageSizeKB.
  • .explain() API — Query introspection returning scanType, 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 Adaptersadapters.ts: StorageAdapter interface + FileSystemAdapter, MemoryAdapter, LocalStorageAdapter, IndexedDBAdapter, HttpAdapter.
  • WASM Fallback — Tier 3 loading: automatically falls back to wasm-shim.js when no native binary is present and Rust is unavailable. 100% install success.
  • Lite Mode Buildbun 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.yml workflow: builds all platforms, runs tests, publishes to npm with provenance on release tags.

Changed

  • index.js rewritten — all .node binaries resolved from prebuilds/ via a prebuild() helper.
  • scripts/build-on-demand.js — output directory changed to prebuilds/ (auto-created).
  • .gitignoreprebuilds/*.node tracked (negation), internal planning docs and lite/ 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 2025

Fixed

  • Minor type declaration alignment for walStatus() return type.
  • Improved error messages for schema validation failures.

v5.5.0

MAJOR 2025

Added

  • 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, evictionTargetPct options. 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 2025

Added

  • Schema Validation — JSON Schema-like field constraints: type, enum, minimum, maximum, pattern, minLength, maxLength, minItems, maxItems, uniqueItems, required.
  • slowQueryThresholdMs option to automatically log slow queries.

v4.5.0

MAJOR 2025

Added — Hybrid Architecture

  • Configurable Durability Modesnone, lazy, batched (Group Commit WAL), sync.
  • Process Locking — OS-level advisory file locking: exclusive, shared, none.
  • walFlushMs, walBatchSize, lockTimeoutMs options for fine-grained tuning.
  • sync() for explicit durability flush.
  • walStatus() to inspect WAL enabled state and committed LSN.

v4.0.0

MAJOR 2025

Added — 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–2025

Added

  • TTLsetWithTTL(), setTTL(), getTTL(), clearTTL(), hasTTL().
  • Pub/Subsubscribe(), on('change') with wildcard pattern matching.
  • SnapshotscreateSnapshot(), restoreSnapshot().
  • Transactionstransaction() with automatic rollback.
  • Middlewarebefore(), after() hooks on all operations.
  • Encryption — AES-256-GCM at rest via encryptionKey.
  • Paginationpaginate().
  • Aggregationssum(), avg(), min(), max(), distinct(), groupBy().
  • O(1) Indices — define in constructor, query via findByIndex().

v2.x

MINOR 2024

Added

  • 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 2024

Added

  • Initial release: Rust N-API core via NAPI-RS.
  • set(), get(), has(), delete(), save(), close().
  • Automatic nested path creation, JSON file persistence.