Skip to content

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

v0.13.0

Choose a tag to compare

@Code-Hex Code-Hex released this 06 Apr 10:52
1c1a379

What's Changed

Read more

v0.12.1

Choose a tag to compare

@Code-Hex Code-Hex released this 09 Dec 11:58
90830bb

What's Changed

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

v0.12.0

Choose a tag to compare

@Code-Hex Code-Hex released this 13 Aug 16:13
9b9c6a0

Supported to generate validation schema for variables 😄

What's Changed

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

v0.11.1

Choose a tag to compare

@Code-Hex Code-Hex released this 10 Jun 05:55
5f5c589

What's Changed

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

v0.11.0

Choose a tag to compare

@Code-Hex Code-Hex released this 09 Jun 16:34
623a5bd

What's Changed

New Contributors

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

v0.10.0

Choose a tag to compare

@Code-Hex Code-Hex released this 27 May 06:26
f67ff70

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

Choose a tag to compare

@Code-Hex Code-Hex released this 13 May 02:34
50bcc85

Breaking Changes

What's Changed

New Contributors

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

v0.8.0

Choose a tag to compare

@Code-Hex Code-Hex released this 16 Apr 08:52
899b17a

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

Choose a tag to compare

@Code-Hex Code-Hex released this 16 Jan 00:18
72a4898

What's Changed

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

v0.7.0

Choose a tag to compare

@Code-Hex Code-Hex released this 23 Nov 04:52
ebe1867

What's Changed

New Contributors

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