Skip to content

Releases: chiptoma/validex

v1.0.3

Choose a tag to compare

@chiptoma chiptoma released this 13 Apr 15:06

Packages

  • @validex/core@1.0.3
  • @validex/nuxt@1.0.3
  • @validex/fastify@1.0.3

All three published to npm with OIDC trusted publishing and Sigstore provenance.

Changes

@validex/nuxt@1.0.3 — Patch

@validex/fastify@1.0.3 — Patch

Align adapter packages with Nuxt Module and Fastify plugin directory conventions (#16).

@validex/nuxt

  • Move @nuxt/kit from peerDependencies to dependencies so module resolution works without relying on a hoisted @nuxt/kit.
  • Declare nuxt: ">=3.0.0" as a real peer dependency (previously only referenced by an orphaned peerDependenciesMeta entry).
  • Add nuxt-module to keywords for discovery on nuxt.com/modules.

@validex/fastify

  • Move fastify-plugin from peerDependencies to dependencies, matching the convention used by @fastify/* plugins so consumers don't need to install it separately.
  • Drop the optional: true flag on the fastify peer — Fastify is required, not optional.
  • Add fastify-plugin to keywords for Fastify ecosystem indexing.

@validex/core@1.0.3 — Patch

Version bump via the fixed-version group. No direct code changes.

Install

```bash
pnpm add @validex/core@1.0.3
pnpm add @validex/nuxt@1.0.3
pnpm add @validex/fastify@1.0.3
```

Notes

This release and its tag were created manually to backfill a changesets/action workflow bug: the workflow used pnpm -r publish directly instead of pnpm exec changeset publish, which prevented the action from parsing the publish output and auto-creating the GitHub release. A follow-up fix to .github/workflows/release.yml will restore automatic release creation for future versions.

v1.0.2

Choose a tag to compare

@chiptoma chiptoma released this 06 Apr 15:34

What's changed

Documentation

  • Fixed incorrect error codes for Password, Phone, Text, URL, and Website rules
  • Corrected ipAddress.privateNotAllowed error message and params
  • Added missing sameAs and requiredWhen fields to BaseRuleOptions docs
  • Completed sameAs and requiredWhen utility option signatures
  • Added missing string namespace (22 messages) to i18n translation template
  • Fixed peer dependency labels for Phone and PostalCode (both are bundled, not peer deps)
  • Added readonly modifiers to ValidationResult interface

Breaking changes

  • configure() removed from public exports — use setup() instead (it already calls configure internally)

CI

  • Release workflow switched to OIDC trusted publishing with Node 24
  • Version-only commits skip expensive CI checks

v1.0.0

Choose a tag to compare

@chiptoma chiptoma released this 04 Apr 04:06

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