Skip to content

Releases: kolpakov-p/zod-to-nestjs-graphql

Release 1.0.0

16 Feb 14:50
ea4c34c
Compare
Choose a tag to compare
  • Breaking change. Derived types of z.any() are made required by default. zod sets z.any() type to optional and nullable by default, but it's looks inappropriate applying to GraphQLJSON 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({ ... }) ), or z.object({ ... }).nullable().optional()

Release 0.8.0

31 Jan 18:26
a2d0d3b
Compare
Choose a tag to compare

Add support of discriminated unions.

Release 0.7.1

05 Jan 15:14
9750450
Compare
Choose a tag to compare

Fix of nativeEnum behavior (backward compatibility lost).

Release 0.7.0

05 Jan 14:52
ae2f076
Compare
Choose a tag to compare

Added support of zod's regular enums (in addition to nativeEnums).

Release 0.6.0

22 Dec 13:56
21e093e
Compare
Choose a tag to compare

Added auto-registration of nested objects (for both Object and Input types). Auto-generation of beautiful names is included!

Release 0.5.0

17 Dec 22:45
815f8df
Compare
Choose a tag to compare

Added:

  • Type hot replacement
  • Registration of multiple types on the fly

#7

Release 0.4.0

17 Dec 22:44
523161c
Compare
Choose a tag to compare

Map z.record() to GraphQLJSONObject (#6)

Release 0.3.1

08 Dec 14:26
7963e70
Compare
Choose a tag to compare

Minor fixes.

Release 0.3.0

06 Dec 16:55
4ab8a49
Compare
Choose a tag to compare

Added support of zod.union and zod.literal

Release 0.2.0

02 Dec 13:08
9613181
Compare
Choose a tag to compare

Map z.any() to GraphQLJSON.