ata-validator
1.61.3 · 29 Oct 2026MIT21.8k / weekRepositoryHomepagenpmAtom feed
Upgrading ata-validator from 1.6.1 to 1.6.2
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 0
- advisories fixed
- 0
- new
- 4
- fixes
Release by release
- fixed
The Standard Schema surface carried no output type.
~standard.validate()returned{ value: unknown }and thetypescarrier the specification defines for inference was missing, so every consumer that reads the validated type off~standard(Fastify, tRPC, TanStack Form, Drizzle) sawunknownand needed a cast.~standardis now typed against the validator's own data type, andtypes.outputcarries it. Type-only: the runtime object is unchanged, and the specification definestypesas never present at runtime. - fixed
Boolean schemas were rejected by the
Validatorconstructor's TypeScript signature.trueandfalseare schemas anywhere JSON Schema allows one, and both have always worked at runtime; only the types disagreed, which made a schema of unknown shape (object | boolean) impossible to pass without a cast. Nested boolean subschemas are still typed as objects, so{ properties: { a: true } }needsdefineSchemaor a cast. - fixed
The
tbuilder's option bags rejected vendor keywords.t.object({}, { instanceof: 'Date' })is what a custom keyword package expects to be given, and the option types only allowed the keywords the builder itself emits, so callers wroteas never. Every option bag now accepts unknown keywords alongside the typed ones. - fixed
tests/test_interop_types.tscovers all three undertsc --noEmit.
- fixed