Skip to content

Commit 09b6845

Browse files
chore(release): update monorepo packages versions
1 parent b7dacb2 commit 09b6845

File tree

27 files changed

+127
-74
lines changed

27 files changed

+127
-74
lines changed

.changeset/brave-papayas-shout.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

.changeset/bright-impalas-try.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/persisted-documents/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@graphql-typed-document-node/core": "3.1.2",
1111
"jest": "28.1.3",
1212
"babel-jest": "28.1.3",
13-
"@graphql-codegen/cli": "3.2.2",
13+
"@graphql-codegen/cli": "3.3.0",
1414
"@graphql-codegen/client-preset": "2.1.1",
1515
"@babel/core": "7.21.3",
1616
"@babel/preset-env": "7.20.2",

examples/programmatic-typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
},
1212
"dependencies": {
1313
"@graphql-codegen/core": "3.1.0",
14-
"@graphql-codegen/plugin-helpers": "4.1.0",
14+
"@graphql-codegen/plugin-helpers": "4.2.0",
1515
"@graphql-codegen/typed-document-node": "3.0.2",
1616
"@graphql-codegen/typescript": "3.0.2",
1717
"@graphql-codegen/typescript-operations": "3.0.2",
18-
"@graphql-codegen/typescript-resolvers": "3.1.1",
18+
"@graphql-codegen/typescript-resolvers": "3.1.2",
1919
"@graphql-tools/graphql-file-loader": "7.5.16",
2020
"@graphql-tools/load": "7.8.13",
2121
"@graphql-tools/schema": "9.0.17",

examples/react/apollo-client-swc-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {
1111
"@graphql-codegen/client-preset-swc-plugin": "0.1.1",
1212
"@graphql-codegen/client-preset": "^2.1.1",
13-
"@graphql-codegen/cli": "^3.2.2",
13+
"@graphql-codegen/cli": "^3.3.0",
1414
"@vitejs/plugin-react-swc": "^3.2.0",
1515
"@types/react": "18.0.28",
1616
"@types/react-dom": "18.0.11",

examples/react/apollo-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"react-dom": "^18.2.0"
1010
},
1111
"devDependencies": {
12-
"@graphql-codegen/cli": "^3.2.2",
12+
"@graphql-codegen/cli": "^3.3.0",
1313
"@graphql-codegen/client-preset": "^2.1.1",
1414
"@vitejs/plugin-react": "^3.1.0",
1515
"@types/jest": "^27.5.2",

examples/react/http-executor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"react-dom": "^18.2.0"
99
},
1010
"devDependencies": {
11-
"@graphql-codegen/cli": "^3.2.2",
11+
"@graphql-codegen/cli": "^3.3.0",
1212
"@graphql-codegen/client-preset": "^2.1.1",
1313
"@vitejs/plugin-react": "^3.1.0",
1414
"@types/jest": "^27.5.2",

examples/react/nextjs-swr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"swr": "^1.3.0"
2020
},
2121
"devDependencies": {
22-
"@graphql-codegen/cli": "^3.2.2",
22+
"@graphql-codegen/cli": "^3.3.0",
2323
"@graphql-codegen/client-preset": "^2.1.1",
2424
"@graphql-codegen/schema-ast": "3.0.1",
2525
"@graphql-codegen/client-preset-swc-plugin": "0.1.1",

examples/react/tanstack-react-query/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"react-dom": "^18.2.0"
1010
},
1111
"devDependencies": {
12-
"@graphql-codegen/cli": "^3.2.2",
12+
"@graphql-codegen/cli": "^3.3.0",
1313
"@graphql-codegen/client-preset": "^2.1.1",
1414
"@vitejs/plugin-react": "^3.1.0",
1515
"@types/jest": "^27.5.2",

examples/react/urql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {
1111
"@types/react": "^18.0.17",
1212
"@types/react-dom": "^18.0.10",
13-
"@graphql-codegen/cli": "^3.2.2",
13+
"@graphql-codegen/cli": "^3.3.0",
1414
"@graphql-codegen/client-preset": "^2.1.1",
1515
"@vitejs/plugin-react": "^3.1.0",
1616
"typescript": "4.9.5",

examples/typescript-esm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"devDependencies": {
6-
"@graphql-codegen/cli": "3.2.2",
6+
"@graphql-codegen/cli": "3.3.0",
77
"@graphql-codegen/client-preset": "2.1.1"
88
},
99
"dependencies": {

examples/typescript-graphql-request/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"private": true,
55
"devDependencies": {
6-
"@graphql-codegen/cli": "3.2.2",
6+
"@graphql-codegen/cli": "3.3.0",
77
"@graphql-codegen/gql-tag-operations-preset": "2.1.0",
88
"babel-jest": "28.1.3",
99
"jest": "28.1.3"

examples/typescript-resolvers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.0.0",
44
"private": true,
55
"devDependencies": {
6-
"@graphql-codegen/cli": "3.2.2",
6+
"@graphql-codegen/cli": "3.3.0",
77
"@graphql-codegen/typescript": "3.0.2",
8-
"@graphql-codegen/typescript-resolvers": "3.1.1"
8+
"@graphql-codegen/typescript-resolvers": "3.1.2"
99
},
1010
"dependencies": {
1111
"graphql": "16.6.0",

examples/vite/vite-react-cts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"vite": "^4.1.0"
2222
},
2323
"devDependencies": {
24-
"@graphql-codegen/cli": "3.2.2",
24+
"@graphql-codegen/cli": "3.3.0",
2525
"@graphql-codegen/client-preset": "2.1.1",
2626
"@types/react": "^18.0.27",
2727
"@types/react-dom": "^18.0.10",

examples/vite/vite-react-mts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"vite": "^4.1.0"
2222
},
2323
"devDependencies": {
24-
"@graphql-codegen/cli": "3.2.2",
24+
"@graphql-codegen/cli": "3.3.0",
2525
"@graphql-codegen/client-preset": "2.1.1",
2626
"@types/react": "^18.0.27",
2727
"@types/react-dom": "^18.0.10",

examples/vite/vite-react-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"vite": "^4.1.0"
2222
},
2323
"devDependencies": {
24-
"@graphql-codegen/cli": "3.2.2",
24+
"@graphql-codegen/cli": "3.3.0",
2525
"@graphql-codegen/client-preset": "2.1.1",
2626
"@types/react": "^18.0.27",
2727
"@types/react-dom": "^18.0.10",

examples/vue/apollo-composable/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"vue": "^3.2.37"
1818
},
1919
"devDependencies": {
20-
"@graphql-codegen/cli": "^3.2.2",
20+
"@graphql-codegen/cli": "^3.3.0",
2121
"@graphql-codegen/client-preset": "^2.1.1",
2222
"@vitejs/plugin-vue": "^4.0.0",
2323
"typescript": "^4.9.3",

examples/vue/urql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"vue": "^3.2.45"
1717
},
1818
"devDependencies": {
19-
"@graphql-codegen/cli": "^3.2.2",
19+
"@graphql-codegen/cli": "^3.3.0",
2020
"@graphql-codegen/client-preset": "^2.1.1",
2121
"@vitejs/plugin-vue": "^4.0.0",
2222
"typescript": "^4.9.3",

examples/vue/villus/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"vue": "^3.2.37"
1717
},
1818
"devDependencies": {
19-
"@graphql-codegen/cli": "^3.2.2",
19+
"@graphql-codegen/cli": "^3.3.0",
2020
"@graphql-codegen/client-preset": "^2.1.1",
2121
"@vitejs/plugin-vue": "^4.0.0",
2222
"typescript": "^4.9.3",

examples/yoga-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@graphql-typed-document-node/core": "3.1.2",
1010
"jest": "28.1.3",
1111
"babel-jest": "28.1.3",
12-
"@graphql-codegen/cli": "3.2.2",
12+
"@graphql-codegen/cli": "3.3.0",
1313
"@graphql-codegen/client-preset": "2.1.1",
1414
"@babel/core": "7.21.3",
1515
"@babel/preset-env": "7.20.2",

packages/graphql-codegen-cli/CHANGELOG.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,51 @@
11
# @graphql-codegen/cli
22

3+
## 3.3.0
4+
5+
### Minor Changes
6+
7+
- [#9151](https://github.com/dotansimha/graphql-code-generator/pull/9151) [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29) Thanks [@'./user/schema.mappers#UserMapper',](https://github.com/'./user/schema.mappers#UserMapper',)! - Add `watchPattern` config option for `generates` sections.
8+
9+
By default, `watch` mode automatically watches all GraphQL schema and document files. This means when a change is detected, Codegen CLI is run.
10+
11+
A user may want to run Codegen CLI when non-schema and non-document files are changed. Each `generates` section now has a `watchPattern` option to allow more file patterns to be added to the list of patterns to watch.
12+
13+
In the example below, mappers are exported from `schema.mappers.ts` files. We want to re-run Codegen if the content of `*.mappers.ts` files change because they change the generated types file. To solve this, we can add mapper file patterns to watch using the glob pattern used for schema and document files.
14+
15+
```ts
16+
// codegen.ts
17+
const config: CodegenConfig = {
18+
schema: 'src/schema/**/*.graphql',
19+
generates: {
20+
'src/schema/types.ts': {
21+
plugins: ['typescript', 'typescript-resolvers'],
22+
config: {
23+
mappers: {
24+
25+
Book: './book/schema.mappers#BookMapper',
26+
},
27+
}
28+
watchPattern: 'src/schema/**/*.mappers.ts', // Watches mapper files in `watch` mode. Use an array for multiple patterns e.g. `['src/*.pattern1.ts','src/*.pattern2.ts']`
29+
},
30+
},
31+
};
32+
```
33+
34+
Then, run Codegen CLI in `watch` mode:
35+
36+
```shell
37+
yarn graphql-codegen --watch
38+
```
39+
40+
Now, updating `*.mappers.ts` files re-runs Codegen! 🎉
41+
42+
Note: `watchPattern` is only used in `watch` mode i.e. running CLI with `--watch` flag.
43+
44+
### Patch Changes
45+
46+
- Updated dependencies [[`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087)]:
47+
- @graphql-codegen/plugin-helpers@4.2.0
48+
349
## 3.2.2
450

551
### Patch Changes

packages/graphql-codegen-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-codegen/cli",
3-
"version": "3.2.2",
3+
"version": "3.3.0",
44
"license": "MIT",
55
"bin": {
66
"gql-gen": "dist/cjs/bin.js",
@@ -44,7 +44,7 @@
4444
"@babel/template": "^7.18.10",
4545
"@babel/types": "^7.18.13",
4646
"@graphql-codegen/core": "^3.1.0",
47-
"@graphql-codegen/plugin-helpers": "^4.1.0",
47+
"@graphql-codegen/plugin-helpers": "^4.2.0",
4848
"@graphql-tools/apollo-engine-loader": "^7.3.6",
4949
"@graphql-tools/code-file-loader": "^7.3.17",
5050
"@graphql-tools/git-loader": "^7.2.13",

packages/plugins/typescript/resolvers/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @graphql-codegen/typescript-resolvers
22

3+
## 3.1.2
4+
5+
### Patch Changes
6+
7+
- [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087) Thanks [@saihaj](https://github.com/saihaj)! - Resolve issue with nesting fields in `@provides` directive being prevented
8+
9+
- Updated dependencies [[`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29), [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087)]:
10+
- @graphql-codegen/plugin-helpers@4.2.0
11+
312
## 3.1.1
413

514
### Patch Changes

packages/plugins/typescript/resolvers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-codegen/typescript-resolvers",
3-
"version": "3.1.1",
3+
"version": "3.1.2",
44
"description": "GraphQL Code Generator plugin for generating TypeScript types for resolvers signature",
55
"repository": {
66
"type": "git",
@@ -13,7 +13,7 @@
1313
"test": "jest --no-watchman --config ../../../../jest.config.js"
1414
},
1515
"dependencies": {
16-
"@graphql-codegen/plugin-helpers": "^4.1.0",
16+
"@graphql-codegen/plugin-helpers": "^4.2.0",
1717
"@graphql-codegen/typescript": "^3.0.2",
1818
"@graphql-codegen/visitor-plugin-common": "3.0.2",
1919
"@graphql-tools/utils": "^9.0.0",

packages/utils/plugins-helpers/CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
11
# @graphql-codegen/plugin-helpers
22

3+
## 4.2.0
4+
5+
### Minor Changes
6+
7+
- [#9151](https://github.com/dotansimha/graphql-code-generator/pull/9151) [`b7dacb21f`](https://github.com/dotansimha/graphql-code-generator/commit/b7dacb21fb0ed1173d1e45120dc072e29231ed29) Thanks [@'./user/schema.mappers#UserMapper',](https://github.com/'./user/schema.mappers#UserMapper',)! - Add `watchPattern` config option for `generates` sections.
8+
9+
By default, `watch` mode automatically watches all GraphQL schema and document files. This means when a change is detected, Codegen CLI is run.
10+
11+
A user may want to run Codegen CLI when non-schema and non-document files are changed. Each `generates` section now has a `watchPattern` option to allow more file patterns to be added to the list of patterns to watch.
12+
13+
In the example below, mappers are exported from `schema.mappers.ts` files. We want to re-run Codegen if the content of `*.mappers.ts` files change because they change the generated types file. To solve this, we can add mapper file patterns to watch using the glob pattern used for schema and document files.
14+
15+
```ts
16+
// codegen.ts
17+
const config: CodegenConfig = {
18+
schema: 'src/schema/**/*.graphql',
19+
generates: {
20+
'src/schema/types.ts': {
21+
plugins: ['typescript', 'typescript-resolvers'],
22+
config: {
23+
mappers: {
24+
25+
Book: './book/schema.mappers#BookMapper',
26+
},
27+
}
28+
watchPattern: 'src/schema/**/*.mappers.ts', // Watches mapper files in `watch` mode. Use an array for multiple patterns e.g. `['src/*.pattern1.ts','src/*.pattern2.ts']`
29+
},
30+
},
31+
};
32+
```
33+
34+
Then, run Codegen CLI in `watch` mode:
35+
36+
```shell
37+
yarn graphql-codegen --watch
38+
```
39+
40+
Now, updating `*.mappers.ts` files re-runs Codegen! 🎉
41+
42+
Note: `watchPattern` is only used in `watch` mode i.e. running CLI with `--watch` flag.
43+
44+
### Patch Changes
45+
46+
- [`f104619ac`](https://github.com/dotansimha/graphql-code-generator/commit/f104619acd27c9d62a06bc577737500880731087) Thanks [@saihaj](https://github.com/saihaj)! - Resolve issue with nesting fields in `@provides` directive being prevented
47+
348
## 4.1.0
449

550
### Minor Changes

packages/utils/plugins-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-codegen/plugin-helpers",
3-
"version": "4.1.0",
3+
"version": "4.2.0",
44
"description": "GraphQL Code Generator common utils and types",
55
"repository": {
66
"type": "git",

website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@graphql-codegen/add": "4.0.1",
2525
"@graphql-codegen/c-sharp": "4.3.1",
2626
"@graphql-codegen/c-sharp-operations": "2.3.1",
27-
"@graphql-codegen/cli": "3.2.2",
27+
"@graphql-codegen/cli": "3.3.0",
2828
"@graphql-codegen/core": "3.1.0",
2929
"@graphql-codegen/flow": "2.3.6",
3030
"@graphql-codegen/flow-operations": "2.3.6",
@@ -55,7 +55,7 @@
5555
"@graphql-codegen/typescript-operations": "3.0.2",
5656
"@graphql-codegen/typescript-react-apollo": "3.3.7",
5757
"@graphql-codegen/typescript-react-query": "4.1.0",
58-
"@graphql-codegen/typescript-resolvers": "3.1.1",
58+
"@graphql-codegen/typescript-resolvers": "3.1.2",
5959
"@graphql-codegen/typescript-rtk-query": "2.4.1",
6060
"@graphql-codegen/typescript-stencil-apollo": "2.3.6",
6161
"@graphql-codegen/typescript-type-graphql": "2.3.6",

0 commit comments

Comments
 (0)