Skip to content

Commit c94a092

Browse files
committed
Merge branch 'v4-9' into v4-10
2 parents 537a8f9 + 5c1eec5 commit c94a092

File tree

35 files changed

+226
-127
lines changed

35 files changed

+226
-127
lines changed

.github/workflows/pr.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ jobs:
3636
name: Build
3737
runs-on: ubuntu-latest
3838
needs: [install]
39-
4039
steps:
4140
- uses: actions/checkout@v4
4241
- uses: actions/setup-node@v4
43-
4442
- id: cache-modules
4543
uses: actions/cache@v4
4644
with:
@@ -109,18 +107,15 @@ jobs:
109107
name: Vitest Unit Tests
110108
runs-on: ubuntu-latest
111109
needs: [build]
112-
113110
steps:
114111
- uses: actions/checkout@v4
115112
- uses: actions/setup-node@v4
116-
117113
- id: cache-modules
118114
uses: actions/cache@v4
119115
with:
120116
path: |
121117
**/node_modules
122118
key: modules-${{ github.sha }}
123-
124119
- uses: actions/cache@v4
125120
with:
126121
key: build-${{ github.sha }}
@@ -131,11 +126,9 @@ jobs:
131126
name: ESLint
132127
runs-on: ubuntu-latest
133128
needs: [build]
134-
135129
steps:
136130
- uses: actions/checkout@v4
137131
- uses: actions/setup-node@v4
138-
139132
- id: cache-modules
140133
uses: actions/cache@v4
141134
with:
@@ -148,11 +141,29 @@ jobs:
148141
path: ${{ env.BUILD-CACHE-LIST }}
149142
- run: yarn eslint
150143

144+
types-check:
145+
name: Types Check
146+
runs-on: ubuntu-latest
147+
needs: [build]
148+
steps:
149+
- uses: actions/checkout@v4
150+
- uses: actions/setup-node@v4
151+
- id: cache-modules
152+
uses: actions/cache@v4
153+
with:
154+
path: |
155+
**/node_modules
156+
key: modules-${{ github.sha }}
157+
- uses: actions/cache@v4
158+
with:
159+
key: build-${{ github.sha }}
160+
path: ${{ env.BUILD-CACHE-LIST }}
161+
- run: yarn types:check
162+
151163
e2e:
152164
name: Cypress
153165
runs-on: ubuntu-latest
154166
needs: [build]
155-
156167
steps:
157168
- uses: actions/checkout@v4
158169
- id: cache-modules

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"coverage.xml",
1212
"jacoco.xml",
1313
"coverage.cobertura.xml"
14-
]
14+
],
15+
"typescript.tsdk": "node_modules/typescript/lib"
1516
}

examples/graphiql-webpack/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"start": "NODE_ENV=development webpack-cli serve"
1010
},
1111
"dependencies": {
12-
"@graphiql/plugin-code-exporter": "^4.0.4",
13-
"@graphiql/plugin-explorer": "^4.0.4",
12+
"@graphiql/plugin-code-exporter": "^4.0.5",
13+
"@graphiql/plugin-explorer": "^4.0.5",
1414
"@graphiql/toolkit": "^0.11.2",
15-
"@graphiql/react": "^0.33.0",
16-
"graphiql": "^4.0.5",
15+
"@graphiql/react": "^0.34.0",
16+
"graphiql": "^4.1.0",
1717
"graphql": "^16.9.0",
1818
"graphql-ws": "^5.5.5",
1919
"react": "^19.1.0",

packages/cm6-graphql/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.2.1",
44
"description": "GraphQL language support for CodeMirror 6",
55
"scripts": {
6+
"types:check": "tsc --noEmit",
67
"build": "cm-buildhelper src/index.ts",
78
"prepare": "yarn build",
89
"test": "vitest run"

packages/codemirror-graphql/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"!jest.config.js"
3636
],
3737
"scripts": {
38+
"types:check": "tsc --noEmit",
3839
"build": "node ../../scripts/renameFileExtensions.js './esm/{**,!**/__tests__/}/*.js' . .esm.js",
3940
"test": "vitest"
4041
},

packages/graphiql-plugin-code-exporter/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @graphiql/plugin-code-exporter
22

3+
## 4.0.5
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`71755b7`](https://github.com/graphql/graphiql/commit/71755b7f412f8f3dd9f5194d3f1e0168b9ad07af), [`6d631e2`](https://github.com/graphql/graphiql/commit/6d631e2e558d038476fe235b1506bc52ecf68781)]:
8+
- @graphiql/react@0.34.0
9+
310
## 4.0.4
411

512
### Patch Changes

packages/graphiql-plugin-code-exporter/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphiql/plugin-code-exporter",
3-
"version": "4.0.4",
3+
"version": "4.0.5",
44
"sideEffects": false,
55
"repository": {
66
"type": "git",
@@ -27,23 +27,22 @@
2727
".": "./dist/index.js"
2828
},
2929
"scripts": {
30+
"types:check": "tsc --noEmit",
3031
"dev": "vite build --watch",
3132
"build": "vite build && UMD=true vite build",
32-
"prebuild": "yarn types:check",
33-
"postbuild": "cp src/graphiql-code-exporter.d.ts dist/graphiql-code-exporter.d.ts",
34-
"types:check": "tsc --noEmit"
33+
"postbuild": "cp src/graphiql-code-exporter.d.ts dist/graphiql-code-exporter.d.ts"
3534
},
3635
"dependencies": {
3736
"graphiql-code-exporter": "^3.0.3"
3837
},
3938
"peerDependencies": {
40-
"@graphiql/react": "^0.33.0",
39+
"@graphiql/react": "^0.34.0",
4140
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2",
4241
"react": "^18 || ^19",
4342
"react-dom": "^18 || ^19"
4443
},
4544
"devDependencies": {
46-
"@graphiql/react": "^0.33.0",
45+
"@graphiql/react": "^0.34.0",
4746
"@vitejs/plugin-react": "^4.4.1",
4847
"graphql": "^16.9.0",
4948
"react": "^19.1.0",

packages/graphiql-plugin-doc-explorer/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @graphiql/plugin-doc-explorer
22

3+
## 0.2.1
4+
5+
### Patch Changes
6+
7+
- [#3946](https://github.com/graphql/graphiql/pull/3946) [`71755b7`](https://github.com/graphql/graphiql/commit/71755b7f412f8f3dd9f5194d3f1e0168b9ad07af) Thanks [@dimaMachina](https://github.com/dimaMachina)! - feat(@graphiql/react): migrate React context to zustand:
8+
- replace `useExecutionContext` with `useExecutionStore` hook
9+
- replace `useEditorContext` with `useEditorStore` hook
10+
- replace `useAutoCompleteLeafs` hook with `getAutoCompleteLeafs` function
11+
- Updated dependencies [[`71755b7`](https://github.com/graphql/graphiql/commit/71755b7f412f8f3dd9f5194d3f1e0168b9ad07af), [`6d631e2`](https://github.com/graphql/graphiql/commit/6d631e2e558d038476fe235b1506bc52ecf68781)]:
12+
- @graphiql/react@0.34.0
13+
314
## 0.2.0
415

516
### Minor Changes

packages/graphiql-plugin-doc-explorer/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphiql/plugin-doc-explorer",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"sideEffects": false,
55
"repository": {
66
"type": "git",
@@ -30,10 +30,10 @@
3030
"dist"
3131
],
3232
"scripts": {
33+
"types:check": "tsc --noEmit",
3334
"dev": "vite build --watch",
3435
"build": "vite build",
35-
"test": "vitest",
36-
"types:check": "tsc --noEmit"
36+
"test": "vitest"
3737
},
3838
"peerDependencies": {
3939
"react": "^18 || ^19",
@@ -42,7 +42,7 @@
4242
},
4343
"dependencies": {
4444
"react-compiler-runtime": "19.1.0-rc.1",
45-
"@graphiql/react": "^0.33.0",
45+
"@graphiql/react": "^0.34.0",
4646
"@headlessui/react": "^2.2",
4747
"zustand": "^5"
4848
},

packages/graphiql-plugin-doc-explorer/src/components/__tests__/doc-explorer.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ function makeSchema(fieldName = 'field') {
3030

3131
const defaultSchemaContext = {
3232
...schemaStore.getInitialState(),
33-
introspect() {},
33+
async introspect() {},
3434
schema: makeSchema(),
3535
};
3636

3737
const withErrorSchemaContext = {
3838
...schemaStore.getInitialState(),
3939
fetchError: 'Error fetching schema',
40-
introspect() {},
40+
async introspect() {},
4141
schema: new GraphQLSchema({ description: 'GraphQL Schema for testing' }),
4242
};
4343

0 commit comments

Comments
 (0)