Skip to content

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

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

v0.7.1

16 Jan 00:18
72a4898
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.0...v0.7.1

v0.7.0

23 Nov 04:52
ebe1867
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.2...v0.7.0

v0.6.2

18 Sep 07:50
18bc46d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.1...v0.6.2

v0.6.1

02 Sep 08:03
6926308
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.6.1

v0.6.0

30 Jul 05:01
889a762
Compare
Choose a tag to compare

What's Changed

  • Supported Type Object generation 🎉
    • by enabling withObjectType
  • Fixed zod skipping directives when specified notAllowEmptyString in config
  • Updated some deps

PR

Read more