Releases: dotansimha/graphql-code-generator
May 17, 2024
@graphql-codegen/visitor-plugin-common@5.2.0
Minor Changes
- #9961
dfc5310
Thanks @eddeee888! - Update typescript-resolvers to report generated resolver types in the run to meta field in the output
Patch Changes
-
#9944
156cc2b
Thanks @eddeee888! - Add _ prefix to generatedRefType
inResolversInterfaceTypes
andResolversUnionTypes
as it is sometimes unused -
#9962
b49457b
Thanks @eddeee888! - Fix interface mappers not working in nested/self-referencing scenarios -
Updated dependencies [
dfc5310
]:- @graphql-codegen/plugin-helpers@5.0.4
@graphql-codegen/typescript-document-nodes@4.0.7
Patch Changes
- Updated dependencies [
dfc5310
,156cc2b
,dfc5310
,b49457b
]:- @graphql-codegen/plugin-helpers@5.0.4
- @graphql-codegen/visitor-plugin-common@5.2.0
@graphql-codegen/gql-tag-operations@4.0.7
Patch Changes
- Updated dependencies [
dfc5310
,156cc2b
,dfc5310
,b49457b
]:- @graphql-codegen/plugin-helpers@5.0.4
- @graphql-codegen/visitor-plugin-common@5.2.0
@graphql-codegen/typescript-operations@4.2.1
Patch Changes
- Updated dependencies [
dfc5310
,156cc2b
,dfc5310
,b49457b
]:- @graphql-codegen/plugin-helpers@5.0.4
- @graphql-codegen/visitor-plugin-common@5.2.0
- @graphql-codegen/typescript@4.0.7
@graphql-codegen/typescript-resolvers@4.1.0
Minor Changes
- #9961
dfc5310
Thanks @eddeee888! - Update typescript-resolvers to report generated resolver types in the run to meta field in the output
Patch Changes
-
#9944
156cc2b
Thanks @eddeee888! - Add _ prefix to generatedRefType
inResolversInterfaceTypes
andResolversUnionTypes
as it is sometimes unused -
#9962
b49457b
Thanks @eddeee888! - Fix interface mappers not working in nested/self-referencing scenarios -
Updated dependencies [
dfc5310
,156cc2b
,dfc5310
,b49457b
]:- @graphql-codegen/plugin-helpers@5.0.4
- @graphql-codegen/visitor-plugin-common@5.2.0
- @graphql-codegen/typescript@4.0.7
@graphql-codegen/typed-document-node@5.0.7
Patch Changes
- Updated dependencies [
dfc5310
,156cc2b
,dfc5310
,b49457b
]:- @graphql-codegen/plugin-helpers@5.0.4
- @graphql-codegen/visitor-plugin-common@5.2.0
@graphql-codegen/typescript@4.0.7
Patch Changes
- Updated dependencies [
dfc5310
,156cc2b
,dfc5310
,b49457b
]:- @graphql-codegen/plugin-helpers@5.0.4
- @graphql-codegen/visitor-plugin-common@5.2.0
@graphql-codegen/client-preset@4.2.6
Patch Changes
- Updated dependencies [
dfc5310
,156cc2b
,dfc5310
,b49457b
]:- @graphql-codegen/plugin-helpers@5.0.4
- @graphql-codegen/visitor-plugin-common@5.2.0
- @graphql-codegen/gql-tag-operations@4.0.7
- @graphql-codegen/typescript-operations@4.2.1
- @graphql-codegen/typed-document-node@5.0.7
- @graphql-codegen/typescript@4.0.7
@graphql-codegen/graphql-modules-preset@4.0.7
Patch Changes
- Updated dependencies [
dfc5310
,156cc2b
,dfc5310
,b49457b
]:- @graphql-codegen/plugin-helpers@5.0.4
- @graphql-codegen/visitor-plugin-common@5.2.0
@graphql-codegen/plugin-helpers@5.0.4
Patch Changes
- #9961
dfc5310
Thanks @eddeee888! - Update plugin output type to allow optionmeta
field
March 27, 2024
@graphql-codegen/time@5.0.1
Patch Changes
- #9881
68ea5d4
Thanks @renovate! - dependencies updates:- Updated dependency
moment@~2.30.0
↗︎ (from~2.29.1
, independencies
)
- Updated dependency
@graphql-codegen/client-preset@4.2.5
Patch Changes
- #9889
cd60e14
Thanks @Sojaner! - Omit__typename
from being added on the root node of a subscription when usingaddTypenameSelectionDocumentTransform
with documentTransforms since a single root node is expected and the code generator fails because of that (refer to https://spec.graphql.org/draft/#sec-Single-root-field)
February 22, 2024
@graphql-codegen/visitor-plugin-common@5.1.0
Minor Changes
Patch Changes
- #9842
ed9c205
Thanks @henryqdineen! - properly handle aliased conditionals
@graphql-codegen/typescript-document-nodes@4.0.6
Patch Changes
@graphql-codegen/gql-tag-operations@4.0.6
Patch Changes
@graphql-codegen/typescript-operations@4.2.0
Minor Changes
Patch Changes
-
#9842
ed9c205
Thanks @henryqdineen! - properly handle aliased conditionals -
Updated dependencies [
920b443
,ed9c205
]:- @graphql-codegen/visitor-plugin-common@5.1.0
- @graphql-codegen/typescript@4.0.6
@graphql-codegen/typescript-resolvers@4.0.6
Patch Changes
- Updated dependencies [
920b443
,ed9c205
]:- @graphql-codegen/visitor-plugin-common@5.1.0
- @graphql-codegen/typescript@4.0.6
@graphql-codegen/typed-document-node@5.0.6
Patch Changes
@graphql-codegen/typescript@4.0.6
Patch Changes
@graphql-codegen/client-preset@4.2.4
Patch Changes
- Updated dependencies [
920b443
,ed9c205
]:- @graphql-codegen/visitor-plugin-common@5.1.0
- @graphql-codegen/typescript-operations@4.2.0
- @graphql-codegen/gql-tag-operations@4.0.6
- @graphql-codegen/typed-document-node@5.0.6
- @graphql-codegen/typescript@4.0.6
@graphql-codegen/graphql-modules-preset@4.0.6
Patch Changes
@graphql-codegen/testing@3.0.3
Patch Changes
-
#9627
422e2a7
Thanks @renovate! - dependencies updates:- Updated dependency
nock@13.3.6
↗︎ (from13.3.1
, independencies
)
- Updated dependency
-
#9851
217ed56
Thanks @renovate! - dependencies updates:- Updated dependency
nock@13.5.3
↗︎ (from13.3.6
, independencies
)
- Updated dependency
February 20, 2024
@graphql-codegen/introspection@4.0.3
Patch Changes
- Updated dependencies [
53f270a
]:- @graphql-codegen/visitor-plugin-common@5.0.0
@graphql-codegen/visitor-plugin-common@5.0.0
Major Changes
- #9845
53f270a
Thanks @productdevbook! - path starts with "#"
@graphql-codegen/typescript-document-nodes@4.0.5
Patch Changes
- Updated dependencies [
53f270a
]:- @graphql-codegen/visitor-plugin-common@5.0.0
@graphql-codegen/gql-tag-operations@4.0.5
Patch Changes
- Updated dependencies [
53f270a
]:- @graphql-codegen/visitor-plugin-common@5.0.0
@graphql-codegen/typescript-operations@4.1.3
Patch Changes
- Updated dependencies [
53f270a
]:- @graphql-codegen/visitor-plugin-common@5.0.0
- @graphql-codegen/typescript@4.0.5
@graphql-codegen/typescript-resolvers@4.0.5
Patch Changes
- Updated dependencies [
53f270a
]:- @graphql-codegen/visitor-plugin-common@5.0.0
- @graphql-codegen/typescript@4.0.5
@graphql-codegen/typed-document-node@5.0.5
Patch Changes
- Updated dependencies [
53f270a
]:- @graphql-codegen/visitor-plugin-common@5.0.0
@graphql-codegen/typescript@4.0.5
Patch Changes
- Updated dependencies [
53f270a
]:- @graphql-codegen/visitor-plugin-common@5.0.0
@graphql-codegen/client-preset@4.2.3
Patch Changes
- Updated dependencies [
53f270a
]:- @graphql-codegen/visitor-plugin-common@5.0.0
- @graphql-codegen/gql-tag-operations@4.0.5
- @graphql-codegen/typescript-operations@4.1.3
- @graphql-codegen/typed-document-node@5.0.5
- @graphql-codegen/typescript@4.0.5
@graphql-codegen/graphql-modules-preset@4.0.5
Patch Changes
- Updated dependencies [
53f270a
]:- @graphql-codegen/visitor-plugin-common@5.0.0
February 06, 2024
@graphql-codegen/cli@5.0.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/client-preset@4.2.2
- @graphql-codegen/core@4.0.2
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/core@4.0.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/add@5.0.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/fragment-matcher@5.0.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/introspection@4.0.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/visitor-plugin-common@4.1.2
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/schema-ast@4.0.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/visitor-plugin-common@4.1.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/typescript-document-nodes@4.0.4
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/visitor-plugin-common@4.1.2
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/gql-tag-operations@4.0.4
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/visitor-plugin-common@4.1.2
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/typescript-operations@4.1.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/visitor-plugin-common@4.1.2
- @graphql-codegen/typescript@4.0.4
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/typescript-resolvers@4.0.4
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/visitor-plugin-common@4.1.2
- @graphql-codegen/typescript@4.0.4
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/typed-document-node@5.0.4
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/visitor-plugin-common@4.1.2
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/typescript@4.0.4
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/visitor-plugin-common@4.1.2
- @graphql-codegen/schema-ast@4.0.2
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/client-preset@4.2.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/visitor-plugin-common@4.1.2
- @graphql-codegen/typescript-operations@4.1.2
- @graphql-codegen/add@5.0.2
- @graphql-codegen/gql-tag-operations@4.0.4
- @graphql-codegen/typed-document-node@5.0.4
- @graphql-codegen/typescript@4.0.4
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/graphql-modules-preset@4.0.4
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/visitor-plugin-common@4.1.2
- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/testing@3.0.2
Patch Changes
-
Updated dependencies [
4e69568
]:- @graphql-codegen/plugin-helpers@5.0.3
@graphql-codegen/plugin-helpers@5.0.3
Patch Changes
February 06, 2024
@graphql-codegen/visitor-plugin-common@4.1.1
Patch Changes
- #9673
7718a8113
Thanks @maclockard! - Respect avoidOptionals when all arguments are optional
@graphql-codegen/typescript-document-nodes@4.0.3
Patch Changes
- Updated dependencies [
7718a8113
]:- @graphql-codegen/visitor-plugin-common@4.1.1
@graphql-codegen/gql-tag-operations@4.0.3
Patch Changes
- Updated dependencies [
7718a8113
]:- @graphql-codegen/visitor-plugin-common@4.1.1
@graphql-codegen/typescript-operations@4.1.1
Patch Changes
- Updated dependencies [
7718a8113
]:- @graphql-codegen/visitor-plugin-common@4.1.1
- @graphql-codegen/typescript@4.0.3
@graphql-codegen/typescript-resolvers@4.0.3
Patch Changes
-
#9673
7718a8113
Thanks @maclockard! - Respect avoidOptionals when all arguments are optional -
Updated dependencies [
7718a8113
]:- @graphql-codegen/visitor-plugin-common@4.1.1
- @graphql-codegen/typescript@4.0.3
@graphql-codegen/typed-document-node@5.0.3
Patch Changes
- Updated dependencies [
7718a8113
]:- @graphql-codegen/visitor-plugin-common@4.1.1
@graphql-codegen/typescript@4.0.3
Patch Changes
- Updated dependencies [
7718a8113
]:- @graphql-codegen/visitor-plugin-common@4.1.1
@graphql-codegen/client-preset@4.2.1
Patch Changes
-
#9557
48ddaeae1
Thanks @konomae! - Add eslint-disable comment to fragment-masking.ts -
Updated dependencies [
7718a8113
]:- @graphql-codegen/visitor-plugin-common@4.1.1
- @graphql-codegen/gql-tag-operations@4.0.3
- @graphql-codegen/typescript-operations@4.1.1
- @graphql-codegen/typed-document-node@5.0.3
- @graphql-codegen/typescript@4.0.3
@graphql-codegen/graphql-modules-preset@4.0.3
Patch Changes
- Updated dependencies [
7718a8113
]:- @graphql-codegen/visitor-plugin-common@4.1.1
July 25, 2023
@graphql-codegen/cli@5.0.0
Major Changes
Patch Changes
-
#9513
fdd19d24d
Thanks @cichelero! - Update yaml dependency to 2.3.1 -
Updated dependencies [
bb1e0e96e
]:- @graphql-codegen/plugin-helpers@5.0.1
@graphql-codegen/client-preset@4.1.0
Minor Changes
-
#9562
5beee9794
Thanks @n1ru4l! - Add theaddTypenameSelectionDocumentTransform
for automatically adding__typename
selections to all objct type selection sets.This is useful for GraphQL Clients such as Apollo Client or urql that need typename information for their cache to function.
Example Usage
import { addTypenameSelectionDocumentTransform } from '@graphql-codegen/client-preset'; import { CodegenConfig } from "@graphql-codegen/cli"; const config: CodegenConfig = { schema: "YOUR_GRAPHQL_ENDPOINT", documents: ["./**/*.{ts,tsx}"], ignoreNoDocuments: true, generates: { "./gql/": { preset: "client", plugins: [], presetConfig: { persistedDocuments: true, }, documentTransforms: [addTypenameSelectionDocumentTransform], }, }, }; export default config;
Patch Changes
- Updated dependencies [
bb1e0e96e
]:- @graphql-codegen/plugin-helpers@5.0.1
@graphql-codegen/plugin-helpers@5.0.1
Patch Changes
June 19, 2023
@graphql-codegen/visitor-plugin-common@4.0.1
Patch Changes
-
#9497
2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to stringWe changed the ID Scalar input type from
string
tostring | number
in the latest major version oftypescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends ontypescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing.
@graphql-codegen/typescript-document-nodes@4.0.1
Patch Changes
- Updated dependencies [
2276708d0
]:- @graphql-codegen/visitor-plugin-common@4.0.1
@graphql-codegen/gql-tag-operations@4.0.1
Patch Changes
- Updated dependencies [
2276708d0
]:- @graphql-codegen/visitor-plugin-common@4.0.1
@graphql-codegen/typescript-operations@4.0.1
Patch Changes
-
#9497
2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to stringWe changed the ID Scalar input type from
string
tostring | number
in the latest major version oftypescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends ontypescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. -
Updated dependencies [
2276708d0
]:- @graphql-codegen/visitor-plugin-common@4.0.1
- @graphql-codegen/typescript@4.0.1
@graphql-codegen/typescript-resolvers@4.0.1
Patch Changes
-
#9497
2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to stringWe changed the ID Scalar input type from
string
tostring | number
in the latest major version oftypescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends ontypescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. -
Updated dependencies [
2276708d0
]:- @graphql-codegen/visitor-plugin-common@4.0.1
- @graphql-codegen/typescript@4.0.1
@graphql-codegen/typed-document-node@5.0.1
Patch Changes
- Updated dependencies [
2276708d0
]:- @graphql-codegen/visitor-plugin-common@4.0.1
@graphql-codegen/typescript@4.0.1
Patch Changes
-
#9497
2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to stringWe changed the ID Scalar input type from
string
tostring | number
in the latest major version oftypescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends ontypescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. -
Updated dependencies [
2276708d0
]:- @graphql-codegen/visitor-plugin-common@4.0.1
@graphql-codegen/client-preset@4.0.1
Patch Changes
-
#9497
2276708d0
Thanks @eddeee888! - Revert default ID scalar input type to stringWe changed the ID Scalar input type from
string
tostring | number
in the latest major version oftypescript
plugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends ontypescript
plugin. This is because the scalar type needs to be manually inverted on setup which is confusing. -
Updated dependencies [
2276708d0
]:- @graphql-codegen/visitor-plugin-common@4.0.1
- @graphql-codegen/typescript-operations@4.0.1
- @graphql-codegen/typescript@4.0.1
- @graphql-codegen/gql-tag-operations@4.0.1
- @graphql-codegen/typed-document-node@5.0.1
@graphql-codegen/graphql-modules-preset@4.0.1
Patch Changes
- Updated dependencies [
2276708d0
]:- @graphql-codegen/visitor-plugin-common@4.0.1
June 01, 2023
@graphql-codegen/cli@4.0.1
Patch Changes
-
#9479
0aa444b5d
Thanks @gilgardosh! - dependencies updates:- Updated dependency
graphql-config@^5.0.2
↗︎ (from^5.0.1
, independencies
)
- Updated dependency
-
#9479
0aa444b5d
Thanks @gilgardosh! - Update graphql-config to v^5.0.2
May 24, 2023
@graphql-codegen/cli@4.0.0
Major Changes
Patch Changes
-
#9449
4d9ea1a5a
Thanks @n1ru4l! - dependencies updates:- Updated dependency
graphql-config@^5.0.0
↗︎ (from^4.5.0
, independencies
)
- Updated dependency
-
#9449
4d9ea1a5a
Thanks @n1ru4l! - dependencies updates:- Updated dependency
@graphql-tools/apollo-engine-loader@^8.0.0
↗︎ (from^7.3.6
, independencies
) - Updated dependency
@graphql-tools/code-file-loader@^8.0.0
↗︎ (from^7.3.17
, independencies
) - Updated dependency
@graphql-tools/git-loader@^8.0.0
↗︎ (from^7.2.13
, independencies
) - Updated dependency
@graphql-tools/github-loader@^8.0.0
↗︎ (from^7.3.28
, independencies
) - Updated dependency
@graphql-tools/graphql-file-loader@^8.0.0
↗︎ (from^7.5.0
, independencies
) - Updated dependency
@graphql-tools/json-file-loader@^8.0.0
↗︎ (from^7.4.1
, independencies
) - Updated dependency
@graphql-tools/load@^8.0.0
↗︎ (from^7.8.0
, independencies
) - Updated dependency
@graphql-tools/prisma-loader@^8.0.0
↗︎ (from^7.2.69
, independencies
) - Updated dependency
@graphql-tools/url-loader@^8.0.0
↗︎ (from^7.17.17
, independencies
) - Updated dependency
@graphql-tools/utils@^10.0.0
↗︎ (from^9.0.0
, independencies
) - Updated dependency
cosmiconfig@^8.1.3
↗︎ (from^7.0.0
, independencies
) - Updated dependency
graphql-config@^5.0.1
↗︎ (from^4.5.0
, independencies
)
- Updated dependency
-
#9371
d431f426e
Thanks @Axxxx0n! - Fixed option ignoreNoDocuments when using graphql configs -
#9275
2a5da5894
Thanks @milesrichardson! - Trigger rebuilds in watch mode while respecting rules of precedence and negation, both in terms of global (top-level) config vs. local (per-output target) config, and in terms of watch patterns (higher priority) vs. documents/schemas (lower priority). This fixes an issue with overly-aggressive rebuilds during watch mode. -
Updated dependencies [
4d9ea1a5a
,4d9ea1a5a
,f46803a8c
,63827fabe
,bb66c2a31
]:- @graphql-codegen/core@4.0.0
- @graphql-codegen/plugin-helpers@5.0.0
@graphql-codegen/core@4.0.0
Major Changes
Patch Changes
- #9449
4d9ea1a5a
Thanks @n1ru4l! - dependencies updates:- Updated dependency
@graphql-tools/schema@^10.0.0
↗︎ (from^9.0.0
, independencies
) - Updated dependency
@graphql-tools/utils@^10.0.0
↗︎ (from^9.1.1
, independencies
)
- Updated dependency
- Updated dependencies [
4d9ea1a5a
,f46803a8c
,63827fabe
,bb66c2a31
]:- @graphql-codegen/plugin-helpers@5.0.0
@graphql-codegen/add@5.0.0
Major Changes
Patch Changes
- Updated dependencies [
4d9ea1a5a
,f46803a8c
,63827fabe
,bb66c2a31
]:- @graphql-codegen/plugin-helpers@5.0.0
@graphql-codegen/fragment-matcher@5.0.0
Major Changes
Patch Changes
- Updated dependencies [
4d9ea1a5a
,f46803a8c
,63827fabe
,bb66c2a31
]:- @graphql-codegen/plugin-helpers@5.0.0
@graphql-codegen/introspection@4.0.0
Major Changes
Patch Changes
- Updated dependencies [
4d9ea1a5a
,4d9ea1a5a
,f46803a8c
,3848a2b73
,ba84a3a27
,63827fabe
,50471e651
,5aa95aa96
,ca02ad172
,e1dc75f3c
,bb66c2a31
,5950f5a68
,5aa95aa96
]:- @graphql-codegen/plugin-helpers@5.0.0
- @graphql-codegen/visitor-plugin-common@4.0.0
@graphql-codegen/schema-ast@4.0.0
Major Changes
Patch Changes
- #9449 [
4d9ea1a5a
](https://gi...