Skip to content

dhi v1.5.2

Choose a tag to compare

@justrach justrach released this 11 Jul 04:08
· 8 commits to main since this release
89d46d6

dhi v1.5.2

Ultra-fast Zod 4 drop-in replacement — SIMD-powered WASM + N-API native addon

Performance (vs Zod 4.3.6)

  • String validators: 1.1–2.9x faster
  • Number validators: up to 48x faster
  • Object validators: 4–7x faster (JIT-compiled)
  • Coercion: 25–47x faster
  • Zero production dependencies

Features

  • Full Zod 4 API parity (drop-in replacement)
  • Complete TypeScript type inference
  • SIMD-powered WASM validators (28KB binary)
  • JIT-compiled object schemas
  • All string/number/object/array/union/enum validators

Installation

npm install dhi@v1.5.2

Migration from Zod

// Before
import { z } from 'zod';
// After
import { z } from 'dhi';
// That's it — same API, faster runtime