Releases: kolpakov-p/zod-to-nestjs-graphql
Releases · kolpakov-p/zod-to-nestjs-graphql
Release 1.0.0
- Breaking change. Derived types of
z.any()
are made required by default.zod
setsz.any()
type to optional and nullable by default, but it's looks inappropriate applying toGraphQLJSON
type, because we want to control it's nullability on our own. - Improved preregistration flow. Automatic preregistration of nested object types won't work before with deeply nested objects. For instance,
z.array( z.object({ ... }) )
, orz.object({ ... }).nullable().optional()
Release 0.8.0
Add support of discriminated unions.
Release 0.7.1
Fix of nativeEnum
behavior (backward compatibility lost).
Release 0.7.0
Added support of zod
's regular enums (in addition to nativeEnums).
Release 0.6.0
Added auto-registration of nested objects (for both Object
and Input
types). Auto-generation of beautiful names is included!
Release 0.5.0
Release 0.4.0
Map z.record()
to GraphQLJSONObject
(#6)
Release 0.3.1
Minor fixes.
Release 0.3.0
Added support of zod.union
and zod.literal
Release 0.2.0
Map z.any()
to GraphQLJSON
.