Changelog
All notable changes to the Zorix DB project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.0.0] - 2026-10-05
🚀 Production Release (High-Performance Engine & Event Lifecycle)
Official stable release of @zorix/zorixdb v1.0.0 featuring a high-performance IndexedDB execution engine overhaul, native browser fast-paths, zero dynamic data caching, and a reactive Event Lifecycle System.
⚡ Performance & Engine Optimizations
- Synchronous Bulk Transaction Processing (
insertMany): RefactoredModel.insertMany()to perform upfront schema validation for all records and dispatchstore.add()synchronously inside a singlereadwriteIndexedDB transaction. Achieves 10x–50x write throughput speedup. - Native
getAll()Fast Path Query Engine: UpgradedFind.find()to detect when queries match an index or key range without secondary post-filtering or custom sorting, executing directly via browser nativeindex.getAll(range)andstore.getAll(range). Achieves 5x–20x read speedup. - Native Offset Pagination (
cursor.advance): Enhanced pagination inFind.find()to use native browsercursor.advance(offset)for direct offset skipping without manual JS loop iterations. - Static Pre-Compiled Query Plan Caching: Implemented a static execution plan cache in
queryPlanner.tsmapping query shapes to optimal index decision paths, eliminating runtime string parsing and scoring overhead on repeating queries. - 100% Data Freshness Architecture: Enforced zero dynamic record caching in memory. Every
get()andfind()operation queries IndexedDB directly, eliminating stale cache bugs while preserving maximum reliability.
📡 Event Lifecycle System (Emitter)
- Event Emitter Core: Upgraded
Emitterwith.on(),.once(),.off(), and.removeAllListeners(). - Database Connection Lifecycle Events (
DB): Added support for listening to'open','connect','close','error','upgrade','versionchange', and'blocked'. - Model Mutation & Reactive UI Events (
Model&DB): Added granular model mutation events ('insert','update','delete','clear') and a unified'change'event for real-time UI state synchronization.
🛠️ Runtime Safety & Constraint Preservation
- Strict Error Delegation: Attached
tx.onerrorandtx.onaborthandlers to bulk transactions to catch IndexedDB constraint collisions (ConstraintError, duplicate keys), rolling back transactions safely and mapping errors to typedZorixErrorinstances.
[1.0.0-beta.0] - 2026-05-12
📦 Initial Public Beta
- Schema-Driven Models: Introduced schema definition API with field builders (
string,number,boolean,date,array,object,any). - Query Planner Engine: Initial query planner with single-field and compound index selection.
- Promise-Based Transactions: Promisified wrapper around raw IndexedDB transactions (
db.tx()). - Database Migrations: Initial migration table and schema versioning support.
- Multi-Format Packaging: Distributed ESM (
zorix.esm.js), CommonJS (zorix.cjs), and IIFE (zorix.iife.js) bundles.
