From 837c9e12a28b8620bead940992fe861258dc6dd6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 17 Jul 2025 21:38:54 +0000 Subject: [PATCH 1/2] Version Packages --- .changeset/chilled-peaches-wonder.md | 19 ----------- .changeset/cold-ads-end.md | 10 ------ .changeset/early-deers-carry.md | 6 ---- .changeset/pretty-camels-sniff.md | 10 ------ .../graphiql-vite-react-router/package.json | 4 +-- examples/graphiql-vite/package.json | 2 +- examples/graphiql-webpack/package.json | 8 ++--- examples/monaco-graphql-nextjs/package.json | 2 +- .../monaco-graphql-react-vite/package.json | 4 +-- examples/monaco-graphql-webpack/package.json | 4 +-- packages/codemirror-graphql/CHANGELOG.md | 7 ++++ packages/codemirror-graphql/package.json | 4 +-- .../CHANGELOG.md | 11 +++++++ .../package.json | 6 ++-- .../graphiql-plugin-doc-explorer/CHANGELOG.md | 15 +++++++++ .../graphiql-plugin-doc-explorer/package.json | 4 +-- .../graphiql-plugin-explorer/CHANGELOG.md | 11 +++++++ .../graphiql-plugin-explorer/package.json | 6 ++-- packages/graphiql-plugin-history/CHANGELOG.md | 15 +++++++++ packages/graphiql-plugin-history/package.json | 4 +-- packages/graphiql-react/CHANGELOG.md | 31 ++++++++++++++++++ packages/graphiql-react/package.json | 6 ++-- packages/graphiql/CHANGELOG.md | 32 +++++++++++++++++++ packages/graphiql/package.json | 8 ++--- .../graphql-language-service/CHANGELOG.md | 17 ++++++++++ .../graphql-language-service/package.json | 2 +- packages/monaco-graphql/CHANGELOG.md | 20 ++++++++++++ packages/monaco-graphql/package.json | 4 +-- 28 files changed, 193 insertions(+), 79 deletions(-) delete mode 100644 .changeset/chilled-peaches-wonder.md delete mode 100644 .changeset/cold-ads-end.md delete mode 100644 .changeset/early-deers-carry.md delete mode 100644 .changeset/pretty-camels-sniff.md diff --git a/.changeset/chilled-peaches-wonder.md b/.changeset/chilled-peaches-wonder.md deleted file mode 100644 index 1df4f74475..0000000000 --- a/.changeset/chilled-peaches-wonder.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@graphiql/react': minor -'monaco-graphql': patch -'graphql-language-service': minor -'graphiql': minor ---- - -feat(graphql-language-service): export `getContextAtPosition` -feat(graphiql): dynamically import `monaco-editor` and `monaco-graphql` - -When using GraphiQL in Next.js app, you no longer need to use `next/dynamic`: - -```diff --import dynamic from 'next/dynamic' --const GraphiQL = dynamic(() => import('graphiql').then(mod => mod.GraphiQL), { -- ssr: false --}) -+import { GraphiQL } from 'graphiql' -``` diff --git a/.changeset/cold-ads-end.md b/.changeset/cold-ads-end.md deleted file mode 100644 index 242ea95be8..0000000000 --- a/.changeset/cold-ads-end.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@graphiql/plugin-history': minor -'@graphiql/plugin-doc-explorer': minor -'@graphiql/react': minor -'graphiql': minor ---- - -Ensure `storage` and `theme` store values aren't shared between GraphiQL instances. Deprecate `useTheme` and `useStorage` hooks in favour of values from `useGraphiQL` and `useGraphiQLActions` hooks - -feat(`@graphiql/plugin-history`/`@graphiql/plugin-doc-explorer`): move `@graphiql/react` to `peerDependencies` diff --git a/.changeset/early-deers-carry.md b/.changeset/early-deers-carry.md deleted file mode 100644 index 1f9545d749..0000000000 --- a/.changeset/early-deers-carry.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphiql/react': patch -'graphiql': patch ---- - -fix broken `useOperationsEditorState` and `useEditorState` hook and add unit tests diff --git a/.changeset/pretty-camels-sniff.md b/.changeset/pretty-camels-sniff.md deleted file mode 100644 index 545592c8df..0000000000 --- a/.changeset/pretty-camels-sniff.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'graphiql': minor -'@graphiql/plugin-code-exporter': minor -'@graphiql/plugin-doc-explorer': minor -'@graphiql/plugin-explorer': minor -'@graphiql/plugin-history': minor -'@graphiql/react': minor ---- - -add new example [Usage GraphiQL 5 with Vite, React Router and `ssr: true`](https://github.com/graphql/graphiql/tree/main/examples/example-graphiql-vite-react-router) diff --git a/examples/graphiql-vite-react-router/package.json b/examples/graphiql-vite-react-router/package.json index 28e55a1c3f..da2dc8656e 100644 --- a/examples/graphiql-vite-react-router/package.json +++ b/examples/graphiql-vite-react-router/package.json @@ -11,11 +11,11 @@ "start": "react-router-serve dist/server/index.js" }, "dependencies": { - "@graphiql/react": "0.35.6", + "@graphiql/react": "0.36.0", "@react-router/fs-routes": "7.6.3", "@react-router/node": "7.6.3", "@react-router/serve": "7.6.3", - "graphiql": "5.0.6", + "graphiql": "5.1.0", "isbot": "^5", "react": "19.1.0", "react-dom": "19.1.0", diff --git a/examples/graphiql-vite/package.json b/examples/graphiql-vite/package.json index fe659a105e..468738492b 100644 --- a/examples/graphiql-vite/package.json +++ b/examples/graphiql-vite/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "graphiql": "^5.0.6", + "graphiql": "^5.1.0", "graphql": "^16.11.0", "react": "^19.1.0", "react-dom": "^19.1.0" diff --git a/examples/graphiql-webpack/package.json b/examples/graphiql-webpack/package.json index 8f9b63fb6b..0108a77624 100644 --- a/examples/graphiql-webpack/package.json +++ b/examples/graphiql-webpack/package.json @@ -9,11 +9,11 @@ "start": "NODE_ENV=development webpack-cli serve" }, "dependencies": { - "@graphiql/plugin-code-exporter": "^5.0.0", - "@graphiql/plugin-explorer": "^5.0.0", - "@graphiql/react": "^0.35.6", + "@graphiql/plugin-code-exporter": "^5.1.0", + "@graphiql/plugin-explorer": "^5.1.0", + "@graphiql/react": "^0.36.0", "@graphiql/toolkit": "^0.11.3", - "graphiql": "^5.0.6", + "graphiql": "^5.1.0", "graphql": "^16.9.0", "graphql-ws": "^5.5.5", "react": "^19.1.0", diff --git a/examples/monaco-graphql-nextjs/package.json b/examples/monaco-graphql-nextjs/package.json index 339ce192d9..144e647028 100644 --- a/examples/monaco-graphql-nextjs/package.json +++ b/examples/monaco-graphql-nextjs/package.json @@ -14,7 +14,7 @@ "graphql": "^16.9.0", "jsonc-parser": "^3.2.0", "monaco-editor": "^0.52.2", - "monaco-graphql": "^1.7.1", + "monaco-graphql": "^1.7.2", "next": "15.4.0", "react": "^19.1.0", "react-dom": "^19.1.0" diff --git a/examples/monaco-graphql-react-vite/package.json b/examples/monaco-graphql-react-vite/package.json index 2bdc28fa0a..7a8fa168b1 100644 --- a/examples/monaco-graphql-react-vite/package.json +++ b/examples/monaco-graphql-react-vite/package.json @@ -5,10 +5,10 @@ "dependencies": { "@graphiql/toolkit": "^0.11.3", "graphql": "^16.11.0", - "graphql-language-service": "^5.4.0", + "graphql-language-service": "^5.5.0", "jsonc-parser": "^3.2.0", "monaco-editor": "^0.52.2", - "monaco-graphql": "^1.7.1", + "monaco-graphql": "^1.7.2", "react": "^19.1.0", "react-dom": "^19.1.0" }, diff --git a/examples/monaco-graphql-webpack/package.json b/examples/monaco-graphql-webpack/package.json index 56fdf3e1e3..9e79bbaa00 100644 --- a/examples/monaco-graphql-webpack/package.json +++ b/examples/monaco-graphql-webpack/package.json @@ -11,11 +11,11 @@ }, "dependencies": { "graphql": "^16.9.0", - "graphql-language-service": "^5.4.0", + "graphql-language-service": "^5.5.0", "json-schema": "^0.4.0", "jsonc-parser": "^3.2.0", "monaco-editor": "^0.52.2", - "monaco-graphql": "^1.7.1", + "monaco-graphql": "^1.7.2", "prettier": "3.3.2" }, "devDependencies": { diff --git a/packages/codemirror-graphql/CHANGELOG.md b/packages/codemirror-graphql/CHANGELOG.md index 1ca37389c2..daf33cd1c2 100644 --- a/packages/codemirror-graphql/CHANGELOG.md +++ b/packages/codemirror-graphql/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.2.4 + +### Patch Changes + +- Updated dependencies [[`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd)]: + - graphql-language-service@5.5.0 + ## 2.2.3 ### Patch Changes diff --git a/packages/codemirror-graphql/package.json b/packages/codemirror-graphql/package.json index 41923d79cf..85de64a30c 100644 --- a/packages/codemirror-graphql/package.json +++ b/packages/codemirror-graphql/package.json @@ -1,6 +1,6 @@ { "name": "codemirror-graphql", - "version": "2.2.3", + "version": "2.2.4", "description": "GraphQL mode and helpers for CodeMirror.", "contributors": [ "Hyohyeon Jeong ", @@ -47,7 +47,7 @@ "// TEMPORARILY PINNED until we fix graphql 15 support": "", "dependencies": { "@types/codemirror": "^0.0.90", - "graphql-language-service": "5.4.0" + "graphql-language-service": "5.5.0" }, "devDependencies": { "@codemirror/language": "^6.0.0", diff --git a/packages/graphiql-plugin-code-exporter/CHANGELOG.md b/packages/graphiql-plugin-code-exporter/CHANGELOG.md index 9945872bd0..d8d3c6b713 100644 --- a/packages/graphiql-plugin-code-exporter/CHANGELOG.md +++ b/packages/graphiql-plugin-code-exporter/CHANGELOG.md @@ -1,5 +1,16 @@ # @graphiql/plugin-code-exporter +## 5.1.0 + +### Minor Changes + +- [#4077](https://github.com/graphql/graphiql/pull/4077) [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b) Thanks [@dimaMachina](https://github.com/dimaMachina)! - add new example [Usage GraphiQL 5 with Vite, React Router and `ssr: true`](https://github.com/graphql/graphiql/tree/main/examples/example-graphiql-vite-react-router) + +### Patch Changes + +- Updated dependencies [[`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd), [`fd3f9e6`](https://github.com/graphql/graphiql/commit/fd3f9e6a91be728a69a136ad8680f6e3c7241198), [`416e3a0`](https://github.com/graphql/graphiql/commit/416e3a05e9473eb2abd444da61ecfb8614020d14), [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b)]: + - @graphiql/react@0.36.0 + ## 5.0.0 ### Major Changes diff --git a/packages/graphiql-plugin-code-exporter/package.json b/packages/graphiql-plugin-code-exporter/package.json index 087e1bbf9b..0b090ec22a 100644 --- a/packages/graphiql-plugin-code-exporter/package.json +++ b/packages/graphiql-plugin-code-exporter/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/plugin-code-exporter", - "version": "5.0.0", + "version": "5.1.0", "sideEffects": false, "repository": { "type": "git", @@ -36,13 +36,13 @@ "graphiql-code-exporter": "^3.0.3" }, "peerDependencies": { - "@graphiql/react": "^0.35.0-rc.0", + "@graphiql/react": "^0.36.0", "graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2", "react": "^18 || ^19", "react-dom": "^18 || ^19" }, "devDependencies": { - "@graphiql/react": "^0.35.0", + "@graphiql/react": "^0.36.0", "@vitejs/plugin-react": "^4.4.1", "graphql": "^16.9.0", "react": "^19.1.0", diff --git a/packages/graphiql-plugin-doc-explorer/CHANGELOG.md b/packages/graphiql-plugin-doc-explorer/CHANGELOG.md index 44c59d2da9..4de3567927 100644 --- a/packages/graphiql-plugin-doc-explorer/CHANGELOG.md +++ b/packages/graphiql-plugin-doc-explorer/CHANGELOG.md @@ -1,5 +1,20 @@ # @graphiql/plugin-doc-explorer +## 0.4.0 + +### Minor Changes + +- [#4074](https://github.com/graphql/graphiql/pull/4074) [`fd3f9e6`](https://github.com/graphql/graphiql/commit/fd3f9e6a91be728a69a136ad8680f6e3c7241198) Thanks [@dimaMachina](https://github.com/dimaMachina)! - Ensure `storage` and `theme` store values aren't shared between GraphiQL instances. Deprecate `useTheme` and `useStorage` hooks in favour of values from `useGraphiQL` and `useGraphiQLActions` hooks + + feat(`@graphiql/plugin-history`/`@graphiql/plugin-doc-explorer`): move `@graphiql/react` to `peerDependencies` + +- [#4077](https://github.com/graphql/graphiql/pull/4077) [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b) Thanks [@dimaMachina](https://github.com/dimaMachina)! - add new example [Usage GraphiQL 5 with Vite, React Router and `ssr: true`](https://github.com/graphql/graphiql/tree/main/examples/example-graphiql-vite-react-router) + +### Patch Changes + +- Updated dependencies [[`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd), [`fd3f9e6`](https://github.com/graphql/graphiql/commit/fd3f9e6a91be728a69a136ad8680f6e3c7241198), [`416e3a0`](https://github.com/graphql/graphiql/commit/416e3a05e9473eb2abd444da61ecfb8614020d14), [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b)]: + - @graphiql/react@0.36.0 + ## 0.3.0 ### Minor Changes diff --git a/packages/graphiql-plugin-doc-explorer/package.json b/packages/graphiql-plugin-doc-explorer/package.json index 8299c63565..80ffef882e 100644 --- a/packages/graphiql-plugin-doc-explorer/package.json +++ b/packages/graphiql-plugin-doc-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/plugin-doc-explorer", - "version": "0.3.0", + "version": "0.4.0", "sideEffects": false, "repository": { "type": "git", @@ -36,7 +36,7 @@ "test": "vitest" }, "peerDependencies": { - "@graphiql/react": "^0.35.0-rc.0", + "@graphiql/react": "^0.36.0", "graphql": "^15.5.0 || ^16.0.0 || ^17.0.0", "react": "^18 || ^19", "react-compiler-runtime": "19.1.0-rc.1", diff --git a/packages/graphiql-plugin-explorer/CHANGELOG.md b/packages/graphiql-plugin-explorer/CHANGELOG.md index e72d3dafc6..a4e1d850ce 100644 --- a/packages/graphiql-plugin-explorer/CHANGELOG.md +++ b/packages/graphiql-plugin-explorer/CHANGELOG.md @@ -1,5 +1,16 @@ # @graphiql/plugin-explorer +## 5.1.0 + +### Minor Changes + +- [#4077](https://github.com/graphql/graphiql/pull/4077) [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b) Thanks [@dimaMachina](https://github.com/dimaMachina)! - add new example [Usage GraphiQL 5 with Vite, React Router and `ssr: true`](https://github.com/graphql/graphiql/tree/main/examples/example-graphiql-vite-react-router) + +### Patch Changes + +- Updated dependencies [[`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd), [`fd3f9e6`](https://github.com/graphql/graphiql/commit/fd3f9e6a91be728a69a136ad8680f6e3c7241198), [`416e3a0`](https://github.com/graphql/graphiql/commit/416e3a05e9473eb2abd444da61ecfb8614020d14), [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b)]: + - @graphiql/react@0.36.0 + ## 5.0.0 ### Major Changes diff --git a/packages/graphiql-plugin-explorer/package.json b/packages/graphiql-plugin-explorer/package.json index 489a7ffcfd..1b298ce72e 100644 --- a/packages/graphiql-plugin-explorer/package.json +++ b/packages/graphiql-plugin-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/plugin-explorer", - "version": "5.0.0", + "version": "5.1.0", "sideEffects": false, "repository": { "type": "git", @@ -35,13 +35,13 @@ "graphiql-explorer": "^0.9.0" }, "peerDependencies": { - "@graphiql/react": "^0.35.0-rc.0", + "@graphiql/react": "^0.36.0", "graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2", "react": "^18 || ^19", "react-dom": "^18 || ^19" }, "devDependencies": { - "@graphiql/react": "^0.35.0", + "@graphiql/react": "^0.36.0", "@vitejs/plugin-react": "^4.4.1", "graphql": "^16.9.0", "react": "^19.1.0", diff --git a/packages/graphiql-plugin-history/CHANGELOG.md b/packages/graphiql-plugin-history/CHANGELOG.md index 8e07fe5766..c6864a6f70 100644 --- a/packages/graphiql-plugin-history/CHANGELOG.md +++ b/packages/graphiql-plugin-history/CHANGELOG.md @@ -1,5 +1,20 @@ # @graphiql/plugin-history +## 0.4.0 + +### Minor Changes + +- [#4074](https://github.com/graphql/graphiql/pull/4074) [`fd3f9e6`](https://github.com/graphql/graphiql/commit/fd3f9e6a91be728a69a136ad8680f6e3c7241198) Thanks [@dimaMachina](https://github.com/dimaMachina)! - Ensure `storage` and `theme` store values aren't shared between GraphiQL instances. Deprecate `useTheme` and `useStorage` hooks in favour of values from `useGraphiQL` and `useGraphiQLActions` hooks + + feat(`@graphiql/plugin-history`/`@graphiql/plugin-doc-explorer`): move `@graphiql/react` to `peerDependencies` + +- [#4077](https://github.com/graphql/graphiql/pull/4077) [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b) Thanks [@dimaMachina](https://github.com/dimaMachina)! - add new example [Usage GraphiQL 5 with Vite, React Router and `ssr: true`](https://github.com/graphql/graphiql/tree/main/examples/example-graphiql-vite-react-router) + +### Patch Changes + +- Updated dependencies [[`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd), [`fd3f9e6`](https://github.com/graphql/graphiql/commit/fd3f9e6a91be728a69a136ad8680f6e3c7241198), [`416e3a0`](https://github.com/graphql/graphiql/commit/416e3a05e9473eb2abd444da61ecfb8614020d14), [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b)]: + - @graphiql/react@0.36.0 + ## 0.3.0 ### Minor Changes diff --git a/packages/graphiql-plugin-history/package.json b/packages/graphiql-plugin-history/package.json index 64a272215b..d60b467819 100644 --- a/packages/graphiql-plugin-history/package.json +++ b/packages/graphiql-plugin-history/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/plugin-history", - "version": "0.3.0", + "version": "0.4.0", "sideEffects": false, "repository": { "type": "git", @@ -35,7 +35,7 @@ "test": "vitest" }, "peerDependencies": { - "@graphiql/react": "^0.35.0-rc.0", + "@graphiql/react": "^0.36.0", "react": "^18 || ^19", "react-compiler-runtime": "19.1.0-rc.1", "react-dom": "^18 || ^19" diff --git a/packages/graphiql-react/CHANGELOG.md b/packages/graphiql-react/CHANGELOG.md index e26bf7328a..3027b75449 100644 --- a/packages/graphiql-react/CHANGELOG.md +++ b/packages/graphiql-react/CHANGELOG.md @@ -1,5 +1,36 @@ # @graphiql/react +## 0.36.0 + +### Minor Changes + +- [#4071](https://github.com/graphql/graphiql/pull/4071) [`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd) Thanks [@dimaMachina](https://github.com/dimaMachina)! - feat(graphql-language-service): export `getContextAtPosition` + feat(graphiql): dynamically import `monaco-editor` and `monaco-graphql` + + When using GraphiQL in Next.js app, you no longer need to use `next/dynamic`: + + ```diff + -import dynamic from 'next/dynamic' + -const GraphiQL = dynamic(() => import('graphiql').then(mod => mod.GraphiQL), { + - ssr: false + -}) + +import { GraphiQL } from 'graphiql' + ``` + +- [#4074](https://github.com/graphql/graphiql/pull/4074) [`fd3f9e6`](https://github.com/graphql/graphiql/commit/fd3f9e6a91be728a69a136ad8680f6e3c7241198) Thanks [@dimaMachina](https://github.com/dimaMachina)! - Ensure `storage` and `theme` store values aren't shared between GraphiQL instances. Deprecate `useTheme` and `useStorage` hooks in favour of values from `useGraphiQL` and `useGraphiQLActions` hooks + + feat(`@graphiql/plugin-history`/`@graphiql/plugin-doc-explorer`): move `@graphiql/react` to `peerDependencies` + +- [#4077](https://github.com/graphql/graphiql/pull/4077) [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b) Thanks [@dimaMachina](https://github.com/dimaMachina)! - add new example [Usage GraphiQL 5 with Vite, React Router and `ssr: true`](https://github.com/graphql/graphiql/tree/main/examples/example-graphiql-vite-react-router) + +### Patch Changes + +- [#4076](https://github.com/graphql/graphiql/pull/4076) [`416e3a0`](https://github.com/graphql/graphiql/commit/416e3a05e9473eb2abd444da61ecfb8614020d14) Thanks [@dimaMachina](https://github.com/dimaMachina)! - fix broken `useOperationsEditorState` and `useEditorState` hook and add unit tests + +- Updated dependencies [[`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd)]: + - monaco-graphql@1.7.2 + - graphql-language-service@5.5.0 + ## 0.35.6 ### Patch Changes diff --git a/packages/graphiql-react/package.json b/packages/graphiql-react/package.json index a7b30b6712..44e6589ec9 100644 --- a/packages/graphiql-react/package.json +++ b/packages/graphiql-react/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/react", - "version": "0.35.6", + "version": "0.36.0", "sideEffects": [ "dist/setup-workers/*" ], @@ -58,11 +58,11 @@ "clsx": "^1.2.1", "framer-motion": "^12.12", "get-value": "^3.0.1", - "graphql-language-service": "^5.3.1", + "graphql-language-service": "^5.5.0", "jsonc-parser": "^3.3.1", "markdown-it": "^14.1.0", "monaco-editor": "^0.52.2", - "monaco-graphql": "^1.7.1", + "monaco-graphql": "^1.7.2", "prettier": "^3.5.3", "set-value": "^4.1.0", "zustand": "^5" diff --git a/packages/graphiql/CHANGELOG.md b/packages/graphiql/CHANGELOG.md index a5bd6ce57d..14d1631496 100644 --- a/packages/graphiql/CHANGELOG.md +++ b/packages/graphiql/CHANGELOG.md @@ -1,5 +1,37 @@ # Change Log +## 5.1.0 + +### Minor Changes + +- [#4071](https://github.com/graphql/graphiql/pull/4071) [`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd) Thanks [@dimaMachina](https://github.com/dimaMachina)! - feat(graphql-language-service): export `getContextAtPosition` + feat(graphiql): dynamically import `monaco-editor` and `monaco-graphql` + + When using GraphiQL in Next.js app, you no longer need to use `next/dynamic`: + + ```diff + -import dynamic from 'next/dynamic' + -const GraphiQL = dynamic(() => import('graphiql').then(mod => mod.GraphiQL), { + - ssr: false + -}) + +import { GraphiQL } from 'graphiql' + ``` + +- [#4074](https://github.com/graphql/graphiql/pull/4074) [`fd3f9e6`](https://github.com/graphql/graphiql/commit/fd3f9e6a91be728a69a136ad8680f6e3c7241198) Thanks [@dimaMachina](https://github.com/dimaMachina)! - Ensure `storage` and `theme` store values aren't shared between GraphiQL instances. Deprecate `useTheme` and `useStorage` hooks in favour of values from `useGraphiQL` and `useGraphiQLActions` hooks + + feat(`@graphiql/plugin-history`/`@graphiql/plugin-doc-explorer`): move `@graphiql/react` to `peerDependencies` + +- [#4077](https://github.com/graphql/graphiql/pull/4077) [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b) Thanks [@dimaMachina](https://github.com/dimaMachina)! - add new example [Usage GraphiQL 5 with Vite, React Router and `ssr: true`](https://github.com/graphql/graphiql/tree/main/examples/example-graphiql-vite-react-router) + +### Patch Changes + +- [#4076](https://github.com/graphql/graphiql/pull/4076) [`416e3a0`](https://github.com/graphql/graphiql/commit/416e3a05e9473eb2abd444da61ecfb8614020d14) Thanks [@dimaMachina](https://github.com/dimaMachina)! - fix broken `useOperationsEditorState` and `useEditorState` hook and add unit tests + +- Updated dependencies [[`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd), [`fd3f9e6`](https://github.com/graphql/graphiql/commit/fd3f9e6a91be728a69a136ad8680f6e3c7241198), [`416e3a0`](https://github.com/graphql/graphiql/commit/416e3a05e9473eb2abd444da61ecfb8614020d14), [`3d41e11`](https://github.com/graphql/graphiql/commit/3d41e113fbf53930fd1b519b6d1330d0f4b23b7b)]: + - @graphiql/react@0.36.0 + - @graphiql/plugin-history@0.4.0 + - @graphiql/plugin-doc-explorer@0.4.0 + ## 5.0.6 ### Patch Changes diff --git a/packages/graphiql/package.json b/packages/graphiql/package.json index c368f241d9..c9f12a3863 100644 --- a/packages/graphiql/package.json +++ b/packages/graphiql/package.json @@ -1,6 +1,6 @@ { "name": "graphiql", - "version": "5.0.6", + "version": "5.1.0", "sideEffects": [ "dist/setup-workers/*" ], @@ -49,9 +49,9 @@ "test": "vitest" }, "dependencies": { - "@graphiql/plugin-doc-explorer": "^0.3.0", - "@graphiql/plugin-history": "^0.3.0", - "@graphiql/react": "^0.35.6", + "@graphiql/plugin-doc-explorer": "^0.4.0", + "@graphiql/plugin-history": "^0.4.0", + "@graphiql/react": "^0.36.0", "react-compiler-runtime": "19.1.0-rc.1" }, "peerDependencies": { diff --git a/packages/graphql-language-service/CHANGELOG.md b/packages/graphql-language-service/CHANGELOG.md index 8b06ab052b..9e23952d3f 100644 --- a/packages/graphql-language-service/CHANGELOG.md +++ b/packages/graphql-language-service/CHANGELOG.md @@ -1,5 +1,22 @@ # graphql-language-service +## 5.5.0 + +### Minor Changes + +- [#4071](https://github.com/graphql/graphiql/pull/4071) [`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd) Thanks [@dimaMachina](https://github.com/dimaMachina)! - feat(graphql-language-service): export `getContextAtPosition` + feat(graphiql): dynamically import `monaco-editor` and `monaco-graphql` + + When using GraphiQL in Next.js app, you no longer need to use `next/dynamic`: + + ```diff + -import dynamic from 'next/dynamic' + -const GraphiQL = dynamic(() => import('graphiql').then(mod => mod.GraphiQL), { + - ssr: false + -}) + +import { GraphiQL } from 'graphiql' + ``` + ## 5.4.0 ### Minor Changes diff --git a/packages/graphql-language-service/package.json b/packages/graphql-language-service/package.json index 468b830212..e7efebd2fe 100644 --- a/packages/graphql-language-service/package.json +++ b/packages/graphql-language-service/package.json @@ -1,6 +1,6 @@ { "name": "graphql-language-service", - "version": "5.4.0", + "version": "5.5.0", "description": "The official, runtime independent Language Service for GraphQL", "contributors": [ "GraphQL Contributors" diff --git a/packages/monaco-graphql/CHANGELOG.md b/packages/monaco-graphql/CHANGELOG.md index 771f3fb5f2..ca9cf49f6e 100644 --- a/packages/monaco-graphql/CHANGELOG.md +++ b/packages/monaco-graphql/CHANGELOG.md @@ -1,5 +1,25 @@ # Change Log +## 1.7.2 + +### Patch Changes + +- [#4071](https://github.com/graphql/graphiql/pull/4071) [`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd) Thanks [@dimaMachina](https://github.com/dimaMachina)! - feat(graphql-language-service): export `getContextAtPosition` + feat(graphiql): dynamically import `monaco-editor` and `monaco-graphql` + + When using GraphiQL in Next.js app, you no longer need to use `next/dynamic`: + + ```diff + -import dynamic from 'next/dynamic' + -const GraphiQL = dynamic(() => import('graphiql').then(mod => mod.GraphiQL), { + - ssr: false + -}) + +import { GraphiQL } from 'graphiql' + ``` + +- Updated dependencies [[`3a0a755`](https://github.com/graphql/graphiql/commit/3a0a75569c6b318f5dc27d62000bcc9b0536c6fd)]: + - graphql-language-service@5.5.0 + ## 1.7.1 ### Patch Changes diff --git a/packages/monaco-graphql/package.json b/packages/monaco-graphql/package.json index 37c0004f47..605cc48c88 100644 --- a/packages/monaco-graphql/package.json +++ b/packages/monaco-graphql/package.json @@ -1,7 +1,7 @@ { "name": "monaco-graphql", "description": "full service, official monaco mode for GraphQL", - "version": "1.7.1", + "version": "1.7.2", "license": "MIT", "main": "dist/monaco.contribution.js", "module": "esm/monaco.contribution.js", @@ -66,7 +66,7 @@ "test": "vitest run" }, "dependencies": { - "graphql-language-service": "^5.4.0", + "graphql-language-service": "^5.5.0", "picomatch-browser": "^2.2.6" }, "devDependencies": { From 8703a2214a6b2ebc48062a55ea507ae98e1170f6 Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Thu, 17 Jul 2025 23:39:50 +0200 Subject: [PATCH 2/2] run yarn --- yarn.lock | 66 +++++++++++++++++++++++++++---------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/yarn.lock b/yarn.lock index 65db662e78..14a1e74c1a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3424,11 +3424,11 @@ __metadata: languageName: node linkType: hard -"@graphiql/plugin-code-exporter@npm:^5.0.0, @graphiql/plugin-code-exporter@workspace:packages/graphiql-plugin-code-exporter": +"@graphiql/plugin-code-exporter@npm:^5.1.0, @graphiql/plugin-code-exporter@workspace:packages/graphiql-plugin-code-exporter": version: 0.0.0-use.local resolution: "@graphiql/plugin-code-exporter@workspace:packages/graphiql-plugin-code-exporter" dependencies: - "@graphiql/react": "npm:^0.35.0" + "@graphiql/react": "npm:^0.36.0" "@vitejs/plugin-react": "npm:^4.4.1" graphiql-code-exporter: "npm:^3.0.3" graphql: "npm:^16.9.0" @@ -3438,14 +3438,14 @@ __metadata: vite: "npm:^6.3.4" vite-plugin-dts: "npm:^4.0.1" peerDependencies: - "@graphiql/react": ^0.35.0-rc.0 + "@graphiql/react": ^0.36.0 graphql: ^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2 react: ^18 || ^19 react-dom: ^18 || ^19 languageName: unknown linkType: soft -"@graphiql/plugin-doc-explorer@npm:^0.3.0, @graphiql/plugin-doc-explorer@workspace:packages/graphiql-plugin-doc-explorer": +"@graphiql/plugin-doc-explorer@npm:^0.4.0, @graphiql/plugin-doc-explorer@workspace:packages/graphiql-plugin-doc-explorer": version: 0.0.0-use.local resolution: "@graphiql/plugin-doc-explorer@workspace:packages/graphiql-plugin-doc-explorer" dependencies: @@ -3462,7 +3462,7 @@ __metadata: vite-plugin-dts: "npm:^4.5.3" zustand: "npm:^5" peerDependencies: - "@graphiql/react": ^0.35.0-rc.0 + "@graphiql/react": ^0.36.0 graphql: ^15.5.0 || ^16.0.0 || ^17.0.0 react: ^18 || ^19 react-compiler-runtime: 19.1.0-rc.1 @@ -3470,11 +3470,11 @@ __metadata: languageName: unknown linkType: soft -"@graphiql/plugin-explorer@npm:^5.0.0, @graphiql/plugin-explorer@workspace:packages/graphiql-plugin-explorer": +"@graphiql/plugin-explorer@npm:^5.1.0, @graphiql/plugin-explorer@workspace:packages/graphiql-plugin-explorer": version: 0.0.0-use.local resolution: "@graphiql/plugin-explorer@workspace:packages/graphiql-plugin-explorer" dependencies: - "@graphiql/react": "npm:^0.35.0" + "@graphiql/react": "npm:^0.36.0" "@vitejs/plugin-react": "npm:^4.4.1" graphiql-explorer: "npm:^0.9.0" graphql: "npm:^16.9.0" @@ -3485,14 +3485,14 @@ __metadata: vite-plugin-dts: "npm:^4.0.1" vite-plugin-svgr: "npm:^4.3.0" peerDependencies: - "@graphiql/react": ^0.35.0-rc.0 + "@graphiql/react": ^0.36.0 graphql: ^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2 react: ^18 || ^19 react-dom: ^18 || ^19 languageName: unknown linkType: soft -"@graphiql/plugin-history@npm:^0.3.0, @graphiql/plugin-history@workspace:packages/graphiql-plugin-history": +"@graphiql/plugin-history@npm:^0.4.0, @graphiql/plugin-history@workspace:packages/graphiql-plugin-history": version: 0.0.0-use.local resolution: "@graphiql/plugin-history@workspace:packages/graphiql-plugin-history" dependencies: @@ -3506,14 +3506,14 @@ __metadata: vite-plugin-dts: "npm:^4.5.3" zustand: "npm:^5" peerDependencies: - "@graphiql/react": ^0.35.0-rc.0 + "@graphiql/react": ^0.36.0 react: ^18 || ^19 react-compiler-runtime: 19.1.0-rc.1 react-dom: ^18 || ^19 languageName: unknown linkType: soft -"@graphiql/react@npm:0.35.6, @graphiql/react@npm:^0.35.0, @graphiql/react@npm:^0.35.6, @graphiql/react@workspace:packages/graphiql-react": +"@graphiql/react@npm:0.36.0, @graphiql/react@npm:^0.36.0, @graphiql/react@workspace:packages/graphiql-react": version: 0.0.0-use.local resolution: "@graphiql/react@workspace:packages/graphiql-react" dependencies: @@ -3533,11 +3533,11 @@ __metadata: framer-motion: "npm:^12.12" get-value: "npm:^3.0.1" graphql: "npm:^16.9.0" - graphql-language-service: "npm:^5.3.1" + graphql-language-service: "npm:^5.5.0" jsonc-parser: "npm:^3.3.1" markdown-it: "npm:^14.1.0" monaco-editor: "npm:^0.52.2" - monaco-graphql: "npm:^1.7.1" + monaco-graphql: "npm:^1.7.2" prettier: "npm:^3.5.3" react: "npm:^19.1.0" react-dom: "npm:^19.1.0" @@ -10340,7 +10340,7 @@ __metadata: codemirror: "npm:^5.65.3" cross-env: "npm:^7.0.2" graphql: "npm:^16.9.0" - graphql-language-service: "npm:5.4.0" + graphql-language-service: "npm:5.5.0" rimraf: "npm:^3.0.2" sane: "npm:2.0.0" peerDependencies: @@ -13094,14 +13094,14 @@ __metadata: version: 0.0.0-use.local resolution: "example-graphiql-vite-react-router@workspace:examples/graphiql-vite-react-router" dependencies: - "@graphiql/react": "npm:0.35.6" + "@graphiql/react": "npm:0.36.0" "@react-router/dev": "npm:7.6.3" "@react-router/fs-routes": "npm:7.6.3" "@react-router/node": "npm:7.6.3" "@react-router/serve": "npm:7.6.3" "@types/node": "npm:22.15.34" "@types/react": "npm:19.1.8" - graphiql: "npm:5.0.6" + graphiql: "npm:5.1.0" isbot: "npm:^5" react: "npm:19.1.0" react-dom: "npm:19.1.0" @@ -13116,7 +13116,7 @@ __metadata: resolution: "example-graphiql-vite@workspace:examples/graphiql-vite" dependencies: "@vitejs/plugin-react": "npm:^4.4.1" - graphiql: "npm:^5.0.6" + graphiql: "npm:^5.1.0" graphql: "npm:^16.11.0" react: "npm:^19.1.0" react-dom: "npm:^19.1.0" @@ -13133,9 +13133,9 @@ __metadata: "@babel/plugin-syntax-dynamic-import": "npm:^7.8.3" "@babel/preset-env": "npm:^7.20.2" "@babel/preset-react": "npm:^7.18.6" - "@graphiql/plugin-code-exporter": "npm:^5.0.0" - "@graphiql/plugin-explorer": "npm:^5.0.0" - "@graphiql/react": "npm:^0.35.6" + "@graphiql/plugin-code-exporter": "npm:^5.1.0" + "@graphiql/plugin-explorer": "npm:^5.1.0" + "@graphiql/react": "npm:^0.36.0" "@graphiql/toolkit": "npm:^0.11.3" ajv-formats: "npm:^3.0.1" babel-loader: "npm:^9.1.2" @@ -13143,7 +13143,7 @@ __metadata: cross-env: "npm:^7.0.2" css-loader: "npm:^6.7.3" file-loader: "npm:^6.2.0" - graphiql: "npm:^5.0.6" + graphiql: "npm:^5.1.0" graphql: "npm:^16.9.0" graphql-ws: "npm:^5.5.5" html-webpack-plugin: "npm:^5.5.0" @@ -13171,7 +13171,7 @@ __metadata: graphql: "npm:^16.9.0" jsonc-parser: "npm:^3.2.0" monaco-editor: "npm:^0.52.2" - monaco-graphql: "npm:^1.7.1" + monaco-graphql: "npm:^1.7.2" next: "npm:15.4.0" react: "npm:^19.1.0" react-dom: "npm:^19.1.0" @@ -13186,10 +13186,10 @@ __metadata: "@graphiql/toolkit": "npm:^0.11.3" "@vitejs/plugin-react": "npm:^4.4.1" graphql: "npm:^16.11.0" - graphql-language-service: "npm:^5.4.0" + graphql-language-service: "npm:^5.5.0" jsonc-parser: "npm:^3.2.0" monaco-editor: "npm:^0.52.2" - monaco-graphql: "npm:^1.7.1" + monaco-graphql: "npm:^1.7.2" react: "npm:^19.1.0" react-dom: "npm:^19.1.0" vite: "npm:^6.3.4" @@ -13214,13 +13214,13 @@ __metadata: file-loader: "npm:6.2.0" fork-ts-checker-webpack-plugin: "npm:7.3.0" graphql: "npm:^16.9.0" - graphql-language-service: "npm:^5.4.0" + graphql-language-service: "npm:^5.5.0" html-webpack-plugin: "npm:^5.5.0" json-schema: "npm:^0.4.0" jsonc-parser: "npm:^3.2.0" monaco-editor: "npm:^0.52.2" monaco-editor-webpack-plugin: "npm:^7.0.1" - monaco-graphql: "npm:^1.7.1" + monaco-graphql: "npm:^1.7.2" prettier: "npm:3.3.2" style-loader: "npm:^3.3.1" typescript: "npm:^4.6.3" @@ -14874,13 +14874,13 @@ __metadata: languageName: unknown linkType: soft -"graphiql@npm:5.0.6, graphiql@npm:^5.0.6, graphiql@workspace:packages/graphiql": +"graphiql@npm:5.1.0, graphiql@npm:^5.1.0, graphiql@workspace:packages/graphiql": version: 0.0.0-use.local resolution: "graphiql@workspace:packages/graphiql" dependencies: - "@graphiql/plugin-doc-explorer": "npm:^0.3.0" - "@graphiql/plugin-history": "npm:^0.3.0" - "@graphiql/react": "npm:^0.35.6" + "@graphiql/plugin-doc-explorer": "npm:^0.4.0" + "@graphiql/plugin-history": "npm:^0.4.0" + "@graphiql/react": "npm:^0.36.0" "@graphiql/toolkit": "npm:^0.11.3" "@testing-library/dom": "npm:^10.4.0" "@testing-library/jest-dom": "npm:^6.6.3" @@ -15007,7 +15007,7 @@ __metadata: languageName: unknown linkType: soft -"graphql-language-service@npm:5.4.0, graphql-language-service@npm:^5.3.0, graphql-language-service@npm:^5.3.1, graphql-language-service@npm:^5.4.0, graphql-language-service@workspace:packages/graphql-language-service": +"graphql-language-service@npm:5.5.0, graphql-language-service@npm:^5.3.0, graphql-language-service@npm:^5.3.1, graphql-language-service@npm:^5.5.0, graphql-language-service@workspace:packages/graphql-language-service": version: 0.0.0-use.local resolution: "graphql-language-service@workspace:packages/graphql-language-service" dependencies: @@ -19364,13 +19364,13 @@ __metadata: languageName: node linkType: hard -"monaco-graphql@npm:^1.7.1, monaco-graphql@workspace:packages/monaco-graphql": +"monaco-graphql@npm:^1.7.2, monaco-graphql@workspace:packages/monaco-graphql": version: 0.0.0-use.local resolution: "monaco-graphql@workspace:packages/monaco-graphql" dependencies: execa: "npm:^7.1.1" graphql: "npm:^16.9.0" - graphql-language-service: "npm:^5.4.0" + graphql-language-service: "npm:^5.5.0" monaco-editor: "npm:^0.52.2" picomatch-browser: "npm:^2.2.6" prettier: "npm:3.3.2"