Skip to content

Commit

Permalink
Upcoming Release Changes (#9531)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
theguild-bot and github-actions[bot] authored Jul 25, 2023
1 parent 1b4a796 commit 5829dd9
Show file tree
Hide file tree
Showing 31 changed files with 102 additions and 92 deletions.
5 changes: 0 additions & 5 deletions .changeset/five-spies-impress.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/large-wombats-beam.md

This file was deleted.

32 changes: 0 additions & 32 deletions .changeset/lucky-boats-chew.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-jokes-doubt.md

This file was deleted.

4 changes: 2 additions & 2 deletions examples/persisted-documents-string-mode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"@graphql-typed-document-node/core": "3.2.0",
"jest": "28.1.3",
"babel-jest": "28.1.3",
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/client-preset": "4.0.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@babel/core": "7.22.8",
"@babel/preset-env": "7.22.7",
"@babel/preset-typescript": "7.22.5"
Expand Down
4 changes: 2 additions & 2 deletions examples/persisted-documents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"@graphql-typed-document-node/core": "3.2.0",
"jest": "28.1.3",
"babel-jest": "28.1.3",
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/client-preset": "4.0.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@babel/core": "7.22.8",
"@babel/preset-env": "7.22.7",
"@babel/preset-typescript": "7.22.5"
Expand Down
2 changes: 1 addition & 1 deletion examples/programmatic-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@graphql-codegen/core": "4.0.0",
"@graphql-codegen/plugin-helpers": "5.0.0",
"@graphql-codegen/plugin-helpers": "5.0.1",
"@graphql-codegen/typed-document-node": "5.0.1",
"@graphql-codegen/typescript": "4.0.1",
"@graphql-codegen/typescript-operations": "4.0.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/apollo-client-defer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"graphql-yoga": "3.9.1"
},
"devDependencies": {
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@types/jest": "^27.5.2",
"@types/node": "^18.11.18",
"@types/react": "^18.0.15",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/apollo-client-swc-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"devDependencies": {
"@graphql-codegen/client-preset-swc-plugin": "0.2.0",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.1.0",
"@graphql-codegen/cli": "^5.0.0",
"@vitejs/plugin-react-swc": "^3.3.0",
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/apollo-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@vitejs/plugin-react": "^3.1.0",
"@types/jest": "^27.5.2",
"@types/node": "^18.11.18",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/http-executor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@vitejs/plugin-react": "^3.1.0",
"@types/jest": "^27.5.2",
"@types/node": "^18.11.18",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/nextjs-swr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"swr": "^1.3.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@graphql-codegen/schema-ast": "4.0.0",
"@graphql-codegen/client-preset-swc-plugin": "0.2.0",
"@types/node": "^18.11.18",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/tanstack-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@vitejs/plugin-react": "^3.1.0",
"@types/jest": "^27.5.2",
"@types/node": "^18.11.18",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"devDependencies": {
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.10",
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@vitejs/plugin-react": "^3.1.0",
"typescript": "5.0.4",
"serve": "14.2.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/client-preset": "4.0.1"
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0"
},
"dependencies": {
"@graphql-typed-document-node/core": "3.2.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript-graphql-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/client-preset": "4.0.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"babel-jest": "28.1.3",
"jest": "28.1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript-resolvers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/typescript": "4.0.1",
"@graphql-codegen/typescript-resolvers": "4.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/vite/vite-react-cts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"vite": "^4.1.0"
},
"devDependencies": {
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/client-preset": "4.0.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"cypress": "12.12.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/vite/vite-react-mts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"vite": "^4.1.0"
},
"devDependencies": {
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/client-preset": "4.0.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"cypress": "12.12.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/vite/vite-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"vite": "^4.1.0"
},
"devDependencies": {
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/client-preset": "4.0.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"cypress": "12.12.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/vue/apollo-composable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"vue": "^3.2.37"
},
"devDependencies": {
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@vitejs/plugin-vue": "^4.0.0",
"typescript": "^5.0.0",
"vite": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/vue/urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"vue": "^3.2.45"
},
"devDependencies": {
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@vitejs/plugin-vue": "^4.0.0",
"typescript": "^5.0.0",
"vite": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/vue/villus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"vue": "^3.2.37"
},
"devDependencies": {
"@graphql-codegen/cli": "^4.0.1",
"@graphql-codegen/client-preset": "^4.0.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/client-preset": "^4.1.0",
"@vitejs/plugin-vue": "^4.0.0",
"typescript": "^5.0.0",
"vite": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/yoga-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"@graphql-typed-document-node/core": "3.2.0",
"jest": "28.1.3",
"babel-jest": "28.1.3",
"@graphql-codegen/cli": "4.0.1",
"@graphql-codegen/client-preset": "4.0.1",
"@graphql-codegen/cli": "5.0.0",
"@graphql-codegen/client-preset": "4.1.0",
"@babel/core": "7.22.8",
"@babel/preset-env": "7.22.7",
"@babel/preset-typescript": "7.22.5"
Expand Down
13 changes: 13 additions & 0 deletions packages/graphql-codegen-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @graphql-codegen/cli

## 5.0.0

### Major Changes

- [#9506](https://github.com/dotansimha/graphql-code-generator/pull/9506) [`dd9c7e148`](https://github.com/dotansimha/graphql-code-generator/commit/dd9c7e14872f48592e530ff0d646449a5cb722b4) Thanks [@valkum](https://github.com/valkum)! - Make @parcel/watcher optional

### Patch Changes

- [#9513](https://github.com/dotansimha/graphql-code-generator/pull/9513) [`fdd19d24d`](https://github.com/dotansimha/graphql-code-generator/commit/fdd19d24df21d3257f3e969b79856d18b6f73123) Thanks [@cichelero](https://github.com/cichelero)! - Update yaml dependency to 2.3.1

- Updated dependencies [[`bb1e0e96e`](https://github.com/dotansimha/graphql-code-generator/commit/bb1e0e96ed9d519684630cd7ea53869b48b4632e)]:
- @graphql-codegen/plugin-helpers@5.0.1

## 4.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql-codegen-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-codegen/cli",
"version": "4.0.1",
"version": "5.0.0",
"license": "MIT",
"bin": {
"gql-gen": "dist/cjs/bin.js",
Expand Down Expand Up @@ -44,7 +44,7 @@
"@babel/template": "^7.18.10",
"@babel/types": "^7.18.13",
"@graphql-codegen/core": "^4.0.0",
"@graphql-codegen/plugin-helpers": "^5.0.0",
"@graphql-codegen/plugin-helpers": "^5.0.1",
"@graphql-tools/apollo-engine-loader": "^8.0.0",
"@graphql-tools/code-file-loader": "^8.0.0",
"@graphql-tools/git-loader": "^8.0.0",
Expand Down
38 changes: 38 additions & 0 deletions packages/presets/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# @graphql-codegen/client-preset

## 4.1.0

### Minor Changes

- [#9562](https://github.com/dotansimha/graphql-code-generator/pull/9562) [`5beee9794`](https://github.com/dotansimha/graphql-code-generator/commit/5beee9794de208fed17e516a259535f56d626c9d) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add the `addTypenameSelectionDocumentTransform` for automatically adding `__typename` selections to all objct type selection sets.

This is useful for GraphQL Clients such as Apollo Client or urql that need typename information for their cache to function.

**Example Usage**

```
import { addTypenameSelectionDocumentTransform } from '@graphql-codegen/client-preset';
import { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
schema: "YOUR_GRAPHQL_ENDPOINT",
documents: ["./**/*.{ts,tsx}"],
ignoreNoDocuments: true,
generates: {
"./gql/": {
preset: "client",
plugins: [],
presetConfig: {
persistedDocuments: true,
},
documentTransforms: [addTypenameSelectionDocumentTransform],
},
},
};
export default config;
```

### Patch Changes

- Updated dependencies [[`bb1e0e96e`](https://github.com/dotansimha/graphql-code-generator/commit/bb1e0e96ed9d519684630cd7ea53869b48b4632e)]:
- @graphql-codegen/plugin-helpers@5.0.1

## 4.0.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 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.0.1",
"version": "4.1.0",
"description": "GraphQL Code Generator preset for client.",
"repository": {
"type": "git",
Expand All @@ -24,7 +24,7 @@
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-operations": "^4.0.1",
"@graphql-codegen/gql-tag-operations": "4.0.1",
"@graphql-codegen/plugin-helpers": "^5.0.0",
"@graphql-codegen/plugin-helpers": "^5.0.1",
"@graphql-codegen/visitor-plugin-common": "^4.0.1",
"@graphql-typed-document-node/core": "3.2.0",
"@graphql-tools/documents": "^1.0.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/utils/plugins-helpers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @graphql-codegen/plugin-helpers

## 5.0.1

### Patch Changes

- [#9523](https://github.com/dotansimha/graphql-code-generator/pull/9523) [`bb1e0e96e`](https://github.com/dotansimha/graphql-code-generator/commit/bb1e0e96ed9d519684630cd7ea53869b48b4632e) Thanks [@tnyo43](https://github.com/tnyo43)! - add noSilentErrors option to the config type

## 5.0.0

### Major 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": "5.0.0",
"version": "5.0.1",
"description": "GraphQL Code Generator common utils and types",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 5829dd9

Please sign in to comment.