graphql
graphql copied to clipboard
Update graphqlcodegenerator monorepo
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@graphql-codegen/core | 2.5.1 -> 2.6.2 |
||||
@graphql-codegen/plugin-helpers | 2.4.2 -> 2.6.2 |
||||
@graphql-codegen/typescript | 2.6.0 -> 2.7.3 |
Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/core)
v2.6.2
Patch Changes
-
#8207
6c7d3e54b
Thanks @renovate! - ### Dependencies Updates- Updated dependency (
@graphql-tools/schema@^9.0.0
↗︎) (was^8.5.0
, independencies
)
- Updated dependency (
v2.6.1
Patch Changes
-
#8189
b408f8238
Thanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolution
node16
ornodenext
-
Updated dependencies [
b408f8238
]:
v2.6.0
Minor Changes
-
d84afec
: Support TypeScript ESM modules ("module": "node16"
and"moduleResolution": "node16"
).
Patch Changes
dotansimha/graphql-code-generator (@graphql-codegen/plugin-helpers)
v2.6.2
Patch Changes
-
#8189
b408f8238
Thanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolution
node16
ornodenext
v2.6.1
Patch Changes
-
6a2e328
: feat(cli):--verbose
and--debug
flags
v2.6.0
Minor Changes
-
2cbcbb3
: Add new flag to emit legacy common js imports. Default it will betrue
this way it ensure that generated code works with non-compliant bundlers.You can use the option in your config:
schema: 'schema.graphql' documents: - 'src/**/*.graphql' emitLegacyCommonJSImports: true
Alternative you can use the CLI to set this option:
$ codegen --config-file=config.yml --emit-legacy-common-js-imports
v2.5.0
Minor Changes
-
d84afec
: Support TypeScript ESM modules ("module": "node16"
and"moduleResolution": "node16"
). -
8e44df5
: Add new config option to not exit with non-zero exit code when there are no documents.You can use this option in your config:
schema: 'schema.graphql' documents: - 'src/**/*.graphql' ignoreNoDocuments: true
Alternative you can use the CLI to set this option:
$ codegen --config-file=config.yml --ignore-no-documents
Patch Changes
-
a4fe500
: Fix TS type error on strictNullChecks: trueFix the compiler error:
node_modules/@​graphql-codegen/plugin-helpers/oldVisit.d.ts:5:75 - error TS2339: Property 'enter' does not exist on type '{ readonly enter?: ASTVisitFn<NameNode> | undefined; readonly leave: ASTReducerFn<NameNode, unknown>; } | { readonly enter?: ASTVisitFn<DocumentNode> | undefined; readonly leave: ASTReducerFn<...>; } | ... 41 more ... | undefined'. 5 enter?: Partial<Record<keyof NewVisitor, NewVisitor[keyof NewVisitor]['enter']>>; ~~~~~~~ node_modules/@​graphql-codegen/plugin-helpers/oldVisit.d.ts:6:75 - error TS2339: Property 'leave' does not exist on type '{ readonly enter?: ASTVisitFn<NameNode> | undefined; readonly leave: ASTReducerFn<NameNode, unknown>; } | { readonly enter?: ASTVisitFn<DocumentNode> | undefined; readonly leave: ASTReducerFn<...>; } | ... 41 more ... | undefined'. 6 leave?: Partial<Record<keyof NewVisitor, NewVisitor[keyof NewVisitor]['leave']>>; ~~~~~~~ Found 2 errors in the same file, starting at: node_modules/@​graphql-codegen/plugin-helpers/oldVisit.d.ts:5
Only happens when TS compiler options
strictNullChecks: true
andskipLibCheck: false
.Partial<T>
includes{}
, thereforeNewVisitor[keyof NewVisitor]
includesundefined
, and indexingundefined
is error. Eliminateundefined
by wrapping it insideNonNullable<...>
.Related #7519
dotansimha/graphql-code-generator (@graphql-codegen/typescript)
v2.7.3
Patch Changes
-
#8189
b408f8238
Thanks @n1ru4l! - Fix CommonJS TypeScript resolution withmoduleResolution
node16
ornodenext
v2.7.2
Patch Changes
- Updated dependencies [
2cbcbb3
]
v2.7.1
Patch Changes
- Updated dependencies [
525ad58
]
v2.7.0
Minor Changes
-
d84afec
: Support TypeScript ESM modules ("module": "node16"
and"moduleResolution": "node16"
).
Patch Changes
Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
⚠️ No Changeset found
Latest commit: 21ef03c7d98aa4b87f38856a2620cb3401422fed
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR