Skip to content

v1.0.0

Choose a tag to compare

@chiptoma chiptoma released this 04 Apr 04:06
· 15 commits to main since this release

validex v1.0.0

Initial release of the validex validation library.

Packages

  • @validex/core — 25 type-safe validation rules built on Zod
  • @validex/nuxt — Nuxt module with auto-imports and useValidation composable
  • @validex/fastify — Fastify plugin with decorators and preValidation hooks

Highlights

  • 25 production-ready rules: identity, auth, networking, finance, and text
  • 141 error codes with full i18n support and CLI locale generator
  • Tree-shakeable — 5–6 kB Brotli per rule, all 25 = 13 kB
  • Cross-field validation (sameAs, requiredWhen)
  • Three-tier config merge (defaults → global → per-call)
  • 22 chainable check methods via Zod augmentation
  • 22 standalone pure check functions
  • Dual CJS/ESM with full TypeScript declarations
  • 7,800+ tests across 80 files