Skip to content

ts-orm 2.0.0

Latest

Choose a tag to compare

@velkymx velkymx released this 15 Oct 16:52
d63448c

ts-orm v2.0.0

ts-orm v2.0.0 rewrites the internal query engine to eliminate runtime execution overhead while preserving total compile-time type safety.

This release targets high-concurrency Node.js and Bun applications where query compilation speed and low memory usage directly affect request throughput.

Key Changes

1. Re-Engineered Query Engine

  • Reduced query compilation overhead up to 4x compared to v1.x releases.
  • Consolidated internal AST parsing to minimize heap allocations per query execution.
  • Streamlined connection pool handling for lower latency under high concurrent load.

2. Strict Type Inference

  • Full autocomplete across complex multi-table joins, subqueries, and dynamic filters.
  • Payload shapes infer directly from schema definitions without requiring code generation steps or external CLI tools.
  • Schema mismatches and invalid relation references fail at build time.

3. Updated API Surface

  • Standardized initialization syntax for database drivers and custom dialects.
  • Cleaner methods for conditional filtering, pagination, and bulk mutations.
  • Uniform query semantics across supported SQL drivers.

Installation

npm install ts-orm@latest