Skip to content

v0.18.0

Choose a tag to compare

@mertcanaltin mertcanaltin released this 25 May 15:19
· 12 commits to master since this release

Infer resolves the shapes 0.17.0 left as unknown.

anyOf and oneOf map to unions, allOf to an intersection, prefixItems to a tuple, and a $ref to a local #/$defs/... or #/definitions/... entry resolves to the referenced type, including recursive references. An external or unresolvable $ref still resolves to unknown rather than erroring.

new Validator(schema) carries the wider inference, so handlers narrow result.data for these schemas with no manual annotation. The Fastify type provider built on Infer gets the same upgrade for free.

Pure .d.ts change, no runtime impact: zero bundle growth, full suite green.