Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/strict-client-preset.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/strict-typescript-operations.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/strict-typescript.md

This file was deleted.

39 changes: 39 additions & 0 deletions packages/plugins/other/visitor-plugin-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# @graphql-codegen/visitor-plugin-common

## 7.2.8

### Patch Changes

- [#11009](https://github.com/dotansimha/graphql-code-generator/pull/11009)
[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3)
Thanks [@eddeee888](https://github.com/eddeee888)! - Fix type errors in `typescript-operations`
under `strict: true` by widening the shared types it calls into:
- `@graphql-codegen/plugin-helpers`: `Types.ComplexPluginOutput`'s `prepend` and `append` now
accept `null` items. Core already skipped them.
- `@graphql-codegen/visitor-plugin-common`: `DeclarationBlock.withComment` accepts `undefined`,
`parseEnumValues`'s `mapOrStr` is optional (it already defaulted to `{}`),
`ImportSource.namespace` accepts `null`, and `optimizeOperations`'s `includeFragments` is
optional.
- `@graphql-codegen/typescript-operations`: skips document files without a `document`, and no
longer throws when called without the plugin info argument.

Generated output is unchanged.

- [#11014](https://github.com/dotansimha/graphql-code-generator/pull/11014)
[`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6)
Thanks [@eddeee888](https://github.com/eddeee888)! - Fix type errors in `typescript` under
`strict: true` by typing the shared visitor methods it overrides:
- `@graphql-codegen/visitor-plugin-common`: adds `NormalizedDeclarationKindConfig` (every
declaration kind set), used by `normalizeDeclarationKind`, `DEFAULT_DECLARATION_KINDS` and
`ParsedTypesConfig.declarationKind`. `BaseTypesVisitor`'s `NamedType`, `ListType`,
`FieldDefinition`, `InputValueDefinition` and `UnionTypeDefinition` have typed visitor params
(`key` and `parent` are required, since the visitor always passes them), and
`ObjectTypeDefinition`, `EnumTypeDefinition` and `DirectiveDefinition` may return `null`.
- `@graphql-codegen/typescript`: skips document files without a `document` when collecting
introspection types, types the `TsVisitor` visitor params, and `TsVisitor.EnumTypeDefinition`
may return `null` like the introspection visitor's override.

Generated output is unchanged.

- Updated dependencies
[[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3)]:
- @graphql-codegen/plugin-helpers@7.4.1

## 7.2.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/other/visitor-plugin-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/visitor-plugin-common",
"version": "7.2.7",
"version": "7.2.8",
"type": "module",
"repository": {
"type": "git",
Expand Down
25 changes: 25 additions & 0 deletions packages/plugins/typescript/operations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# @graphql-codegen/typescript-operations

## 6.1.10

### Patch Changes

- [#11009](https://github.com/dotansimha/graphql-code-generator/pull/11009)
[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3)
Thanks [@eddeee888](https://github.com/eddeee888)! - Fix type errors in `typescript-operations`
under `strict: true` by widening the shared types it calls into:
- `@graphql-codegen/plugin-helpers`: `Types.ComplexPluginOutput`'s `prepend` and `append` now
accept `null` items. Core already skipped them.
- `@graphql-codegen/visitor-plugin-common`: `DeclarationBlock.withComment` accepts `undefined`,
`parseEnumValues`'s `mapOrStr` is optional (it already defaulted to `{}`),
`ImportSource.namespace` accepts `null`, and `optimizeOperations`'s `includeFragments` is
optional.
- `@graphql-codegen/typescript-operations`: skips document files without a `document`, and no
longer throws when called without the plugin info argument.

Generated output is unchanged.

- Updated dependencies
[[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3),
[`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6)]:
- @graphql-codegen/visitor-plugin-common@7.2.8
- @graphql-codegen/plugin-helpers@7.4.1

## 6.1.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/typescript/operations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/typescript-operations",
"version": "6.1.9",
"version": "6.1.10",
"type": "module",
"description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments",
"repository": {
Expand Down
26 changes: 26 additions & 0 deletions packages/plugins/typescript/typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @graphql-codegen/typescript

## 6.1.1

### Patch Changes

- [#11014](https://github.com/dotansimha/graphql-code-generator/pull/11014)
[`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6)
Thanks [@eddeee888](https://github.com/eddeee888)! - Fix type errors in `typescript` under
`strict: true` by typing the shared visitor methods it overrides:
- `@graphql-codegen/visitor-plugin-common`: adds `NormalizedDeclarationKindConfig` (every
declaration kind set), used by `normalizeDeclarationKind`, `DEFAULT_DECLARATION_KINDS` and
`ParsedTypesConfig.declarationKind`. `BaseTypesVisitor`'s `NamedType`, `ListType`,
`FieldDefinition`, `InputValueDefinition` and `UnionTypeDefinition` have typed visitor params
(`key` and `parent` are required, since the visitor always passes them), and
`ObjectTypeDefinition`, `EnumTypeDefinition` and `DirectiveDefinition` may return `null`.
- `@graphql-codegen/typescript`: skips document files without a `document` when collecting
introspection types, types the `TsVisitor` visitor params, and `TsVisitor.EnumTypeDefinition`
may return `null` like the introspection visitor's override.

Generated output is unchanged.

- Updated dependencies
[[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3),
[`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6)]:
- @graphql-codegen/visitor-plugin-common@7.2.8
- @graphql-codegen/plugin-helpers@7.4.1

## 6.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/typescript/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/typescript",
"version": "6.1.0",
"version": "6.1.1",
"type": "module",
"description": "GraphQL Code Generator plugin for generating TypeScript types",
"repository": {
Expand Down
19 changes: 19 additions & 0 deletions packages/presets/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @graphql-codegen/client-preset

## 6.2.1

### Patch Changes

- [#10995](https://github.com/dotansimha/graphql-code-generator/pull/10995)
[`e972b6d`](https://github.com/dotansimha/graphql-code-generator/commit/e972b6d2a2a388748887d87c54fbb66617fc8f44)
Thanks [@eddeee888](https://github.com/eddeee888)! - Fix type errors under `strict: true`. The
preset now throws a clear error when `schemaAst` is missing from the preset options, and the babel
plugin throws when a file has no filename. Both cases used to crash later with a less clear error.
Generated output is unchanged.

- Updated dependencies
[[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3),
[`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6)]:
- @graphql-codegen/typescript-operations@6.1.10
- @graphql-codegen/visitor-plugin-common@7.2.8
- @graphql-codegen/plugin-helpers@7.4.1
- @graphql-codegen/typescript@6.1.1

## 6.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/presets/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/client-preset",
"version": "6.2.0",
"version": "6.2.1",
"type": "module",
"description": "GraphQL Code Generator preset for client.",
"repository": {
Expand Down
19 changes: 19 additions & 0 deletions packages/utils/plugins-helpers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @graphql-codegen/plugin-helpers

## 7.4.1

### Patch Changes

- [#11009](https://github.com/dotansimha/graphql-code-generator/pull/11009)
[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3)
Thanks [@eddeee888](https://github.com/eddeee888)! - Fix type errors in `typescript-operations`
under `strict: true` by widening the shared types it calls into:
- `@graphql-codegen/plugin-helpers`: `Types.ComplexPluginOutput`'s `prepend` and `append` now
accept `null` items. Core already skipped them.
- `@graphql-codegen/visitor-plugin-common`: `DeclarationBlock.withComment` accepts `undefined`,
`parseEnumValues`'s `mapOrStr` is optional (it already defaulted to `{}`),
`ImportSource.namespace` accepts `null`, and `optimizeOperations`'s `includeFragments` is
optional.
- `@graphql-codegen/typescript-operations`: skips document files without a `document`, and no
longer throws when called without the plugin info argument.

Generated output is unchanged.

## 7.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/plugins-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/plugin-helpers",
"version": "7.4.0",
"version": "7.4.1",
"type": "module",
"description": "GraphQL Code Generator common utils and types",
"repository": {
Expand Down