Skip to content

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

v0.14.1

07 Apr 05:53
70e956a
Compare
Choose a tag to compare

What's Changed

  • added support for URI format in directive config by @Code-Hex in #612

Full Changelog: v0.14.0...v0.14.1

v0.14.0

06 Apr 16:54
190056d
Compare
Choose a tag to compare

Supported interface generation! Thanks @simonljus

What's Changed

Full Changelog: v0.13.0...v0.14.0

v0.13.0

06 Apr 10:52
1c1a379
Compare
Choose a tag to compare

What's Changed

Read more

v0.12.1

09 Dec 11:58
90830bb
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.12.0...v0.12.1

v0.12.0

13 Aug 16:13
9b9c6a0
Compare
Choose a tag to compare

Supported to generate validation schema for variables 😄

What's Changed

Full Changelog: v0.11.1...v0.12.0

v0.11.1

10 Jun 05:55
5f5c589
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.11.0...v0.11.1

v0.11.0

09 Jun 16:34
623a5bd
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.10.0...v0.11.0

v0.10.0

27 May 06:26
f67ff70
Compare
Choose a tag to compare

Required your action for non-this version

If you do not use this version, downgrade to "@graphql-codegen/typescript":"^3.0.0" using yarn or npm.

Required your action for this version

For those who have been using this plugin, the following adjustments will be required with this version.

Before

    config:
      # You can put the config for typescript plugin here
      # see: https://www.graphql-code-generator.com/plugins/typescript
      strictScalars: true
      # You can also write the config for this plugin together
      schema: yup # or zod

After

    config:
      # You can put the config for typescript plugin here
      # see: https://www.graphql-code-generator.com/plugins/typescript
      strictScalars: true
      # Overrides built-in ID scalar to both input and output types as string.
      # see: https://the-guild.dev/graphql/codegen/plugins/typescript/typescript#scalars
      scalars:
        ID: string
      # You can also write the config for this plugin together
      schema: yup # or zod

By doing this, the built-in type ID will use the string type for both input and output, just as it did before.

In this plugin, if a union such as string | number is specified in the scalar, it will generate a validation schema equivalent to validating any type.

See also: #373

What's Changed

Full Changelog: v0.9.0...v0.10.0

v0.9.0

13 May 02:34
50bcc85
Compare
Choose a tag to compare

Breaking Changes

What's Changed

New Contributors

Full Changelog: v0.8.0...v0.9.0

v0.8.0

16 Apr 08:52
899b17a
Compare
Choose a tag to compare

Breaking Changes (for yup)

In this release, we have upgraded yup to v1.

Please note that there are breaking changes associated with this update. We strongly recommend reviewing the yup changelog and making any necessary adjustments to your project to ensure compatibility. Your understanding and cooperation are greatly appreciated as we continue to improve our library.

See also: jquense/yup#1906

What's Changed

Full Changelog: v0.7.1...v0.8.0