Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upcoming Release Changes #10165

Merged
merged 1 commit into from
Oct 28, 2024
Merged
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
11 changes: 0 additions & 11 deletions .changeset/fifty-dodos-marry.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/grumpy-moose-bake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shy-berries-shop.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slimy-years-behave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/twenty-spiders-sell.md

This file was deleted.

10 changes: 5 additions & 5 deletions examples/programmatic-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"dependencies": {
"@graphql-codegen/core": "4.0.2",
"@graphql-codegen/plugin-helpers": "5.0.4",
"@graphql-codegen/typed-document-node": "5.0.10",
"@graphql-codegen/typescript": "4.1.0",
"@graphql-codegen/typescript-operations": "4.3.0",
"@graphql-codegen/typescript-resolvers": "4.3.0",
"@graphql-codegen/plugin-helpers": "5.1.0",
"@graphql-codegen/typed-document-node": "5.0.11",
"@graphql-codegen/typescript": "4.1.1",
"@graphql-codegen/typescript-operations": "4.3.1",
"@graphql-codegen/typescript-resolvers": "4.4.0",
"@graphql-tools/graphql-file-loader": "8.0.1",
"@graphql-tools/load": "8.0.2",
"@graphql-tools/schema": "10.0.6",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript-resolvers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"devDependencies": {
"@graphql-codegen/cli": "5.0.3",
"@graphql-codegen/typescript": "4.1.0",
"@graphql-codegen/typescript-resolvers": "4.3.0"
"@graphql-codegen/typescript": "4.1.1",
"@graphql-codegen/typescript-resolvers": "4.4.0"
},
"dependencies": {
"graphql": "16.9.0",
Expand Down
19 changes: 19 additions & 0 deletions packages/plugins/other/visitor-plugin-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# @graphql-codegen/visitor-plugin-common

## 5.5.0

### Minor Changes

- [#9989](https://github.com/dotansimha/graphql-code-generator/pull/9989) [`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc) Thanks [@eddeee888](https://github.com/eddeee888)! - Add `generateInternalResolversIfNeeded` option

This option can be used to generate more correct types for internal resolvers. For example, only generate `__resolveReference` if the federation object has a resolvable `@key`.

In the future, this option can be extended to support other internal resolvers e.g. `__isTypeOf` is only generated for implementing types and union members.

- [#10141](https://github.com/dotansimha/graphql-code-generator/pull/10141) [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03) Thanks [@eddeee888](https://github.com/eddeee888)! - Add avoidCheckingAbstractTypesRecursively to avoid checking and generating abstract types recursively

For users that already sets recursive default mappers e.g. `Partial<{T}>` or `DeepPartial<{T}>`, having both options on will cause a nested loop which eventually crashes Codegen. In such case, setting `avoidCheckingAbstractTypesRecursively: true` allows users to continue to use recursive default mappers as before.

### Patch Changes

- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc)]:
- @graphql-codegen/plugin-helpers@5.1.0

## 5.4.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions 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": "5.4.0",
"version": "5.5.0",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -13,7 +13,7 @@
},
"dependencies": {
"@graphql-tools/optimize": "^2.0.0",
"@graphql-codegen/plugin-helpers": "^5.0.4",
"@graphql-codegen/plugin-helpers": "^5.1.0",
"@graphql-tools/relay-operation-optimizer": "^7.0.0",
"@graphql-tools/utils": "^10.0.0",
"auto-bind": "~4.0.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/plugins/typescript/document-nodes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @graphql-codegen/typescript-document-nodes

## 4.0.11

### Patch Changes

- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]:
- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0

## 4.0.10

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions 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": "4.0.10",
"version": "4.0.11",
"description": "GraphQL Code Generator plugin for generating TypeScript modules with embedded GraphQL document nodes",
"repository": {
"type": "git",
Expand All @@ -13,8 +13,8 @@
"test": "jest --no-watchman --config ../../../../jest.config.js"
},
"dependencies": {
"@graphql-codegen/plugin-helpers": "^5.0.4",
"@graphql-codegen/visitor-plugin-common": "5.4.0",
"@graphql-codegen/plugin-helpers": "^5.1.0",
"@graphql-codegen/visitor-plugin-common": "5.5.0",
"auto-bind": "~4.0.0",
"tslib": "~2.6.0"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/plugins/typescript/gql-tag-operations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @graphql-codegen/gql-tag-operations

## 4.0.11

### Patch Changes

- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]:
- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0

## 4.0.10

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/plugins/typescript/gql-tag-operations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/gql-tag-operations",
"version": "4.0.10",
"version": "4.0.11",
"description": "GraphQL Code Generator plugin for generating a typed gql tag function",
"repository": {
"type": "git",
Expand All @@ -17,8 +17,8 @@
},
"dependencies": {
"@graphql-tools/utils": "^10.0.0",
"@graphql-codegen/plugin-helpers": "^5.0.4",
"@graphql-codegen/visitor-plugin-common": "5.4.0",
"@graphql-codegen/plugin-helpers": "^5.1.0",
"@graphql-codegen/visitor-plugin-common": "5.5.0",
"auto-bind": "~4.0.0",
"tslib": "~2.6.0"
},
Expand Down
9 changes: 9 additions & 0 deletions packages/plugins/typescript/operations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @graphql-codegen/typescript-operations

## 4.3.1

### Patch Changes

- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]:
- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
- @graphql-codegen/typescript@4.1.1

## 4.3.0

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions 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": "4.3.0",
"version": "4.3.1",
"description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments",
"repository": {
"type": "git",
Expand All @@ -13,9 +13,9 @@
"test": "jest --no-watchman --config ../../../../jest.config.js"
},
"dependencies": {
"@graphql-codegen/plugin-helpers": "^5.0.4",
"@graphql-codegen/typescript": "^4.1.0",
"@graphql-codegen/visitor-plugin-common": "5.4.0",
"@graphql-codegen/plugin-helpers": "^5.1.0",
"@graphql-codegen/typescript": "^4.1.1",
"@graphql-codegen/visitor-plugin-common": "5.5.0",
"auto-bind": "~4.0.0",
"tslib": "~2.6.0"
},
Expand Down
21 changes: 21 additions & 0 deletions packages/plugins/typescript/resolvers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @graphql-codegen/typescript-resolvers

## 4.4.0

### Minor Changes

- [#9989](https://github.com/dotansimha/graphql-code-generator/pull/9989) [`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc) Thanks [@eddeee888](https://github.com/eddeee888)! - Add `generateInternalResolversIfNeeded` option

This option can be used to generate more correct types for internal resolvers. For example, only generate `__resolveReference` if the federation object has a resolvable `@key`.

In the future, this option can be extended to support other internal resolvers e.g. `__isTypeOf` is only generated for implementing types and union members.

- [#10141](https://github.com/dotansimha/graphql-code-generator/pull/10141) [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03) Thanks [@eddeee888](https://github.com/eddeee888)! - Add avoidCheckingAbstractTypesRecursively to avoid checking and generating abstract types recursively

For users that already sets recursive default mappers e.g. `Partial<{T}>` or `DeepPartial<{T}>`, having both options on will cause a nested loop which eventually crashes Codegen. In such case, setting `avoidCheckingAbstractTypesRecursively: true` allows users to continue to use recursive default mappers as before.

### Patch Changes

- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]:
- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
- @graphql-codegen/typescript@4.1.1

## 4.3.0

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/plugins/typescript/resolvers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/typescript-resolvers",
"version": "4.3.0",
"version": "4.4.0",
"description": "GraphQL Code Generator plugin for generating TypeScript types for resolvers signature",
"repository": {
"type": "git",
Expand All @@ -13,9 +13,9 @@
"test": "jest --no-watchman --config ../../../../jest.config.js"
},
"dependencies": {
"@graphql-codegen/plugin-helpers": "^5.0.4",
"@graphql-codegen/typescript": "^4.1.0",
"@graphql-codegen/visitor-plugin-common": "5.4.0",
"@graphql-codegen/plugin-helpers": "^5.1.0",
"@graphql-codegen/typescript": "^4.1.1",
"@graphql-codegen/visitor-plugin-common": "5.5.0",
"@graphql-tools/utils": "^10.0.0",
"auto-bind": "~4.0.0",
"tslib": "~2.6.0"
Expand Down
10 changes: 10 additions & 0 deletions packages/plugins/typescript/typed-document-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @graphql-codegen/typed-document-node

## 5.0.11

### Patch Changes

- [#10160](https://github.com/dotansimha/graphql-code-generator/pull/10160) [`c7af639`](https://github.com/dotansimha/graphql-code-generator/commit/c7af63964089938150402db69d49f11f93bb5175) Thanks [@jyasskin](https://github.com/jyasskin)! - Allow explicit `undefined` in additional to optional arguments

- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]:
- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0

## 5.0.10

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/plugins/typescript/typed-document-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/typed-document-node",
"version": "5.0.10",
"version": "5.0.11",
"description": "GraphQL Code Generator plugin for generating ready-to-use TypedDocumentNode based on GraphQL operations",
"repository": {
"type": "git",
Expand All @@ -17,8 +17,8 @@
},
"dependencies": {
"change-case-all": "1.0.15",
"@graphql-codegen/plugin-helpers": "^5.0.4",
"@graphql-codegen/visitor-plugin-common": "5.4.0",
"@graphql-codegen/plugin-helpers": "^5.1.0",
"@graphql-codegen/visitor-plugin-common": "5.5.0",
"auto-bind": "~4.0.0",
"tslib": "~2.6.0"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/plugins/typescript/typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @graphql-codegen/typescript

## 4.1.1

### Patch Changes

- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]:
- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0

## 4.1.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions 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": "4.1.0",
"version": "4.1.1",
"description": "GraphQL Code Generator plugin for generating TypeScript types",
"repository": {
"type": "git",
Expand All @@ -13,9 +13,9 @@
"test": "jest --no-watchman --config ../../../../jest.config.js"
},
"dependencies": {
"@graphql-codegen/plugin-helpers": "^5.0.4",
"@graphql-codegen/plugin-helpers": "^5.1.0",
"@graphql-codegen/schema-ast": "^4.0.2",
"@graphql-codegen/visitor-plugin-common": "5.4.0",
"@graphql-codegen/visitor-plugin-common": "5.5.0",
"auto-bind": "~4.0.0",
"tslib": "~2.6.0"
},
Expand Down
18 changes: 18 additions & 0 deletions packages/presets/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @graphql-codegen/client-preset

## 4.5.0

### Minor Changes

- [#10136](https://github.com/dotansimha/graphql-code-generator/pull/10136) [`3fd4486`](https://github.com/dotansimha/graphql-code-generator/commit/3fd4486a548c27099377c7bd696a22d1638227f4) Thanks [@wxt2005](https://github.com/wxt2005)! - foward skipTypeNameForRoot to client-preset

### Patch Changes

- [#10182](https://github.com/dotansimha/graphql-code-generator/pull/10182) [`effd875`](https://github.com/dotansimha/graphql-code-generator/commit/effd875b205fa9c5a99ce5e7fcdeb86cea7723fc) Thanks [@eddeee888](https://github.com/eddeee888)! - Revert slimmer client preset output

- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03), [`c7af639`](https://github.com/dotansimha/graphql-code-generator/commit/c7af63964089938150402db69d49f11f93bb5175)]:
- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0
- @graphql-codegen/typed-document-node@5.0.11
- @graphql-codegen/gql-tag-operations@4.0.11
- @graphql-codegen/typescript-operations@4.3.1
- @graphql-codegen/typescript@4.1.1

## 4.4.0

### Minor Changes
Expand Down
14 changes: 7 additions & 7 deletions 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": "4.4.0",
"version": "4.5.0",
"description": "GraphQL Code Generator preset for client.",
"repository": {
"type": "git",
Expand All @@ -20,12 +20,12 @@
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/template": "^7.20.7",
"@graphql-codegen/add": "^5.0.3",
"@graphql-codegen/typed-document-node": "^5.0.10",
"@graphql-codegen/typescript": "^4.1.0",
"@graphql-codegen/typescript-operations": "^4.3.0",
"@graphql-codegen/gql-tag-operations": "4.0.10",
"@graphql-codegen/plugin-helpers": "^5.0.4",
"@graphql-codegen/visitor-plugin-common": "^5.4.0",
"@graphql-codegen/typed-document-node": "^5.0.11",
"@graphql-codegen/typescript": "^4.1.1",
"@graphql-codegen/typescript-operations": "^4.3.1",
"@graphql-codegen/gql-tag-operations": "4.0.11",
"@graphql-codegen/plugin-helpers": "^5.1.0",
"@graphql-codegen/visitor-plugin-common": "^5.5.0",
"@graphql-typed-document-node/core": "3.2.0",
"@graphql-tools/documents": "^1.0.0",
"@graphql-tools/utils": "^10.0.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/presets/graphql-modules/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @graphql-codegen/graphql-modules-preset

## 4.0.11

### Patch Changes

- Updated dependencies [[`55a1e9e`](https://github.com/dotansimha/graphql-code-generator/commit/55a1e9e63830df17ed40602ea7e322bbf48b17bc), [`a235051`](https://github.com/dotansimha/graphql-code-generator/commit/a23505180ac2f275a55ece27162ec9bfcdc52e03)]:
- @graphql-codegen/visitor-plugin-common@5.5.0
- @graphql-codegen/plugin-helpers@5.1.0

## 4.0.10

### Patch Changes
Expand Down
Loading
Loading