Skip to content

dhi v1.4.1

Choose a tag to compare

@github-actions github-actions released this 12 Jun 12:26
· 20 commits to main since this release

dhi v1.4.1

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.4.1

Migration from Zod

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