Skip to content

Commit

Permalink
chore(release): update monorepo packages versions (#10076)
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 Oct 7, 2024
1 parent d3dc84d commit effc3bc
Show file tree
Hide file tree
Showing 49 changed files with 611 additions and 528 deletions.
6 changes: 0 additions & 6 deletions .changeset/@graphql-codegen_cli-10069-dependencies.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/@graphql-codegen_testing-10070-dependencies.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cold-pants-carry.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/pretty-berries-matter.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/short-mirrors-fail.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-parrots-brake.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/persisted-documents-string-mode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@graphql-typed-document-node/core": "3.2.0",
"jest": "28.1.3",
"babel-jest": "29.7.0",
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/cli": "5.0.3",
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.3",
"@babel/preset-typescript": "7.24.7"
Expand Down
2 changes: 1 addition & 1 deletion examples/persisted-documents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@graphql-typed-document-node/core": "3.2.0",
"jest": "28.1.3",
"babel-jest": "29.7.0",
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/cli": "5.0.3",
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.3",
"@babel/preset-typescript": "7.24.7"
Expand Down
8 changes: 4 additions & 4 deletions examples/programmatic-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"dependencies": {
"@graphql-codegen/core": "4.0.2",
"@graphql-codegen/plugin-helpers": "5.0.4",
"@graphql-codegen/typed-document-node": "5.0.9",
"@graphql-codegen/typescript": "4.0.9",
"@graphql-codegen/typescript-operations": "4.2.3",
"@graphql-codegen/typescript-resolvers": "4.2.1",
"@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-tools/graphql-file-loader": "8.0.1",
"@graphql-tools/load": "8.0.2",
"@graphql-tools/schema": "10.0.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/apollo-client-defer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"graphql-yoga": "5.7.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@types/jest": "^27.5.2",
"@types/node": "^20.0.0",
"@types/react": "^18.0.15",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/apollo-client-swc-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"devDependencies": {
"@graphql-codegen/client-preset-swc-plugin": "0.2.0",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@vitejs/plugin-react-swc": "^3.3.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/apollo-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@vitejs/plugin-react": "^4.0.0",
"@types/jest": "^27.5.2",
"@types/node": "^20.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/http-executor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@vitejs/plugin-react": "^4.0.0",
"@types/jest": "^27.5.2",
"@types/node": "^20.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/nextjs-swr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"swr": "^2.0.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/schema-ast": "4.1.0",
"@graphql-codegen/client-preset-swc-plugin": "0.2.0",
"@types/node": "^20.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/tanstack-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@vitejs/plugin-react": "^4.0.0",
"@types/jest": "^27.5.2",
"@types/node": "^20.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react/urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.10",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@vitejs/plugin-react": "^4.0.0",
"typescript": "5.5.4",
"serve": "14.2.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript-esm/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": "5.0.2"
"@graphql-codegen/cli": "5.0.3"
},
"dependencies": {
"@graphql-typed-document-node/core": "3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript-graphql-request/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": "5.0.2",
"@graphql-codegen/cli": "5.0.3",
"babel-jest": "29.7.0",
"jest": "28.1.3"
},
Expand Down
6 changes: 3 additions & 3 deletions examples/typescript-resolvers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0",
"private": true,
"devDependencies": {
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/typescript": "4.0.9",
"@graphql-codegen/typescript-resolvers": "4.2.1"
"@graphql-codegen/cli": "5.0.3",
"@graphql-codegen/typescript": "4.1.0",
"@graphql-codegen/typescript-resolvers": "4.3.0"
},
"dependencies": {
"graphql": "16.9.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/vite/vite-react-cts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"vite": "^5.0.0"
},
"devDependencies": {
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/cli": "5.0.3",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"cypress": "13.13.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/vite/vite-react-mts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"vite": "^5.0.0"
},
"devDependencies": {
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/cli": "5.0.3",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"cypress": "13.13.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/vite/vite-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"vite": "^5.0.0"
},
"devDependencies": {
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/cli": "5.0.3",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"cypress": "13.13.3",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue/apollo-composable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"vue": "^3.2.37"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@vitejs/plugin-vue": "^5.0.0",
"typescript": "^5.0.0",
"vite": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue/urql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"vue": "^3.2.45"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@vitejs/plugin-vue": "^5.0.0",
"typescript": "^5.0.0",
"vite": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/vue/villus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"vue": "^3.2.37"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@vitejs/plugin-vue": "^5.0.0",
"typescript": "^5.0.0",
"vite": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/yoga-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@graphql-typed-document-node/core": "3.2.0",
"jest": "28.1.3",
"babel-jest": "29.7.0",
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/cli": "5.0.3",
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.3",
"@babel/preset-typescript": "7.24.7"
Expand Down
80 changes: 47 additions & 33 deletions packages/graphql-codegen-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @graphql-codegen/cli

## 5.0.3

### Patch Changes

- [#10069](https://github.com/dotansimha/graphql-code-generator/pull/10069) [`8bb34e7`](https://github.com/dotansimha/graphql-code-generator/commit/8bb34e7cd23a8891313828291c9f2edd6a3b67bc) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:

- Updated dependency [`@whatwg-node/fetch@^0.9.20` ↗︎](https://www.npmjs.com/package/@whatwg-node/fetch/v/0.9.20) (from `^0.8.0`, in `dependencies`)
- Updated dependency [`graphql-config@^5.1.1` ↗︎](https://www.npmjs.com/package/graphql-config/v/5.1.1) (from `^5.0.2`, in `dependencies`)

- [`e0092b5`](https://github.com/dotansimha/graphql-code-generator/commit/e0092b548f51c95be19c232515cf9a72873e7b83) Thanks [@ardatan](https://github.com/ardatan)! - Bump whatwg-node and graphql-config

- Updated dependencies [[`8471a18`](https://github.com/dotansimha/graphql-code-generator/commit/8471a180cd61dc03dedace87876c5973b09b35f8), [`67e7556`](https://github.com/dotansimha/graphql-code-generator/commit/67e75561a3e862f26cfbb40e8ec5a08f821f9ddf)]:
- @graphql-codegen/client-preset@4.4.0

## 5.0.2

### Patch Changes
Expand Down Expand Up @@ -192,7 +206,7 @@
To use this feature, you can write `documentTransforms` as follows:

```ts
import type { CodegenConfig } from '@graphql-codegen/cli';
import type { CodegenConfig } from '@graphql-codegen/cli'

const config: CodegenConfig = {
schema: 'https://localhost:4000/graphql',
Expand All @@ -204,21 +218,21 @@
{
transform: ({ documents }) => {
// Make some changes to the documents
return documents;
},
},
],
},
},
};
export default config;
return documents
}
}
]
}
}
}
export default config
```

For instance, to remove a `@localOnlyDirective` directive from `documents`, you can write the following code:

```js
import type { CodegenConfig } from '@graphql-codegen/cli';
import { visit } from 'graphql';
import type { CodegenConfig } from '@graphql-codegen/cli'
import { visit } from 'graphql'

const config: CodegenConfig = {
schema: 'https://localhost:4000/graphql',
Expand All @@ -233,19 +247,19 @@
documentFile.document = visit(documentFile.document, {
Directive: {
leave(node) {
if (node.name.value === 'localOnlyDirective') return null;
},
},
});
return documentFile;
});
},
},
],
},
},
};
export default config;
if (node.name.value === 'localOnlyDirective') return null
}
}
})
return documentFile
})
}
}
]
}
}
}
export default config
```

DocumentTransform can also be specified by file name. You can create a custom file for a specific transformation and pass it to `documentTransforms`.
Expand All @@ -256,27 +270,27 @@
module.exports = {
transform: ({ documents }) => {
// Make some changes to the documents
return documents;
},
};
return documents
}
}
```

Then, you can specify the file name as follows:

```ts
import type { CodegenConfig } from '@graphql-codegen/cli';
import type { CodegenConfig } from '@graphql-codegen/cli'

const config: CodegenConfig = {
schema: 'https://localhost:4000/graphql',
documents: ['src/**/*.tsx'],
generates: {
'./src/gql/': {
preset: 'client',
documentTransforms: ['./my-document-transform.js'],
},
},
};
export default config;
documentTransforms: ['./my-document-transform.js']
}
}
}
export default config
```

### 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": "5.0.2",
"version": "5.0.3",
"license": "MIT",
"bin": {
"gql-gen": "dist/cjs/bin.js",
Expand Down Expand Up @@ -43,7 +43,7 @@
"@babel/generator": "^7.18.13",
"@babel/template": "^7.18.10",
"@babel/types": "^7.18.13",
"@graphql-codegen/client-preset": "^4.2.2",
"@graphql-codegen/client-preset": "^4.4.0",
"@graphql-codegen/core": "^4.0.2",
"@graphql-codegen/plugin-helpers": "^5.0.3",
"@graphql-tools/apollo-engine-loader": "^8.0.0",
Expand Down
Loading

0 comments on commit effc3bc

Please sign in to comment.