Code-Hex/graphql-codegen-typescript-validation-schema

`@graphql-codegen/typescript` v4 breaks package

elijaholmos opened this issue · 3 comments

as you can see by the latest dep update 55277f1, tests are failing due to breaking changes in the @graphql-codegen/typescript packages. I am also experiencing this in my local project; specifically, what was previously parsed as z.string() is now parsed as definedNonNullAnySchema:

image

(v3 on the right, v4 on the left)

I have the same issue!!
Downgrading to "@graphql-codegen/typescript": "^3.0.0", solves the issue

@elijaholmos Thanks!
I think this problem is caused by this breaking change dotansimha/graphql-code-generator#9375

I will fix this asap 🙏

@elijaholmos @valerii15298 I just published the latest version for this.

Unfortunately, I couldn't maintain backward-compatible between @graphql-codegen/typescript v3 and v4. So you guys are required to do action to solve this problem 🙏

Please my release note: https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/releases/tag/v0.10.0