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/@graphql-codegen_time-11015-dependencies.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strict-client-preset.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/strict-plugin-helpers.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.

14 changes: 14 additions & 0 deletions packages/plugins/other/time/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @graphql-codegen/time

## 7.1.1

### Patch Changes

- [#11015](https://github.com/dotansimha/graphql-code-generator/pull/11015)
[`7088be0`](https://github.com/dotansimha/graphql-code-generator/commit/7088be0dcb2082d4c21994a8a6a489559784c4ef)
Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
- Updated dependency [`moment@~2.31.0` ↗︎](https://www.npmjs.com/package/moment/v/2.31.0) (from
`~2.30.0`, in `dependencies`)
- Updated dependencies
[[`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52),
[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3)]:
- @graphql-codegen/plugin-helpers@7.4.1

## 7.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/other/time/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/time",
"version": "7.1.0",
"version": "7.1.1",
"type": "module",
"description": "GraphQL Code Generator plugin for adding the current time for an output file",
"repository": {
Expand Down
40 changes: 40 additions & 0 deletions packages/plugins/other/visitor-plugin-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# @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
[[`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52),
[`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
44 changes: 44 additions & 0 deletions packages/plugins/typescript/operations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# @graphql-codegen/typescript-operations

## 6.1.10

### Patch Changes

- [#11019](https://github.com/dotansimha/graphql-code-generator/pull/11019)
[`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52)
Thanks [@eddeee888](https://github.com/eddeee888)! - Fix type errors in `plugin-helpers` under
`strict: true`:
- `@graphql-codegen/plugin-helpers`: `ProfilerEvent.cat` is optional, matching the Trace Event
format and `Profiler.run`'s optional `cat`. `FederationMeta`'s reference selection sets are
typed recursively (`{ [field: string]: true | ReferenceSelectionSet }`), matching the nested
selections `@key`/`@requires`/`@provides` produce. `oldVisit`'s `visitor` param is typed as
`OldVisitor`: `enter` and `leave` maps keyed by AST node kind, whose callbacks receive the typed
node plus graphql's `key`, `parent`, `path` and `ancestors`. Federation directives missing their
`fields` argument, and operations whose root type is missing from the schema, throw a
descriptive error.
- `@graphql-codegen/typescript` and `@graphql-codegen/typescript-operations`: the
`InputValueDefinition` visitor methods take `path` and `ancestors` as required params, since the
visitor always passes them.

Generated output is unchanged.

- [#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
[[`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52),
[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3),
[`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6)]:
- @graphql-codegen/plugin-helpers@7.4.1
- @graphql-codegen/visitor-plugin-common@7.2.8

## 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
45 changes: 45 additions & 0 deletions packages/plugins/typescript/typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# @graphql-codegen/typescript

## 6.1.1

### Patch Changes

- [#11019](https://github.com/dotansimha/graphql-code-generator/pull/11019)
[`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52)
Thanks [@eddeee888](https://github.com/eddeee888)! - Fix type errors in `plugin-helpers` under
`strict: true`:
- `@graphql-codegen/plugin-helpers`: `ProfilerEvent.cat` is optional, matching the Trace Event
format and `Profiler.run`'s optional `cat`. `FederationMeta`'s reference selection sets are
typed recursively (`{ [field: string]: true | ReferenceSelectionSet }`), matching the nested
selections `@key`/`@requires`/`@provides` produce. `oldVisit`'s `visitor` param is typed as
`OldVisitor`: `enter` and `leave` maps keyed by AST node kind, whose callbacks receive the typed
node plus graphql's `key`, `parent`, `path` and `ancestors`. Federation directives missing their
`fields` argument, and operations whose root type is missing from the schema, throw a
descriptive error.
- `@graphql-codegen/typescript` and `@graphql-codegen/typescript-operations`: the
`InputValueDefinition` visitor methods take `path` and `ancestors` as required params, since the
visitor always passes them.

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
[[`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52),
[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3),
[`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6)]:
- @graphql-codegen/plugin-helpers@7.4.1
- @graphql-codegen/visitor-plugin-common@7.2.8

## 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
20 changes: 20 additions & 0 deletions packages/presets/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @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
[[`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52),
[`1f7566f`](https://github.com/dotansimha/graphql-code-generator/commit/1f7566f0bead301b21d4f7da49a4bc6924d07ef3),
[`7a376ef`](https://github.com/dotansimha/graphql-code-generator/commit/7a376effc2dcb7ac8decaf53c2c18eb0e28e71e6)]:
- @graphql-codegen/plugin-helpers@7.4.1
- @graphql-codegen/typescript@6.1.1
- @graphql-codegen/typescript-operations@6.1.10
- @graphql-codegen/visitor-plugin-common@7.2.8

## 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
37 changes: 37 additions & 0 deletions packages/utils/plugins-helpers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# @graphql-codegen/plugin-helpers

## 7.4.1

### Patch Changes

- [#11019](https://github.com/dotansimha/graphql-code-generator/pull/11019)
[`eae0e62`](https://github.com/dotansimha/graphql-code-generator/commit/eae0e6263d658333069784969b6e13bbabccee52)
Thanks [@eddeee888](https://github.com/eddeee888)! - Fix type errors in `plugin-helpers` under
`strict: true`:
- `@graphql-codegen/plugin-helpers`: `ProfilerEvent.cat` is optional, matching the Trace Event
format and `Profiler.run`'s optional `cat`. `FederationMeta`'s reference selection sets are
typed recursively (`{ [field: string]: true | ReferenceSelectionSet }`), matching the nested
selections `@key`/`@requires`/`@provides` produce. `oldVisit`'s `visitor` param is typed as
`OldVisitor`: `enter` and `leave` maps keyed by AST node kind, whose callbacks receive the typed
node plus graphql's `key`, `parent`, `path` and `ancestors`. Federation directives missing their
`fields` argument, and operations whose root type is missing from the schema, throw a
descriptive error.
- `@graphql-codegen/typescript` and `@graphql-codegen/typescript-operations`: the
`InputValueDefinition` visitor methods take `path` and `ancestors` as required params, since the
visitor always passes them.

Generated output is unchanged.

- [#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