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/brave-modules-skip.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/calm-owls-guard.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-foxes-skip.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-pens-return.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-tags-guard.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-typed-nodes.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/typed-old-visit.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wide-config-values.md

This file was deleted.

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

## 6.2.1

### Patch Changes

- [#10991](https://github.com/dotansimha/graphql-code-generator/pull/10991)
[`dc70125`](https://github.com/dotansimha/graphql-code-generator/commit/dc7012530290b1b7fa8ad1b017b66e18a6db6078)
Thanks [@eddeee888](https://github.com/eddeee888)! - Skip documents without a `document` AST when
validating documents against the schema, instead of passing `undefined` to validation. Generated
output from the CLI is unchanged.

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

## 6.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-codegen-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/core",
"version": "6.2.0",
"version": "6.2.1",
"type": "module",
"repository": {
"type": "git",
Expand Down
15 changes: 15 additions & 0 deletions packages/plugins/other/add/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @graphql-codegen/add

## 7.1.1

### Patch Changes

- [#10986](https://github.com/dotansimha/graphql-code-generator/pull/10986)
[`9597b5b`](https://github.com/dotansimha/graphql-code-generator/commit/9597b5bc76c24b66f3e7b000e1038ad8d6ab3450)
Thanks [@eddeee888](https://github.com/eddeee888)! - The plugin output's `content` is now an empty
string (`''`) instead of `null` when `placement` is `prepend` or `append`. This matches the
`ComplexPluginOutput` type (`content: string`). Code that calls the plugin directly and checks
`content === null` should check for an empty string instead. Generated files are unchanged.

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

## 7.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/other/add/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/add",
"version": "7.1.0",
"version": "7.1.1",
"type": "module",
"description": "GraphQL Code Generator plugin for adding custom content to your output file",
"repository": {
Expand Down
13 changes: 13 additions & 0 deletions packages/plugins/other/visitor-plugin-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @graphql-codegen/visitor-plugin-common

## 7.2.6

### Patch Changes

- [#10993](https://github.com/dotansimha/graphql-code-generator/pull/10993)
[`be69e9d`](https://github.com/dotansimha/graphql-code-generator/commit/be69e9d1a9c234061754a1922b8b961ec80a2fcb)
Thanks [@eddeee888](https://github.com/eddeee888)! - Type `getConfigValue`'s `value` parameter as
`T | null | undefined`, so the result is non-nullable when a non-nullable default is given.

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

## 7.2.5

### 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.5",
"version": "7.2.6",
"type": "module",
"repository": {
"type": "git",
Expand Down
16 changes: 16 additions & 0 deletions packages/plugins/typescript/document-nodes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @graphql-codegen/typescript-document-nodes

## 6.1.1

### Patch Changes

- [#10990](https://github.com/dotansimha/graphql-code-generator/pull/10990)
[`df288d8`](https://github.com/dotansimha/graphql-code-generator/commit/df288d8e047bbb7581a9bdc34c465a2988535e80)
Thanks [@eddeee888](https://github.com/eddeee888)! - Skip documents without a `document` AST
instead of throwing from `concatAST` when the plugin is called directly with one. Generated output
from the CLI is unchanged.

- Updated dependencies
[[`1d1153b`](https://github.com/dotansimha/graphql-code-generator/commit/1d1153b3b161fa82057d586bb5fe524e1e17efe3),
[`be69e9d`](https://github.com/dotansimha/graphql-code-generator/commit/be69e9d1a9c234061754a1922b8b961ec80a2fcb)]:
- @graphql-codegen/plugin-helpers@7.4.0
- @graphql-codegen/visitor-plugin-common@7.2.6

## 6.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/typescript/document-nodes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/typescript-document-nodes",
"version": "6.1.0",
"version": "6.1.1",
"type": "module",
"description": "GraphQL Code Generator plugin for generating TypeScript modules with embedded GraphQL document nodes",
"repository": {
Expand Down
16 changes: 16 additions & 0 deletions packages/plugins/typescript/typed-document-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @graphql-codegen/typed-document-node

## 7.1.1

### Patch Changes

- [#10994](https://github.com/dotansimha/graphql-code-generator/pull/10994)
[`1d1153b`](https://github.com/dotansimha/graphql-code-generator/commit/1d1153b3b161fa82057d586bb5fe524e1e17efe3)
Thanks [@eddeee888](https://github.com/eddeee888)! - Skip documents without a `document` AST
instead of throwing from `concatAST` when the plugin is called directly with one, and don't add an
empty import when `documentNodeImport` has no module. Generated output from the CLI is unchanged.

- Updated dependencies
[[`1d1153b`](https://github.com/dotansimha/graphql-code-generator/commit/1d1153b3b161fa82057d586bb5fe524e1e17efe3),
[`be69e9d`](https://github.com/dotansimha/graphql-code-generator/commit/be69e9d1a9c234061754a1922b8b961ec80a2fcb)]:
- @graphql-codegen/plugin-helpers@7.4.0
- @graphql-codegen/visitor-plugin-common@7.2.6

## 7.1.0

### Minor Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/typed-document-node",
"version": "7.1.0",
"version": "7.1.1",
"type": "module",
"description": "GraphQL Code Generator plugin for generating ready-to-use TypedDocumentNode based on GraphQL operations",
"repository": {
Expand Down
16 changes: 16 additions & 0 deletions packages/presets/graphql-modules/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @graphql-codegen/graphql-modules-preset

## 6.1.1

### Patch Changes

- [#10993](https://github.com/dotansimha/graphql-code-generator/pull/10993)
[`be69e9d`](https://github.com/dotansimha/graphql-code-generator/commit/be69e9d1a9c234061754a1922b8b961ec80a2fcb)
Thanks [@eddeee888](https://github.com/eddeee888)! - Skip sources without a `location` when
grouping sources by module, instead of throwing from `path.normalize`, and skip sources without a
`document` AST when building each module's document. Generated output from the CLI is unchanged.

- Updated dependencies
[[`1d1153b`](https://github.com/dotansimha/graphql-code-generator/commit/1d1153b3b161fa82057d586bb5fe524e1e17efe3),
[`be69e9d`](https://github.com/dotansimha/graphql-code-generator/commit/be69e9d1a9c234061754a1922b8b961ec80a2fcb)]:
- @graphql-codegen/plugin-helpers@7.4.0
- @graphql-codegen/visitor-plugin-common@7.2.6

## 6.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/presets/graphql-modules/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/graphql-modules-preset",
"version": "6.1.0",
"version": "6.1.1",
"type": "module",
"description": "GraphQL Code Generator preset for modularized schema",
"repository": {
Expand Down
15 changes: 15 additions & 0 deletions packages/utils/graphql-codegen-testing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @graphql-codegen/testing

## 5.0.5

### Patch Changes

- [#10992](https://github.com/dotansimha/graphql-code-generator/pull/10992)
[`024fa34`](https://github.com/dotansimha/graphql-code-generator/commit/024fa34a88073d073c7fa10db0092ee5000dfdca)
Thanks [@eddeee888](https://github.com/eddeee888)! - Make `validateTs`/`compileTs` type-check
under `strict: true`: fall back to the compiler host's script target when the passed options have
no `target`, and only compute a diagnostic's line/column when it has a `start` position. Adds
`@types/common-tags` as a devDependency.

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

## 5.0.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/graphql-codegen-testing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/testing",
"version": "5.0.4",
"version": "5.0.5",
"type": "module",
"description": "GraphQL Codegen Testing Utils",
"repository": "git@github.com:dotansimha/graphql-code-generator.git",
Expand Down
18 changes: 18 additions & 0 deletions packages/utils/plugins-helpers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @graphql-codegen/plugin-helpers

## 7.4.0

### Minor Changes

- [#10994](https://github.com/dotansimha/graphql-code-generator/pull/10994)
[`1d1153b`](https://github.com/dotansimha/graphql-code-generator/commit/1d1153b3b161fa82057d586bb5fe524e1e17efe3)
Thanks [@eddeee888](https://github.com/eddeee888)! - Type `oldVisit`'s return value instead of
returning `any`. For a `DocumentNode`, the result is now `OldVisitDocumentResult`, whose
`definitions` are `unknown[]` because leave visitors can replace each definition with any value
(usually a string), and definitions without a leave visitor stay as AST nodes. When a `Document`
leave visitor returns its own value, pass its type as `oldVisit<TResult>(...)`. For other roots,
the result is `unknown` unless `TResult` is given.

Code that used the result as `any`, for example
`const definitions: string[] = result.definitions`, now needs to filter for strings, cast
(`result.definitions as string[]`), or pass `oldVisit<any>(...)`. Runtime behavior and generated
output are unchanged.

## 7.3.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.3.0",
"version": "7.4.0",
"type": "module",
"description": "GraphQL Code Generator common utils and types",
"repository": {
Expand Down