eddeee888 / graphql-code-generator-plugins

List of GraphQL Code Generator plugins that complements the official plugins.
MIT License
51 stars 12 forks source link

Relax presetConfig.typesPluginsConfig.namingConvention enforcement. Warn if used. #188

Closed eddeee888 closed 1 year ago

eddeee888 commented 1 year ago

Currently, the preset is naively uses the schema type as the generated type. Therefore, it's important to have namingConvention option as keep.

Previously, we've made presetConfig.typesPluginsConfig.namingConvention to throw if used. In this release, we've relaxed it because certain options may still work e.g. upperCaseFirst. If namingConvention is used, we warn instead.

In the future, we can revisit to make sure generated resolvers have the same namingConvention support as the generated type file.

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: d2d083fd45d52d753c69d1c7f39f7ba8af3cf8c6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------------------------- | ----- | | @eddeee888/gcg-typescript-resolver-files | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

eddeee888 commented 1 year ago

/release-snapshot

github-actions[bot] commented 1 year ago

✅ Successfully published package/s with tag pr188-run314-1!