diff --git a/.eslintrc.js b/.eslintrc.js index 22f1d3fdd68..80f0baf3fc4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -105,7 +105,6 @@ module.exports = { 'no-useless-call': 1, 'no-useless-concat': 1, 'no-useless-return': 0, - 'no-void': 1, '@typescript-eslint/prefer-optional-chain': 'error', 'no-warning-comments': 0, radix: 'error', @@ -116,7 +115,8 @@ module.exports = { 'sonarjs/no-identical-functions': 'error', 'sonarjs/no-unused-collection': 'error', 'sonarjs/no-extra-arguments': 'error', - + 'unicorn/no-useless-undefined': 'error', + 'no-var': 'error', // Strict Mode (http://eslint.org/docs/rules/#strict-mode) strict: 0, @@ -198,6 +198,11 @@ module.exports = { message: "`useMemo` with an empty dependency array can't provide a stable reference, use `useRef` instead.", }, + { + // ❌ event.keyCode + selector: 'MemberExpression > .property[type=Identifier][name=keyCode]', + message: 'Use `.key` instead of `.keyCode`', + }, ], 'no-ternary': 0, 'no-underscore-dangle': 0, @@ -213,7 +218,7 @@ module.exports = { 'sort-vars': 0, 'spaced-comment': ['error', 'always', { markers: ['/'] }], 'wrap-regex': 0, - + 'unicorn/prefer-dom-node-remove': 'error', // ECMAScript 6 (http://eslint.org/docs/rules/#ecmascript-6) 'arrow-body-style': 0, 'no-duplicate-imports': 0, @@ -228,6 +233,7 @@ module.exports = { 'sort-imports': 0, 'symbol-description': 1, + 'sonarjs/no-ignored-return': 'error', 'unicorn/no-array-push-push': 'error', 'import/no-extraneous-dependencies': 'error', 'import/no-duplicates': 'error', @@ -268,6 +274,8 @@ module.exports = { 'unicorn/prefer-export-from': ['error', { ignoreUsedVariables: true }], 'unicorn/throw-new-error': 'error', 'unicorn/prefer-includes': 'error', + 'unicorn/no-array-for-each': 'error', + 'unicorn/prefer-dom-node-append': 'error', 'no-lonely-if': 'error', 'unicorn/no-lonely-if': 'error', 'unicorn/prefer-optional-catch-binding': 'error', @@ -279,6 +287,8 @@ module.exports = { 'unicorn/prefer-node-protocol': 'error', 'import/no-unresolved': ['error', { ignore: ['^node:'] }], 'unicorn/prefer-string-replace-all': 'error', + // doesn't catch a lot of cases; we use ESLint builtin `no-restricted-syntax` to forbid `.keyCode` + 'unicorn/prefer-keyboard-event-key': 'off', 'unicorn/prefer-switch': 'error', // TODO: Fix all errors for the following rules included in recommended config @@ -297,8 +307,10 @@ module.exports = { overrides: [ { files: ['**/*.{ts,tsx}'], + // extends: ['plugin:@typescript-eslint/recommended-type-checked'], rules: { '@typescript-eslint/no-unnecessary-type-assertion': 'error', + '@typescript-eslint/no-floating-promises': 'error', }, parserOptions: { project: [ @@ -361,5 +373,13 @@ module.exports = { 'import/no-unresolved': ['error', { ignore: ['^node:', 'vscode'] }], }, }, + { + files: ['packages/**'], + // ignore React packages because it's ugly to have `async IIFE` inside `useEffect` + excludedFiles: ['packages/graphiql/**', 'packages/graphiql-react/**'], + rules: { + 'promise/prefer-await-to-then': 'error', + }, + }, ], }; diff --git a/.prettierrc b/.prettierrc index ce99e216b66..ecda9b88964 100644 --- a/.prettierrc +++ b/.prettierrc @@ -8,11 +8,15 @@ "files": ["*.md", "*.mdx"], "options": { "printWidth": 80, - "proseWrap": "always" + "proseWrap": "preserve" } }, { - "files": ["**/.changeset/*.md"], + "files": [ + "**/.changeset/*.md", + "**/CHANGELOG.md", + "working-group/agendas/**/*.md" + ], "options": { "proseWrap": "never" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f0fd872fc1..615fc7e4002 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,4 @@ -> **Archived** For up to date changelogs that are automatically generated by -> [changesets](https://github.com/atlassian/changesets), see CHANGELOG.md files -> in respective workspaces. For example, the `graphiql` changelog is located at -> [packages/graphiql/CHANGELOG.md](./packages/graphiql/CHANGELOG.md), and the -> language server changelog is located at -> [packages/graphql-language-service-server/CHANGELOG.md](./packages/graphql-language-service-server/CHANGELOG.md) +> **Archived** For up to date changelogs that are automatically generated by [changesets](https://github.com/atlassian/changesets), see CHANGELOG.md files in respective workspaces. For example, the `graphiql` changelog is located at [packages/graphiql/CHANGELOG.md](./packages/graphiql/CHANGELOG.md), and the language server changelog is located at [packages/graphql-language-service-server/CHANGELOG.md](./packages/graphql-language-service-server/CHANGELOG.md) ## GraphiQL 0.14.2 - 11 Aug, 2019 @@ -21,8 +16,7 @@ - Fix formatting of subscription errors - #636, #722 - @benjie - preserve ctrl-f key for macOS - #759 - @pd4d10 -- Fix earlier 'Mode graphql failed to advance stream' on Linux by eating an - exotic whitespace character - #735 closed by #932 - @benjie +- Fix earlier 'Mode graphql failed to advance stream' on Linux by eating an exotic whitespace character - #735 closed by #932 - @benjie - Fix: check `this.editor` exists before `this.editor.off` in QueryEditor ## Codemirror GraphQL - 0.9 - 11 Aug, 2019 @@ -53,16 +47,14 @@ ### Fixes -- Fix 'mode graphql failed to advance stream' error from shift-alt-space, etc - - #932 - @benjie +- Fix 'mode graphql failed to advance stream' error from shift-alt-space, etc - #932 - @benjie ## GraphQL Language Service Interface 2.1.0 - 11 Aug, 2019 ### Features - add \_\_typename field suggestion against object type - (#903) @yoshiakis -- Update sortText logic, so that field sort is schema driven rather than - alphabetically sorted - (#884) @ganemone +- Update sortText logic, so that field sort is schema driven rather than alphabetically sorted - (#884) @ganemone ### Chores @@ -73,8 +65,7 @@ ## GraphQL Language Service 2.1.0 - BREAKING: add peer support for graphql 14.x -- BREAKING: remove incompatible dependencies on graphql 0.11 and below (b/c of - gls-utils 2.x) +- BREAKING: remove incompatible dependencies on graphql 0.11 and below (b/c of gls-utils 2.x) ## GraphQL Language Service Utils 2.1.0 - 11 Aug, 2019 @@ -99,8 +90,7 @@ - Hint/popup/etc DOM nodes use container rather than creating children of - #791 - @codestryke -- Add readOnly prop and pass to `QueryEditor` and `VariableEditor` - #718 - - @TheSharpieOne +- Add readOnly prop and pass to `QueryEditor` and `VariableEditor` - #718 - @TheSharpieOne - Add operationName to introspection query - #664 - @jbblanchet - Image Preview Functionality - #789 - @dunnbobcat @asiandrummer @@ -122,8 +112,7 @@ ## Codemirror Graphql Mode 0.8.4 - 11 Aug, 2018 -You will now be importing async methods from gls-interface 2.0.0, thus your -bundler will require regenerator runtime +You will now be importing async methods from gls-interface 2.0.0, thus your bundler will require regenerator runtime ## Chores @@ -134,41 +123,31 @@ bundler will require regenerator runtime ### Chores -- BREAKING: upgrade internal dependencies - gls-parser, gls-types, and gls-utils - to 2.0.0 - @lostplan -- BREAKING: remove incompatible dependencies on graphql 0.11 and below - - @lostplan +- BREAKING: upgrade internal dependencies - gls-parser, gls-types, and gls-utils to 2.0.0 - @lostplan +- BREAKING: remove incompatible dependencies on graphql 0.11 and below - @lostplan ## GraphQL Language Service Utils 2.0.0 - 11 Sep, 2018 ### Chores -- BREAKING: deprecate support for graphql-js 0.11.x and below - @lostplan - [graphql/graphql-language-service#256](https://github.com/graphql/graphql-language-service/pull/256) - [new ref](https://github.com/graphql/graphiql/commit/895e68537fd802b8b6ddf2578a1f76f85982c773) - because of - [this change](https://github.com/graphql/graphiql/commit/068c57fdb4a147be3c2fc38167e2def74d217a82#diff-696ceb17e38e4a274d4a149d24513b78) +- BREAKING: deprecate support for graphql-js 0.11.x and below - @lostplan [graphql/graphql-language-service#256](https://github.com/graphql/graphql-language-service/pull/256) [new ref](https://github.com/graphql/graphiql/commit/895e68537fd802b8b6ddf2578a1f76f85982c773) because of [this change](https://github.com/graphql/graphiql/commit/068c57fdb4a147be3c2fc38167e2def74d217a82#diff-696ceb17e38e4a274d4a149d24513b78) - BREAKING: GraphQL 14.x support, peer dependency resolutions - #244 - @AGS- ## GraphQL Language Service Utils 1.2.2 - 11 Sep, 2018 ### Chores -- add graphql-js 0.13 to peer deps of types package - (graphql/graphql-language-service#241) +- add graphql-js 0.13 to peer deps of types package (graphql/graphql-language-service#241) ## GraphQL Language Service Server 2.0.0 - 11 Sep, 2019 ### Chores -- add graphql-js 0.13 to peer dependencies - (graphql/graphql-language-service#241) -- BREAKING: upgrade internal dependencies - gls-interface, gls-server and - gls-utils to 2.0.0 @lostplan +- add graphql-js 0.13 to peer dependencies (graphql/graphql-language-service#241) +- BREAKING: upgrade internal dependencies - gls-interface, gls-server and gls-utils to 2.0.0 @lostplan ## GraphQL Language Service 2.0.0 - 11 Sep, 2018 ### Chores -- BREAKING: upgrade internal dependencies - gls-interface, gls-server and - gls-utils to 2.0.0 @Sol +- BREAKING: upgrade internal dependencies - gls-interface, gls-server and gls-utils to 2.0.0 @Sol diff --git a/custom-words.txt b/custom-words.txt index e481c2fc359..13a2c04df3d 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -143,6 +143,7 @@ listbox listvalues matchingbracket marko +middlewares modulemap myschema newhope diff --git a/examples/graphiql-cdn/CHANGELOG.md b/examples/graphiql-cdn/CHANGELOG.md index 5adab3b7775..99ca010ed9c 100644 --- a/examples/graphiql-cdn/CHANGELOG.md +++ b/examples/graphiql-cdn/CHANGELOG.md @@ -1,7 +1,6 @@ # Change Log -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. +All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [0.0.8](https://github.com/graphql/graphiql/compare/example-graphiql-cdn@0.0.8-alpha.6...example-graphiql-cdn@0.0.8) (2020-06-11) diff --git a/examples/graphiql-parcel/CHANGELOG.md b/examples/graphiql-parcel/CHANGELOG.md index b41fd98be10..62177beb7ed 100644 --- a/examples/graphiql-parcel/CHANGELOG.md +++ b/examples/graphiql-parcel/CHANGELOG.md @@ -1,7 +1,6 @@ # Change Log -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. +All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [1.1.10-alpha.8](https://github.com/graphql/graphiql/compare/graphiql-parcel-example@1.1.10-alpha.7...graphiql-parcel-example@1.1.10-alpha.8) (2021-01-07) @@ -67,6 +66,4 @@ All notable changes to this project will be documented in this file. See ### Features -- Add Parcel Example for GraphiQL - ([#1511](https://github.com/graphql/graphiql/issues/1511)) - ([fe4b811](https://github.com/graphql/graphiql/commit/fe4b811876838cabdf545a6034ad12bc33e044b2)) +- Add Parcel Example for GraphiQL ([#1511](https://github.com/graphql/graphiql/issues/1511)) ([fe4b811](https://github.com/graphql/graphiql/commit/fe4b811876838cabdf545a6034ad12bc33e044b2)) diff --git a/examples/graphiql-webpack/CHANGELOG.md b/examples/graphiql-webpack/CHANGELOG.md index 4e63471e0a1..06296e8d05d 100644 --- a/examples/graphiql-webpack/CHANGELOG.md +++ b/examples/graphiql-webpack/CHANGELOG.md @@ -1,7 +1,6 @@ # Change Log -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. +All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [1.1.1-alpha.8](https://github.com/graphql/graphiql/compare/example-graphiql-webpack@1.1.1-alpha.7...example-graphiql-webpack@1.1.1-alpha.8) (2021-01-07) @@ -43,9 +42,7 @@ All notable changes to this project will be documented in this file. See ### Features -- [RFC] GraphiQL rewrite for monaco editor, react context and redesign, i18n - ([#1523](https://github.com/graphql/graphiql/issues/1523)) - ([ad730cd](https://github.com/graphql/graphiql/commit/ad730cdc2e3cb7216d821a01725c60475989ee20)) +- [RFC] GraphiQL rewrite for monaco editor, react context and redesign, i18n ([#1523](https://github.com/graphql/graphiql/issues/1523)) ([ad730cd](https://github.com/graphql/graphiql/commit/ad730cdc2e3cb7216d821a01725c60475989ee20)) # [1.0.0](https://github.com/graphql/graphiql/compare/example-graphiql-webpack@1.0.0-alpha.13...example-graphiql-webpack@1.0.0) (2020-06-11) @@ -71,9 +68,7 @@ All notable changes to this project will be documented in this file. See ### Features -- introduce proper vscode completion kinds - ([#1488](https://github.com/graphql/graphiql/issues/1488)) - ([f19aa0d](https://github.com/graphql/graphiql/commit/f19aa0ddde6109526c101c8a487f43bbb8238394)) +- introduce proper vscode completion kinds ([#1488](https://github.com/graphql/graphiql/issues/1488)) ([f19aa0d](https://github.com/graphql/graphiql/commit/f19aa0ddde6109526c101c8a487f43bbb8238394)) # [1.0.0-alpha.8](https://github.com/graphql/graphiql/compare/example-graphiql-webpack@1.0.0-alpha.7...example-graphiql-webpack@1.0.0-alpha.8) (2020-04-10) @@ -91,10 +86,7 @@ All notable changes to this project will be documented in this file. See ### Features -- upgrade to graphql@15.0.0 for - [#1191](https://github.com/graphql/graphiql/issues/1191) - ([#1204](https://github.com/graphql/graphiql/issues/1204)) - ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) +- upgrade to graphql@15.0.0 for [#1191](https://github.com/graphql/graphiql/issues/1191) ([#1204](https://github.com/graphql/graphiql/issues/1204)) ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) # [1.0.0-alpha.4](https://github.com/graphql/graphiql/compare/example-graphiql-webpack@1.0.0-alpha.3...example-graphiql-webpack@1.0.0-alpha.4) (2020-04-03) @@ -112,14 +104,11 @@ All notable changes to this project will be documented in this file. See ### Features -- deprecate support for 15, support react 16 features - ([#1107](https://github.com/graphql/graphiql/issues/1107)) - ([bc4b6fc](https://github.com/graphql/graphiql/commit/bc4b6fc)) +- deprecate support for 15, support react 16 features ([#1107](https://github.com/graphql/graphiql/issues/1107)) ([bc4b6fc](https://github.com/graphql/graphiql/commit/bc4b6fc)) ### BREAKING CHANGES -- Deprecate support for React 15. Please use React 16.8 or greater for hooks - support. Co-authored-by: @ryan-m-walker, @acao Reviewed-by: @benjie +- Deprecate support for React 15. Please use React 16.8 or greater for hooks support. Co-authored-by: @ryan-m-walker, @acao Reviewed-by: @benjie ## [0.0.10](https://github.com/graphql/graphiql/compare/graphiql-example-webpack@0.0.9...graphiql-example-webpack@0.0.10) (2019-12-09) @@ -137,22 +126,16 @@ All notable changes to this project will be documented in this file. See ### Bug Fixes -- ensure css files move with babel dist - ([ca95547](https://github.com/graphql/graphiql/commit/ca95547)) +- ensure css files move with babel dist ([ca95547](https://github.com/graphql/graphiql/commit/ca95547)) ## [0.0.6](https://github.com/graphql/graphiql/compare/graphiql-example-webpack@0.0.5...graphiql-example-webpack@0.0.6) (2019-12-03) ### Bug Fixes -- convert browserify build to webpack, fixes - [#976](https://github.com/graphql/graphiql/issues/976) - ([#1001](https://github.com/graphql/graphiql/issues/1001)) - ([3caf041](https://github.com/graphql/graphiql/commit/3caf041)) +- convert browserify build to webpack, fixes [#976](https://github.com/graphql/graphiql/issues/976) ([#1001](https://github.com/graphql/graphiql/issues/1001)) ([3caf041](https://github.com/graphql/graphiql/commit/3caf041)) ## 0.0.5 (2019-11-26) ### Bug Fixes -- webpack resolutions for - [#882](https://github.com/graphql/graphiql/issues/882), add webpack example - ([ea9df3e](https://github.com/graphql/graphiql/commit/ea9df3e)) +- webpack resolutions for [#882](https://github.com/graphql/graphiql/issues/882), add webpack example ([ea9df3e](https://github.com/graphql/graphiql/commit/ea9df3e)) diff --git a/examples/monaco-graphql-nextjs/src/components/editor.tsx b/examples/monaco-graphql-nextjs/src/components/editor.tsx index f614354d93f..6937b40fcb1 100644 --- a/examples/monaco-graphql-nextjs/src/components/editor.tsx +++ b/examples/monaco-graphql-nextjs/src/components/editor.tsx @@ -156,7 +156,7 @@ export default function Editor() { useEffect(() => { if (!schema && !loading) { setLoading(true); - getSchema() + void getSchema() .then(data => { if (!('data' in data)) { throw new Error( diff --git a/examples/monaco-graphql-nextjs/src/styles/globals.css b/examples/monaco-graphql-nextjs/src/styles/globals.css index 504cdc090c5..2a1436a33b2 100644 --- a/examples/monaco-graphql-nextjs/src/styles/globals.css +++ b/examples/monaco-graphql-nextjs/src/styles/globals.css @@ -6,7 +6,6 @@ main { height: 100vh; margin: 0; background-color: #1e1e1e; - height: 100vh; } body { diff --git a/examples/monaco-graphql-react-vite/src/App.tsx b/examples/monaco-graphql-react-vite/src/App.tsx index 11e71f6aea6..e7018397c73 100644 --- a/examples/monaco-graphql-react-vite/src/App.tsx +++ b/examples/monaco-graphql-react-vite/src/App.tsx @@ -158,7 +158,7 @@ export default function App() { useEffect(() => { if (!schema && !loading) { setLoading(true); - getSchema() + void getSchema() .then(data => { if (!('data' in data)) { throw new Error( diff --git a/examples/monaco-graphql-webpack/CHANGELOG.md b/examples/monaco-graphql-webpack/CHANGELOG.md index bd489042e77..f2c7debeffc 100644 --- a/examples/monaco-graphql-webpack/CHANGELOG.md +++ b/examples/monaco-graphql-webpack/CHANGELOG.md @@ -4,17 +4,11 @@ ### Patch Changes -- Updated dependencies - [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), - [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), - [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: +- Updated dependencies [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: - graphql-language-service@5.1.2 - monaco-graphql@1.1.8 -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. +All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [1.1.1-alpha.7](https://github.com/graphql/graphiql/compare/example-monaco-graphql-webpack@1.1.1-alpha.6...example-monaco-graphql-webpack@1.1.1-alpha.7) (2021-01-07) @@ -40,9 +34,7 @@ All notable changes to this project will be documented in this file. See ### Bug Fixes -- improve setSchema & schema loading, allow primitive schema - ([#1648](https://github.com/graphql/graphiql/issues/1648)) - ([975f29e](https://github.com/graphql/graphiql/commit/975f29ed6e21c7354c42ed778dfd1b52287f70c6)) +- improve setSchema & schema loading, allow primitive schema ([#1648](https://github.com/graphql/graphiql/issues/1648)) ([975f29e](https://github.com/graphql/graphiql/commit/975f29ed6e21c7354c42ed778dfd1b52287f70c6)) ## [1.1.1-alpha.1](https://github.com/graphql/graphiql/compare/example-monaco-graphql-webpack@1.1.1-alpha.0...example-monaco-graphql-webpack@1.1.1-alpha.1) (2020-08-12) @@ -56,17 +48,13 @@ All notable changes to this project will be documented in this file. See ### Features -- [RFC] GraphiQL rewrite for monaco editor, react context and redesign, i18n - ([#1523](https://github.com/graphql/graphiql/issues/1523)) - ([ad730cd](https://github.com/graphql/graphiql/commit/ad730cdc2e3cb7216d821a01725c60475989ee20)) +- [RFC] GraphiQL rewrite for monaco editor, react context and redesign, i18n ([#1523](https://github.com/graphql/graphiql/issues/1523)) ([ad730cd](https://github.com/graphql/graphiql/commit/ad730cdc2e3cb7216d821a01725c60475989ee20)) # [1.0.0](https://github.com/graphql/graphiql/compare/example-monaco-graphql-webpack@1.0.0-alpha.8...example-monaco-graphql-webpack@1.0.0) (2020-06-11) ### Features -- standalone monaco API - ([#1575](https://github.com/graphql/graphiql/issues/1575)) - ([954aa3d](https://github.com/graphql/graphiql/commit/954aa3d7159fd26bba9650824e0f668e417ca64f)) +- standalone monaco API ([#1575](https://github.com/graphql/graphiql/issues/1575)) ([954aa3d](https://github.com/graphql/graphiql/commit/954aa3d7159fd26bba9650824e0f668e417ca64f)) # [1.0.0-alpha.8](https://github.com/graphql/graphiql/compare/example-monaco-graphql-webpack@1.0.0-alpha.7...example-monaco-graphql-webpack@1.0.0-alpha.8) (2020-06-04) @@ -88,9 +76,5 @@ All notable changes to this project will be documented in this file. See ### Features -- Monaco Mode - Phase 2 - Mode & Worker - ([#1459](https://github.com/graphql/graphiql/issues/1459)) - ([bc95fb4](https://github.com/graphql/graphiql/commit/bc95fb46459a4437ff9471ff43c98e1c5c50f51e)) -- monaco-graphql docs, api, improvements - ([#1521](https://github.com/graphql/graphiql/issues/1521)) - ([c79158c](https://github.com/graphql/graphiql/commit/c79158c72e976ab286e7ec3fded7f3e2d24e50d0)) +- Monaco Mode - Phase 2 - Mode & Worker ([#1459](https://github.com/graphql/graphiql/issues/1459)) ([bc95fb4](https://github.com/graphql/graphiql/commit/bc95fb46459a4437ff9471ff43c98e1c5c50f51e)) +- monaco-graphql docs, api, improvements ([#1521](https://github.com/graphql/graphiql/issues/1521)) ([c79158c](https://github.com/graphql/graphiql/commit/c79158c72e976ab286e7ec3fded7f3e2d24e50d0)) diff --git a/examples/monaco-graphql-webpack/package.json b/examples/monaco-graphql-webpack/package.json index 4f89cba7101..e541319666c 100644 --- a/examples/monaco-graphql-webpack/package.json +++ b/examples/monaco-graphql-webpack/package.json @@ -10,11 +10,11 @@ }, "dependencies": { "graphql": "^16.6.0", - "graphql-language-service": "^5.1.3", + "graphql-language-service": "^5.1.4", "json-schema": "^0.4.0", "jsonc-parser": "3.2.0", "monaco-editor": "^0.36.0", - "monaco-graphql": "^1.2.0", + "monaco-graphql": "^1.2.1", "prettier": "^2.8.4" }, "devDependencies": { diff --git a/examples/monaco-graphql-webpack/src/index.ts b/examples/monaco-graphql-webpack/src/index.ts index 2f35ea8a3e2..13efd5b1676 100644 --- a/examples/monaco-graphql-webpack/src/index.ts +++ b/examples/monaco-graphql-webpack/src/index.ts @@ -13,9 +13,7 @@ const SITE_ID = '46a6b3c8-992f-4623-9a76-f1bd5d40505c'; let monacoGraphQLAPI: MonacoGraphQLAPI | null = null; -(async () => { - await render(); -})(); +void render(); async function render() { if (!schemaFetcher.token) { @@ -229,7 +227,7 @@ function renderToolbar(toolbar: HTMLElement) { const executionTray = document.createElement('div'); executionTray.id = 'execution-tray'; - executionTray.appendChild(executeOpButton); + executionTray.append(executeOpButton); executionTray.classList.add('align-right'); executeOpButton.id = 'execute-op'; @@ -243,12 +241,12 @@ function renderToolbar(toolbar: HTMLElement) { schemaStatus.id = 'schema-status'; schemaStatus.innerHTML = `Schema Empty`; - toolbar.appendChild(schemaPicker); - - toolbar.appendChild(schemaReloadButton); - toolbar.appendChild(schemaStatus); - - toolbar?.appendChild(executeOpButton); + toolbar.append( + schemaPicker, + schemaReloadButton, + schemaStatus, + executeOpButton, + ); return { schemaReloadButton, executeOpButton, schemaStatus, schemaPicker }; } @@ -256,15 +254,15 @@ function getSchemaPicker(): HTMLSelectElement { const schemaPicker = document.createElement('select'); schemaPicker.id = 'schema-picker'; - schemaOptions.forEach(option => { + for (const option of schemaOptions) { const optEl = document.createElement('option'); optEl.value = option.value; optEl.label = option.label; if (option.default) { optEl.selected = true; } - schemaPicker.appendChild(optEl); - }); + schemaPicker.append(optEl); + } return schemaPicker; } @@ -297,7 +295,7 @@ export function renderGithubLoginButton() { const toolbar = document.getElementById('toolbar'); toolbar?.appendChild(logoutButton); } else { - githubLoginWrapper.appendChild(githubButton); + githubLoginWrapper.append(githubButton); document.getElementById('flex-wrapper')?.prepend(githubLoginWrapper); } @@ -314,7 +312,7 @@ export function renderGithubLoginButton() { if (err) { console.error('Error authenticating with GitHub:', err); } else { - schemaFetcher.setApiToken(data.token); + await schemaFetcher.setApiToken(data.token); await render(); } }, diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000000..215b7dfa542 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,8 @@ +# Settings in the [build] context are global and are applied to +# all contexts unless otherwise overridden by more specific contexts. +[build] + publish = "packages/graphiql" + + # Default build command. + command = "yarn build && yarn build-bundles && yarn build-docs" + environment = { YARN_FLAGS = "--frozen-lockfile --immutable"} diff --git a/package.json b/package.json index d4f9b1c83b1..390b7d9f437 100644 --- a/package.json +++ b/package.json @@ -105,8 +105,8 @@ "@types/react": "^17.0.37", "@types/react-dom": "^17.0.17", "@types/ws": "^7.4.0", - "@typescript-eslint/eslint-plugin": "^5.54.1", - "@typescript-eslint/parser": "^5.54.1", + "@typescript-eslint/eslint-plugin": "rc-v6", + "@typescript-eslint/parser": "rc-v6", "aws-serverless-express": "^3.4.0", "babel-jest": "^29.4.3", "concurrently": "^7.0.0", diff --git a/packages/cm6-graphql/CHANGELOG.md b/packages/cm6-graphql/CHANGELOG.md index 4958aa9865f..911a5d22074 100644 --- a/packages/cm6-graphql/CHANGELOG.md +++ b/packages/cm6-graphql/CHANGELOG.md @@ -1,82 +1,55 @@ # cm6-graphql +## 0.0.5 + +### Patch Changes + +- [#3127](https://github.com/graphql/graphiql/pull/3127) [`0d2bb2bc`](https://github.com/graphql/graphiql/commit/0d2bb2bcc6522e156e2d70f3be553bd4b60c8ee1) Thanks [@imolorhe](https://github.com/imolorhe)! - Updated cm6-graphql package README + +- Updated dependencies [[`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9)]: + - graphql-language-service@5.1.4 + ## 0.0.4 ### Patch Changes -- [#3075](https://github.com/graphql/graphiql/pull/3075) - [`9c1a02db`](https://github.com/graphql/graphiql/commit/9c1a02dbff4a39fe999873912daec7dcd1d39b5c) - Thanks [@acao](https://github.com/acao)! - another manual release attempt to - trigger versioning - -- [#3074](https://github.com/graphql/graphiql/pull/3074) - [`7cb2a2f1`](https://github.com/graphql/graphiql/commit/7cb2a2f156d918fd57b7d3757ee1ecc0f4dab4ce) - Thanks [@acao](https://github.com/acao)! - Fix release bug, trigger changeset - release action - -- [#3069](https://github.com/graphql/graphiql/pull/3069) - [`d922e930`](https://github.com/graphql/graphiql/commit/d922e930f77dff879212ad39191ad6a1b8f7dd8a) - Thanks [@sergeichestakov](https://github.com/sergeichestakov)! - Added - graphql-language-service as a direct dep of cm6-graphql and update peer - dependencies - -- Updated dependencies - [[`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), - [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: +- [#3075](https://github.com/graphql/graphiql/pull/3075) [`9c1a02db`](https://github.com/graphql/graphiql/commit/9c1a02dbff4a39fe999873912daec7dcd1d39b5c) Thanks [@acao](https://github.com/acao)! - another manual release attempt to trigger versioning + +- [#3074](https://github.com/graphql/graphiql/pull/3074) [`7cb2a2f1`](https://github.com/graphql/graphiql/commit/7cb2a2f156d918fd57b7d3757ee1ecc0f4dab4ce) Thanks [@acao](https://github.com/acao)! - Fix release bug, trigger changeset release action + +- [#3069](https://github.com/graphql/graphiql/pull/3069) [`d922e930`](https://github.com/graphql/graphiql/commit/d922e930f77dff879212ad39191ad6a1b8f7dd8a) Thanks [@sergeichestakov](https://github.com/sergeichestakov)! - Added graphql-language-service as a direct dep of cm6-graphql and update peer dependencies + +- Updated dependencies [[`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: - graphql-language-service@5.1.3 ## 0.0.3 ### Patch Changes -- [#2995](https://github.com/graphql/graphiql/pull/2995) - [`5f276c41`](https://github.com/graphql/graphiql/commit/5f276c415ad93350382fec873025ffecc9a29d9d) - Thanks [@imolorhe](https://github.com/imolorhe)! - fix(cm6-graphql): Fix query - token used as field name +- [#2995](https://github.com/graphql/graphiql/pull/2995) [`5f276c41`](https://github.com/graphql/graphiql/commit/5f276c415ad93350382fec873025ffecc9a29d9d) Thanks [@imolorhe](https://github.com/imolorhe)! - fix(cm6-graphql): Fix query token used as field name -- [#2962](https://github.com/graphql/graphiql/pull/2962) - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) - Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add - `--max-warnings=0` and `--cache` flags +- [#2962](https://github.com/graphql/graphiql/pull/2962) [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add `--max-warnings=0` and `--cache` flags -- [#2940](https://github.com/graphql/graphiql/pull/2940) - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-node-protocol` rule +- [#2940](https://github.com/graphql/graphiql/pull/2940) [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-node-protocol` rule ## 0.0.2 ### Patch Changes -- [#2931](https://github.com/graphql/graphiql/pull/2931) - [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and - `no-else-return` rules +- [#2931](https://github.com/graphql/graphiql/pull/2931) [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and `no-else-return` rules -- [#2922](https://github.com/graphql/graphiql/pull/2922) - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) - Thanks [@B2o5T](https://github.com/B2o5T)! - extends - `plugin:import/recommended` and fix warnings +- [#2922](https://github.com/graphql/graphiql/pull/2922) [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) Thanks [@B2o5T](https://github.com/B2o5T)! - extends `plugin:import/recommended` and fix warnings -- [#2992](https://github.com/graphql/graphiql/pull/2992) - [`cc245246`](https://github.com/graphql/graphiql/commit/cc2452467688f3cdcd7a196dddf47e3b81367d62) - Thanks [@acao](https://github.com/acao)! - fix tsconfig reference, new netlify - deploy +- [#2992](https://github.com/graphql/graphiql/pull/2992) [`cc245246`](https://github.com/graphql/graphiql/commit/cc2452467688f3cdcd7a196dddf47e3b81367d62) Thanks [@acao](https://github.com/acao)! - fix tsconfig reference, new netlify deploy ## 0.0.1 ### Patch Changes -- [#2867](https://github.com/graphql/graphiql/pull/2867) - [`9fd12838`](https://github.com/graphql/graphiql/commit/9fd128381a86220a7c658f21d72baa8eea45a8af) - Thanks [@imolorhe](https://github.com/imolorhe)! - fix: fixed "Mark - decorations may not be empty" error +- [#2867](https://github.com/graphql/graphiql/pull/2867) [`9fd12838`](https://github.com/graphql/graphiql/commit/9fd128381a86220a7c658f21d72baa8eea45a8af) Thanks [@imolorhe](https://github.com/imolorhe)! - fix: fixed "Mark decorations may not be empty" error ## 0.0.0 ### Patch Changes -- [#2852](https://github.com/graphql/graphiql/pull/2852) - [`20869583`](https://github.com/graphql/graphiql/commit/20869583eff563f5d6494e93302a835f0e034f4b) - Thanks [@acao](https://github.com/acao)! - First release of a modern - codemirror 6 mode for graphql by @imolorhe! +- [#2852](https://github.com/graphql/graphiql/pull/2852) [`20869583`](https://github.com/graphql/graphiql/commit/20869583eff563f5d6494e93302a835f0e034f4b) Thanks [@acao](https://github.com/acao)! - First release of a modern codemirror 6 mode for graphql by @imolorhe! diff --git a/packages/cm6-graphql/README.md b/packages/cm6-graphql/README.md index f0e93a60084..40e6b8d06b5 100644 --- a/packages/cm6-graphql/README.md +++ b/packages/cm6-graphql/README.md @@ -1 +1,52 @@ -# CodeMirror 6 GraphQL Language package +# CodeMirror 6 GraphQL Language extension + +[![NPM](https://img.shields.io/npm/v/cm6-graphql.svg?style=flat-square)](https://npmjs.com/cm6-graphql) +![npm downloads](https://img.shields.io/npm/dm/cm6-graphql?label=npm%20downloads) +[![License](https://img.shields.io/npm/l/cm6-graphql.svg?style=flat-square)](LICENSE) +[Discord Channel](https://discord.gg/cffZwk8NJW) + +Provides CodeMirror 6 extension with a parser mode for GraphQL along with a +autocomplete and linting powered by your GraphQL Schema. + +### Getting Started + +```sh +npm install --save cm6-graphql +``` + +[CodeMirror 6](https://codemirror.net/) customization is done through +[extensions](https://codemirror.net/docs/guide/#extension). This package an +extension that customizes codemirror 6 for GraphQL. + +```js +import { basicSetup, EditorView } from 'codemirror'; +import { graphql } from 'cm6-graphql'; + +const view = new EditorView({ + doc: `mutation mutationName { + setString(value: "newString") + }`, + extensions: [basicSetup, graphql(myGraphQLSchema)], + parent: document.body, +}); +``` + +Note: You have to provide a theme to CodeMirror 6 for the styling you want. You +can take a look at +[this example](https://github.com/graphql/graphiql/blob/main/examples/cm6-graphql-parcel/src/index.ts) +or see the CodeMirror 6 +[documentation examples](https://codemirror.net/examples/styling/) for more +details. + +### Updating schema + +If you need to update the GraphQL schema used in the editor dynamically, you can +call `updateSchema` with the CodeMirror `EditorView` instance and the new schema + +```js +import { updateSchema } from 'cm6-graphql'; + +const onNewSchema = schema => { + updateSchema(view, schema); +}; +``` diff --git a/packages/cm6-graphql/package.json b/packages/cm6-graphql/package.json index 61901553a3d..d0d2bf7092e 100644 --- a/packages/cm6-graphql/package.json +++ b/packages/cm6-graphql/package.json @@ -1,6 +1,6 @@ { "name": "cm6-graphql", - "version": "0.0.4", + "version": "0.0.5", "description": "GraphQL language support for CodeMirror 6", "scripts": { "build": "cm-buildhelper src/index.ts", @@ -15,7 +15,7 @@ "types": "dist/index.d.ts", "sideEffects": false, "dependencies": { - "graphql-language-service": "^5.1.3" + "graphql-language-service": "^5.1.4" }, "devDependencies": { "@codemirror/autocomplete": "^6.0.0", diff --git a/packages/cm6-graphql/src/state.ts b/packages/cm6-graphql/src/state.ts index 4b2c6ef3c29..5851715454b 100644 --- a/packages/cm6-graphql/src/state.ts +++ b/packages/cm6-graphql/src/state.ts @@ -4,10 +4,8 @@ import { GraphQLSchema } from 'graphql'; import { GqlExtensionsOptions } from './interfaces'; const schemaEffect = StateEffect.define(); -const schemaStateField = StateField.define({ - create() { - return undefined; - }, +const schemaStateField = StateField.define({ + create() {}, update(schema, tr) { for (const e of tr.effects) { if (e.is(schemaEffect)) { @@ -20,10 +18,8 @@ const schemaStateField = StateField.define({ }); const optionsEffect = StateEffect.define(); -const optionsStateField = StateField.define({ - create() { - return undefined; - }, +const optionsStateField = StateField.define({ + create() {}, update(opts, tr) { for (const e of tr.effects) { if (e.is(optionsEffect)) { diff --git a/packages/codemirror-graphql/CHANGELOG.md b/packages/codemirror-graphql/CHANGELOG.md index 46254088b58..349d19ba45c 100644 --- a/packages/codemirror-graphql/CHANGELOG.md +++ b/packages/codemirror-graphql/CHANGELOG.md @@ -1,217 +1,151 @@ # Change Log +## 2.0.6 + +### Patch Changes + +- [#3113](https://github.com/graphql/graphiql/pull/3113) [`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9) Thanks [@B2o5T](https://github.com/B2o5T)! - replace `.forEach` with `for..of` + +- [#3109](https://github.com/graphql/graphiql/pull/3109) [`51007002`](https://github.com/graphql/graphiql/commit/510070028b7d8e98f2ba25f396519976aea5fa4b) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-floating-promises` eslint rule + +- Updated dependencies [[`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9)]: + - graphql-language-service@5.1.4 + ## 2.0.5 ### Patch Changes -- [#3046](https://github.com/graphql/graphiql/pull/3046) - [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) - Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index - access +- [#3046](https://github.com/graphql/graphiql/pull/3046) [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index access -- Updated dependencies - [[`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), - [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: +- Updated dependencies [[`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: - graphql-language-service@5.1.3 ## 2.0.4 ### Patch Changes -- [#2993](https://github.com/graphql/graphiql/pull/2993) - [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4) - Thanks [@B2o5T](https://github.com/B2o5T)! - add - `unicorn/consistent-destructuring` rule +- [#2993](https://github.com/graphql/graphiql/pull/2993) [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4) Thanks [@B2o5T](https://github.com/B2o5T)! - add `unicorn/consistent-destructuring` rule -- [#2962](https://github.com/graphql/graphiql/pull/2962) - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) - Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add - `--max-warnings=0` and `--cache` flags +- [#2962](https://github.com/graphql/graphiql/pull/2962) [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add `--max-warnings=0` and `--cache` flags -- [#2940](https://github.com/graphql/graphiql/pull/2940) - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-node-protocol` rule +- [#2940](https://github.com/graphql/graphiql/pull/2940) [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-node-protocol` rule -- Updated dependencies - [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), - [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), - [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: +- Updated dependencies [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: - graphql-language-service@5.1.2 ## 2.0.3 ### Patch Changes -- [#2931](https://github.com/graphql/graphiql/pull/2931) - [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and - `no-else-return` rules - -- [#2922](https://github.com/graphql/graphiql/pull/2922) - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) - Thanks [@B2o5T](https://github.com/B2o5T)! - extends - `plugin:import/recommended` and fix warnings - -- [#2941](https://github.com/graphql/graphiql/pull/2941) - [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-logical-operator-over-ternary` rule - -- [#2937](https://github.com/graphql/graphiql/pull/2937) - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-includes` - -- [#2936](https://github.com/graphql/graphiql/pull/2936) - [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `lonely-if`/`unicorn/lonely-if` rules - -- [#2963](https://github.com/graphql/graphiql/pull/2963) - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `prefer-destructuring` - rule - -- Updated dependencies - [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), - [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), - [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), - [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), - [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), - [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171)]: +- [#2931](https://github.com/graphql/graphiql/pull/2931) [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and `no-else-return` rules + +- [#2922](https://github.com/graphql/graphiql/pull/2922) [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) Thanks [@B2o5T](https://github.com/B2o5T)! - extends `plugin:import/recommended` and fix warnings + +- [#2941](https://github.com/graphql/graphiql/pull/2941) [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-logical-operator-over-ternary` rule + +- [#2937](https://github.com/graphql/graphiql/pull/2937) [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-includes` + +- [#2936](https://github.com/graphql/graphiql/pull/2936) [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `lonely-if`/`unicorn/lonely-if` rules + +- [#2963](https://github.com/graphql/graphiql/pull/2963) [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `prefer-destructuring` rule + +- Updated dependencies [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171)]: - graphql-language-service@5.1.1 ## 2.0.2 ### Patch Changes -- [#2852](https://github.com/graphql/graphiql/pull/2852) - [`20869583`](https://github.com/graphql/graphiql/commit/20869583eff563f5d6494e93302a835f0e034f4b) - Thanks [@acao](https://github.com/acao)! - increment @codemirror/language peer - dependency to 6.0.0 +- [#2852](https://github.com/graphql/graphiql/pull/2852) [`20869583`](https://github.com/graphql/graphiql/commit/20869583eff563f5d6494e93302a835f0e034f4b) Thanks [@acao](https://github.com/acao)! - increment @codemirror/language peer dependency to 6.0.0 ## 2.0.1 ### Patch Changes -- [#2847](https://github.com/graphql/graphiql/pull/2847) - [`353f434e`](https://github.com/graphql/graphiql/commit/353f434e5f6bfd1bf6f8ee97d4ae8ce4f897085f) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Don't show - error in variable editor linting for missing input objects that have a default - value +- [#2847](https://github.com/graphql/graphiql/pull/2847) [`353f434e`](https://github.com/graphql/graphiql/commit/353f434e5f6bfd1bf6f8ee97d4ae8ce4f897085f) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Don't show error in variable editor linting for missing input objects that have a default value ## 2.0.0 ### Major Changes -- [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: Change the implementation - of the info popup when hovering items in the code editor: +- [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: Change the implementation of the info popup when hovering items in the code editor: - For fields the type prefix was removed, i.e. `MyType.myField` -> `myField` - - For args, the type and field was removed, i.e. - `MyType.myField(myArg: MyArgType)` -> `myArg: MyArgType` - - The DOM structure of the info tooltip changed to enable more flexible - styling: - - The first section (i.e. the clickable parts like type and field name) are - wrapped in an additional div - - The markdown content for deprecation reasons is wrapped in an additional - div + - For args, the type and field was removed, i.e. `MyType.myField(myArg: MyArgType)` -> `myArg: MyArgType` + - The DOM structure of the info tooltip changed to enable more flexible styling: + - The first section (i.e. the clickable parts like type and field name) are wrapped in an additional div + - The markdown content for deprecation reasons is wrapped in an additional div ## 1.3.3 ### Patch Changes -- Updated dependencies - [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: +- Updated dependencies [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: - graphql-language-service@5.1.0 ## 1.3.2 ### Patch Changes -- Updated dependencies - [[`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: +- Updated dependencies [[`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: - graphql-language-service@5.0.6 ## 1.3.1 ### Patch Changes -- Updated dependencies - [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: +- Updated dependencies [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: - graphql-language-service@5.0.5 ## 1.3.0 ### Minor Changes -- [#2369](https://github.com/graphql/graphiql/pull/2369) - [`2dec55f2`](https://github.com/graphql/graphiql/commit/2dec55f2c5e979cc7bb1adadff4fb063775b088c) - Thanks [@sergeichestakov](https://github.com/sergeichestakov)! - Moved - @codemirror/language to peer dependencies and upgraded to 0.20.0 +- [#2369](https://github.com/graphql/graphiql/pull/2369) [`2dec55f2`](https://github.com/graphql/graphiql/commit/2dec55f2c5e979cc7bb1adadff4fb063775b088c) Thanks [@sergeichestakov](https://github.com/sergeichestakov)! - Moved @codemirror/language to peer dependencies and upgraded to 0.20.0 ### Patch Changes -- Updated dependencies - [[`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2)]: +- Updated dependencies [[`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2)]: - graphql-language-service@5.0.4 ## 1.2.17 ### Patch Changes -- Updated dependencies - [[`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902)]: +- Updated dependencies [[`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902)]: - graphql-language-service@5.0.3 ## 1.2.16 ### Patch Changes -- Updated dependencies - [[`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f)]: +- Updated dependencies [[`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f)]: - graphql-language-service@5.0.2 ## 1.2.15 ### Patch Changes -- [#2261](https://github.com/graphql/graphiql/pull/2261) - [`261f2044`](https://github.com/graphql/graphiql/commit/261f2044066412e40f9962bef55295f7c9c35aec) - Thanks [@acao](https://github.com/acao)! - Fix typescript path resolution bug - in codemirror-graphql +- [#2261](https://github.com/graphql/graphiql/pull/2261) [`261f2044`](https://github.com/graphql/graphiql/commit/261f2044066412e40f9962bef55295f7c9c35aec) Thanks [@acao](https://github.com/acao)! - Fix typescript path resolution bug in codemirror-graphql ## 1.2.14 ### Patch Changes -- Updated dependencies - [[`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa), - [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa)]: +- Updated dependencies [[`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa), [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa)]: - graphql-language-service@5.0.1 ## 1.2.13 ### Patch Changes -- Updated dependencies - [[`2502a364`](https://github.com/graphql/graphiql/commit/2502a364b74dc754d92baa1579b536cf42139958)]: +- Updated dependencies [[`2502a364`](https://github.com/graphql/graphiql/commit/2502a364b74dc754d92baa1579b536cf42139958)]: - graphql-language-service@5.0.0 ## 1.2.12 ### Patch Changes -- Updated dependencies - [[`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f), - [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c), - [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5)]: +- Updated dependencies [[`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f), [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c), [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5)]: - graphql-language-service@4.1.5 ## 1.2.11 @@ -225,26 +159,21 @@ ### Patch Changes -- Updated dependencies - [[`a44772d6`](https://github.com/graphql/graphiql/commit/a44772d6af97254c4f159ea7237e842a3e3719e8)]: +- Updated dependencies [[`a44772d6`](https://github.com/graphql/graphiql/commit/a44772d6af97254c4f159ea7237e842a3e3719e8)]: - graphql-language-service@4.1.3 ## 1.2.9 ### Patch Changes -- Updated dependencies - [[`e20760fb`](https://github.com/graphql/graphiql/commit/e20760fbd95c13d6d549cba3faa15a59aee9a2c0)]: +- Updated dependencies [[`e20760fb`](https://github.com/graphql/graphiql/commit/e20760fbd95c13d6d549cba3faa15a59aee9a2c0)]: - graphql-language-service@4.1.2 ## 1.2.8 ### Patch Changes -- [#2091](https://github.com/graphql/graphiql/pull/2091) - [`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63) - Thanks [@acao](https://github.com/acao)! - Fix graphql 15 related issues. - Should now build & test interchangeably. +- [#2091](https://github.com/graphql/graphiql/pull/2091) [`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63) Thanks [@acao](https://github.com/acao)! - Fix graphql 15 related issues. Should now build & test interchangeably. - Updated dependencies []: - graphql-language-service@4.1.1 @@ -253,24 +182,21 @@ ### Patch Changes -- Updated dependencies - [[`0f1f90ce`](https://github.com/graphql/graphiql/commit/0f1f90ce8f4a25ddebdaf7a9ddbe136214aa64a3)]: +- Updated dependencies [[`0f1f90ce`](https://github.com/graphql/graphiql/commit/0f1f90ce8f4a25ddebdaf7a9ddbe136214aa64a3)]: - graphql-language-service@4.1.0 ## 1.2.6 ### Patch Changes -- Updated dependencies - [[`9df315b4`](https://github.com/graphql/graphiql/commit/9df315b44896efa313ed6744445fc8f9e702ebc3)]: +- Updated dependencies [[`9df315b4`](https://github.com/graphql/graphiql/commit/9df315b44896efa313ed6744445fc8f9e702ebc3)]: - graphql-language-service@4.0.0 ## 1.2.5 ### Patch Changes -- Updated dependencies - [[`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1)]: +- Updated dependencies [[`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1)]: - graphql-language-service@3.2.5 ## 1.2.4 @@ -284,74 +210,47 @@ ### Patch Changes -- [`c42b145f`](https://github.com/graphql/graphiql/commit/c42b145fffeaefbd1103bc7addee1873e939bc83) - [#2052](https://github.com/graphql/graphiql/pull/2052) Thanks - [@imolorhe](https://github.com/imolorhe)! - Added cm6-legacy to published - files list +- [`c42b145f`](https://github.com/graphql/graphiql/commit/c42b145fffeaefbd1103bc7addee1873e939bc83) [#2052](https://github.com/graphql/graphiql/pull/2052) Thanks [@imolorhe](https://github.com/imolorhe)! - Added cm6-legacy to published files list ## 1.2.2 ### Patch Changes -- [`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf) - [#2047](https://github.com/graphql/graphiql/pull/2047) Thanks - [@willstott101](https://github.com/willstott101)! - Source code included in - all packages to fix source maps. codemirror-graphql includes esm build in - package. +- [`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf) [#2047](https://github.com/graphql/graphiql/pull/2047) Thanks [@willstott101](https://github.com/willstott101)! - Source code included in all packages to fix source maps. codemirror-graphql includes esm build in package. -* [`8b486555`](https://github.com/graphql/graphiql/commit/8b486555e2aa4d90891070a1bbc52b59d9c670c4) - [#2046](https://github.com/graphql/graphiql/pull/2046) Thanks - [@willstott101](https://github.com/willstott101)! - Further resolves #1944, - replaces graphql-language-service-parser with graphql-language-service in - codemirror-graphql +* [`8b486555`](https://github.com/graphql/graphiql/commit/8b486555e2aa4d90891070a1bbc52b59d9c670c4) [#2046](https://github.com/graphql/graphiql/pull/2046) Thanks [@willstott101](https://github.com/willstott101)! - Further resolves #1944, replaces graphql-language-service-parser with graphql-language-service in codemirror-graphql -* Updated dependencies - [[`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf)]: +* Updated dependencies [[`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf)]: - graphql-language-service@3.2.3 ## 1.2.1 ### Patch Changes -- [`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf) - [#2045](https://github.com/graphql/graphiql/pull/2045) Thanks - [@acao](https://github.com/acao)! - fix graphql-js peer dependencies - - [#2044](https://github.com/graphql/graphiql/pull/2044) +- [`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf) [#2045](https://github.com/graphql/graphiql/pull/2045) Thanks [@acao](https://github.com/acao)! - fix graphql-js peer dependencies - [#2044](https://github.com/graphql/graphiql/pull/2044) -- Updated dependencies - [[`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf)]: +- Updated dependencies [[`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf)]: - graphql-language-service@3.2.2 ## 1.2.0 ### Minor Changes -- [`d0c22c4f`](https://github.com/graphql/graphiql/commit/d0c22c4fce5ea39611c7ecee553943fdf27fd03e) - [#2035](https://github.com/graphql/graphiql/pull/2035) Thanks - [@imolorhe](https://github.com/imolorhe)! - Added Codemirror 6 legacy support +- [`d0c22c4f`](https://github.com/graphql/graphiql/commit/d0c22c4fce5ea39611c7ecee553943fdf27fd03e) [#2035](https://github.com/graphql/graphiql/pull/2035) Thanks [@imolorhe](https://github.com/imolorhe)! - Added Codemirror 6 legacy support ### Patch Changes -- [`b79bf304`](https://github.com/graphql/graphiql/commit/b79bf304045add4b5c3b2539dd6b551a64e6ed87) - [#2037](https://github.com/graphql/graphiql/pull/2037) Thanks - [@acao](https://github.com/acao)! - Resolves #1944, replaces - graphql-language-service-utils with graphql-language-service in - codemirror-graphql +- [`b79bf304`](https://github.com/graphql/graphiql/commit/b79bf304045add4b5c3b2539dd6b551a64e6ed87) [#2037](https://github.com/graphql/graphiql/pull/2037) Thanks [@acao](https://github.com/acao)! - Resolves #1944, replaces graphql-language-service-utils with graphql-language-service in codemirror-graphql ## 1.1.0 ### Minor Changes -- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) - [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks - [@acao](https://github.com/acao)! - upgrade to - `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! +- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks [@acao](https://github.com/acao)! - upgrade to `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! ### Patch Changes -- Updated dependencies - [[`8869c4b1`](https://github.com/graphql/graphiql/commit/8869c4b18c900b9b35556255587ef5130a96a4d5), - [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a)]: +- Updated dependencies [[`8869c4b1`](https://github.com/graphql/graphiql/commit/8869c4b18c900b9b35556255587ef5130a96a4d5), [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a)]: - graphql-language-service-interface@2.9.0 - graphql-language-service-parser@1.10.0 @@ -359,43 +258,30 @@ ### Patch Changes -- [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8) - [#1777](https://github.com/graphql/graphiql/pull/1777) Thanks - [@dwwoelfel](https://github.com/dwwoelfel)! - adopt block string parsing for - variables in language parser +- [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8) [#1777](https://github.com/graphql/graphiql/pull/1777) Thanks [@dwwoelfel](https://github.com/dwwoelfel)! - adopt block string parsing for variables in language parser -- Updated dependencies - [[`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8)]: +- Updated dependencies [[`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8)]: - graphql-language-service-parser@1.9.3 ## 1.0.2 ### Patch Changes -- [`5b8a057d`](https://github.com/graphql/graphiql/commit/5b8a057dd64ebecc391be32176a2403bb9d9ff92) - [#1838](https://github.com/graphql/graphiql/pull/1838) Thanks - [@acao](https://github.com/acao)! - Set all cross-runtime build targets to es6 +- [`5b8a057d`](https://github.com/graphql/graphiql/commit/5b8a057dd64ebecc391be32176a2403bb9d9ff92) [#1838](https://github.com/graphql/graphiql/pull/1838) Thanks [@acao](https://github.com/acao)! - Set all cross-runtime build targets to es6 ## 1.0.1 ### Patch Changes -- [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) - [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks - [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 - & 15. `14.5.0` minimum is for built-in typescript types, and another method - only available in `14.4.0` +- [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 & 15. `14.5.0` minimum is for built-in typescript types, and another method only available in `14.4.0` ## 1.0.0 ### Major Changes -- [`b4fc16c0`](https://github.com/graphql/graphiql/commit/b4fc16c025da6f466727dc17cab6026d14c6e7fe) - Thanks [@imolorhe](https://github.com/imolorhe)! - BREAKING CHANGE Migrate to - Typescript - [@imolorhe](https://github.com/imolorhe) +- [`b4fc16c0`](https://github.com/graphql/graphiql/commit/b4fc16c025da6f466727dc17cab6026d14c6e7fe) Thanks [@imolorhe](https://github.com/imolorhe)! - BREAKING CHANGE Migrate to Typescript - [@imolorhe](https://github.com/imolorhe) -All notable changes to this project will be documented in this file. See -[Conventional Commits](https://conventionalcommits.org) for commit guidelines. +All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. ## [0.15.2](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.15.1...codemirror-graphql@0.15.2) (2021-01-07) @@ -405,26 +291,19 @@ All notable changes to this project will be documented in this file. See ### Bug Fixes -- bug with externalFragments in codemirror - ([#1751](https://github.com/graphql/graphiql/issues/1751)) - ([f423e61](https://github.com/graphql/graphiql/commit/f423e615330bf8529f4068889d6760501b732527)) +- bug with externalFragments in codemirror ([#1751](https://github.com/graphql/graphiql/issues/1751)) ([f423e61](https://github.com/graphql/graphiql/commit/f423e615330bf8529f4068889d6760501b732527)) ## [0.15.0](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.14.0...codemirror-graphql@0.15.0) (2021-01-07) ### Features -- implied or external fragments, for - [#612](https://github.com/graphql/graphiql/issues/612) - ([#1750](https://github.com/graphql/graphiql/issues/1750)) - ([cfed265](https://github.com/graphql/graphiql/commit/cfed265e3cf31875b39ea517781a217fcdfcadc2)) +- implied or external fragments, for [#612](https://github.com/graphql/graphiql/issues/612) ([#1750](https://github.com/graphql/graphiql/issues/1750)) ([cfed265](https://github.com/graphql/graphiql/commit/cfed265e3cf31875b39ea517781a217fcdfcadc2)) ## [0.14.0](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.13.1...codemirror-graphql@0.14.0) (2021-01-03) ### Features -- merge completion logic (for implements &, variables) - ([#1747](https://github.com/graphql/graphiql/issues/1747)) - ([0ac0a85](https://github.com/graphql/graphiql/commit/0ac0a856cfc715d7885a9965a9a9114ef2ca4b1a)) +- merge completion logic (for implements &, variables) ([#1747](https://github.com/graphql/graphiql/issues/1747)) ([0ac0a85](https://github.com/graphql/graphiql/commit/0ac0a856cfc715d7885a9965a9a9114ef2ca4b1a)) ## [0.13.1](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.13.0...codemirror-graphql@0.13.1) (2020-12-28) @@ -434,9 +313,7 @@ All notable changes to this project will be documented in this file. See ### Features -- provide validation rules via props - ([#1716](https://github.com/graphql/graphiql/issues/1716)) - ([0c5785c](https://github.com/graphql/graphiql/commit/0c5785c82adbd4affb25300ae2d128b42c9b81fe)) +- provide validation rules via props ([#1716](https://github.com/graphql/graphiql/issues/1716)) ([0c5785c](https://github.com/graphql/graphiql/commit/0c5785c82adbd4affb25300ae2d128b42c9b81fe)) ## [0.12.4](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.3...codemirror-graphql@0.12.4) (2020-11-28) @@ -446,9 +323,7 @@ All notable changes to this project will be documented in this file. See ### Bug Fixes -- **codemirror-graphql:** give interface field name suggestions - ([#1695](https://github.com/graphql/graphiql/issues/1695)) - ([669b301](https://github.com/graphql/graphiql/commit/669b3013fc679eca7c4e5c8ed6b0cd2fb2dbf2dc)) +- **codemirror-graphql:** give interface field name suggestions ([#1695](https://github.com/graphql/graphiql/issues/1695)) ([669b301](https://github.com/graphql/graphiql/commit/669b3013fc679eca7c4e5c8ed6b0cd2fb2dbf2dc)) ## [0.12.2](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.2-alpha.2...codemirror-graphql@0.12.2) (2020-09-18) @@ -474,9 +349,7 @@ All notable changes to this project will be documented in this file. See ### Bug Fixes -- value of documentation in completion list - ([#1567](https://github.com/graphql/graphiql/issues/1567)) - ([39c00a5](https://github.com/graphql/graphiql/commit/39c00a55d7af43ce4e57ad9b1d5cd55393beb0d0)) +- value of documentation in completion list ([#1567](https://github.com/graphql/graphiql/issues/1567)) ([39c00a5](https://github.com/graphql/graphiql/commit/39c00a55d7af43ce4e57ad9b1d5cd55393beb0d0)) ## [0.12.0-alpha.11](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.0-alpha.10...codemirror-graphql@0.12.0-alpha.11) (2020-06-04) @@ -486,11 +359,8 @@ All notable changes to this project will be documented in this file. See ### Bug Fixes -- cleanup cache entry from lerna publish - ([4a26218](https://github.com/graphql/graphiql/commit/4a2621808a1aea8b30d5d27b8d86a60bf2b44b01)) -- make list type and non-nullable type available - ([#902](https://github.com/graphql/graphiql/issues/902)) - ([cea837f](https://github.com/graphql/graphiql/commit/cea837ff77c36dadb01b4302282821b00d7f5f2f)) +- cleanup cache entry from lerna publish ([4a26218](https://github.com/graphql/graphiql/commit/4a2621808a1aea8b30d5d27b8d86a60bf2b44b01)) +- make list type and non-nullable type available ([#902](https://github.com/graphql/graphiql/issues/902)) ([cea837f](https://github.com/graphql/graphiql/commit/cea837ff77c36dadb01b4302282821b00d7f5f2f)) ## [0.12.0-alpha.9](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.0-alpha.8...codemirror-graphql@0.12.0-alpha.9) (2020-05-28) @@ -512,10 +382,7 @@ All notable changes to this project will be documented in this file. See ### Features -- upgrade to graphql@15.0.0 for - [#1191](https://github.com/graphql/graphiql/issues/1191) - ([#1204](https://github.com/graphql/graphiql/issues/1204)) - ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) +- upgrade to graphql@15.0.0 for [#1191](https://github.com/graphql/graphiql/issues/1191) ([#1204](https://github.com/graphql/graphiql/issues/1204)) ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) ## [0.12.0-alpha.4](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.12.0-alpha.3...codemirror-graphql@0.12.0-alpha.4) (2020-04-03) @@ -533,44 +400,31 @@ All notable changes to this project will be documented in this file. See ### Bug Fixes -- linting issues, trailingCommas: all - ([#1099](https://github.com/graphql/graphiql/issues/1099)) - ([de4005b](https://github.com/graphql/graphiql/commit/de4005b)) -- screenshot/gif urls - ([e3ea2fc](https://github.com/graphql/graphiql/commit/e3ea2fc)) +- linting issues, trailingCommas: all ([#1099](https://github.com/graphql/graphiql/issues/1099)) ([de4005b](https://github.com/graphql/graphiql/commit/de4005b)) +- screenshot/gif urls ([e3ea2fc](https://github.com/graphql/graphiql/commit/e3ea2fc)) ### Features -- convert LSP Server to Typescript, remove watchman - ([#1138](https://github.com/graphql/graphiql/issues/1138)) - ([8e33dbb](https://github.com/graphql/graphiql/commit/8e33dbb)) +- convert LSP Server to Typescript, remove watchman ([#1138](https://github.com/graphql/graphiql/issues/1138)) ([8e33dbb](https://github.com/graphql/graphiql/commit/8e33dbb)) ## [0.11.6](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.11.5...codemirror-graphql@0.11.6) (2019-12-09) ### Bug Fixes -- codemirror results bundle - ([dd06eb5](https://github.com/graphql/graphiql/commit/dd06eb5)) +- codemirror results bundle ([dd06eb5](https://github.com/graphql/graphiql/commit/dd06eb5)) ## [0.11.5](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.11.4...codemirror-graphql@0.11.5) (2019-12-09) ### Bug Fixes -- a few more tweaks to babel ignore - ([e0ad2c6](https://github.com/graphql/graphiql/commit/e0ad2c6)) +- a few more tweaks to babel ignore ([e0ad2c6](https://github.com/graphql/graphiql/commit/e0ad2c6)) ## [0.11.4](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.11.3...codemirror-graphql@0.11.4) (2019-12-03) ### Bug Fixes -- convert browserify build to webpack, fixes - [#976](https://github.com/graphql/graphiql/issues/976) - ([#1001](https://github.com/graphql/graphiql/issues/1001)) - ([3caf041](https://github.com/graphql/graphiql/commit/3caf041)) -- csp headers violation [@gracenoah](https://github.com/gracenoah) - graphql/codemirror-graphql[#246](https://github.com/graphql/graphiql/issues/246) - ([#1044](https://github.com/graphql/graphiql/issues/1044)) - ([3c9dfa5](https://github.com/graphql/graphiql/commit/3c9dfa5)) +- convert browserify build to webpack, fixes [#976](https://github.com/graphql/graphiql/issues/976) ([#1001](https://github.com/graphql/graphiql/issues/1001)) ([3caf041](https://github.com/graphql/graphiql/commit/3caf041)) +- csp headers violation [@gracenoah](https://github.com/gracenoah) graphql/codemirror-graphql[#246](https://github.com/graphql/graphiql/issues/246) ([#1044](https://github.com/graphql/graphiql/issues/1044)) ([3c9dfa5](https://github.com/graphql/graphiql/commit/3c9dfa5)) ## [0.11.3](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.11.2...codemirror-graphql@0.11.3) (2019-11-26) @@ -590,19 +444,13 @@ All notable changes to this project will be documented in this file. See ### Features -- convert LSP from flow to typescript - ([#957](https://github.com/graphql/graphiql/issues/957)) - [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) - ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) +- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) # 0.10.0 (2019-10-04) ### Features -- convert LSP from flow to typescript - ([#957](https://github.com/graphql/graphiql/issues/957)) - [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) - ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) +- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) ## 0.9.1-alpha.1 (2019-09-01) diff --git a/packages/codemirror-graphql/README.md b/packages/codemirror-graphql/README.md index 7856a09b427..6fdfd349c37 100644 --- a/packages/codemirror-graphql/README.md +++ b/packages/codemirror-graphql/README.md @@ -5,6 +5,8 @@ [![License](https://img.shields.io/npm/l/codemirror-graphql.svg?style=flat-square)](LICENSE) [Discord Channel](https://discord.gg/cffZwk8NJW) +**NOTE: For CodeMirror 6, use [cm6-graphql](/packages/cm6-graphql/) instead** + Provides CodeMirror with a parser mode for GraphQL along with a live linter and typeahead hinter powered by your GraphQL Schema. diff --git a/packages/codemirror-graphql/package.json b/packages/codemirror-graphql/package.json index b6a18d13d00..2c0d5b52169 100644 --- a/packages/codemirror-graphql/package.json +++ b/packages/codemirror-graphql/package.json @@ -1,6 +1,6 @@ { "name": "codemirror-graphql", - "version": "2.0.5", + "version": "2.0.6", "description": "GraphQL mode and helpers for CodeMirror.", "contributors": [ "Hyohyeon Jeong ", @@ -51,7 +51,7 @@ }, "// TEMPORARILY PINNED until we fix graphql 15 support": "", "dependencies": { - "graphql-language-service": "5.1.3" + "graphql-language-service": "5.1.4" }, "devDependencies": { "@codemirror/language": "6.0.0", diff --git a/packages/codemirror-graphql/src/index.d.ts b/packages/codemirror-graphql/src/index.d.ts index d72a9eb2e72..7866c87f5a5 100644 --- a/packages/codemirror-graphql/src/index.d.ts +++ b/packages/codemirror-graphql/src/index.d.ts @@ -13,7 +13,6 @@ declare module 'codemirror' { hint?: ShowHintOptions['hint']; } - // eslint-disable-next-line @typescript-eslint/no-empty-interface interface CodeMirrorHintMap {} const hint: CodeMirrorHintMap; diff --git a/packages/codemirror-graphql/src/info.ts b/packages/codemirror-graphql/src/info.ts index f8557c0d3c1..dedea07e170 100644 --- a/packages/codemirror-graphql/src/info.ts +++ b/packages/codemirror-graphql/src/info.ts @@ -75,7 +75,7 @@ CodeMirror.registerHelper( header.className = 'CodeMirror-info-header'; renderField(header, typeInfo, options); const into = document.createElement('div'); - into.appendChild(header); + into.append(header); renderDescription(into, options, typeInfo.fieldDef as any); return into; } @@ -84,7 +84,7 @@ CodeMirror.registerHelper( header.className = 'CodeMirror-info-header'; renderDirective(header, typeInfo, options); const into = document.createElement('div'); - into.appendChild(header); + into.append(header); renderDescription(into, options, typeInfo.directiveDef); return into; } @@ -93,7 +93,7 @@ CodeMirror.registerHelper( header.className = 'CodeMirror-info-header'; renderArg(header, typeInfo, options); const into = document.createElement('div'); - into.appendChild(header); + into.append(header); renderDescription(into, options, typeInfo.argDef); return into; } @@ -106,7 +106,7 @@ CodeMirror.registerHelper( header.className = 'CodeMirror-info-header'; renderEnumValue(header, typeInfo, options); const into = document.createElement('div'); - into.appendChild(header); + into.append(header); renderDescription(into, options, typeInfo.enumValue); return into; } @@ -119,7 +119,7 @@ CodeMirror.registerHelper( header.className = 'CodeMirror-info-header'; renderType(header, typeInfo, options, typeInfo.type); const into = document.createElement('div'); - into.appendChild(header); + into.append(header); renderDescription(into, options, typeInfo.type); return into; } @@ -198,7 +198,7 @@ function renderTypeAnnotation( getTypeReference(typeInfo, t), ); } - into.appendChild(typeSpan); + into.append(typeSpan); } function renderType( @@ -242,9 +242,9 @@ function renderDescription( if (options.renderDescription) { descriptionDiv.innerHTML = options.renderDescription(description); } else { - descriptionDiv.appendChild(document.createTextNode(description)); + descriptionDiv.append(document.createTextNode(description)); } - into.appendChild(descriptionDiv); + into.append(descriptionDiv); } renderDeprecation(into, options, def); @@ -264,21 +264,21 @@ function renderDeprecation( if (reason) { const deprecationDiv = document.createElement('div'); deprecationDiv.className = 'info-deprecation'; - into.appendChild(deprecationDiv); + into.append(deprecationDiv); const label = document.createElement('span'); label.className = 'info-deprecation-label'; - label.appendChild(document.createTextNode('Deprecated')); - deprecationDiv.appendChild(label); + label.append(document.createTextNode('Deprecated')); + deprecationDiv.append(label); const reasonDiv = document.createElement('div'); reasonDiv.className = 'info-deprecation-reason'; if (options.renderDescription) { reasonDiv.innerHTML = options.renderDescription(reason); } else { - reasonDiv.appendChild(document.createTextNode(reason)); + reasonDiv.append(document.createTextNode(reason)); } - deprecationDiv.appendChild(reasonDiv); + deprecationDiv.append(reasonDiv); } } @@ -305,9 +305,9 @@ function text( node = document.createElement('span'); } node.className = className; - node.appendChild(document.createTextNode(content)); - into.appendChild(node); + node.append(document.createTextNode(content)); + into.append(node); } else { - into.appendChild(document.createTextNode(content)); + into.append(document.createTextNode(content)); } } diff --git a/packages/codemirror-graphql/src/utils/collectVariables.ts b/packages/codemirror-graphql/src/utils/collectVariables.ts index 2af3796773f..b6ef1674ba1 100644 --- a/packages/codemirror-graphql/src/utils/collectVariables.ts +++ b/packages/codemirror-graphql/src/utils/collectVariables.ts @@ -22,18 +22,18 @@ export default function collectVariables( documentAST: DocumentNode, ) { const variableToType = Object.create(null); - documentAST.definitions.forEach(definition => { + for (const definition of documentAST.definitions) { if (definition.kind === 'OperationDefinition') { const { variableDefinitions } = definition; if (variableDefinitions) { - variableDefinitions.forEach(({ variable, type }) => { + for (const { variable, type } of variableDefinitions) { const inputType = typeFromAST(schema, type as NamedTypeNode); if (inputType) { variableToType[variable.name.value] = inputType; } - }); + } } } - }); + } return variableToType; } diff --git a/packages/codemirror-graphql/src/utils/info-addon.ts b/packages/codemirror-graphql/src/utils/info-addon.ts index 6fb4fe39bc3..14ff3bdba35 100644 --- a/packages/codemirror-graphql/src/utils/info-addon.ts +++ b/packages/codemirror-graphql/src/utils/info-addon.ts @@ -112,8 +112,8 @@ function onMouseHover(cm: CodeMirror.Editor, box: DOMRect) { function showPopup(cm: CodeMirror.Editor, box: DOMRect, info: HTMLDivElement) { const popup = document.createElement('div'); popup.className = 'CodeMirror-info'; - popup.appendChild(info); - document.body.appendChild(popup); + popup.append(info); + document.body.append(popup); const popupBox = popup.getBoundingClientRect(); const popupStyle = window.getComputedStyle(popup); @@ -169,11 +169,11 @@ function showPopup(cm: CodeMirror.Editor, box: DOMRect, info: HTMLDivElement) { popup.style.opacity = '0'; setTimeout(() => { if (popup.parentNode) { - popup.parentNode.removeChild(popup); + popup.remove(); } }, 600); } else if (popup.parentNode) { - popup.parentNode.removeChild(popup); + popup.remove(); } }; diff --git a/packages/codemirror-graphql/src/utils/runParser.ts b/packages/codemirror-graphql/src/utils/runParser.ts index fbd805e4895..034be6fb7e3 100644 --- a/packages/codemirror-graphql/src/utils/runParser.ts +++ b/packages/codemirror-graphql/src/utils/runParser.ts @@ -23,11 +23,11 @@ export default function runParser( const state = parser.startState(); const lines = sourceText.split('\n'); - lines.forEach(line => { + for (const line of lines) { const stream = new CharacterStream(line); while (!stream.eol()) { const style = parser.token(stream, state); callbackFn(stream, state, style); } - }); + } } diff --git a/packages/codemirror-graphql/src/variables/lint.ts b/packages/codemirror-graphql/src/variables/lint.ts index 38e240640b9..c03ae1245f5 100644 --- a/packages/codemirror-graphql/src/variables/lint.ts +++ b/packages/codemirror-graphql/src/variables/lint.ts @@ -85,14 +85,14 @@ function validateVariables( ) { const errors: CodeMirror.Annotation[] = []; - variablesAST.members.forEach(member => { + for (const member of variablesAST.members) { if (member) { const variableName = member.key?.value; const type = variableToType[variableName]; if (type) { - validateValue(type, member.value).forEach(([node, message]) => { + for (const [node, message] of validateValue(type, member.value)) { errors.push(lintError(editor, node, message)); - }); + } } else { errors.push( lintError( @@ -103,7 +103,7 @@ function validateVariables( ); } } - }); + } return errors; } @@ -169,7 +169,7 @@ function validateValue( ); // Look for missing non-nullable fields. - Object.keys(type.getFields()).forEach(fieldName => { + for (const fieldName of Object.keys(type.getFields())) { const field = type.getFields()[fieldName]; if ( !providedFields[fieldName] && @@ -181,7 +181,7 @@ function validateValue( `Object of type "${type}" is missing required field "${fieldName}".`, ]); } - }); + } return fieldErrors; } diff --git a/packages/graphiql-plugin-code-exporter/CHANGELOG.md b/packages/graphiql-plugin-code-exporter/CHANGELOG.md index 589ef10b390..e94768e5e70 100644 --- a/packages/graphiql-plugin-code-exporter/CHANGELOG.md +++ b/packages/graphiql-plugin-code-exporter/CHANGELOG.md @@ -4,31 +4,18 @@ ### Patch Changes -- [#3017](https://github.com/graphql/graphiql/pull/3017) - [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid - bundling code from `react/jsx-runtime` so that the package can be used with - Preact - -- [#3063](https://github.com/graphql/graphiql/pull/3063) - [`5792aaa5`](https://github.com/graphql/graphiql/commit/5792aaa5b26b68dc396f7bfb5dc3defd9331b831) - Thanks [@B2o5T](https://github.com/B2o5T)! - avoid `useMemo` with empty array - `[]` since React can't guarantee stable reference, + lint restrict syntax for - future mistakes +- [#3017](https://github.com/graphql/graphiql/pull/3017) [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid bundling code from `react/jsx-runtime` so that the package can be used with Preact + +- [#3063](https://github.com/graphql/graphiql/pull/3063) [`5792aaa5`](https://github.com/graphql/graphiql/commit/5792aaa5b26b68dc396f7bfb5dc3defd9331b831) Thanks [@B2o5T](https://github.com/B2o5T)! - avoid `useMemo` with empty array `[]` since React can't guarantee stable reference, + lint restrict syntax for future mistakes ## 0.1.1 ### Patch Changes -- [#2864](https://github.com/graphql/graphiql/pull/2864) - [`f61a5574`](https://github.com/graphql/graphiql/commit/f61a55747a6ff3a125c54e2bf3512f8f4b8f4c50) - Thanks [@LekoArts](https://github.com/LekoArts)! - - chore(@graphiql/plugin-code-exporter): Fix Typo +- [#2864](https://github.com/graphql/graphiql/pull/2864) [`f61a5574`](https://github.com/graphql/graphiql/commit/f61a55747a6ff3a125c54e2bf3512f8f4b8f4c50) Thanks [@LekoArts](https://github.com/LekoArts)! - chore(@graphiql/plugin-code-exporter): Fix Typo ## 0.1.0 ### Minor Changes -- [#2758](https://github.com/graphql/graphiql/pull/2758) - [`d63801fa`](https://github.com/graphql/graphiql/commit/d63801fad08e840eff7ff26f55694c6d18769466) - Thanks [@LekoArts](https://github.com/LekoArts)! - Add code exported plugin +- [#2758](https://github.com/graphql/graphiql/pull/2758) [`d63801fa`](https://github.com/graphql/graphiql/commit/d63801fad08e840eff7ff26f55694c6d18769466) Thanks [@LekoArts](https://github.com/LekoArts)! - Add code exported plugin diff --git a/packages/graphiql-plugin-code-exporter/package.json b/packages/graphiql-plugin-code-exporter/package.json index 873b9d9994d..e95975195f0 100644 --- a/packages/graphiql-plugin-code-exporter/package.json +++ b/packages/graphiql-plugin-code-exporter/package.json @@ -37,7 +37,7 @@ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "devDependencies": { - "@graphiql/react": "^0.17.1", + "@graphiql/react": "^0.17.2", "@vitejs/plugin-react": "^1.3.0", "postcss-nesting": "^10.1.7", "typescript": "^4.6.3", diff --git a/packages/graphiql-plugin-explorer/CHANGELOG.md b/packages/graphiql-plugin-explorer/CHANGELOG.md index 6b31d6f0a52..c709e8c9ecf 100644 --- a/packages/graphiql-plugin-explorer/CHANGELOG.md +++ b/packages/graphiql-plugin-explorer/CHANGELOG.md @@ -1,75 +1,49 @@ # @graphiql/plugin-explorer +## 0.1.16 + +### Patch Changes + +- Updated dependencies [[`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9), [`4879984e`](https://github.com/graphql/graphiql/commit/4879984ea1803a6e9f97d81c97e8ba27aacddae9), [`51007002`](https://github.com/graphql/graphiql/commit/510070028b7d8e98f2ba25f396519976aea5fa4b)]: + - @graphiql/react@0.17.2 + ## 0.1.15 ### Patch Changes -- [#3017](https://github.com/graphql/graphiql/pull/3017) - [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid - bundling code from `react/jsx-runtime` so that the package can be used with - Preact +- [#3017](https://github.com/graphql/graphiql/pull/3017) [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid bundling code from `react/jsx-runtime` so that the package can be used with Preact -- [#3063](https://github.com/graphql/graphiql/pull/3063) - [`5792aaa5`](https://github.com/graphql/graphiql/commit/5792aaa5b26b68dc396f7bfb5dc3defd9331b831) - Thanks [@B2o5T](https://github.com/B2o5T)! - avoid `useMemo` with empty array - `[]` since React can't guarantee stable reference, + lint restrict syntax for - future mistakes +- [#3063](https://github.com/graphql/graphiql/pull/3063) [`5792aaa5`](https://github.com/graphql/graphiql/commit/5792aaa5b26b68dc396f7bfb5dc3defd9331b831) Thanks [@B2o5T](https://github.com/B2o5T)! - avoid `useMemo` with empty array `[]` since React can't guarantee stable reference, + lint restrict syntax for future mistakes -- Updated dependencies - [[`2d5c60ec`](https://github.com/graphql/graphiql/commit/2d5c60ecf717abafde2bddd32b2772261d3eec8b), - [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), - [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773), - [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0), - [`7cf4908a`](https://github.com/graphql/graphiql/commit/7cf4908a5d4bd58af315047f4dec5236e8c701fc)]: +- Updated dependencies [[`2d5c60ec`](https://github.com/graphql/graphiql/commit/2d5c60ecf717abafde2bddd32b2772261d3eec8b), [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773), [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0), [`7cf4908a`](https://github.com/graphql/graphiql/commit/7cf4908a5d4bd58af315047f4dec5236e8c701fc)]: - @graphiql/react@0.17.1 ## 0.1.14 ### Patch Changes -- Updated dependencies - [[`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), - [`65f5176a`](https://github.com/graphql/graphiql/commit/65f5176a408cfbbc514ca60e2e4bd2ea133a8b0b)]: +- Updated dependencies [[`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), [`65f5176a`](https://github.com/graphql/graphiql/commit/65f5176a408cfbbc514ca60e2e4bd2ea133a8b0b)]: - @graphiql/react@0.17.0 ## 0.1.13 ### Patch Changes -- Updated dependencies - [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), - [`cec3fb2a`](https://github.com/graphql/graphiql/commit/cec3fb2a493c4a0c40df7dfad04e1a95ed35e786), - [`11e6ad11`](https://github.com/graphql/graphiql/commit/11e6ad11e745c671eb320731697887bb8d7177b7), - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), - [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d), - [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), - [`ccba2f33`](https://github.com/graphql/graphiql/commit/ccba2f33b67a03f492222f7afde1354cfd033b42), - [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e)]: +- Updated dependencies [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), [`cec3fb2a`](https://github.com/graphql/graphiql/commit/cec3fb2a493c4a0c40df7dfad04e1a95ed35e786), [`11e6ad11`](https://github.com/graphql/graphiql/commit/11e6ad11e745c671eb320731697887bb8d7177b7), [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d), [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), [`ccba2f33`](https://github.com/graphql/graphiql/commit/ccba2f33b67a03f492222f7afde1354cfd033b42), [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e)]: - @graphiql/react@0.16.0 ## 0.1.12 ### Patch Changes -- Updated dependencies - [[`16174a05`](https://github.com/graphql/graphiql/commit/16174a053ed89fb9554d096395ab7bf69c8f6911), - [`f6cae4ea`](https://github.com/graphql/graphiql/commit/f6cae4eaa0258ea7fcde97ba6368830955f0abf4), - [`3340fd74`](https://github.com/graphql/graphiql/commit/3340fd745e181ba8f1f5a6ed002a04d253a78d4a), - [`0851d5f9`](https://github.com/graphql/graphiql/commit/0851d5f9ecf709597d0a698609d88f99c4395665), - [`83364b28`](https://github.com/graphql/graphiql/commit/83364b28020b5946ed58908d6d977f1de766e75d), - [`3a7d0007`](https://github.com/graphql/graphiql/commit/3a7d00071922e2005777c92daf6ad0c1ce3e2816)]: +- Updated dependencies [[`16174a05`](https://github.com/graphql/graphiql/commit/16174a053ed89fb9554d096395ab7bf69c8f6911), [`f6cae4ea`](https://github.com/graphql/graphiql/commit/f6cae4eaa0258ea7fcde97ba6368830955f0abf4), [`3340fd74`](https://github.com/graphql/graphiql/commit/3340fd745e181ba8f1f5a6ed002a04d253a78d4a), [`0851d5f9`](https://github.com/graphql/graphiql/commit/0851d5f9ecf709597d0a698609d88f99c4395665), [`83364b28`](https://github.com/graphql/graphiql/commit/83364b28020b5946ed58908d6d977f1de766e75d), [`3a7d0007`](https://github.com/graphql/graphiql/commit/3a7d00071922e2005777c92daf6ad0c1ce3e2816)]: - @graphiql/react@0.15.0 ## 0.1.11 ### Patch Changes -- Updated dependencies - [[`29630c22`](https://github.com/graphql/graphiql/commit/29630c2219bca8b825ab0897840864364a9de2e8), - [`8f926489`](https://github.com/graphql/graphiql/commit/8f9264896e9971951853463a283a90ba3d1310ef), - [`2ba2f620`](https://github.com/graphql/graphiql/commit/2ba2f620b6e7de3ae6b5ea641f33e600f7f44e08)]: +- Updated dependencies [[`29630c22`](https://github.com/graphql/graphiql/commit/29630c2219bca8b825ab0897840864364a9de2e8), [`8f926489`](https://github.com/graphql/graphiql/commit/8f9264896e9971951853463a283a90ba3d1310ef), [`2ba2f620`](https://github.com/graphql/graphiql/commit/2ba2f620b6e7de3ae6b5ea641f33e600f7f44e08)]: - @graphiql/react@0.14.0 ## 0.1.10 @@ -90,34 +64,28 @@ ### Patch Changes -- Updated dependencies - [[`682ad06e`](https://github.com/graphql/graphiql/commit/682ad06e58ded2f82fa973e8e6613dd654417fe2)]: +- Updated dependencies [[`682ad06e`](https://github.com/graphql/graphiql/commit/682ad06e58ded2f82fa973e8e6613dd654417fe2)]: - @graphiql/react@0.13.5 ## 0.1.7 ### Patch Changes -- Updated dependencies - [[`4e2f7ff9`](https://github.com/graphql/graphiql/commit/4e2f7ff99c578ceae54a1ae17c02088bd91b89c3)]: +- Updated dependencies [[`4e2f7ff9`](https://github.com/graphql/graphiql/commit/4e2f7ff99c578ceae54a1ae17c02088bd91b89c3)]: - @graphiql/react@0.13.4 ## 0.1.6 ### Patch Changes -- Updated dependencies - [[`42700076`](https://github.com/graphql/graphiql/commit/4270007671ce52f6c2250739916083611748b657), - [`36839800`](https://github.com/graphql/graphiql/commit/36839800de128b05d11c262036c8240390c72a14), - [`905f2e5e`](https://github.com/graphql/graphiql/commit/905f2e5ea3f0b304d27ea583e250ed4baff5016e)]: +- Updated dependencies [[`42700076`](https://github.com/graphql/graphiql/commit/4270007671ce52f6c2250739916083611748b657), [`36839800`](https://github.com/graphql/graphiql/commit/36839800de128b05d11c262036c8240390c72a14), [`905f2e5e`](https://github.com/graphql/graphiql/commit/905f2e5ea3f0b304d27ea583e250ed4baff5016e)]: - @graphiql/react@0.13.3 ## 0.1.5 ### Patch Changes -- Updated dependencies - [[`39b4668d`](https://github.com/graphql/graphiql/commit/39b4668d43176526d37ecf07d8c86901d53e0d80)]: +- Updated dependencies [[`39b4668d`](https://github.com/graphql/graphiql/commit/39b4668d43176526d37ecf07d8c86901d53e0d80)]: - @graphiql/react@0.13.2 ## 0.1.4 @@ -131,30 +99,18 @@ ### Patch Changes -- [#2735](https://github.com/graphql/graphiql/pull/2735) - [`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use the new - CSS variables for color alpha values defined in `@graphiql/react` in style - definitions +- [#2735](https://github.com/graphql/graphiql/pull/2735) [`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use the new CSS variables for color alpha values defined in `@graphiql/react` in style definitions -* [#2757](https://github.com/graphql/graphiql/pull/2757) - [`32a70065`](https://github.com/graphql/graphiql/commit/32a70065434eaa7733e28cda0ea0e7d51952e62a) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use - different colors for field names and argument names +* [#2757](https://github.com/graphql/graphiql/pull/2757) [`32a70065`](https://github.com/graphql/graphiql/commit/32a70065434eaa7733e28cda0ea0e7d51952e62a) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use different colors for field names and argument names -* Updated dependencies - [[`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1), - [`32a70065`](https://github.com/graphql/graphiql/commit/32a70065434eaa7733e28cda0ea0e7d51952e62a)]: +* Updated dependencies [[`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1), [`32a70065`](https://github.com/graphql/graphiql/commit/32a70065434eaa7733e28cda0ea0e7d51952e62a)]: - @graphiql/react@0.13.0 ## 0.1.2 ### Patch Changes -- [#2750](https://github.com/graphql/graphiql/pull/2750) - [`cdc44aab`](https://github.com/graphql/graphiql/commit/cdc44aabdc549f5a0359b8f69506cc0c31661d16) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Remove - `type` field from `package.json` to support both ES Modules and CommonJS +- [#2750](https://github.com/graphql/graphiql/pull/2750) [`cdc44aab`](https://github.com/graphql/graphiql/commit/cdc44aabdc549f5a0359b8f69506cc0c31661d16) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Remove `type` field from `package.json` to support both ES Modules and CommonJS - Updated dependencies []: - @graphiql/react@0.12.1 @@ -163,38 +119,19 @@ ### Patch Changes -- [#2745](https://github.com/graphql/graphiql/pull/2745) - [`92a17490`](https://github.com/graphql/graphiql/commit/92a17490c3842b4f83ed1065b73a803f73d02a17) - Thanks [@acao](https://github.com/acao)! - Specify MIT license for - `@graphiql/plugin-explorer` `package.json` +- [#2745](https://github.com/graphql/graphiql/pull/2745) [`92a17490`](https://github.com/graphql/graphiql/commit/92a17490c3842b4f83ed1065b73a803f73d02a17) Thanks [@acao](https://github.com/acao)! - Specify MIT license for `@graphiql/plugin-explorer` `package.json` -* [#2731](https://github.com/graphql/graphiql/pull/2731) - [`3e8f0d1f`](https://github.com/graphql/graphiql/commit/3e8f0d1fe4da5cdea94240119bbad587720ca324) - Thanks [@hasparus](https://github.com/hasparus)! - Expose typings for - graphiql-explorer +* [#2731](https://github.com/graphql/graphiql/pull/2731) [`3e8f0d1f`](https://github.com/graphql/graphiql/commit/3e8f0d1fe4da5cdea94240119bbad587720ca324) Thanks [@hasparus](https://github.com/hasparus)! - Expose typings for graphiql-explorer -- [#2738](https://github.com/graphql/graphiql/pull/2738) - [`33bef178`](https://github.com/graphql/graphiql/commit/33bef17832edb29f5b26f4ed1cf33fd0d7fbbed1) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix peer - dependency versions +- [#2738](https://github.com/graphql/graphiql/pull/2738) [`33bef178`](https://github.com/graphql/graphiql/commit/33bef17832edb29f5b26f4ed1cf33fd0d7fbbed1) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix peer dependency versions -* [#2747](https://github.com/graphql/graphiql/pull/2747) - [`52d0003f`](https://github.com/graphql/graphiql/commit/52d0003fd0c405da65b7b23dcfed9f3aacbad067) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make - `@graphiql/react` a real dependency instead of a peer dependency +* [#2747](https://github.com/graphql/graphiql/pull/2747) [`52d0003f`](https://github.com/graphql/graphiql/commit/52d0003fd0c405da65b7b23dcfed9f3aacbad067) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make `@graphiql/react` a real dependency instead of a peer dependency -* Updated dependencies - [[`98e14155`](https://github.com/graphql/graphiql/commit/98e14155c650ee7c5ac639e594eb47f0052b7fa9), - [`7dfea94a`](https://github.com/graphql/graphiql/commit/7dfea94afc0cfe79b5080f10d840bfdce53f02d7), - [`3aa1f39f`](https://github.com/graphql/graphiql/commit/3aa1f39f6df559b54f703937ed510c8ba1f21058), - [`0219eef3`](https://github.com/graphql/graphiql/commit/0219eef39146495749aca2487112db52fa3bb8fd)]: +* Updated dependencies [[`98e14155`](https://github.com/graphql/graphiql/commit/98e14155c650ee7c5ac639e594eb47f0052b7fa9), [`7dfea94a`](https://github.com/graphql/graphiql/commit/7dfea94afc0cfe79b5080f10d840bfdce53f02d7), [`3aa1f39f`](https://github.com/graphql/graphiql/commit/3aa1f39f6df559b54f703937ed510c8ba1f21058), [`0219eef3`](https://github.com/graphql/graphiql/commit/0219eef39146495749aca2487112db52fa3bb8fd)]: - @graphiql/react@0.12.0 ## 0.1.0 ### Minor Changes -- [#2724](https://github.com/graphql/graphiql/pull/2724) - [`dd5db3b2`](https://github.com/graphql/graphiql/commit/dd5db3b2ee08b240ba7b77a9b7ff621115bd25f3) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - package that exports a plugin to use the GraphiQL Explorer from OneGraph +- [#2724](https://github.com/graphql/graphiql/pull/2724) [`dd5db3b2`](https://github.com/graphql/graphiql/commit/dd5db3b2ee08b240ba7b77a9b7ff621115bd25f3) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a package that exports a plugin to use the GraphiQL Explorer from OneGraph diff --git a/packages/graphiql-plugin-explorer/package.json b/packages/graphiql-plugin-explorer/package.json index d9c07955c9d..15fb0403907 100644 --- a/packages/graphiql-plugin-explorer/package.json +++ b/packages/graphiql-plugin-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/plugin-explorer", - "version": "0.1.15", + "version": "0.1.16", "repository": { "type": "git", "url": "https://github.com/graphql/graphiql", @@ -28,7 +28,7 @@ "preview": "vite preview" }, "dependencies": { - "@graphiql/react": "^0.17.1", + "@graphiql/react": "^0.17.2", "graphiql-explorer": "^0.9.0" }, "peerDependencies": { diff --git a/packages/graphiql-react/CHANGELOG.md b/packages/graphiql-react/CHANGELOG.md index f4f42dcd129..038b8c09bb6 100644 --- a/packages/graphiql-react/CHANGELOG.md +++ b/packages/graphiql-react/CHANGELOG.md @@ -1,38 +1,35 @@ # @graphiql/react +## 0.17.2 + +### Patch Changes + +- [#3113](https://github.com/graphql/graphiql/pull/3113) [`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9) Thanks [@B2o5T](https://github.com/B2o5T)! - replace `.forEach` with `for..of` + +- [#3126](https://github.com/graphql/graphiql/pull/3126) [`4879984e`](https://github.com/graphql/graphiql/commit/4879984ea1803a6e9f97d81c97e8ba27aacddae9) Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer KeyboardEvent#key over KeyboardEvent#keyCode + +- [#3109](https://github.com/graphql/graphiql/pull/3109) [`51007002`](https://github.com/graphql/graphiql/commit/510070028b7d8e98f2ba25f396519976aea5fa4b) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-floating-promises` eslint rule + +- Updated dependencies [[`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9), [`51007002`](https://github.com/graphql/graphiql/commit/510070028b7d8e98f2ba25f396519976aea5fa4b), [`15c26eb6`](https://github.com/graphql/graphiql/commit/15c26eb6d621a85df9eecb2b8a5fa009fa2fe040)]: + - codemirror-graphql@2.0.6 + - @graphiql/toolkit@0.8.4 + - graphql-language-service@5.1.4 + ## 0.17.1 ### Patch Changes -- [#3033](https://github.com/graphql/graphiql/pull/3033) - [`2d5c60ec`](https://github.com/graphql/graphiql/commit/2d5c60ecf717abafde2bddd32b2772261d3eec8b) - Thanks [@B2o5T](https://github.com/B2o5T)! - remove redundant `catch` - statement +- [#3033](https://github.com/graphql/graphiql/pull/3033) [`2d5c60ec`](https://github.com/graphql/graphiql/commit/2d5c60ecf717abafde2bddd32b2772261d3eec8b) Thanks [@B2o5T](https://github.com/B2o5T)! - remove redundant `catch` statement -- [#3046](https://github.com/graphql/graphiql/pull/3046) - [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) - Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index - access +- [#3046](https://github.com/graphql/graphiql/pull/3046) [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index access -- [#3017](https://github.com/graphql/graphiql/pull/3017) - [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid - bundling code from `react/jsx-runtime` so that the package can be used with - Preact +- [#3017](https://github.com/graphql/graphiql/pull/3017) [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid bundling code from `react/jsx-runtime` so that the package can be used with Preact -- [#3042](https://github.com/graphql/graphiql/pull/3042) - [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0) - Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer String#slice() over - String#substr() and String#substring() +- [#3042](https://github.com/graphql/graphiql/pull/3042) [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0) Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer String#slice() over String#substr() and String#substring() -- [#3061](https://github.com/graphql/graphiql/pull/3061) - [`7cf4908a`](https://github.com/graphql/graphiql/commit/7cf4908a5d4bd58af315047f4dec5236e8c701fc) - Thanks [@B2o5T](https://github.com/B2o5T)! - remove unneeded `reference &&` - assertion, convert to switch +- [#3061](https://github.com/graphql/graphiql/pull/3061) [`7cf4908a`](https://github.com/graphql/graphiql/commit/7cf4908a5d4bd58af315047f4dec5236e8c701fc) Thanks [@B2o5T](https://github.com/B2o5T)! - remove unneeded `reference &&` assertion, convert to switch -- Updated dependencies - [[`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), - [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: +- Updated dependencies [[`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: - codemirror-graphql@2.0.5 - @graphiql/toolkit@0.8.3 - graphql-language-service@5.1.3 @@ -41,24 +38,13 @@ ### Minor Changes -- [#3012](https://github.com/graphql/graphiql/pull/3012) - [`65f5176a`](https://github.com/graphql/graphiql/commit/65f5176a408cfbbc514ca60e2e4bd2ea133a8b0b) - Thanks [@benjie](https://github.com/benjie)! - GraphiQL now maintains the - DocExplorer navigation stack as best it can when the schema is updated +- [#3012](https://github.com/graphql/graphiql/pull/3012) [`65f5176a`](https://github.com/graphql/graphiql/commit/65f5176a408cfbbc514ca60e2e4bd2ea133a8b0b) Thanks [@benjie](https://github.com/benjie)! - GraphiQL now maintains the DocExplorer navigation stack as best it can when the schema is updated ### Patch Changes -- [#2993](https://github.com/graphql/graphiql/pull/2993) - [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4) - Thanks [@B2o5T](https://github.com/B2o5T)! - add - `unicorn/consistent-destructuring` rule +- [#2993](https://github.com/graphql/graphiql/pull/2993) [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4) Thanks [@B2o5T](https://github.com/B2o5T)! - add `unicorn/consistent-destructuring` rule -- Updated dependencies - [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), - [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), - [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: +- Updated dependencies [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: - graphql-language-service@5.1.2 - codemirror-graphql@2.0.4 - @graphiql/toolkit@0.8.2 @@ -67,63 +53,27 @@ ### Minor Changes -- [#2895](https://github.com/graphql/graphiql/pull/2895) - [`ccba2f33`](https://github.com/graphql/graphiql/commit/ccba2f33b67a03f492222f7afde1354cfd033b42) - Thanks [@TheMightyPenguin](https://github.com/TheMightyPenguin)! - Add user - facing setting for persisting headers - -### Patch Changes - -- [#2931](https://github.com/graphql/graphiql/pull/2931) - [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and - `no-else-return` rules - -- [#2964](https://github.com/graphql/graphiql/pull/2964) - [`cec3fb2a`](https://github.com/graphql/graphiql/commit/cec3fb2a493c4a0c40df7dfad04e1a95ed35e786) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-export-from` rule - -- [#2932](https://github.com/graphql/graphiql/pull/2932) - [`11e6ad11`](https://github.com/graphql/graphiql/commit/11e6ad11e745c671eb320731697887bb8d7177b7) - Thanks [@B2o5T](https://github.com/B2o5T)! - replace `compose.ts` with `clsx` - for class concatenation - -- [#2937](https://github.com/graphql/graphiql/pull/2937) - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-includes` - -- [#2933](https://github.com/graphql/graphiql/pull/2933) - [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - @typescript-eslint/no-unused-expressions - -- [#2965](https://github.com/graphql/graphiql/pull/2965) - [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-optional-catch-binding` rule - -- [#2963](https://github.com/graphql/graphiql/pull/2963) - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `prefer-destructuring` - rule - -- [#2942](https://github.com/graphql/graphiql/pull/2942) - [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `sonarjs/no-redundant-jump` rule - -- Updated dependencies - [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), - [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), - [`695100bd`](https://github.com/graphql/graphiql/commit/695100bd317940ff3ffd8f56b54248c1dba1ac04), - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), - [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), - [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), - [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), - [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171)]: +- [#2895](https://github.com/graphql/graphiql/pull/2895) [`ccba2f33`](https://github.com/graphql/graphiql/commit/ccba2f33b67a03f492222f7afde1354cfd033b42) Thanks [@TheMightyPenguin](https://github.com/TheMightyPenguin)! - Add user facing setting for persisting headers + +### Patch Changes + +- [#2931](https://github.com/graphql/graphiql/pull/2931) [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and `no-else-return` rules + +- [#2964](https://github.com/graphql/graphiql/pull/2964) [`cec3fb2a`](https://github.com/graphql/graphiql/commit/cec3fb2a493c4a0c40df7dfad04e1a95ed35e786) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-export-from` rule + +- [#2932](https://github.com/graphql/graphiql/pull/2932) [`11e6ad11`](https://github.com/graphql/graphiql/commit/11e6ad11e745c671eb320731697887bb8d7177b7) Thanks [@B2o5T](https://github.com/B2o5T)! - replace `compose.ts` with `clsx` for class concatenation + +- [#2937](https://github.com/graphql/graphiql/pull/2937) [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-includes` + +- [#2933](https://github.com/graphql/graphiql/pull/2933) [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d) Thanks [@B2o5T](https://github.com/B2o5T)! - enable @typescript-eslint/no-unused-expressions + +- [#2965](https://github.com/graphql/graphiql/pull/2965) [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-optional-catch-binding` rule + +- [#2963](https://github.com/graphql/graphiql/pull/2963) [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `prefer-destructuring` rule + +- [#2942](https://github.com/graphql/graphiql/pull/2942) [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `sonarjs/no-redundant-jump` rule + +- Updated dependencies [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), [`695100bd`](https://github.com/graphql/graphiql/commit/695100bd317940ff3ffd8f56b54248c1dba1ac04), [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171)]: - codemirror-graphql@2.0.3 - @graphiql/toolkit@0.8.1 - graphql-language-service@5.1.1 @@ -132,275 +82,155 @@ ### Minor Changes -- [#2908](https://github.com/graphql/graphiql/pull/2908) - [`3340fd74`](https://github.com/graphql/graphiql/commit/3340fd745e181ba8f1f5a6ed002a04d253a78d4a) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Deprecate - the `initialTabs` prop and add a `defaultTabs` props that supersedes it +- [#2908](https://github.com/graphql/graphiql/pull/2908) [`3340fd74`](https://github.com/graphql/graphiql/commit/3340fd745e181ba8f1f5a6ed002a04d253a78d4a) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Deprecate the `initialTabs` prop and add a `defaultTabs` props that supersedes it -- [#2907](https://github.com/graphql/graphiql/pull/2907) - [`3a7d0007`](https://github.com/graphql/graphiql/commit/3a7d00071922e2005777c92daf6ad0c1ce3e2816) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Clearly - separate the fetching and subscription states for multipart requests (like - subscriptions) and show the stop-button as long as the subscription is running +- [#2907](https://github.com/graphql/graphiql/pull/2907) [`3a7d0007`](https://github.com/graphql/graphiql/commit/3a7d00071922e2005777c92daf6ad0c1ce3e2816) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Clearly separate the fetching and subscription states for multipart requests (like subscriptions) and show the stop-button as long as the subscription is running ### Patch Changes -- [#2910](https://github.com/graphql/graphiql/pull/2910) - [`16174a05`](https://github.com/graphql/graphiql/commit/16174a053ed89fb9554d096395ab7bf69c8f6911) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix - autocomplete styles for field type and description on the right +- [#2910](https://github.com/graphql/graphiql/pull/2910) [`16174a05`](https://github.com/graphql/graphiql/commit/16174a053ed89fb9554d096395ab7bf69c8f6911) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix autocomplete styles for field type and description on the right -- [#2919](https://github.com/graphql/graphiql/pull/2919) - [`f6cae4ea`](https://github.com/graphql/graphiql/commit/f6cae4eaa0258ea7fcde97ba6368830955f0abf4) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix - overflow when there are lots of tabs that don't fit into the tab bar at once +- [#2919](https://github.com/graphql/graphiql/pull/2919) [`f6cae4ea`](https://github.com/graphql/graphiql/commit/f6cae4eaa0258ea7fcde97ba6368830955f0abf4) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix overflow when there are lots of tabs that don't fit into the tab bar at once -- [#2905](https://github.com/graphql/graphiql/pull/2905) - [`0851d5f9`](https://github.com/graphql/graphiql/commit/0851d5f9ecf709597d0a698609d88f99c4395665) - Thanks [@ccbrown](https://github.com/ccbrown)! - Fix: prevent default event - for graphiql-doc-explorer-back link +- [#2905](https://github.com/graphql/graphiql/pull/2905) [`0851d5f9`](https://github.com/graphql/graphiql/commit/0851d5f9ecf709597d0a698609d88f99c4395665) Thanks [@ccbrown](https://github.com/ccbrown)! - Fix: prevent default event for graphiql-doc-explorer-back link -- [#2912](https://github.com/graphql/graphiql/pull/2912) - [`83364b28`](https://github.com/graphql/graphiql/commit/83364b28020b5946ed58908d6d977f1de766e75d) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add missing - effect dependency to make sure updates to the `defaultHeaders` prop have the - desired effect +- [#2912](https://github.com/graphql/graphiql/pull/2912) [`83364b28`](https://github.com/graphql/graphiql/commit/83364b28020b5946ed58908d6d977f1de766e75d) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add missing effect dependency to make sure updates to the `defaultHeaders` prop have the desired effect ## 0.14.0 ### Minor Changes -- [#2821](https://github.com/graphql/graphiql/pull/2821) - [`29630c22`](https://github.com/graphql/graphiql/commit/29630c2219bca8b825ab0897840864364a9de2e8) - Thanks [@avaly](https://github.com/avaly)! - Initial tabs support +- [#2821](https://github.com/graphql/graphiql/pull/2821) [`29630c22`](https://github.com/graphql/graphiql/commit/29630c2219bca8b825ab0897840864364a9de2e8) Thanks [@avaly](https://github.com/avaly)! - Initial tabs support ### Patch Changes -- [#2885](https://github.com/graphql/graphiql/pull/2885) - [`8f926489`](https://github.com/graphql/graphiql/commit/8f9264896e9971951853463a283a90ba3d1310ef) - Thanks [@simhnna](https://github.com/simhnna)! - Fix stop execution button - showing a dropdown +- [#2885](https://github.com/graphql/graphiql/pull/2885) [`8f926489`](https://github.com/graphql/graphiql/commit/8f9264896e9971951853463a283a90ba3d1310ef) Thanks [@simhnna](https://github.com/simhnna)! - Fix stop execution button showing a dropdown -- [#2886](https://github.com/graphql/graphiql/pull/2886) - [`2ba2f620`](https://github.com/graphql/graphiql/commit/2ba2f620b6e7de3ae6b5ea641f33e600f7f44e08) - Thanks [@B2o5T](https://github.com/B2o5T)! - feat: add `defaultHeaders` prop +- [#2886](https://github.com/graphql/graphiql/pull/2886) [`2ba2f620`](https://github.com/graphql/graphiql/commit/2ba2f620b6e7de3ae6b5ea641f33e600f7f44e08) Thanks [@B2o5T](https://github.com/B2o5T)! - feat: add `defaultHeaders` prop ## 0.13.7 ### Patch Changes -- Updated dependencies - [[`20869583`](https://github.com/graphql/graphiql/commit/20869583eff563f5d6494e93302a835f0e034f4b)]: +- Updated dependencies [[`20869583`](https://github.com/graphql/graphiql/commit/20869583eff563f5d6494e93302a835f0e034f4b)]: - codemirror-graphql@2.0.2 ## 0.13.6 ### Patch Changes -- Updated dependencies - [[`353f434e`](https://github.com/graphql/graphiql/commit/353f434e5f6bfd1bf6f8ee97d4ae8ce4f897085f)]: +- Updated dependencies [[`353f434e`](https://github.com/graphql/graphiql/commit/353f434e5f6bfd1bf6f8ee97d4ae8ce4f897085f)]: - codemirror-graphql@2.0.1 ## 0.13.5 ### Patch Changes -- [#2839](https://github.com/graphql/graphiql/pull/2839) - [`682ad06e`](https://github.com/graphql/graphiql/commit/682ad06e58ded2f82fa973e8e6613dd654417fe2) - Thanks [@ClemensSahs](https://github.com/ClemensSahs)! - Export the - `PluginContextProvider` component +- [#2839](https://github.com/graphql/graphiql/pull/2839) [`682ad06e`](https://github.com/graphql/graphiql/commit/682ad06e58ded2f82fa973e8e6613dd654417fe2) Thanks [@ClemensSahs](https://github.com/ClemensSahs)! - Export the `PluginContextProvider` component ## 0.13.4 ### Patch Changes -- [#2824](https://github.com/graphql/graphiql/pull/2824) - [`4e2f7ff9`](https://github.com/graphql/graphiql/commit/4e2f7ff99c578ceae54a1ae17c02088bd91b89c3) - Thanks [@TheMightyPenguin](https://github.com/TheMightyPenguin)! - fix: - prevent key down events when pressing escape to close autocomplete dialogs +- [#2824](https://github.com/graphql/graphiql/pull/2824) [`4e2f7ff9`](https://github.com/graphql/graphiql/commit/4e2f7ff99c578ceae54a1ae17c02088bd91b89c3) Thanks [@TheMightyPenguin](https://github.com/TheMightyPenguin)! - fix: prevent key down events when pressing escape to close autocomplete dialogs ## 0.13.3 ### Patch Changes -- [#2791](https://github.com/graphql/graphiql/pull/2791) - [`42700076`](https://github.com/graphql/graphiql/commit/4270007671ce52f6c2250739916083611748b657) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make sure - that the info overlay in editors is shown above the vertical scrollbar +- [#2791](https://github.com/graphql/graphiql/pull/2791) [`42700076`](https://github.com/graphql/graphiql/commit/4270007671ce52f6c2250739916083611748b657) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make sure that the info overlay in editors is shown above the vertical scrollbar -* [#2792](https://github.com/graphql/graphiql/pull/2792) - [`36839800`](https://github.com/graphql/graphiql/commit/36839800de128b05d11c262036c8240390c72a14) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid - resetting visible plugin state when explorer or history context changes +* [#2792](https://github.com/graphql/graphiql/pull/2792) [`36839800`](https://github.com/graphql/graphiql/commit/36839800de128b05d11c262036c8240390c72a14) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid resetting visible plugin state when explorer or history context changes -- [#2778](https://github.com/graphql/graphiql/pull/2778) - [`905f2e5e`](https://github.com/graphql/graphiql/commit/905f2e5ea3f0b304d27ea583e250ed4baff5016e) - Thanks [@jonathanawesome](https://github.com/jonathanawesome)! - Adds a - box-model reset for all children of the `.graphiql-container` class. This - change facilitated another change to the `--sidebar-width` variable. +- [#2778](https://github.com/graphql/graphiql/pull/2778) [`905f2e5e`](https://github.com/graphql/graphiql/commit/905f2e5ea3f0b304d27ea583e250ed4baff5016e) Thanks [@jonathanawesome](https://github.com/jonathanawesome)! - Adds a box-model reset for all children of the `.graphiql-container` class. This change facilitated another change to the `--sidebar-width` variable. ## 0.13.2 ### Patch Changes -- [#2653](https://github.com/graphql/graphiql/pull/2653) - [`39b4668d`](https://github.com/graphql/graphiql/commit/39b4668d43176526d37ecf07d8c86901d53e0d80) - Thanks [@dylanowen](https://github.com/dylanowen)! - Fix `fetchError` not - being cleared when a new `fetcher` is used +- [#2653](https://github.com/graphql/graphiql/pull/2653) [`39b4668d`](https://github.com/graphql/graphiql/commit/39b4668d43176526d37ecf07d8c86901d53e0d80) Thanks [@dylanowen](https://github.com/dylanowen)! - Fix `fetchError` not being cleared when a new `fetcher` is used ## 0.13.1 ### Patch Changes -- Updated dependencies - [[`e244b782`](https://github.com/graphql/graphiql/commit/e244b78291c2e2bb02d5753db82437926ebb4df4)]: +- Updated dependencies [[`e244b782`](https://github.com/graphql/graphiql/commit/e244b78291c2e2bb02d5753db82437926ebb4df4)]: - @graphiql/toolkit@0.8.0 ## 0.13.0 ### Minor Changes -- [#2735](https://github.com/graphql/graphiql/pull/2735) - [`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add CSS - variables for color alpha values: - - `--alpha-secondary`: A color for supplementary text that should be read but - not be the main focus - - `--alpha-tertiary`: A color for supplementary text which is optional to - read, i.e. the UI would function without the user reading this text - - `--alpha-background-light`, `--alpha-background-medium` and - `--alpha-background-heavy`: Three alpha values used for backgrounds and - borders that have different intensity +- [#2735](https://github.com/graphql/graphiql/pull/2735) [`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add CSS variables for color alpha values: + - `--alpha-secondary`: A color for supplementary text that should be read but not be the main focus + - `--alpha-tertiary`: A color for supplementary text which is optional to read, i.e. the UI would function without the user reading this text + - `--alpha-background-light`, `--alpha-background-medium` and `--alpha-background-heavy`: Three alpha values used for backgrounds and borders that have different intensity ### Patch Changes -- [#2757](https://github.com/graphql/graphiql/pull/2757) - [`32a70065`](https://github.com/graphql/graphiql/commit/32a70065434eaa7733e28cda0ea0e7d51952e62a) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use - different colors for field names and argument names +- [#2757](https://github.com/graphql/graphiql/pull/2757) [`32a70065`](https://github.com/graphql/graphiql/commit/32a70065434eaa7733e28cda0ea0e7d51952e62a) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use different colors for field names and argument names -- Updated dependencies - [[`674bf3f8`](https://github.com/graphql/graphiql/commit/674bf3f8ff321dfb8471b0f6e5419bb77ddc94af)]: +- Updated dependencies [[`674bf3f8`](https://github.com/graphql/graphiql/commit/674bf3f8ff321dfb8471b0f6e5419bb77ddc94af)]: - @graphiql/toolkit@0.7.3 ## 0.12.1 ### Patch Changes -- Updated dependencies - [[`bfa90f24`](https://github.com/graphql/graphiql/commit/bfa90f249be4f68049c1bb81abfb524ae623313f), - [`8ab5fcd0`](https://github.com/graphql/graphiql/commit/8ab5fcd0a8399a0f8eb1b569751dd0e8390b9679)]: +- Updated dependencies [[`bfa90f24`](https://github.com/graphql/graphiql/commit/bfa90f249be4f68049c1bb81abfb524ae623313f), [`8ab5fcd0`](https://github.com/graphql/graphiql/commit/8ab5fcd0a8399a0f8eb1b569751dd0e8390b9679)]: - @graphiql/toolkit@0.7.2 ## 0.12.0 ### Minor Changes -- [#2739](https://github.com/graphql/graphiql/pull/2739) - [`98e14155`](https://github.com/graphql/graphiql/commit/98e14155c650ee7c5ac639e594eb47f0052b7fa9) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add - `DocsFilledIcon` component and use show that icon in the sidebar when the docs - plugin is visible +- [#2739](https://github.com/graphql/graphiql/pull/2739) [`98e14155`](https://github.com/graphql/graphiql/commit/98e14155c650ee7c5ac639e594eb47f0052b7fa9) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add `DocsFilledIcon` component and use show that icon in the sidebar when the docs plugin is visible ### Patch Changes -- [#2740](https://github.com/graphql/graphiql/pull/2740) - [`7dfea94a`](https://github.com/graphql/graphiql/commit/7dfea94afc0cfe79b5080f10d840bfdce53f02d7) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make SVG - icon `stroke-width` consistent +- [#2740](https://github.com/graphql/graphiql/pull/2740) [`7dfea94a`](https://github.com/graphql/graphiql/commit/7dfea94afc0cfe79b5080f10d840bfdce53f02d7) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make SVG icon `stroke-width` consistent -* [#2734](https://github.com/graphql/graphiql/pull/2734) - [`3aa1f39f`](https://github.com/graphql/graphiql/commit/3aa1f39f6df559b54f703937ed510c8ba1f21058) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Stop - propagating keyboard events too far upwards in the search component for the - docs +* [#2734](https://github.com/graphql/graphiql/pull/2734) [`3aa1f39f`](https://github.com/graphql/graphiql/commit/3aa1f39f6df559b54f703937ed510c8ba1f21058) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Stop propagating keyboard events too far upwards in the search component for the docs -- [#2741](https://github.com/graphql/graphiql/pull/2741) - [`0219eef3`](https://github.com/graphql/graphiql/commit/0219eef39146495749aca2487112db52fa3bb8fd) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add hover - styles for buttons +- [#2741](https://github.com/graphql/graphiql/pull/2741) [`0219eef3`](https://github.com/graphql/graphiql/commit/0219eef39146495749aca2487112db52fa3bb8fd) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add hover styles for buttons -- Updated dependencies - [[`48872a87`](https://github.com/graphql/graphiql/commit/48872a87e6edec0c301102baaf669ffcce043a13)]: +- Updated dependencies [[`48872a87`](https://github.com/graphql/graphiql/commit/48872a87e6edec0c301102baaf669ffcce043a13)]: - @graphiql/toolkit@0.7.1 ## 0.11.1 ### Patch Changes -- [#2712](https://github.com/graphql/graphiql/pull/2712) - [`d65f00ea`](https://github.com/graphql/graphiql/commit/d65f00ea2d158cf532d1c71844630c5d9ec13410) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make sure - the back link and title are hidden when focussing the input field for - searching the docs +- [#2712](https://github.com/graphql/graphiql/pull/2712) [`d65f00ea`](https://github.com/graphql/graphiql/commit/d65f00ea2d158cf532d1c71844630c5d9ec13410) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make sure the back link and title are hidden when focussing the input field for searching the docs -* [#2708](https://github.com/graphql/graphiql/pull/2708) - [`f15ee38d`](https://github.com/graphql/graphiql/commit/f15ee38d56e4f749c145e0a17f0ed8e9a6096ac2) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix - computing the initial state for editor values and tabs to avoid duplicating - tabs on page reload +* [#2708](https://github.com/graphql/graphiql/pull/2708) [`f15ee38d`](https://github.com/graphql/graphiql/commit/f15ee38d56e4f749c145e0a17f0ed8e9a6096ac2) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix computing the initial state for editor values and tabs to avoid duplicating tabs on page reload -- [#2712](https://github.com/graphql/graphiql/pull/2712) - [`d65f00ea`](https://github.com/graphql/graphiql/commit/d65f00ea2d158cf532d1c71844630c5d9ec13410) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make sure - hidden editors don't overflow +- [#2712](https://github.com/graphql/graphiql/pull/2712) [`d65f00ea`](https://github.com/graphql/graphiql/commit/d65f00ea2d158cf532d1c71844630c5d9ec13410) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Make sure hidden editors don't overflow ## 0.11.0 ### Minor Changes -- [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: The `onHasCompletion` - export has been removed as it is only meant to be used internally. - -* [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - Add new components: - - UI components (`Button`, `ButtonGroup`, `Dialog`, `Menu`, `Spinner`, `Tab`, - `Tabs`, `Tooltip`, `UnStyledButton` and lots of icon components) - - Editor components (`QueryEditor`, `VariableEditor`, `HeaderEditor` and - `ResponseEditor`) - - Toolbar components (`ExecuteButton`, `ToolbarButton`, `ToolbarMenu` and - `ToolbarSelect`) - - Docs components (`Argument`, `DefaultValue`, `DeprecationReason`, - `Directive`, `DocExplorer`, `ExplorerSection`, `FieldDocumentation`, - `FieldLink`, `SchemaDocumentation`, `Search`, `TypeDocumentation` and - `TypeLink`) +- [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: The `onHasCompletion` export has been removed as it is only meant to be used internally. + +* [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - Add new components: + - UI components (`Button`, `ButtonGroup`, `Dialog`, `Menu`, `Spinner`, `Tab`, `Tabs`, `Tooltip`, `UnStyledButton` and lots of icon components) + - Editor components (`QueryEditor`, `VariableEditor`, `HeaderEditor` and `ResponseEditor`) + - Toolbar components (`ExecuteButton`, `ToolbarButton`, `ToolbarMenu` and `ToolbarSelect`) + - Docs components (`Argument`, `DefaultValue`, `DeprecationReason`, `Directive`, `DocExplorer`, `ExplorerSection`, `FieldDocumentation`, `FieldLink`, `SchemaDocumentation`, `Search`, `TypeDocumentation` and `TypeLink`) - `History` component - - A `GraphiQLProvider` component that renders all other existing provider - components from `@graphiql/react` for ease of use - -- [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: Add a new context - provider for plugins. This induces changes to the following other contexts and - their provider components: - - The property `isVisible` and the methods `hide` and `show` of the - `ExplorerContext` have been removed. Also, the property `isVisible` and the - methods `hide`, `show` and `toggle` of the `HistoryContext` have been - removed. Visibility state of plugins is now part of the `PluginContext` - using the `visiblePlugin` property. The visibility state can be altered - using the `setVisiblePlugin` method of the `PluginContext`. - - The `isVisible` prop of the `ExplorerContextProvider` has been removed. For - controlling the visibility state of plugins you can now use the - `visiblePlugin` prop of the `PluginContextProvider`. - - The `onToggle` prop of the `HistoryContextProvider` and the - `onToggleVisibility` prop of the `ExplorerContextProvider` have been - removed. For listening on visibility changes for any plugin you can now use - the `onTogglePluginVisibility` prop of the `PluginContextProvider`. - -* [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: The `ResponseTooltip` - prop of the `ResponseEditor` has been renamed to `responseTooltip` - -### Patch Changes - -- Updated dependencies - [[`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279)]: + - A `GraphiQLProvider` component that renders all other existing provider components from `@graphiql/react` for ease of use + +- [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: Add a new context provider for plugins. This induces changes to the following other contexts and their provider components: + - The property `isVisible` and the methods `hide` and `show` of the `ExplorerContext` have been removed. Also, the property `isVisible` and the methods `hide`, `show` and `toggle` of the `HistoryContext` have been removed. Visibility state of plugins is now part of the `PluginContext` using the `visiblePlugin` property. The visibility state can be altered using the `setVisiblePlugin` method of the `PluginContext`. + - The `isVisible` prop of the `ExplorerContextProvider` has been removed. For controlling the visibility state of plugins you can now use the `visiblePlugin` prop of the `PluginContextProvider`. + - The `onToggle` prop of the `HistoryContextProvider` and the `onToggleVisibility` prop of the `ExplorerContextProvider` have been removed. For listening on visibility changes for any plugin you can now use the `onTogglePluginVisibility` prop of the `PluginContextProvider`. + +* [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: The `ResponseTooltip` prop of the `ResponseEditor` has been renamed to `responseTooltip` + +### Patch Changes + +- Updated dependencies [[`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279)]: - codemirror-graphql@2.0.0 - @graphiql/toolkit@0.7.0 @@ -408,8 +238,7 @@ ### Patch Changes -- Updated dependencies - [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: +- Updated dependencies [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: - graphql-language-service@5.1.0 - codemirror-graphql@1.3.3 @@ -417,162 +246,90 @@ ### Minor Changes -- [#2651](https://github.com/graphql/graphiql/pull/2651) - [`85d5af25`](https://github.com/graphql/graphiql/commit/85d5af25d77c29b7d02da90a431c8c15f610c22a) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: - The following context properties have been removed as they are only meant for - internal use: +- [#2651](https://github.com/graphql/graphiql/pull/2651) [`85d5af25`](https://github.com/graphql/graphiql/commit/85d5af25d77c29b7d02da90a431c8c15f610c22a) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: The following context properties have been removed as they are only meant for internal use: - The `subscription` property of the `ExecutionContext` - The `setSchema` method of the `SchemaContext` - The `setFetchError` method of the `SchemaContext` -* [#2652](https://github.com/graphql/graphiql/pull/2652) - [`6ff0bab9`](https://github.com/graphql/graphiql/commit/6ff0bab978d63778b8ab4ba6e79fceb36c2db87f) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: - The `validationErrors` property of the `SchemaContext` is now always non-null. - If the schema is valid then it will contain an empty list. +* [#2652](https://github.com/graphql/graphiql/pull/2652) [`6ff0bab9`](https://github.com/graphql/graphiql/commit/6ff0bab978d63778b8ab4ba6e79fceb36c2db87f) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: The `validationErrors` property of the `SchemaContext` is now always non-null. If the schema is valid then it will contain an empty list. -- [#2644](https://github.com/graphql/graphiql/pull/2644) - [`0aff68a6`](https://github.com/graphql/graphiql/commit/0aff68a645cceb6b9689e0f394e8bece01710efc) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: - The `ResponseEditor` component no longer accepts the prop `value`. Instead you - can now pass the prop `response` to the `EditorContextProvider`. This aligns - it with the API design of the other editor components. +- [#2644](https://github.com/graphql/graphiql/pull/2644) [`0aff68a6`](https://github.com/graphql/graphiql/commit/0aff68a645cceb6b9689e0f394e8bece01710efc) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: The `ResponseEditor` component no longer accepts the prop `value`. Instead you can now pass the prop `response` to the `EditorContextProvider`. This aligns it with the API design of the other editor components. ## 0.9.0 ### Minor Changes -- [#2642](https://github.com/graphql/graphiql/pull/2642) - [`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a new - prop `operationName` to the `ExecutionContextProvider` component that controls - the operation sent with the request +- [#2642](https://github.com/graphql/graphiql/pull/2642) [`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a new prop `operationName` to the `ExecutionContextProvider` component that controls the operation sent with the request -* [#2642](https://github.com/graphql/graphiql/pull/2642) - [`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: - The `ExecutionContextProvider` and `QueryEditor` components no longer accepts - the `onEditOperationName` prop. Instead you can now pass this prop to the - `EditorContextProvider` component. +* [#2642](https://github.com/graphql/graphiql/pull/2642) [`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: The `ExecutionContextProvider` and `QueryEditor` components no longer accepts the `onEditOperationName` prop. Instead you can now pass this prop to the `EditorContextProvider` component. ## 0.8.0 ### Minor Changes -- [#2636](https://github.com/graphql/graphiql/pull/2636) - [`62317e0b`](https://github.com/graphql/graphiql/commit/62317e0bae6d4ccf89d9e1e6607fd8feeb100078) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: - - The `ExecutionContextProvider` and `QueryEditor` components no longer accept - the `externalFragments` prop. Instead the prop can now be passed to the - `EditorContextProvider` component. The provider component will normalize the - prop value and provide a map of type `Map` - (using the fragment names as keys) as part of the value of the - `EditorContext`. - - The `QueryEditor` component no longer accept the `validationRules` prop. - Instead the prop can now be passed to the `EditorContextProvider` component. - The provider component will provide the list of validation rules (empty if - there are none) as part of the value of the `EditorContext`. - - The `ExecutionContextProvider` and `HeaderEditor` components no longer - accept the `shouldPersistHeaders` prop. Instead the `EditorContextProvider` - component now provides the value of its equally named prop as part of the - value of the `EditorContext`. +- [#2636](https://github.com/graphql/graphiql/pull/2636) [`62317e0b`](https://github.com/graphql/graphiql/commit/62317e0bae6d4ccf89d9e1e6607fd8feeb100078) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - BREAKING: + - The `ExecutionContextProvider` and `QueryEditor` components no longer accept the `externalFragments` prop. Instead the prop can now be passed to the `EditorContextProvider` component. The provider component will normalize the prop value and provide a map of type `Map` (using the fragment names as keys) as part of the value of the `EditorContext`. + - The `QueryEditor` component no longer accept the `validationRules` prop. Instead the prop can now be passed to the `EditorContextProvider` component. The provider component will provide the list of validation rules (empty if there are none) as part of the value of the `EditorContext`. + - The `ExecutionContextProvider` and `HeaderEditor` components no longer accept the `shouldPersistHeaders` prop. Instead the `EditorContextProvider` component now provides the value of its equally named prop as part of the value of the `EditorContext`. ## 0.7.1 ### Patch Changes -- Updated dependencies - [[`ea732ea8`](https://github.com/graphql/graphiql/commit/ea732ea8e12272c998f1467af8b3b88b6b508e12)]: +- Updated dependencies [[`ea732ea8`](https://github.com/graphql/graphiql/commit/ea732ea8e12272c998f1467af8b3b88b6b508e12)]: - @graphiql/toolkit@0.6.1 ## 0.7.0 ### Minor Changes -- [#2618](https://github.com/graphql/graphiql/pull/2618) - [`4c814506`](https://github.com/graphql/graphiql/commit/4c814506183579b78731659d871cd4b0ba93305a) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - method `introspect` to the schema context and provide a short key - (`Shift-Ctrl-R`) for triggering introspection +- [#2618](https://github.com/graphql/graphiql/pull/2618) [`4c814506`](https://github.com/graphql/graphiql/commit/4c814506183579b78731659d871cd4b0ba93305a) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a method `introspect` to the schema context and provide a short key (`Shift-Ctrl-R`) for triggering introspection ## 0.6.0 ### Minor Changes -- [#2574](https://github.com/graphql/graphiql/pull/2574) - [`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Allow - passing introspection data to the `schema` prop of the `SchemaContextProvider` - component +- [#2574](https://github.com/graphql/graphiql/pull/2574) [`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Allow passing introspection data to the `schema` prop of the `SchemaContextProvider` component ### Patch Changes -- [#2574](https://github.com/graphql/graphiql/pull/2574) - [`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Set the - schema correctly after refetching introspection (e.g. when the `fetcher` prop - changes) +- [#2574](https://github.com/graphql/graphiql/pull/2574) [`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Set the schema correctly after refetching introspection (e.g. when the `fetcher` prop changes) ## 0.5.2 ### Patch Changes -- [#2565](https://github.com/graphql/graphiql/pull/2565) - [`f581b437`](https://github.com/graphql/graphiql/commit/f581b437e5bdab6f3ad817d230ee6d1b410bb591) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Don't - invoke editor change callbacks when manually signaling "empty" changes. +- [#2565](https://github.com/graphql/graphiql/pull/2565) [`f581b437`](https://github.com/graphql/graphiql/commit/f581b437e5bdab6f3ad817d230ee6d1b410bb591) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Don't invoke editor change callbacks when manually signaling "empty" changes. ## 0.5.1 ### Patch Changes -- [#2561](https://github.com/graphql/graphiql/pull/2561) - [`08346cba`](https://github.com/graphql/graphiql/commit/08346cba136825341881f9dfefc62a60d748e0ee) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add missing - effect dependencies to make sure editors are recreated when changing the - `keyMap` prop +- [#2561](https://github.com/graphql/graphiql/pull/2561) [`08346cba`](https://github.com/graphql/graphiql/commit/08346cba136825341881f9dfefc62a60d748e0ee) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add missing effect dependencies to make sure editors are recreated when changing the `keyMap` prop ## 0.5.0 ### Minor Changes -- [#2541](https://github.com/graphql/graphiql/pull/2541) - [`788d84ef`](https://github.com/graphql/graphiql/commit/788d84ef2784188981f1b4cfb78fba24153bf0cb) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add - `onSchemaChange` callback prop to the `SchemaContextProvider` component +- [#2541](https://github.com/graphql/graphiql/pull/2541) [`788d84ef`](https://github.com/graphql/graphiql/commit/788d84ef2784188981f1b4cfb78fba24153bf0cb) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add `onSchemaChange` callback prop to the `SchemaContextProvider` component ### Patch Changes -- [#2545](https://github.com/graphql/graphiql/pull/2545) - [`8ce5b483`](https://github.com/graphql/graphiql/commit/8ce5b483ee190b5f5dd84eaf42e5d1359ce185e6) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid - top-level dynamic imports from `codemirror` that break importing the package - in non-browser environments +- [#2545](https://github.com/graphql/graphiql/pull/2545) [`8ce5b483`](https://github.com/graphql/graphiql/commit/8ce5b483ee190b5f5dd84eaf42e5d1359ce185e6) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Avoid top-level dynamic imports from `codemirror` that break importing the package in non-browser environments ## 0.4.3 ### Patch Changes -- [#2526](https://github.com/graphql/graphiql/pull/2526) - [`26e44120`](https://github.com/graphql/graphiql/commit/26e44120a18d49af451c97619fe3386a65579e05) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add missing - `caller` arguments to hook calls so that the error message printed when a - context provider is missing is more accurate about the component or hook that - caused the error +- [#2526](https://github.com/graphql/graphiql/pull/2526) [`26e44120`](https://github.com/graphql/graphiql/commit/26e44120a18d49af451c97619fe3386a65579e05) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add missing `caller` arguments to hook calls so that the error message printed when a context provider is missing is more accurate about the component or hook that caused the error ## 0.4.2 ### Patch Changes -- [#2501](https://github.com/graphql/graphiql/pull/2501) - [`5437ee61`](https://github.com/graphql/graphiql/commit/5437ee61e1ba6cd28ccc1cb3543df1ea788278f4) - Thanks [@acao](https://github.com/acao)! - Allow Codemirror 5 `keyMap` to be - defined, default `vim` or `emacs` allowed in addition to the original default - of `sublime`. +- [#2501](https://github.com/graphql/graphiql/pull/2501) [`5437ee61`](https://github.com/graphql/graphiql/commit/5437ee61e1ba6cd28ccc1cb3543df1ea788278f4) Thanks [@acao](https://github.com/acao)! - Allow Codemirror 5 `keyMap` to be defined, default `vim` or `emacs` allowed in addition to the original default of `sublime`. -- Updated dependencies - [[`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: +- Updated dependencies [[`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: - graphql-language-service@5.0.6 - codemirror-graphql@1.3.2 @@ -580,8 +337,7 @@ ### Patch Changes -- Updated dependencies - [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: +- Updated dependencies [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: - graphql-language-service@5.0.5 - codemirror-graphql@1.3.1 @@ -589,171 +345,83 @@ ### Minor Changes -- [#2461](https://github.com/graphql/graphiql/pull/2461) - [`7dfe3ece`](https://github.com/graphql/graphiql/commit/7dfe3ece4e8ab6b3400888f7f357e394db63439d) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add - `useDragResize` utility hook +- [#2461](https://github.com/graphql/graphiql/pull/2461) [`7dfe3ece`](https://github.com/graphql/graphiql/commit/7dfe3ece4e8ab6b3400888f7f357e394db63439d) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add `useDragResize` utility hook ## 0.3.0 ### Minor Changes -- [#2453](https://github.com/graphql/graphiql/pull/2453) - [`1b41e33c`](https://github.com/graphql/graphiql/commit/1b41e33c4a871a345836de58f415b7c461ced1f8) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add - execution context to `@graphiql/react` and move over the logic from `graphiql` +- [#2453](https://github.com/graphql/graphiql/pull/2453) [`1b41e33c`](https://github.com/graphql/graphiql/commit/1b41e33c4a871a345836de58f415b7c461ced1f8) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add execution context to `@graphiql/react` and move over the logic from `graphiql` -* [#2452](https://github.com/graphql/graphiql/pull/2452) - [`ee0fd8bf`](https://github.com/graphql/graphiql/commit/ee0fd8bf4042053ec647080b83656dc5e54a7239) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move tab - state from `graphiql` into editor context from `@graphiql/react` +* [#2452](https://github.com/graphql/graphiql/pull/2452) [`ee0fd8bf`](https://github.com/graphql/graphiql/commit/ee0fd8bf4042053ec647080b83656dc5e54a7239) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move tab state from `graphiql` into editor context from `@graphiql/react` -- [#2449](https://github.com/graphql/graphiql/pull/2449) - [`a0b02eda`](https://github.com/graphql/graphiql/commit/a0b02edaa629c6113c1c5518fd3aa05b355a1921) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Assume all - context values are nullable and create hooks to consume individual contexts +- [#2449](https://github.com/graphql/graphiql/pull/2449) [`a0b02eda`](https://github.com/graphql/graphiql/commit/a0b02edaa629c6113c1c5518fd3aa05b355a1921) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Assume all context values are nullable and create hooks to consume individual contexts -* [#2450](https://github.com/graphql/graphiql/pull/2450) - [`1e6fc68b`](https://github.com/graphql/graphiql/commit/1e6fc68b73941544ee64e0499e459f9c7d39aa14) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Extract the - `copy`, `merge`, `prettify`, and `autoCompleteLeafs` functions into hooks and - remove these functions from the editor context value +* [#2450](https://github.com/graphql/graphiql/pull/2450) [`1e6fc68b`](https://github.com/graphql/graphiql/commit/1e6fc68b73941544ee64e0499e459f9c7d39aa14) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Extract the `copy`, `merge`, `prettify`, and `autoCompleteLeafs` functions into hooks and remove these functions from the editor context value ### Patch Changes -- [#2451](https://github.com/graphql/graphiql/pull/2451) - [`0659e96e`](https://github.com/graphql/graphiql/commit/0659e96e07f98d532619f29f52cba59e2d528327) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Always use - the current value of the headers for the introspection request +- [#2451](https://github.com/graphql/graphiql/pull/2451) [`0659e96e`](https://github.com/graphql/graphiql/commit/0659e96e07f98d532619f29f52cba59e2d528327) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Always use the current value of the headers for the introspection request ## 0.2.1 ### Patch Changes -- [#2435](https://github.com/graphql/graphiql/pull/2435) - [`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix - deriving default values for editors from storage +- [#2435](https://github.com/graphql/graphiql/pull/2435) [`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix deriving default values for editors from storage -* [#2437](https://github.com/graphql/graphiql/pull/2437) - [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - prettify query functionality to editor context in `@graphiql/react` +* [#2437](https://github.com/graphql/graphiql/pull/2437) [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move prettify query functionality to editor context in `@graphiql/react` -- [#2435](https://github.com/graphql/graphiql/pull/2435) - [`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - logic for deriving operation facts from the current query to `@graphiql/react` - and store these facts as properties on the query editor instance +- [#2435](https://github.com/graphql/graphiql/pull/2435) [`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic for deriving operation facts from the current query to `@graphiql/react` and store these facts as properties on the query editor instance -* [#2448](https://github.com/graphql/graphiql/pull/2448) - [`3dae62fc`](https://github.com/graphql/graphiql/commit/3dae62fc871385e148a799cde55a52a5e6b41d19) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - don't - introspect the schema if it's provided via props +* [#2448](https://github.com/graphql/graphiql/pull/2448) [`3dae62fc`](https://github.com/graphql/graphiql/commit/3dae62fc871385e148a799cde55a52a5e6b41d19) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - don't introspect the schema if it's provided via props -- [#2437](https://github.com/graphql/graphiql/pull/2437) - [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move copy - query functionality to editor context in `@graphiql/react` +- [#2437](https://github.com/graphql/graphiql/pull/2437) [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move copy query functionality to editor context in `@graphiql/react` -* [#2437](https://github.com/graphql/graphiql/pull/2437) - [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move merge - query functionality to editor context in `@graphiql/react` +* [#2437](https://github.com/graphql/graphiql/pull/2437) [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move merge query functionality to editor context in `@graphiql/react` -- [#2436](https://github.com/graphql/graphiql/pull/2436) - [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Inline - logic for clicking a reference to open the docs and remove the - `onClickReference` and `onHintInformationRender` props of the editor - components and hooks +- [#2436](https://github.com/graphql/graphiql/pull/2436) [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Inline logic for clicking a reference to open the docs and remove the `onClickReference` and `onHintInformationRender` props of the editor components and hooks -* [#2436](https://github.com/graphql/graphiql/pull/2436) - [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - visibility state for doc explorer from `graphiql` to the explorer context in - `@graphiql/react` +* [#2436](https://github.com/graphql/graphiql/pull/2436) [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move visibility state for doc explorer from `graphiql` to the explorer context in `@graphiql/react` ## 0.2.0 ### Minor Changes -- [#2413](https://github.com/graphql/graphiql/pull/2413) - [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - `StorageContext` and a `HistoryContext` to `@graphiql/react` that replaces the - logic in the `graphiql` package +- [#2413](https://github.com/graphql/graphiql/pull/2413) [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a `StorageContext` and a `HistoryContext` to `@graphiql/react` that replaces the logic in the `graphiql` package -* [#2420](https://github.com/graphql/graphiql/pull/2420) - [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - `SchemaContext` to `@graphiql/react` that replaces the logic for fetching and - validating the schema in the `graphiql` package +* [#2420](https://github.com/graphql/graphiql/pull/2420) [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a `SchemaContext` to `@graphiql/react` that replaces the logic for fetching and validating the schema in the `graphiql` package ### Patch Changes -- Updated dependencies - [[`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e), - [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9), - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e), - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e)]: +- Updated dependencies [[`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e), [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9), [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e), [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e)]: - @graphiql/toolkit@0.6.0 ## 0.1.2 ### Patch Changes -- [#2427](https://github.com/graphql/graphiql/pull/2427) - [`ebc864f0`](https://github.com/graphql/graphiql/commit/ebc864f0ab05000758cb2898daaa73a2f15255ec) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Mark - `graphql` as external dependency to avoid importing multiple instances +- [#2427](https://github.com/graphql/graphiql/pull/2427) [`ebc864f0`](https://github.com/graphql/graphiql/commit/ebc864f0ab05000758cb2898daaa73a2f15255ec) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Mark `graphql` as external dependency to avoid importing multiple instances -* [#2427](https://github.com/graphql/graphiql/pull/2427) - [`ebc864f0`](https://github.com/graphql/graphiql/commit/ebc864f0ab05000758cb2898daaa73a2f15255ec) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix linting - by also updating the options object in the internal codemirror state +* [#2427](https://github.com/graphql/graphiql/pull/2427) [`ebc864f0`](https://github.com/graphql/graphiql/commit/ebc864f0ab05000758cb2898daaa73a2f15255ec) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix linting by also updating the options object in the internal codemirror state ## 0.1.1 ### Patch Changes -- [#2423](https://github.com/graphql/graphiql/pull/2423) - [`838e58da`](https://github.com/graphql/graphiql/commit/838e58dad652d8f5559af7b88d049b1c62348f2f) - Thanks [@chentsulin](https://github.com/chentsulin)! - Fix peer dependency - declaration by using `||` instead of `|` to link multiple major versions +- [#2423](https://github.com/graphql/graphiql/pull/2423) [`838e58da`](https://github.com/graphql/graphiql/commit/838e58dad652d8f5559af7b88d049b1c62348f2f) Thanks [@chentsulin](https://github.com/chentsulin)! - Fix peer dependency declaration by using `||` instead of `|` to link multiple major versions ## 0.1.0 ### Minor Changes -- [#2409](https://github.com/graphql/graphiql/pull/2409) - [`f2025ba0`](https://github.com/graphql/graphiql/commit/f2025ba06c5aa8e8ac68d29538ff135f3efc8e46) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - logic of the variable editor from the `graphiql` package into a hook - `useVariableEditor` provided by `@graphiql/react` - -* [#2408](https://github.com/graphql/graphiql/pull/2408) - [`d825bb75`](https://github.com/graphql/graphiql/commit/d825bb7569ca6b1ebbe534b893354645c790e003) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - logic of the query editor from the `graphiql` package into a hook - `useQueryEditor` provided by `@graphiql/react` - -- [#2411](https://github.com/graphql/graphiql/pull/2411) - [`ad448693`](https://github.com/graphql/graphiql/commit/ad4486934ba69247efd33ee500e30f8236ecd079) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - logic of the result viewer from the `graphiql` package into a hook - `useResponseEditor` provided by `@graphiql/react` - -* [#2404](https://github.com/graphql/graphiql/pull/2404) - [`029ddf82`](https://github.com/graphql/graphiql/commit/029ddf82c29754ab8518ae7df66f9b25361a8247) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - context provider for editors and move the logic of the headers editor from the - `graphiql` package into a hook `useHeaderEditor` provided by `@graphiql/react` - -### Patch Changes - -- [#2370](https://github.com/graphql/graphiql/pull/2370) - [`7f695b10`](https://github.com/graphql/graphiql/commit/7f695b104f9b25ba8c6d36f7827c475b297b7482) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - context with provider component and hooks that manages the state related to - the docs/explorer. +- [#2409](https://github.com/graphql/graphiql/pull/2409) [`f2025ba0`](https://github.com/graphql/graphiql/commit/f2025ba06c5aa8e8ac68d29538ff135f3efc8e46) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the variable editor from the `graphiql` package into a hook `useVariableEditor` provided by `@graphiql/react` + +* [#2408](https://github.com/graphql/graphiql/pull/2408) [`d825bb75`](https://github.com/graphql/graphiql/commit/d825bb7569ca6b1ebbe534b893354645c790e003) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the query editor from the `graphiql` package into a hook `useQueryEditor` provided by `@graphiql/react` + +- [#2411](https://github.com/graphql/graphiql/pull/2411) [`ad448693`](https://github.com/graphql/graphiql/commit/ad4486934ba69247efd33ee500e30f8236ecd079) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the result viewer from the `graphiql` package into a hook `useResponseEditor` provided by `@graphiql/react` + +* [#2404](https://github.com/graphql/graphiql/pull/2404) [`029ddf82`](https://github.com/graphql/graphiql/commit/029ddf82c29754ab8518ae7df66f9b25361a8247) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a context provider for editors and move the logic of the headers editor from the `graphiql` package into a hook `useHeaderEditor` provided by `@graphiql/react` + +### Patch Changes + +- [#2370](https://github.com/graphql/graphiql/pull/2370) [`7f695b10`](https://github.com/graphql/graphiql/commit/7f695b104f9b25ba8c6d36f7827c475b297b7482) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a context with provider component and hooks that manages the state related to the docs/explorer. diff --git a/packages/graphiql-react/package.json b/packages/graphiql-react/package.json index 29c7eb28e38..82dd4fa34a8 100644 --- a/packages/graphiql-react/package.json +++ b/packages/graphiql-react/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/react", - "version": "0.17.1", + "version": "0.17.2", "repository": { "type": "git", "url": "https://github.com/graphql/graphiql", @@ -36,7 +36,7 @@ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { - "@graphiql/toolkit": "^0.8.3", + "@graphiql/toolkit": "^0.8.4", "@reach/combobox": "^0.17.0", "@reach/dialog": "^0.17.0", "@reach/listbox": "^0.17.0", @@ -45,9 +45,9 @@ "@reach/visually-hidden": "^0.17.0", "clsx": "^1.2.1", "codemirror": "^5.65.3", - "codemirror-graphql": "^2.0.5", + "codemirror-graphql": "^2.0.6", "copy-to-clipboard": "^3.2.0", - "graphql-language-service": "^5.1.3", + "graphql-language-service": "^5.1.4", "markdown-it": "^12.2.0", "set-value": "^4.1.0" }, diff --git a/packages/graphiql-react/src/editor/completion.ts b/packages/graphiql-react/src/editor/completion.ts index 4127f1e2982..9a5f515f0c2 100644 --- a/packages/graphiql-react/src/editor/completion.ts +++ b/packages/graphiql-react/src/editor/completion.ts @@ -24,8 +24,8 @@ export function onHasCompletion( explorer: ExplorerContextType | null, plugin: PluginContextType | null, callback?: (type: GraphQLNamedType) => void, -) { - importCodeMirror([], { useCommonAddons: false }).then(CodeMirror => { +): void { + void importCodeMirror([], { useCommonAddons: false }).then(CodeMirror => { let information: HTMLDivElement | null; let fieldName: HTMLSpanElement | null; let typeNamePill: HTMLSpanElement | null; @@ -49,50 +49,50 @@ export function onHasCompletion( // highlighted typeahead option. information = document.createElement('div'); information.className = 'CodeMirror-hint-information'; - hintsUl.appendChild(information); + hintsUl.append(information); const header = document.createElement('header'); header.className = 'CodeMirror-hint-information-header'; - information.appendChild(header); + information.append(header); fieldName = document.createElement('span'); fieldName.className = 'CodeMirror-hint-information-field-name'; - header.appendChild(fieldName); + header.append(fieldName); typeNamePill = document.createElement('span'); typeNamePill.className = 'CodeMirror-hint-information-type-name-pill'; - header.appendChild(typeNamePill); + header.append(typeNamePill); typeNamePrefix = document.createElement('span'); - typeNamePill.appendChild(typeNamePrefix); + typeNamePill.append(typeNamePrefix); typeName = document.createElement('a'); typeName.className = 'CodeMirror-hint-information-type-name'; typeName.href = 'javascript:void 0'; // eslint-disable-line no-script-url typeName.addEventListener('click', onClickHintInformation); - typeNamePill.appendChild(typeName); + typeNamePill.append(typeName); typeNameSuffix = document.createElement('span'); - typeNamePill.appendChild(typeNameSuffix); + typeNamePill.append(typeNameSuffix); description = document.createElement('div'); description.className = 'CodeMirror-hint-information-description'; - information.appendChild(description); + information.append(description); deprecation = document.createElement('div'); deprecation.className = 'CodeMirror-hint-information-deprecation'; - information.appendChild(deprecation); + information.append(deprecation); const deprecationLabel = document.createElement('span'); deprecationLabel.className = 'CodeMirror-hint-information-deprecation-label'; deprecationLabel.innerText = 'Deprecated'; - deprecation.appendChild(deprecationLabel); + deprecation.append(deprecationLabel); deprecationReason = document.createElement('div'); deprecationReason.className = 'CodeMirror-hint-information-deprecation-reason'; - deprecation.appendChild(deprecationReason); + deprecation.append(deprecationReason); /** * This is a bit hacky: By default, codemirror renders all hints diff --git a/packages/graphiql-react/src/editor/context.tsx b/packages/graphiql-react/src/editor/context.tsx index 3441de7179b..2854fa5062d 100644 --- a/packages/graphiql-react/src/editor/context.tsx +++ b/packages/graphiql-react/src/editor/context.tsx @@ -343,7 +343,7 @@ export function EditorContextProvider(props: EditorContextProviderProps) { [storage, tabState, headerEditor], ); - const lastShouldPersistHeadersProp = useRef(undefined); + const lastShouldPersistHeadersProp = useRef(); useEffect(() => { const propValue = Boolean(props.shouldPersistHeaders); if (lastShouldPersistHeadersProp.current !== propValue) { diff --git a/packages/graphiql-react/src/editor/header-editor.ts b/packages/graphiql-react/src/editor/header-editor.ts index 35cf592f25d..19e8727c316 100644 --- a/packages/graphiql-react/src/editor/header-editor.ts +++ b/packages/graphiql-react/src/editor/header-editor.ts @@ -51,7 +51,7 @@ export function useHeaderEditor( useEffect(() => { let isActive = true; - importCodeMirror([ + void importCodeMirror([ // @ts-expect-error import('codemirror/mode/javascript/javascript'), ]).then(CodeMirror => { @@ -96,13 +96,10 @@ export function useHeaderEditor( }); newEditor.on('keyup', (editorInstance, event) => { - const code = event.keyCode; - if ( - (code >= 65 && code <= 90) || // letters - (!event.shiftKey && code >= 48 && code <= 57) || // numbers - (event.shiftKey && code === 189) || // underscore - (event.shiftKey && code === 222) // " - ) { + const { keyCode, key, shiftKey } = event; + const isLetter = keyCode >= 65 && keyCode <= 90; + const isNumber = keyCode >= 48 && keyCode <= 57; + if (isLetter || (!shiftKey && isNumber) || key === '_' || key === '"') { editorInstance.execCommand('autocomplete'); } }); diff --git a/packages/graphiql-react/src/editor/hooks.ts b/packages/graphiql-react/src/editor/hooks.ts index 06aa814336e..d86d2837e91 100644 --- a/packages/graphiql-react/src/editor/hooks.ts +++ b/packages/graphiql-react/src/editor/hooks.ts @@ -314,13 +314,17 @@ export function useAutoCompleteLeafs({ }, ), ); - setTimeout(() => markers.forEach(marker => marker.clear()), 7000); + setTimeout(() => { + for (const marker of markers) { + marker.clear(); + } + }, 7000); let newCursorIndex = cursorIndex; - insertions.forEach(({ index, string }) => { + for (const { index, string } of insertions) { if (index < cursorIndex) { newCursorIndex += string.length; } - }); + } queryEditor.setCursor(queryEditor.posFromIndex(newCursorIndex)); }); } diff --git a/packages/graphiql-react/src/editor/query-editor.ts b/packages/graphiql-react/src/editor/query-editor.ts index c9d295f23ce..9d3909aa914 100644 --- a/packages/graphiql-react/src/editor/query-editor.ts +++ b/packages/graphiql-react/src/editor/query-editor.ts @@ -140,7 +140,7 @@ export function useQueryEditor( useEffect(() => { let isActive = true; - importCodeMirror([ + void importCodeMirror([ import('codemirror/addon/comment/comment'), import('codemirror/addon/search/search'), import('codemirror-graphql/esm/hint'), diff --git a/packages/graphiql-react/src/editor/response-editor.tsx b/packages/graphiql-react/src/editor/response-editor.tsx index ac64a648494..0e9b7efbe14 100644 --- a/packages/graphiql-react/src/editor/response-editor.tsx +++ b/packages/graphiql-react/src/editor/response-editor.tsx @@ -62,7 +62,7 @@ export function useResponseEditor( useEffect(() => { let isActive = true; - importCodeMirror( + void importCodeMirror( [ import('codemirror/addon/fold/foldgutter'), import('codemirror/addon/fold/brace-fold'), diff --git a/packages/graphiql-react/src/editor/variable-editor.ts b/packages/graphiql-react/src/editor/variable-editor.ts index c8970b8460e..d3c54ac995b 100644 --- a/packages/graphiql-react/src/editor/variable-editor.ts +++ b/packages/graphiql-react/src/editor/variable-editor.ts @@ -57,7 +57,7 @@ export function useVariableEditor( useEffect(() => { let isActive = true; - importCodeMirror([ + void importCodeMirror([ import('codemirror-graphql/esm/variables/hint'), import('codemirror-graphql/esm/variables/lint'), import('codemirror-graphql/esm/variables/mode'), @@ -116,13 +116,10 @@ export function useVariableEditor( }); newEditor.on('keyup', (editorInstance, event) => { - const code = event.keyCode; - if ( - (code >= 65 && code <= 90) || // letters - (!event.shiftKey && code >= 48 && code <= 57) || // numbers - (event.shiftKey && code === 189) || // underscore - (event.shiftKey && code === 222) // " - ) { + const { keyCode, key, shiftKey } = event; + const isLetter = keyCode >= 65 && keyCode <= 90; + const isNumber = keyCode >= 48 && keyCode <= 57; + if (isLetter || (!shiftKey && isNumber) || key === '_' || key === '"') { editorInstance.execCommand('autocomplete'); } }); diff --git a/packages/graphiql-react/src/execution.tsx b/packages/graphiql-react/src/execution.tsx index da38cbf8bd6..d66b4eea78b 100644 --- a/packages/graphiql-react/src/execution.tsx +++ b/packages/graphiql-react/src/execution.tsx @@ -344,7 +344,7 @@ function tryParseJsonObject({ errorMessageParse: string; errorMessageType: string; }) { - let parsed: Record | undefined = undefined; + let parsed: Record | undefined; try { parsed = json && json.trim() !== '' ? JSON.parse(json) : undefined; } catch (error) { diff --git a/packages/graphiql-react/src/explorer/components/__tests__/type-documentation.spec.tsx b/packages/graphiql-react/src/explorer/components/__tests__/type-documentation.spec.tsx index 3b241f3dfad..f462717478e 100644 --- a/packages/graphiql-react/src/explorer/components/__tests__/type-documentation.spec.tsx +++ b/packages/graphiql-react/src/explorer/components/__tests__/type-documentation.spec.tsx @@ -85,7 +85,7 @@ describe('TypeDocumentation', () => { const title = container.querySelector( '.graphiql-doc-explorer-section-title', ); - title?.removeChild(title?.childNodes[0]); + title?.childNodes[0].remove(); expect(title).toHaveTextContent('Possible Types'); }); @@ -96,7 +96,7 @@ describe('TypeDocumentation', () => { const title = container.querySelector( '.graphiql-doc-explorer-section-title', ); - title?.removeChild(title?.childNodes[0]); + title?.childNodes[0].remove(); expect(title).toHaveTextContent('Enum Values'); const enums = container.querySelectorAll( '.graphiql-doc-explorer-enum-value', @@ -115,7 +115,7 @@ describe('TypeDocumentation', () => { const title = container.querySelector( '.graphiql-doc-explorer-section-title', ); - title?.removeChild(title?.childNodes[0]); + title?.childNodes[0].remove(); expect(title).toHaveTextContent('Enum Values'); let enums = container.querySelectorAll('.graphiql-doc-explorer-enum-value'); @@ -128,7 +128,7 @@ describe('TypeDocumentation', () => { const deprecatedTitle = container.querySelectorAll( '.graphiql-doc-explorer-section-title', )[1]; - deprecatedTitle.removeChild(deprecatedTitle.childNodes[0]); + deprecatedTitle.childNodes[0].remove(); expect(deprecatedTitle).toHaveTextContent('Deprecated Enum Values'); enums = container.querySelectorAll('.graphiql-doc-explorer-enum-value'); diff --git a/packages/graphiql-react/src/explorer/components/search.tsx b/packages/graphiql-react/src/explorer/components/search.tsx index c4258d86b30..886899d7b89 100644 --- a/packages/graphiql-react/src/explorer/components/search.tsx +++ b/packages/graphiql-react/src/explorer/components/search.tsx @@ -50,10 +50,11 @@ export function Search() { useEffect(() => { function handleKeyDown(event: KeyboardEvent) { - if (event.metaKey && event.keyCode === 75 && inputRef.current) { - inputRef.current.focus(); + if (event.metaKey && event.key === 'k') { + inputRef.current?.focus(); } } + window.addEventListener('keydown', handleKeyDown); return () => window.removeEventListener('keydown', handleKeyDown); }, []); diff --git a/packages/graphiql-react/src/history/components.tsx b/packages/graphiql-react/src/history/components.tsx index b5ad56b52a8..3ca42552d85 100644 --- a/packages/graphiql-react/src/history/components.tsx +++ b/packages/graphiql-react/src/history/components.tsx @@ -75,11 +75,9 @@ export function HistoryItem(props: QueryHistoryItemProps) { defaultValue={props.item.label} ref={inputRef} onKeyDown={e => { - if (e.keyCode === 27) { - // Escape + if (e.key === 'Esc') { setIsEditable(false); - } else if (e.keyCode === 13) { - // Enter + } else if (e.key === 'Enter') { setIsEditable(false); editLabel({ ...props.item, label: e.currentTarget.value }); } diff --git a/packages/graphiql-react/src/schema.tsx b/packages/graphiql-react/src/schema.tsx index 8fa7fc04176..6284fc95ddc 100644 --- a/packages/graphiql-react/src/schema.tsx +++ b/packages/graphiql-react/src/schema.tsx @@ -194,6 +194,7 @@ export function SchemaContextProvider(props: SchemaContextProviderProps) { const counter = ++counterRef.current; const maybeIntrospectionData = props.schema; + async function fetchIntrospectionData() { if (maybeIntrospectionData) { // No need to introspect if we already have the data @@ -317,10 +318,11 @@ export function SchemaContextProvider(props: SchemaContextProviderProps) { */ useEffect(() => { function triggerIntrospection(event: KeyboardEvent) { - if (event.keyCode === 82 && event.shiftKey && event.ctrlKey) { + if (event.ctrlKey && event.key === 'R') { introspect(); } } + window.addEventListener('keydown', triggerIntrospection); return () => window.removeEventListener('keydown', triggerIntrospection); }); diff --git a/packages/graphiql-toolkit/CHANGELOG.md b/packages/graphiql-toolkit/CHANGELOG.md index 9c2cd18775c..87a3aa17721 100644 --- a/packages/graphiql-toolkit/CHANGELOG.md +++ b/packages/graphiql-toolkit/CHANGELOG.md @@ -1,113 +1,76 @@ # @graphiql/toolkit +## 0.8.4 + +### Patch Changes + +- [#3113](https://github.com/graphql/graphiql/pull/3113) [`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9) Thanks [@B2o5T](https://github.com/B2o5T)! - replace `.forEach` with `for..of` + +- [#3109](https://github.com/graphql/graphiql/pull/3109) [`51007002`](https://github.com/graphql/graphiql/commit/510070028b7d8e98f2ba25f396519976aea5fa4b) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-floating-promises` eslint rule + +- [#3120](https://github.com/graphql/graphiql/pull/3120) [`15c26eb6`](https://github.com/graphql/graphiql/commit/15c26eb6d621a85df9eecb2b8a5fa009fa2fe040) Thanks [@B2o5T](https://github.com/B2o5T)! - prefer await to then + ## 0.8.3 ### Patch Changes -- [#3046](https://github.com/graphql/graphiql/pull/3046) - [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) - Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index - access +- [#3046](https://github.com/graphql/graphiql/pull/3046) [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index access -- [#3042](https://github.com/graphql/graphiql/pull/3042) - [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0) - Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer String#slice() over - String#substr() and String#substring() +- [#3042](https://github.com/graphql/graphiql/pull/3042) [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0) Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer String#slice() over String#substr() and String#substring() ## 0.8.2 ### Patch Changes -- [#2962](https://github.com/graphql/graphiql/pull/2962) - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) - Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add - `--max-warnings=0` and `--cache` flags +- [#2962](https://github.com/graphql/graphiql/pull/2962) [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add `--max-warnings=0` and `--cache` flags ## 0.8.1 ### Patch Changes -- [#2931](https://github.com/graphql/graphiql/pull/2931) - [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and - `no-else-return` rules +- [#2931](https://github.com/graphql/graphiql/pull/2931) [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and `no-else-return` rules -- [#2923](https://github.com/graphql/graphiql/pull/2923) - [`695100bd`](https://github.com/graphql/graphiql/commit/695100bd317940ff3ffd8f56b54248c1dba1ac04) - Thanks [@TheMightyPenguin](https://github.com/TheMightyPenguin)! - Remove - side-effect in StorageAPI that overrides localStorage.clear +- [#2923](https://github.com/graphql/graphiql/pull/2923) [`695100bd`](https://github.com/graphql/graphiql/commit/695100bd317940ff3ffd8f56b54248c1dba1ac04) Thanks [@TheMightyPenguin](https://github.com/TheMightyPenguin)! - Remove side-effect in StorageAPI that overrides localStorage.clear -- [#2937](https://github.com/graphql/graphiql/pull/2937) - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-includes` +- [#2937](https://github.com/graphql/graphiql/pull/2937) [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-includes` -- [#2965](https://github.com/graphql/graphiql/pull/2965) - [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-optional-catch-binding` rule +- [#2965](https://github.com/graphql/graphiql/pull/2965) [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-optional-catch-binding` rule -- [#2936](https://github.com/graphql/graphiql/pull/2936) - [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `lonely-if`/`unicorn/lonely-if` rules +- [#2936](https://github.com/graphql/graphiql/pull/2936) [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `lonely-if`/`unicorn/lonely-if` rules -- [#2938](https://github.com/graphql/graphiql/pull/2938) - [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/throw-new-error` - rule +- [#2938](https://github.com/graphql/graphiql/pull/2938) [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/throw-new-error` rule ## 0.8.0 ### Minor Changes -- [#2719](https://github.com/graphql/graphiql/pull/2719) - [`e244b782`](https://github.com/graphql/graphiql/commit/e244b78291c2e2bb02d5753db82437926ebb4df4) - Thanks [@andreialecu](https://github.com/andreialecu)! - Allow passing Headers - for subscriptions into connection_init payload +- [#2719](https://github.com/graphql/graphiql/pull/2719) [`e244b782`](https://github.com/graphql/graphiql/commit/e244b78291c2e2bb02d5753db82437926ebb4df4) Thanks [@andreialecu](https://github.com/andreialecu)! - Allow passing Headers for subscriptions into connection_init payload ## 0.7.3 ### Patch Changes -- [#2755](https://github.com/graphql/graphiql/pull/2755) - [`674bf3f8`](https://github.com/graphql/graphiql/commit/674bf3f8ff321dfb8471b0f6e5419bb77ddc94af) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Only remove - namespaced items when clearing `localStorage` +- [#2755](https://github.com/graphql/graphiql/pull/2755) [`674bf3f8`](https://github.com/graphql/graphiql/commit/674bf3f8ff321dfb8471b0f6e5419bb77ddc94af) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Only remove namespaced items when clearing `localStorage` ## 0.7.2 ### Patch Changes -- [#2753](https://github.com/graphql/graphiql/pull/2753) - [`bfa90f24`](https://github.com/graphql/graphiql/commit/bfa90f249be4f68049c1bb81abfb524ae623313f) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Mark the - `graphql-ws` peer dependency as optional (as it's only needed when the fetcher - needs to support subscriptions) +- [#2753](https://github.com/graphql/graphiql/pull/2753) [`bfa90f24`](https://github.com/graphql/graphiql/commit/bfa90f249be4f68049c1bb81abfb524ae623313f) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Mark the `graphql-ws` peer dependency as optional (as it's only needed when the fetcher needs to support subscriptions) -* [#2751](https://github.com/graphql/graphiql/pull/2751) - [`8ab5fcd0`](https://github.com/graphql/graphiql/commit/8ab5fcd0a8399a0f8eb1b569751dd0e8390b9679) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Correctly - handle `null` in type-guard functions for `Promise` and `Observable` +* [#2751](https://github.com/graphql/graphiql/pull/2751) [`8ab5fcd0`](https://github.com/graphql/graphiql/commit/8ab5fcd0a8399a0f8eb1b569751dd0e8390b9679) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Correctly handle `null` in type-guard functions for `Promise` and `Observable` ## 0.7.1 ### Patch Changes -- [#2737](https://github.com/graphql/graphiql/pull/2737) - [`48872a87`](https://github.com/graphql/graphiql/commit/48872a87e6edec0c301102baaf669ffcce043a13) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Handle - execution when there is no document AST (because the query editor is empty or - the query string contains syntax errors) +- [#2737](https://github.com/graphql/graphiql/pull/2737) [`48872a87`](https://github.com/graphql/graphiql/commit/48872a87e6edec0c301102baaf669ffcce043a13) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Handle execution when there is no document AST (because the query editor is empty or the query string contains syntax errors) ## 0.7.0 ### Minor Changes -- [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: Don't pass - `shouldPersistHeaders` anymore when invoking the fetcher function. This value - can be looked up by consuming the `EditorContext`: +- [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: Don't pass `shouldPersistHeaders` anymore when invoking the fetcher function. This value can be looked up by consuming the `EditorContext`: ```js import { useEditorContext } from '@graphiql/react'; @@ -118,237 +81,139 @@ } ``` -* [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - Add a `clear` method to `Storage` - classes +* [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - Add a `clear` method to `Storage` classes ## 0.6.1 ### Patch Changes -- [#2535](https://github.com/graphql/graphiql/pull/2535) - [`ea732ea8`](https://github.com/graphql/graphiql/commit/ea732ea8e12272c998f1467af8b3b88b6b508e12) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix error - formatting for websocket requests and make error formatting more generic in - general +- [#2535](https://github.com/graphql/graphiql/pull/2535) [`ea732ea8`](https://github.com/graphql/graphiql/commit/ea732ea8e12272c998f1467af8b3b88b6b508e12) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix error formatting for websocket requests and make error formatting more generic in general ## 0.6.0 ### Minor Changes -- [#2419](https://github.com/graphql/graphiql/pull/2419) - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - `fillLeafs` utility function from `graphiql` into `@graphiql/toolkit` and - deprecate the export from `graphiql` +- [#2419](https://github.com/graphql/graphiql/pull/2419) [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the `fillLeafs` utility function from `graphiql` into `@graphiql/toolkit` and deprecate the export from `graphiql` -* [#2419](https://github.com/graphql/graphiql/pull/2419) - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - `mergeAst` utility function from `graphiql` into `@graphiql/toolkit` and - deprecate the export from `graphiql` +* [#2419](https://github.com/graphql/graphiql/pull/2419) [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the `mergeAst` utility function from `graphiql` into `@graphiql/toolkit` and deprecate the export from `graphiql` -- [#2419](https://github.com/graphql/graphiql/pull/2419) - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - `getSelectedOperationName` utility function from `graphiql` into - `@graphiql/toolkit` and deprecate the export from `graphiql` +- [#2419](https://github.com/graphql/graphiql/pull/2419) [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the `getSelectedOperationName` utility function from `graphiql` into `@graphiql/toolkit` and deprecate the export from `graphiql` ### Patch Changes -- [#2413](https://github.com/graphql/graphiql/pull/2413) - [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Allow - creating noop StorageAPI instances by passing `null` to the constructor +- [#2413](https://github.com/graphql/graphiql/pull/2413) [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Allow creating noop StorageAPI instances by passing `null` to the constructor ## 0.5.0 ### Minor Changes -- [#2412](https://github.com/graphql/graphiql/pull/2412) - [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - QueryStore from `graphiql` package to `@graphiql/toolkit` +- [#2412](https://github.com/graphql/graphiql/pull/2412) [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move QueryStore from `graphiql` package to `@graphiql/toolkit` -* [#2412](https://github.com/graphql/graphiql/pull/2412) - [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - HistoryStore from `graphiql` package to `@graphiql/toolkit` +* [#2412](https://github.com/graphql/graphiql/pull/2412) [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move HistoryStore from `graphiql` package to `@graphiql/toolkit` -- [#2412](https://github.com/graphql/graphiql/pull/2412) - [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - StorageAPI from `graphiql` package to `@graphiql/toolkit` +- [#2412](https://github.com/graphql/graphiql/pull/2412) [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move StorageAPI from `graphiql` package to `@graphiql/toolkit` ### Patch Changes -- [#2407](https://github.com/graphql/graphiql/pull/2407) - [`bc3dc64c`](https://github.com/graphql/graphiql/commit/bc3dc64c37478ba6170c49c25fb755b4f2e020b2) - Thanks [@benjdlambert](https://github.com/benjdlambert)! - Move `graphql-ws` - dependency to a dynamic import, and add a nice error message when it's not - installed +- [#2407](https://github.com/graphql/graphiql/pull/2407) [`bc3dc64c`](https://github.com/graphql/graphiql/commit/bc3dc64c37478ba6170c49c25fb755b4f2e020b2) Thanks [@benjdlambert](https://github.com/benjdlambert)! - Move `graphql-ws` dependency to a dynamic import, and add a nice error message when it's not installed ## 0.4.5 ### Patch Changes -- [#2401](https://github.com/graphql/graphiql/pull/2401) - [`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - move async - helper functions and formatting functions over into the @graphiql/toolkit - package +- [#2401](https://github.com/graphql/graphiql/pull/2401) [`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - move async helper functions and formatting functions over into the @graphiql/toolkit package -* [#2401](https://github.com/graphql/graphiql/pull/2401) - [`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - deprecate - the unused `shouldPersistHeaders` property from fetcher options to be removed - in the next major version +* [#2401](https://github.com/graphql/graphiql/pull/2401) [`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - deprecate the unused `shouldPersistHeaders` property from fetcher options to be removed in the next major version ## 0.4.4 ### Patch Changes -- [#2373](https://github.com/graphql/graphiql/pull/2373) - [`5b2c1b20`](https://github.com/graphql/graphiql/commit/5b2c1b2054a70e8dca173f380f44766438cb5597) - Thanks [@benjie](https://github.com/benjie)! - Fix TypeScript definition of - FetcherParams to reflect that operationName is optional +- [#2373](https://github.com/graphql/graphiql/pull/2373) [`5b2c1b20`](https://github.com/graphql/graphiql/commit/5b2c1b2054a70e8dca173f380f44766438cb5597) Thanks [@benjie](https://github.com/benjie)! - Fix TypeScript definition of FetcherParams to reflect that operationName is optional ## 0.4.3 ### Patch Changes -- [#2274](https://github.com/graphql/graphiql/pull/2274) - [`12950380`](https://github.com/graphql/graphiql/commit/12950380e92c38f6eec23499e7fca5dc9dcd8216) - Thanks [@B2o5T](https://github.com/B2o5T)! - turn `valid-typeof` as `error`, - SSR fix +- [#2274](https://github.com/graphql/graphiql/pull/2274) [`12950380`](https://github.com/graphql/graphiql/commit/12950380e92c38f6eec23499e7fca5dc9dcd8216) Thanks [@B2o5T](https://github.com/B2o5T)! - turn `valid-typeof` as `error`, SSR fix ## 0.4.2 ### Patch Changes -- [`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf) - [#2045](https://github.com/graphql/graphiql/pull/2045) Thanks - [@acao](https://github.com/acao)! - fix graphql-js peer dependencies - - [#2044](https://github.com/graphql/graphiql/pull/2044) +- [`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf) [#2045](https://github.com/graphql/graphiql/pull/2045) Thanks [@acao](https://github.com/acao)! - fix graphql-js peer dependencies - [#2044](https://github.com/graphql/graphiql/pull/2044) ## 0.4.1 ### Patch Changes -- [`dec207e7`](https://github.com/graphql/graphiql/commit/dec207e74f0506db069482cc30f8cd1f045d8107) - [#2017](https://github.com/graphql/graphiql/pull/2017) Thanks - [@acao](https://github.com/acao)! - graphql-ws is now a peerDependency. It - supports ~4.5.0 to the latest graphql-ws@5.5.5 and beyond. we suggest using - the latest version! +- [`dec207e7`](https://github.com/graphql/graphiql/commit/dec207e74f0506db069482cc30f8cd1f045d8107) [#2017](https://github.com/graphql/graphiql/pull/2017) Thanks [@acao](https://github.com/acao)! - graphql-ws is now a peerDependency. It supports ~4.5.0 to the latest graphql-ws@5.5.5 and beyond. we suggest using the latest version! ## 0.4.0 ### Minor Changes -- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) - [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks - [@acao](https://github.com/acao)! - upgrade to - `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! +- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks [@acao](https://github.com/acao)! - upgrade to `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! ## 0.3.2 ### Patch Changes -- [`86795d5f`](https://github.com/graphql/graphiql/commit/86795d5ffa2d3e6c8aee74f761d02f054b428d46) - Thanks [@acao](https://github.com/acao)! - Remove bad type definition from - `subscriptions-transport-ws` #1992 closes #1989 +- [`86795d5f`](https://github.com/graphql/graphiql/commit/86795d5ffa2d3e6c8aee74f761d02f054b428d46) Thanks [@acao](https://github.com/acao)! - Remove bad type definition from `subscriptions-transport-ws` #1992 closes #1989 ## 0.3.1 ### Patch Changes -- [`62e786b5`](https://github.com/graphql/graphiql/commit/62e786b57cc5748eccac59814dfc8ecd0104c748) - [#1990](https://github.com/graphql/graphiql/pull/1990) Thanks - [@acao](https://github.com/acao)! - Remove type definition from - `subscriptions-transport-ws` +- [`62e786b5`](https://github.com/graphql/graphiql/commit/62e786b57cc5748eccac59814dfc8ecd0104c748) [#1990](https://github.com/graphql/graphiql/pull/1990) Thanks [@acao](https://github.com/acao)! - Remove type definition from `subscriptions-transport-ws` ## 0.3.0 ### Minor Changes -- [`6a459f4c`](https://github.com/graphql/graphiql/commit/6a459f4c235bb0d70725ae6ad7fc1cfa34f49dca) - [#1968](https://github.com/graphql/graphiql/pull/1968) Thanks - [@acao](https://github.com/acao)! - Remove `optionalDependencies` entirely, - remove `subscriptions-transport-ws` which introduces vulnerabilities, upgrade - `@n1ru4l/push-pull-async-iterable-iterator` to 3.0.0, upgrade `graphql-ws` - several minor versions - the `graphql-ws@5.x` upgrade will come in a later - minor release. +- [`6a459f4c`](https://github.com/graphql/graphiql/commit/6a459f4c235bb0d70725ae6ad7fc1cfa34f49dca) [#1968](https://github.com/graphql/graphiql/pull/1968) Thanks [@acao](https://github.com/acao)! - Remove `optionalDependencies` entirely, remove `subscriptions-transport-ws` which introduces vulnerabilities, upgrade `@n1ru4l/push-pull-async-iterable-iterator` to 3.0.0, upgrade `graphql-ws` several minor versions - the `graphql-ws@5.x` upgrade will come in a later minor release. ## 0.2.2 ### Patch Changes -- [`5b8a057d`](https://github.com/graphql/graphiql/commit/5b8a057dd64ebecc391be32176a2403bb9d9ff92) - [#1838](https://github.com/graphql/graphiql/pull/1838) Thanks - [@acao](https://github.com/acao)! - Set all cross-runtime build targets to es6 +- [`5b8a057d`](https://github.com/graphql/graphiql/commit/5b8a057dd64ebecc391be32176a2403bb9d9ff92) [#1838](https://github.com/graphql/graphiql/pull/1838) Thanks [@acao](https://github.com/acao)! - Set all cross-runtime build targets to es6 ## 0.2.1 ### Patch Changes -- [`3f002710`](https://github.com/graphql/graphiql/commit/3f00271089cbc519e221976c9308f60b317cae80) - [#1840](https://github.com/graphql/graphiql/pull/1840) Thanks - [@enisdenjo](https://github.com/enisdenjo)! - Use provided - `wsConnectionParams` +- [`3f002710`](https://github.com/graphql/graphiql/commit/3f00271089cbc519e221976c9308f60b317cae80) [#1840](https://github.com/graphql/graphiql/pull/1840) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Use provided `wsConnectionParams` -* [`94f16957`](https://github.com/graphql/graphiql/commit/94f169572f643374ead829af690b6dcc2eb0b6a1) - [#1841](https://github.com/graphql/graphiql/pull/1841) Thanks - [@enisdenjo](https://github.com/enisdenjo)! - Subscriptions async iterator - completes and better error handling +* [`94f16957`](https://github.com/graphql/graphiql/commit/94f169572f643374ead829af690b6dcc2eb0b6a1) [#1841](https://github.com/graphql/graphiql/pull/1841) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Subscriptions async iterator completes and better error handling ## 0.2.0 ### Minor Changes -- [`dd9397e4`](https://github.com/graphql/graphiql/commit/dd9397e4c693b5ceadbd26d6fa92aa6246aac9c3) - [#1819](https://github.com/graphql/graphiql/pull/1819) Thanks - [@acao](https://github.com/acao)! - `GraphiQL.createClient()` accepts custom - `legacyClient`, exports typescript types, fixes #1800. +- [`dd9397e4`](https://github.com/graphql/graphiql/commit/dd9397e4c693b5ceadbd26d6fa92aa6246aac9c3) [#1819](https://github.com/graphql/graphiql/pull/1819) Thanks [@acao](https://github.com/acao)! - `GraphiQL.createClient()` accepts custom `legacyClient`, exports typescript types, fixes #1800. - `createGraphiQLFetcher` now only attempts an `graphql-ws` connection when only - `subscriptionUrl` is provided. In order to use `graphql-transport-ws`, you'll - need to provide the `legacyClient` option only, and no `subscriptionUrl` or - `wsClient` option. + `createGraphiQLFetcher` now only attempts an `graphql-ws` connection when only `subscriptionUrl` is provided. In order to use `graphql-transport-ws`, you'll need to provide the `legacyClient` option only, and no `subscriptionUrl` or `wsClient` option. ### Patch Changes -- [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) - [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks - [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 - & 15. `14.5.0` minimum is for built-in typescript types, and another method - only available in `14.4.0` +- [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 & 15. `14.5.0` minimum is for built-in typescript types, and another method only available in `14.4.0` ## 0.1.1 ### Patch Changes -- [`d3278556`](https://github.com/graphql/graphiql/commit/d3278556d050d948930c4b35a73039255f9a92b7) - Thanks [@harshithpabbati](https://github.com/harshithpabbati)! - Move - `@graphiql/create-fetcher` to `@graphiql/toolkit` because it doesn't need to - be it's own package as @imolorhe pointed out +- [`d3278556`](https://github.com/graphql/graphiql/commit/d3278556d050d948930c4b35a73039255f9a92b7) Thanks [@harshithpabbati](https://github.com/harshithpabbati)! - Move `@graphiql/create-fetcher` to `@graphiql/toolkit` because it doesn't need to be it's own package as @imolorhe pointed out ## 0.1.0 ### Minor Changes -- 1c119386: `@defer`, `@stream`, and `graphql-ws` support in a - `createGraphiQLFetcher` utility (#1770) - - - support for `@defer` and `@stream` in `GraphiQL` itself on fetcher execution - and when handling stream payloads - - introduce `@graphiql/toolkit` for types and utilities used to compose - `GraphiQL` and other related libraries - - introduce `@graphiql/create-fetcher` to accept simplified parameters to - generate a `fetcher` that covers the most commonly used `graphql-over-http` - transport spec proposals. using `meros` for multipart http, and `graphql-ws` - for websockets subscriptions. - - use `graphql` and `graphql-express` `experimental-defer-stream` branch in - development until it's merged +- 1c119386: `@defer`, `@stream`, and `graphql-ws` support in a `createGraphiQLFetcher` utility (#1770) + + - support for `@defer` and `@stream` in `GraphiQL` itself on fetcher execution and when handling stream payloads + - introduce `@graphiql/toolkit` for types and utilities used to compose `GraphiQL` and other related libraries + - introduce `@graphiql/create-fetcher` to accept simplified parameters to generate a `fetcher` that covers the most commonly used `graphql-over-http` transport spec proposals. using `meros` for multipart http, and `graphql-ws` for websockets subscriptions. + - use `graphql` and `graphql-express` `experimental-defer-stream` branch in development until it's merged - add cypress e2e tests for `@stream` in different scenarios - add some unit tests for `createGraphiQLFetcher` diff --git a/packages/graphiql-toolkit/package.json b/packages/graphiql-toolkit/package.json index 613c61eec4d..7baf7d07830 100644 --- a/packages/graphiql-toolkit/package.json +++ b/packages/graphiql-toolkit/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/toolkit", - "version": "0.8.3", + "version": "0.8.4", "description": "Utility to build a fetcher for GraphiQL", "contributors": [ "Rikki Schulte (https://rikki.dev)" diff --git a/packages/graphiql-toolkit/src/async-helpers/index.ts b/packages/graphiql-toolkit/src/async-helpers/index.ts index 86c81fc6bf8..700e11c29c6 100644 --- a/packages/graphiql-toolkit/src/async-helpers/index.ts +++ b/packages/graphiql-toolkit/src/async-helpers/index.ts @@ -52,42 +52,34 @@ export function isAsyncIterable( ); } -function asyncIterableToPromise( +async function asyncIterableToPromise( input: AsyncIterable | AsyncIterableIterator, ): Promise { - return new Promise((resolve, reject) => { - // Also support AsyncGenerator on Safari iOS. - // As mentioned in the isAsyncIterable function there is no Symbol.asyncIterator available - // so every AsyncIterable must be implemented using AsyncGenerator. - const iteratorReturn = ( - 'return' in input ? input : input[Symbol.asyncIterator]() - ).return?.bind(input); - const iteratorNext = ( - 'next' in input ? input : input[Symbol.asyncIterator]() - ).next.bind(input); + // Also support AsyncGenerator on Safari iOS. + // As mentioned in the isAsyncIterable function, there is no Symbol.asyncIterator available, + // so every AsyncIterable must be implemented using AsyncGenerator. + const iteratorReturn = ( + 'return' in input ? input : input[Symbol.asyncIterator]() + ).return?.bind(input); + const iteratorNext = ( + 'next' in input ? input : input[Symbol.asyncIterator]() + ).next.bind(input); - iteratorNext() - .then(result => { - resolve(result.value); - // ensure cleanup - iteratorReturn?.(); - }) - .catch(err => { - reject(err); - }); - }); + const result = await iteratorNext(); + // ensure cleanup + void iteratorReturn?.(); + return result.value; } -export function fetcherReturnToPromise( +export async function fetcherReturnToPromise( fetcherResult: FetcherReturnType, ): Promise { - return Promise.resolve(fetcherResult).then(result => { - if (isAsyncIterable(result)) { - return asyncIterableToPromise(result); - } - if (isObservable(result)) { - return observableToPromise(result); - } - return result; - }); + const result = await fetcherResult; + if (isAsyncIterable(result)) { + return asyncIterableToPromise(result); + } + if (isObservable(result)) { + return observableToPromise(result); + } + return result; } diff --git a/packages/graphiql-toolkit/src/graphql-helpers/auto-complete.ts b/packages/graphiql-toolkit/src/graphql-helpers/auto-complete.ts index ef52e53b246..73f445fc8a8 100644 --- a/packages/graphiql-toolkit/src/graphql-helpers/auto-complete.ts +++ b/packages/graphiql-toolkit/src/graphql-helpers/auto-complete.ts @@ -109,11 +109,11 @@ function defaultGetDefaultFieldNames(type: GraphQLType) { // Include all leaf-type fields. const leafFieldNames: Array = []; - Object.keys(fields).forEach(fieldName => { + for (const fieldName of Object.keys(fields)) { if (isLeafType(fields[fieldName].type)) { leafFieldNames.push(fieldName); } - }); + } return leafFieldNames; } @@ -174,10 +174,10 @@ function withInsertions(initial: string, insertions: Insertion[]) { } let edited = ''; let prevIndex = 0; - insertions.forEach(({ index, string }) => { + for (const { index, string } of insertions) { edited += initial.slice(prevIndex, index) + string; prevIndex = index; - }); + } edited += initial.slice(prevIndex); return edited; } diff --git a/packages/graphiql/CHANGELOG.md b/packages/graphiql/CHANGELOG.md index 5f73cbec105..7d23dbd8f4e 100644 --- a/packages/graphiql/CHANGELOG.md +++ b/packages/graphiql/CHANGELOG.md @@ -1,20 +1,23 @@ # Change Log +## 2.4.2 + +### Patch Changes + +- [#3113](https://github.com/graphql/graphiql/pull/3113) [`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9) Thanks [@B2o5T](https://github.com/B2o5T)! - replace `.forEach` with `for..of` + +- Updated dependencies [[`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9), [`4879984e`](https://github.com/graphql/graphiql/commit/4879984ea1803a6e9f97d81c97e8ba27aacddae9), [`51007002`](https://github.com/graphql/graphiql/commit/510070028b7d8e98f2ba25f396519976aea5fa4b), [`15c26eb6`](https://github.com/graphql/graphiql/commit/15c26eb6d621a85df9eecb2b8a5fa009fa2fe040)]: + - @graphiql/react@0.17.2 + - @graphiql/toolkit@0.8.4 + - graphql-language-service@5.1.4 + ## 2.4.1 ### Patch Changes -- [#3087](https://github.com/graphql/graphiql/pull/3087) - [`0e2dfd49`](https://github.com/graphql/graphiql/commit/0e2dfd49b95d670a0955991fd65055000e52a9f8) - Thanks [@B2o5T](https://github.com/B2o5T)! - remove nowhere used `entities` - dependency +- [#3087](https://github.com/graphql/graphiql/pull/3087) [`0e2dfd49`](https://github.com/graphql/graphiql/commit/0e2dfd49b95d670a0955991fd65055000e52a9f8) Thanks [@B2o5T](https://github.com/B2o5T)! - remove nowhere used `entities` dependency -- Updated dependencies - [[`2d5c60ec`](https://github.com/graphql/graphiql/commit/2d5c60ecf717abafde2bddd32b2772261d3eec8b), - [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), - [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773), - [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0), - [`7cf4908a`](https://github.com/graphql/graphiql/commit/7cf4908a5d4bd58af315047f4dec5236e8c701fc)]: +- Updated dependencies [[`2d5c60ec`](https://github.com/graphql/graphiql/commit/2d5c60ecf717abafde2bddd32b2772261d3eec8b), [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), [`4a2284f5`](https://github.com/graphql/graphiql/commit/4a2284f54809f91d03ba51b9eb4e3ba7b8b7e773), [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0), [`7cf4908a`](https://github.com/graphql/graphiql/commit/7cf4908a5d4bd58af315047f4dec5236e8c701fc)]: - @graphiql/react@0.17.1 - @graphiql/toolkit@0.8.3 - graphql-language-service@5.1.3 @@ -23,35 +26,17 @@ ### Minor Changes -- [#3012](https://github.com/graphql/graphiql/pull/3012) - [`65f5176a`](https://github.com/graphql/graphiql/commit/65f5176a408cfbbc514ca60e2e4bd2ea133a8b0b) - Thanks [@benjie](https://github.com/benjie)! - GraphiQL now maintains the - DocExplorer navigation stack as best it can when the schema is updated +- [#3012](https://github.com/graphql/graphiql/pull/3012) [`65f5176a`](https://github.com/graphql/graphiql/commit/65f5176a408cfbbc514ca60e2e4bd2ea133a8b0b) Thanks [@benjie](https://github.com/benjie)! - GraphiQL now maintains the DocExplorer navigation stack as best it can when the schema is updated ### Patch Changes -- [#2995](https://github.com/graphql/graphiql/pull/2995) - [`5f276c41`](https://github.com/graphql/graphiql/commit/5f276c415ad93350382fec873025ffecc9a29d9d) - Thanks [@imolorhe](https://github.com/imolorhe)! - fix(cm6-graphql): Fix query - token used as field name +- [#2995](https://github.com/graphql/graphiql/pull/2995) [`5f276c41`](https://github.com/graphql/graphiql/commit/5f276c415ad93350382fec873025ffecc9a29d9d) Thanks [@imolorhe](https://github.com/imolorhe)! - fix(cm6-graphql): Fix query token used as field name -- [#2962](https://github.com/graphql/graphiql/pull/2962) - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) - Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add - `--max-warnings=0` and `--cache` flags +- [#2962](https://github.com/graphql/graphiql/pull/2962) [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add `--max-warnings=0` and `--cache` flags -- [#2940](https://github.com/graphql/graphiql/pull/2940) - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-node-protocol` rule +- [#2940](https://github.com/graphql/graphiql/pull/2940) [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-node-protocol` rule -- Updated dependencies - [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), - [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), - [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), - [`65f5176a`](https://github.com/graphql/graphiql/commit/65f5176a408cfbbc514ca60e2e4bd2ea133a8b0b), - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: +- Updated dependencies [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), [`65f5176a`](https://github.com/graphql/graphiql/commit/65f5176a408cfbbc514ca60e2e4bd2ea133a8b0b), [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: - graphql-language-service@5.1.2 - @graphiql/react@0.17.0 - @graphiql/toolkit@0.8.2 @@ -60,59 +45,23 @@ ### Minor Changes -- [#2895](https://github.com/graphql/graphiql/pull/2895) - [`ccba2f33`](https://github.com/graphql/graphiql/commit/ccba2f33b67a03f492222f7afde1354cfd033b42) - Thanks [@TheMightyPenguin](https://github.com/TheMightyPenguin)! - Add user - facing setting for persisting headers - -### Patch Changes - -- [#2922](https://github.com/graphql/graphiql/pull/2922) - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) - Thanks [@B2o5T](https://github.com/B2o5T)! - extends - `plugin:import/recommended` and fix warnings - -- [#2941](https://github.com/graphql/graphiql/pull/2941) - [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-logical-operator-over-ternary` rule - -- [#2964](https://github.com/graphql/graphiql/pull/2964) - [`cec3fb2a`](https://github.com/graphql/graphiql/commit/cec3fb2a493c4a0c40df7dfad04e1a95ed35e786) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-export-from` rule - -- [#2939](https://github.com/graphql/graphiql/pull/2939) - [`bca318ce`](https://github.com/graphql/graphiql/commit/bca318ceb7821f0c4b3973c5b05131c9a23bf2cf) - Thanks [@jonathanawesome](https://github.com/jonathanawesome)! - removes - regenerator-runtime from cdn.ts, resolves #2868 - -- [#2963](https://github.com/graphql/graphiql/pull/2963) - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `prefer-destructuring` - rule - -- [#2938](https://github.com/graphql/graphiql/pull/2938) - [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/throw-new-error` - rule - -- Updated dependencies - [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), - [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), - [`cec3fb2a`](https://github.com/graphql/graphiql/commit/cec3fb2a493c4a0c40df7dfad04e1a95ed35e786), - [`695100bd`](https://github.com/graphql/graphiql/commit/695100bd317940ff3ffd8f56b54248c1dba1ac04), - [`11e6ad11`](https://github.com/graphql/graphiql/commit/11e6ad11e745c671eb320731697887bb8d7177b7), - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), - [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), - [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d), - [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), - [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), - [`ccba2f33`](https://github.com/graphql/graphiql/commit/ccba2f33b67a03f492222f7afde1354cfd033b42), - [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171), - [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e)]: +- [#2895](https://github.com/graphql/graphiql/pull/2895) [`ccba2f33`](https://github.com/graphql/graphiql/commit/ccba2f33b67a03f492222f7afde1354cfd033b42) Thanks [@TheMightyPenguin](https://github.com/TheMightyPenguin)! - Add user facing setting for persisting headers + +### Patch Changes + +- [#2922](https://github.com/graphql/graphiql/pull/2922) [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) Thanks [@B2o5T](https://github.com/B2o5T)! - extends `plugin:import/recommended` and fix warnings + +- [#2941](https://github.com/graphql/graphiql/pull/2941) [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-logical-operator-over-ternary` rule + +- [#2964](https://github.com/graphql/graphiql/pull/2964) [`cec3fb2a`](https://github.com/graphql/graphiql/commit/cec3fb2a493c4a0c40df7dfad04e1a95ed35e786) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-export-from` rule + +- [#2939](https://github.com/graphql/graphiql/pull/2939) [`bca318ce`](https://github.com/graphql/graphiql/commit/bca318ceb7821f0c4b3973c5b05131c9a23bf2cf) Thanks [@jonathanawesome](https://github.com/jonathanawesome)! - removes regenerator-runtime from cdn.ts, resolves #2868 + +- [#2963](https://github.com/graphql/graphiql/pull/2963) [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `prefer-destructuring` rule + +- [#2938](https://github.com/graphql/graphiql/pull/2938) [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/throw-new-error` rule + +- Updated dependencies [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), [`cec3fb2a`](https://github.com/graphql/graphiql/commit/cec3fb2a493c4a0c40df7dfad04e1a95ed35e786), [`695100bd`](https://github.com/graphql/graphiql/commit/695100bd317940ff3ffd8f56b54248c1dba1ac04), [`11e6ad11`](https://github.com/graphql/graphiql/commit/11e6ad11e745c671eb320731697887bb8d7177b7), [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d), [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), [`ccba2f33`](https://github.com/graphql/graphiql/commit/ccba2f33b67a03f492222f7afde1354cfd033b42), [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171), [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e)]: - @graphiql/react@0.16.0 - @graphiql/toolkit@0.8.1 - graphql-language-service@5.1.1 @@ -121,55 +70,30 @@ ### Minor Changes -- [#2908](https://github.com/graphql/graphiql/pull/2908) - [`3340fd74`](https://github.com/graphql/graphiql/commit/3340fd745e181ba8f1f5a6ed002a04d253a78d4a) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Deprecate - the `initialTabs` prop and add a `defaultTabs` props that supersedes it +- [#2908](https://github.com/graphql/graphiql/pull/2908) [`3340fd74`](https://github.com/graphql/graphiql/commit/3340fd745e181ba8f1f5a6ed002a04d253a78d4a) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Deprecate the `initialTabs` prop and add a `defaultTabs` props that supersedes it ### Patch Changes -- [#2911](https://github.com/graphql/graphiql/pull/2911) - [`118db402`](https://github.com/graphql/graphiql/commit/118db402eb1f5569e29f8f9bffef86d941dd2634) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix styles - of secondary editor buttons +- [#2911](https://github.com/graphql/graphiql/pull/2911) [`118db402`](https://github.com/graphql/graphiql/commit/118db402eb1f5569e29f8f9bffef86d941dd2634) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix styles of secondary editor buttons -- [#2919](https://github.com/graphql/graphiql/pull/2919) - [`f6cae4ea`](https://github.com/graphql/graphiql/commit/f6cae4eaa0258ea7fcde97ba6368830955f0abf4) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix - overflow when there are lots of tabs that don't fit into the tab bar at once +- [#2919](https://github.com/graphql/graphiql/pull/2919) [`f6cae4ea`](https://github.com/graphql/graphiql/commit/f6cae4eaa0258ea7fcde97ba6368830955f0abf4) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix overflow when there are lots of tabs that don't fit into the tab bar at once -- Updated dependencies - [[`16174a05`](https://github.com/graphql/graphiql/commit/16174a053ed89fb9554d096395ab7bf69c8f6911), - [`f6cae4ea`](https://github.com/graphql/graphiql/commit/f6cae4eaa0258ea7fcde97ba6368830955f0abf4), - [`3340fd74`](https://github.com/graphql/graphiql/commit/3340fd745e181ba8f1f5a6ed002a04d253a78d4a), - [`0851d5f9`](https://github.com/graphql/graphiql/commit/0851d5f9ecf709597d0a698609d88f99c4395665), - [`83364b28`](https://github.com/graphql/graphiql/commit/83364b28020b5946ed58908d6d977f1de766e75d), - [`3a7d0007`](https://github.com/graphql/graphiql/commit/3a7d00071922e2005777c92daf6ad0c1ce3e2816)]: +- Updated dependencies [[`16174a05`](https://github.com/graphql/graphiql/commit/16174a053ed89fb9554d096395ab7bf69c8f6911), [`f6cae4ea`](https://github.com/graphql/graphiql/commit/f6cae4eaa0258ea7fcde97ba6368830955f0abf4), [`3340fd74`](https://github.com/graphql/graphiql/commit/3340fd745e181ba8f1f5a6ed002a04d253a78d4a), [`0851d5f9`](https://github.com/graphql/graphiql/commit/0851d5f9ecf709597d0a698609d88f99c4395665), [`83364b28`](https://github.com/graphql/graphiql/commit/83364b28020b5946ed58908d6d977f1de766e75d), [`3a7d0007`](https://github.com/graphql/graphiql/commit/3a7d00071922e2005777c92daf6ad0c1ce3e2816)]: - @graphiql/react@0.15.0 ## 2.1.0 ### Minor Changes -- [#2821](https://github.com/graphql/graphiql/pull/2821) - [`29630c22`](https://github.com/graphql/graphiql/commit/29630c2219bca8b825ab0897840864364a9de2e8) - Thanks [@avaly](https://github.com/avaly)! - Initial tabs support +- [#2821](https://github.com/graphql/graphiql/pull/2821) [`29630c22`](https://github.com/graphql/graphiql/commit/29630c2219bca8b825ab0897840864364a9de2e8) Thanks [@avaly](https://github.com/avaly)! - Initial tabs support ### Patch Changes -- [#2885](https://github.com/graphql/graphiql/pull/2885) - [`8f926489`](https://github.com/graphql/graphiql/commit/8f9264896e9971951853463a283a90ba3d1310ef) - Thanks [@simhnna](https://github.com/simhnna)! - Fix stop execution button - showing a dropdown +- [#2885](https://github.com/graphql/graphiql/pull/2885) [`8f926489`](https://github.com/graphql/graphiql/commit/8f9264896e9971951853463a283a90ba3d1310ef) Thanks [@simhnna](https://github.com/simhnna)! - Fix stop execution button showing a dropdown -- [#2886](https://github.com/graphql/graphiql/pull/2886) - [`2ba2f620`](https://github.com/graphql/graphiql/commit/2ba2f620b6e7de3ae6b5ea641f33e600f7f44e08) - Thanks [@B2o5T](https://github.com/B2o5T)! - feat: add `defaultHeaders` prop +- [#2886](https://github.com/graphql/graphiql/pull/2886) [`2ba2f620`](https://github.com/graphql/graphiql/commit/2ba2f620b6e7de3ae6b5ea641f33e600f7f44e08) Thanks [@B2o5T](https://github.com/B2o5T)! - feat: add `defaultHeaders` prop -- Updated dependencies - [[`29630c22`](https://github.com/graphql/graphiql/commit/29630c2219bca8b825ab0897840864364a9de2e8), - [`8f926489`](https://github.com/graphql/graphiql/commit/8f9264896e9971951853463a283a90ba3d1310ef), - [`2ba2f620`](https://github.com/graphql/graphiql/commit/2ba2f620b6e7de3ae6b5ea641f33e600f7f44e08)]: +- Updated dependencies [[`29630c22`](https://github.com/graphql/graphiql/commit/29630c2219bca8b825ab0897840864364a9de2e8), [`8f926489`](https://github.com/graphql/graphiql/commit/8f9264896e9971951853463a283a90ba3d1310ef), [`2ba2f620`](https://github.com/graphql/graphiql/commit/2ba2f620b6e7de3ae6b5ea641f33e600f7f44e08)]: - @graphiql/react@0.14.0 ## 2.0.13 @@ -183,10 +107,7 @@ ### Patch Changes -- [#2758](https://github.com/graphql/graphiql/pull/2758) - [`d63801fa`](https://github.com/graphql/graphiql/commit/d63801fad08e840eff7ff26f55694c6d18769466) - Thanks [@LekoArts](https://github.com/LekoArts)! - Fix the width of the plugin - pane +- [#2758](https://github.com/graphql/graphiql/pull/2758) [`d63801fa`](https://github.com/graphql/graphiql/commit/d63801fad08e840eff7ff26f55694c6d18769466) Thanks [@LekoArts](https://github.com/LekoArts)! - Fix the width of the plugin pane - Updated dependencies []: - @graphiql/react@0.13.6 @@ -195,53 +116,39 @@ ### Patch Changes -- Updated dependencies - [[`682ad06e`](https://github.com/graphql/graphiql/commit/682ad06e58ded2f82fa973e8e6613dd654417fe2)]: +- Updated dependencies [[`682ad06e`](https://github.com/graphql/graphiql/commit/682ad06e58ded2f82fa973e8e6613dd654417fe2)]: - @graphiql/react@0.13.5 ## 2.0.10 ### Patch Changes -- Updated dependencies - [[`4e2f7ff9`](https://github.com/graphql/graphiql/commit/4e2f7ff99c578ceae54a1ae17c02088bd91b89c3)]: +- Updated dependencies [[`4e2f7ff9`](https://github.com/graphql/graphiql/commit/4e2f7ff99c578ceae54a1ae17c02088bd91b89c3)]: - @graphiql/react@0.13.4 ## 2.0.9 ### Patch Changes -- [#2778](https://github.com/graphql/graphiql/pull/2778) - [`905f2e5e`](https://github.com/graphql/graphiql/commit/905f2e5ea3f0b304d27ea583e250ed4baff5016e) - Thanks [@jonathanawesome](https://github.com/jonathanawesome)! - Adds a - box-model reset for all children of the `.graphiql-container` class. This - change facilitated another change to the `--sidebar-width` variable. +- [#2778](https://github.com/graphql/graphiql/pull/2778) [`905f2e5e`](https://github.com/graphql/graphiql/commit/905f2e5ea3f0b304d27ea583e250ed4baff5016e) Thanks [@jonathanawesome](https://github.com/jonathanawesome)! - Adds a box-model reset for all children of the `.graphiql-container` class. This change facilitated another change to the `--sidebar-width` variable. -- Updated dependencies - [[`42700076`](https://github.com/graphql/graphiql/commit/4270007671ce52f6c2250739916083611748b657), - [`36839800`](https://github.com/graphql/graphiql/commit/36839800de128b05d11c262036c8240390c72a14), - [`905f2e5e`](https://github.com/graphql/graphiql/commit/905f2e5ea3f0b304d27ea583e250ed4baff5016e)]: +- Updated dependencies [[`42700076`](https://github.com/graphql/graphiql/commit/4270007671ce52f6c2250739916083611748b657), [`36839800`](https://github.com/graphql/graphiql/commit/36839800de128b05d11c262036c8240390c72a14), [`905f2e5e`](https://github.com/graphql/graphiql/commit/905f2e5ea3f0b304d27ea583e250ed4baff5016e)]: - @graphiql/react@0.13.3 ## 2.0.8 ### Patch Changes -- [#2653](https://github.com/graphql/graphiql/pull/2653) - [`39b4668d`](https://github.com/graphql/graphiql/commit/39b4668d43176526d37ecf07d8c86901d53e0d80) - Thanks [@dylanowen](https://github.com/dylanowen)! - Fix `fetchError` not - being cleared when a new `fetcher` is used +- [#2653](https://github.com/graphql/graphiql/pull/2653) [`39b4668d`](https://github.com/graphql/graphiql/commit/39b4668d43176526d37ecf07d8c86901d53e0d80) Thanks [@dylanowen](https://github.com/dylanowen)! - Fix `fetchError` not being cleared when a new `fetcher` is used -- Updated dependencies - [[`39b4668d`](https://github.com/graphql/graphiql/commit/39b4668d43176526d37ecf07d8c86901d53e0d80)]: +- Updated dependencies [[`39b4668d`](https://github.com/graphql/graphiql/commit/39b4668d43176526d37ecf07d8c86901d53e0d80)]: - @graphiql/react@0.13.2 ## 2.0.7 ### Patch Changes -- Updated dependencies - [[`e244b782`](https://github.com/graphql/graphiql/commit/e244b78291c2e2bb02d5753db82437926ebb4df4)]: +- Updated dependencies [[`e244b782`](https://github.com/graphql/graphiql/commit/e244b78291c2e2bb02d5753db82437926ebb4df4)]: - @graphiql/toolkit@0.8.0 - @graphiql/react@0.13.1 @@ -249,16 +156,9 @@ ### Patch Changes -- [#2735](https://github.com/graphql/graphiql/pull/2735) - [`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use the new - CSS variables for color alpha values defined in `@graphiql/react` in style - definitions +- [#2735](https://github.com/graphql/graphiql/pull/2735) [`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use the new CSS variables for color alpha values defined in `@graphiql/react` in style definitions -- Updated dependencies - [[`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1), - [`674bf3f8`](https://github.com/graphql/graphiql/commit/674bf3f8ff321dfb8471b0f6e5419bb77ddc94af), - [`32a70065`](https://github.com/graphql/graphiql/commit/32a70065434eaa7733e28cda0ea0e7d51952e62a)]: +- Updated dependencies [[`ca067d88`](https://github.com/graphql/graphiql/commit/ca067d88148c5d221d196790a997ad599038fad1), [`674bf3f8`](https://github.com/graphql/graphiql/commit/674bf3f8ff321dfb8471b0f6e5419bb77ddc94af), [`32a70065`](https://github.com/graphql/graphiql/commit/32a70065434eaa7733e28cda0ea0e7d51952e62a)]: - @graphiql/react@0.13.0 - @graphiql/toolkit@0.7.3 @@ -266,9 +166,7 @@ ### Patch Changes -- Updated dependencies - [[`bfa90f24`](https://github.com/graphql/graphiql/commit/bfa90f249be4f68049c1bb81abfb524ae623313f), - [`8ab5fcd0`](https://github.com/graphql/graphiql/commit/8ab5fcd0a8399a0f8eb1b569751dd0e8390b9679)]: +- Updated dependencies [[`bfa90f24`](https://github.com/graphql/graphiql/commit/bfa90f249be4f68049c1bb81abfb524ae623313f), [`8ab5fcd0`](https://github.com/graphql/graphiql/commit/8ab5fcd0a8399a0f8eb1b569751dd0e8390b9679)]: - @graphiql/toolkit@0.7.2 - @graphiql/react@0.12.1 @@ -276,28 +174,13 @@ ### Patch Changes -- [#2745](https://github.com/graphql/graphiql/pull/2745) - [`92a17490`](https://github.com/graphql/graphiql/commit/92a17490c3842b4f83ed1065b73a803f73d02a17) - Thanks [@acao](https://github.com/acao)! - Specify MIT license for - `@graphiql/plugin-explorer` `package.json` +- [#2745](https://github.com/graphql/graphiql/pull/2745) [`92a17490`](https://github.com/graphql/graphiql/commit/92a17490c3842b4f83ed1065b73a803f73d02a17) Thanks [@acao](https://github.com/acao)! - Specify MIT license for `@graphiql/plugin-explorer` `package.json` -* [#2741](https://github.com/graphql/graphiql/pull/2741) - [`0219eef3`](https://github.com/graphql/graphiql/commit/0219eef39146495749aca2487112db52fa3bb8fd) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Improved - sizing of button for adding tabs +* [#2741](https://github.com/graphql/graphiql/pull/2741) [`0219eef3`](https://github.com/graphql/graphiql/commit/0219eef39146495749aca2487112db52fa3bb8fd) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Improved sizing of button for adding tabs -- [#2746](https://github.com/graphql/graphiql/pull/2746) - [`6f0fa98e`](https://github.com/graphql/graphiql/commit/6f0fa98eadf897c7eaf8eb89e49c46880d381033) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix - CodeMirror editors overlapping other parts of the UI on certain - browser-OS-combinations (e.g. Chrome on Windows) +- [#2746](https://github.com/graphql/graphiql/pull/2746) [`6f0fa98e`](https://github.com/graphql/graphiql/commit/6f0fa98eadf897c7eaf8eb89e49c46880d381033) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix CodeMirror editors overlapping other parts of the UI on certain browser-OS-combinations (e.g. Chrome on Windows) -- Updated dependencies - [[`98e14155`](https://github.com/graphql/graphiql/commit/98e14155c650ee7c5ac639e594eb47f0052b7fa9), - [`48872a87`](https://github.com/graphql/graphiql/commit/48872a87e6edec0c301102baaf669ffcce043a13), - [`7dfea94a`](https://github.com/graphql/graphiql/commit/7dfea94afc0cfe79b5080f10d840bfdce53f02d7), - [`3aa1f39f`](https://github.com/graphql/graphiql/commit/3aa1f39f6df559b54f703937ed510c8ba1f21058), - [`0219eef3`](https://github.com/graphql/graphiql/commit/0219eef39146495749aca2487112db52fa3bb8fd)]: +- Updated dependencies [[`98e14155`](https://github.com/graphql/graphiql/commit/98e14155c650ee7c5ac639e594eb47f0052b7fa9), [`48872a87`](https://github.com/graphql/graphiql/commit/48872a87e6edec0c301102baaf669ffcce043a13), [`7dfea94a`](https://github.com/graphql/graphiql/commit/7dfea94afc0cfe79b5080f10d840bfdce53f02d7), [`3aa1f39f`](https://github.com/graphql/graphiql/commit/3aa1f39f6df559b54f703937ed510c8ba1f21058), [`0219eef3`](https://github.com/graphql/graphiql/commit/0219eef39146495749aca2487112db52fa3bb8fd)]: - @graphiql/react@0.12.0 - @graphiql/toolkit@0.7.1 @@ -305,87 +188,45 @@ ### Patch Changes -- [#2706](https://github.com/graphql/graphiql/pull/2706) - [`ff20a381`](https://github.com/graphql/graphiql/commit/ff20a3818f10f648d7b8c18229138b0424b8b25c) - Thanks [@mxstbr](https://github.com/mxstbr)! - Wrap the GraphiQL logo with a - link to the repository +- [#2706](https://github.com/graphql/graphiql/pull/2706) [`ff20a381`](https://github.com/graphql/graphiql/commit/ff20a3818f10f648d7b8c18229138b0424b8b25c) Thanks [@mxstbr](https://github.com/mxstbr)! - Wrap the GraphiQL logo with a link to the repository -* [#2715](https://github.com/graphql/graphiql/pull/2715) - [`c922719e`](https://github.com/graphql/graphiql/commit/c922719e6b960776cd0a71f14d2b86c6bb69373c) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add the - contents of `graphql` and `@graphiql/react` as static properties to the - `GraphiQL` component in CDN bundles so that these modules can be reused from - plugin CDN bundles. +* [#2715](https://github.com/graphql/graphiql/pull/2715) [`c922719e`](https://github.com/graphql/graphiql/commit/c922719e6b960776cd0a71f14d2b86c6bb69373c) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add the contents of `graphql` and `@graphiql/react` as static properties to the `GraphiQL` component in CDN bundles so that these modules can be reused from plugin CDN bundles. ## 2.0.2 ### Patch Changes -- Updated dependencies - [[`d65f00ea`](https://github.com/graphql/graphiql/commit/d65f00ea2d158cf532d1c71844630c5d9ec13410), - [`f15ee38d`](https://github.com/graphql/graphiql/commit/f15ee38d56e4f749c145e0a17f0ed8e9a6096ac2), - [`d65f00ea`](https://github.com/graphql/graphiql/commit/d65f00ea2d158cf532d1c71844630c5d9ec13410)]: +- Updated dependencies [[`d65f00ea`](https://github.com/graphql/graphiql/commit/d65f00ea2d158cf532d1c71844630c5d9ec13410), [`f15ee38d`](https://github.com/graphql/graphiql/commit/f15ee38d56e4f749c145e0a17f0ed8e9a6096ac2), [`d65f00ea`](https://github.com/graphql/graphiql/commit/d65f00ea2d158cf532d1c71844630c5d9ec13410)]: - @graphiql/react@0.11.1 ## 2.0.1 ### Patch Changes -- [#2699](https://github.com/graphql/graphiql/pull/2699) - [`3b642aa3`](https://github.com/graphql/graphiql/commit/3b642aa31b306994e3052bb2454933307aa51426) - Thanks [@patrick91](https://github.com/patrick91)! - Export hooks in CDN - bundle +- [#2699](https://github.com/graphql/graphiql/pull/2699) [`3b642aa3`](https://github.com/graphql/graphiql/commit/3b642aa31b306994e3052bb2454933307aa51426) Thanks [@patrick91](https://github.com/patrick91)! - Export hooks in CDN bundle -* [#2700](https://github.com/graphql/graphiql/pull/2700) - [`3acacf5b`](https://github.com/graphql/graphiql/commit/3acacf5b90040bbede30ad1a778e06bc969a5900) - Thanks [@patrick91](https://github.com/patrick91)! - Fix cannot access - `initialHeaders` before initialization +* [#2700](https://github.com/graphql/graphiql/pull/2700) [`3acacf5b`](https://github.com/graphql/graphiql/commit/3acacf5b90040bbede30ad1a778e06bc969a5900) Thanks [@patrick91](https://github.com/patrick91)! - Fix cannot access `initialHeaders` before initialization ## 2.0.0 ### Major Changes -- [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: The `GraphiQL` component - does no longer set a property `g` on the `window` object. - -* [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: Implement a new design - for the GraphiQL UI. This changes both DOM structure and class names. We - consider this a breaking change as custom GraphQL IDEs built on top of - GraphiQL relied on these internals, e.g. overriding styles using certain class - names. - -- [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: The following static - properties of the `GraphiQL` component have been removed: - - `GraphiQL.formatResult`: You can use the function `formatResult` from - `@graphiql/toolkit` instead. - - `GraphiQL.formatError`: You can use the function `formatError` from - `@graphiql/toolkit` instead. - - `GraphiQL.QueryEditor`: You can use the `QueryEditor` component from - `@graphiql/react` instead. - - `GraphiQL.VariableEditor`: You can use the `VariableEditor` component from - `@graphiql/react` instead. - - `GraphiQL.HeaderEditor`: You can use the `HeaderEditor` component from - `@graphiql/react` instead. - - `GraphiQL.ResultViewer`: You can use the `ResponseEditor` component from - `@graphiql/react` instead. - - `GraphiQL.Button`: You can use the `ToolbarButton` component from - `@graphiql/react` instead. - - `GraphiQL.ToolbarButton`: This exposed the same component as - `GraphiQL.Button`. - - `GraphiQL.Menu`: You can use the `ToolbarMenu` component from - `@graphiql/react` instead. - - `GraphiQL.MenuItem`: You can use the `ToolbarMenu.Item` component from - `@graphiql/react` instead. - - `GraphiQL.Group`: Grouping multiple buttons side-by-side is not provided - out-of-the box anymore in the new GraphiQL UI. If you want to implement a - similar feature in the new vertical toolbar you can do so by adding your own - styles for your custom toolbar elements. Example: +- [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: The `GraphiQL` component does no longer set a property `g` on the `window` object. + +* [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: Implement a new design for the GraphiQL UI. This changes both DOM structure and class names. We consider this a breaking change as custom GraphQL IDEs built on top of GraphiQL relied on these internals, e.g. overriding styles using certain class names. + +- [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: The following static properties of the `GraphiQL` component have been removed: + - `GraphiQL.formatResult`: You can use the function `formatResult` from `@graphiql/toolkit` instead. + - `GraphiQL.formatError`: You can use the function `formatError` from `@graphiql/toolkit` instead. + - `GraphiQL.QueryEditor`: You can use the `QueryEditor` component from `@graphiql/react` instead. + - `GraphiQL.VariableEditor`: You can use the `VariableEditor` component from `@graphiql/react` instead. + - `GraphiQL.HeaderEditor`: You can use the `HeaderEditor` component from `@graphiql/react` instead. + - `GraphiQL.ResultViewer`: You can use the `ResponseEditor` component from `@graphiql/react` instead. + - `GraphiQL.Button`: You can use the `ToolbarButton` component from `@graphiql/react` instead. + - `GraphiQL.ToolbarButton`: This exposed the same component as `GraphiQL.Button`. + - `GraphiQL.Menu`: You can use the `ToolbarMenu` component from `@graphiql/react` instead. + - `GraphiQL.MenuItem`: You can use the `ToolbarMenu.Item` component from `@graphiql/react` instead. + - `GraphiQL.Group`: Grouping multiple buttons side-by-side is not provided out-of-the box anymore in the new GraphiQL UI. If you want to implement a similar feature in the new vertical toolbar you can do so by adding your own styles for your custom toolbar elements. Example: ```jsx import { GraphiQL } from 'graphiql'; function CustomGraphiQL() { @@ -404,24 +245,18 @@ } ``` -* [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: The following exports of - the `graphiql` package have been removed: +* [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: The following exports of the `graphiql` package have been removed: - `DocExplorer`: Now exported from `@graphiql/react` as `DocExplorer` - - The `schema` prop has been removed, the component now uses the schema - provided by the `ExplorerContext` + - The `schema` prop has been removed, the component now uses the schema provided by the `ExplorerContext` - `fillLeafs`: Now exported from `@graphiql/toolkit` as `fillLeafs` - - `getSelectedOperationName`: Now exported from `@graphiql/toolkit` as - `getSelectedOperationName` + - `getSelectedOperationName`: Now exported from `@graphiql/toolkit` as `getSelectedOperationName` - `mergeAst`: Now exported from `@graphiql/toolkit` as `mergeAst` - `onHasCompletion`: Now exported from `@graphiql/react` as `onHasCompletion` - `QueryEditor`: Now exported from `@graphiql/react` as `QueryEditor` - `ToolbarMenu`: Now exported from `@graphiql/react` as `ToolbarMenu` - `ToolbarMenuItem`: Now exported from `@graphiql/react` as `ToolbarMenu.Item` - `ToolbarSelect`: Now exported from `@graphiql/react` as `ToolbarListbox` - - `ToolbarSelectOption`: Now exported from `@graphiql/react` as - `ToolbarListbox.Option` + - `ToolbarSelectOption`: Now exported from `@graphiql/react` as `ToolbarListbox.Option` - `VariableEditor`: Now exported from `@graphiql/react` as `VariableEditor` - type `Fetcher`: Now exported from `@graphiql/toolkit` - type `FetcherOpts`: Now exported from `@graphiql/toolkit` @@ -432,37 +267,18 @@ - type `Storage`: Now exported from `@graphiql/toolkit` - type `SyncFetcherResult`: Now exported from `@graphiql/toolkit` -- [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: The `GraphiQL` component - has been refactored to be a function component. Attaching a ref to this - component will no longer provide access to props, state or class methods. In - order to interact with or change `GraphiQL` state you need to use the contexts - and hooks provided by the `@graphiql/react` package. More details and examples - can be found in the migration guide. - -* [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - BREAKING: The following props of - the `GraphiQL` component have been changed: - - The props `defaultVariableEditorOpen` and `defaultSecondaryEditorOpen` have - been merged into one prop `defaultEditorToolsVisibility`. The default - behavior if this prop is not passed is that the editor tools are shown if at - least one of the secondary editors has contents. You can pass the following - values to the prop: +- [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: The `GraphiQL` component has been refactored to be a function component. Attaching a ref to this component will no longer provide access to props, state or class methods. In order to interact with or change `GraphiQL` state you need to use the contexts and hooks provided by the `@graphiql/react` package. More details and examples can be found in the migration guide. + +* [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - BREAKING: The following props of the `GraphiQL` component have been changed: + - The props `defaultVariableEditorOpen` and `defaultSecondaryEditorOpen` have been merged into one prop `defaultEditorToolsVisibility`. The default behavior if this prop is not passed is that the editor tools are shown if at least one of the secondary editors has contents. You can pass the following values to the prop: - Passing `false` hides the editor tools. - Passing `true` shows the editor tools. - Passing `"variables"` explicitly shows the variables editor. - Passing `"headers"` explicitly shows the headers editor. - - The props `docExplorerOpen`, `onToggleDocs` and `onToggleHistory` have been - removed. They are replaced by the more generic props `visiblePlugin` (for - controlling which plugin is visible) and `onTogglePluginVisibility` (which - is called each time the visibility of any plugin changes). + - The props `docExplorerOpen`, `onToggleDocs` and `onToggleHistory` have been removed. They are replaced by the more generic props `visiblePlugin` (for controlling which plugin is visible) and `onTogglePluginVisibility` (which is called each time the visibility of any plugin changes). - The `headerEditorEnabled` prop has been renamed to `isHeadersEditorEnabled`. - The `ResultsTooltip` prop has been renamed to `responseTooltip`. - - Tabs are now always enabled. The `tabs` prop has therefore been replaced - with a prop `onTabChange`. If you used the `tabs` prop before to pass this - function you can change your implementation like so: + - Tabs are now always enabled. The `tabs` prop has therefore been replaced with a prop `onTabChange`. If you used the `tabs` prop before to pass this function you can change your implementation like so: ```diff {/* do something */} }} @@ -472,21 +288,11 @@ ### Minor Changes -- [#2694](https://github.com/graphql/graphiql/pull/2694) - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) - Thanks [@acao](https://github.com/acao)! - GraphiQL now ships with a dark - theme. By default the interface respects the system settings, the theme can - also be explicitly chosen via the new settings dialog. +- [#2694](https://github.com/graphql/graphiql/pull/2694) [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279) Thanks [@acao](https://github.com/acao)! - GraphiQL now ships with a dark theme. By default the interface respects the system settings, the theme can also be explicitly chosen via the new settings dialog. ### Patch Changes -- Updated dependencies - [[`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), - [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279)]: +- Updated dependencies [[`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279), [`e59ec32e`](https://github.com/graphql/graphiql/commit/e59ec32e7ccdf3f7f68656533555c63620826279)]: - @graphiql/react@0.11.0 - @graphiql/toolkit@0.7.0 @@ -494,8 +300,7 @@ ### Patch Changes -- Updated dependencies - [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: +- Updated dependencies [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: - graphql-language-service@5.1.0 - @graphiql/react@0.10.1 @@ -503,50 +308,36 @@ ### Patch Changes -- [#2678](https://github.com/graphql/graphiql/pull/2678) - [`b3470b99`](https://github.com/graphql/graphiql/commit/b3470b993bd4c1b90ab7831581de2021af1bb6b0) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add the - attribute `type="button"` to all buttons +- [#2678](https://github.com/graphql/graphiql/pull/2678) [`b3470b99`](https://github.com/graphql/graphiql/commit/b3470b993bd4c1b90ab7831581de2021af1bb6b0) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add the attribute `type="button"` to all buttons ## 1.11.4 ### Patch Changes -- Updated dependencies - [[`85d5af25`](https://github.com/graphql/graphiql/commit/85d5af25d77c29b7d02da90a431c8c15f610c22a), - [`6ff0bab9`](https://github.com/graphql/graphiql/commit/6ff0bab978d63778b8ab4ba6e79fceb36c2db87f), - [`0aff68a6`](https://github.com/graphql/graphiql/commit/0aff68a645cceb6b9689e0f394e8bece01710efc)]: +- Updated dependencies [[`85d5af25`](https://github.com/graphql/graphiql/commit/85d5af25d77c29b7d02da90a431c8c15f610c22a), [`6ff0bab9`](https://github.com/graphql/graphiql/commit/6ff0bab978d63778b8ab4ba6e79fceb36c2db87f), [`0aff68a6`](https://github.com/graphql/graphiql/commit/0aff68a645cceb6b9689e0f394e8bece01710efc)]: - @graphiql/react@0.10.0 ## 1.11.3 ### Patch Changes -- [#2642](https://github.com/graphql/graphiql/pull/2642) - [`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix - controlling the operation name sent with the request using the `operationName` - prop +- [#2642](https://github.com/graphql/graphiql/pull/2642) [`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix controlling the operation name sent with the request using the `operationName` prop -- Updated dependencies - [[`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b), - [`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b)]: +- Updated dependencies [[`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b), [`100af928`](https://github.com/graphql/graphiql/commit/100af9284de18ca89524c646e86854313c5d067b)]: - @graphiql/react@0.9.0 ## 1.11.2 ### Patch Changes -- Updated dependencies - [[`62317e0b`](https://github.com/graphql/graphiql/commit/62317e0bae6d4ccf89d9e1e6607fd8feeb100078)]: +- Updated dependencies [[`62317e0b`](https://github.com/graphql/graphiql/commit/62317e0bae6d4ccf89d9e1e6607fd8feeb100078)]: - @graphiql/react@0.8.0 ## 1.11.1 ### Patch Changes -- Updated dependencies - [[`ea732ea8`](https://github.com/graphql/graphiql/commit/ea732ea8e12272c998f1467af8b3b88b6b508e12)]: +- Updated dependencies [[`ea732ea8`](https://github.com/graphql/graphiql/commit/ea732ea8e12272c998f1467af8b3b88b6b508e12)]: - @graphiql/toolkit@0.6.1 - @graphiql/react@0.7.1 @@ -554,85 +345,61 @@ ### Minor Changes -- [#2618](https://github.com/graphql/graphiql/pull/2618) - [`4c814506`](https://github.com/graphql/graphiql/commit/4c814506183579b78731659d871cd4b0ba93305a) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - toolbar button for manually triggering introspection +- [#2618](https://github.com/graphql/graphiql/pull/2618) [`4c814506`](https://github.com/graphql/graphiql/commit/4c814506183579b78731659d871cd4b0ba93305a) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a toolbar button for manually triggering introspection ### Patch Changes -- Updated dependencies - [[`4c814506`](https://github.com/graphql/graphiql/commit/4c814506183579b78731659d871cd4b0ba93305a)]: +- Updated dependencies [[`4c814506`](https://github.com/graphql/graphiql/commit/4c814506183579b78731659d871cd4b0ba93305a)]: - @graphiql/react@0.7.0 ## 1.10.0 ### Minor Changes -- [#2574](https://github.com/graphql/graphiql/pull/2574) - [`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Allow - passing introspection data to the `schema` prop of the `GraphiQL` component +- [#2574](https://github.com/graphql/graphiql/pull/2574) [`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Allow passing introspection data to the `schema` prop of the `GraphiQL` component ### Patch Changes -- Updated dependencies - [[`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1), - [`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1)]: +- Updated dependencies [[`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1), [`0c98fa59`](https://github.com/graphql/graphiql/commit/0c98fa5924eadaee33713ccd8a9be6419d50cab1)]: - @graphiql/react@0.6.0 ## 1.9.13 ### Patch Changes -- Updated dependencies - [[`f581b437`](https://github.com/graphql/graphiql/commit/f581b437e5bdab6f3ad817d230ee6d1b410bb591)]: +- Updated dependencies [[`f581b437`](https://github.com/graphql/graphiql/commit/f581b437e5bdab6f3ad817d230ee6d1b410bb591)]: - @graphiql/react@0.5.2 ## 1.9.12 ### Patch Changes -- Updated dependencies - [[`08346cba`](https://github.com/graphql/graphiql/commit/08346cba136825341881f9dfefc62a60d748e0ee)]: +- Updated dependencies [[`08346cba`](https://github.com/graphql/graphiql/commit/08346cba136825341881f9dfefc62a60d748e0ee)]: - @graphiql/react@0.5.1 ## 1.9.11 ### Patch Changes -- [#2541](https://github.com/graphql/graphiql/pull/2541) - [`788d84ef`](https://github.com/graphql/graphiql/commit/788d84ef2784188981f1b4cfb78fba24153bf0cb) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix the - `onSchemaChange` prop, it is now again called after the schema is fetched - (this was broken since v1.9.3) +- [#2541](https://github.com/graphql/graphiql/pull/2541) [`788d84ef`](https://github.com/graphql/graphiql/commit/788d84ef2784188981f1b4cfb78fba24153bf0cb) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix the `onSchemaChange` prop, it is now again called after the schema is fetched (this was broken since v1.9.3) -- Updated dependencies - [[`8ce5b483`](https://github.com/graphql/graphiql/commit/8ce5b483ee190b5f5dd84eaf42e5d1359ce185e6), - [`788d84ef`](https://github.com/graphql/graphiql/commit/788d84ef2784188981f1b4cfb78fba24153bf0cb)]: +- Updated dependencies [[`8ce5b483`](https://github.com/graphql/graphiql/commit/8ce5b483ee190b5f5dd84eaf42e5d1359ce185e6), [`788d84ef`](https://github.com/graphql/graphiql/commit/788d84ef2784188981f1b4cfb78fba24153bf0cb)]: - @graphiql/react@0.5.0 ## 1.9.10 ### Patch Changes -- Updated dependencies - [[`26e44120`](https://github.com/graphql/graphiql/commit/26e44120a18d49af451c97619fe3386a65579e05)]: +- Updated dependencies [[`26e44120`](https://github.com/graphql/graphiql/commit/26e44120a18d49af451c97619fe3386a65579e05)]: - @graphiql/react@0.4.3 ## 1.9.9 ### Patch Changes -- [#2501](https://github.com/graphql/graphiql/pull/2501) - [`5437ee61`](https://github.com/graphql/graphiql/commit/5437ee61e1ba6cd28ccc1cb3543df1ea788278f4) - Thanks [@acao](https://github.com/acao)! - Allow Codemirror 5 `keyMap` to be - defined, default `vim` or `emacs` allowed in addition to the original default - of `sublime`. +- [#2501](https://github.com/graphql/graphiql/pull/2501) [`5437ee61`](https://github.com/graphql/graphiql/commit/5437ee61e1ba6cd28ccc1cb3543df1ea788278f4) Thanks [@acao](https://github.com/acao)! - Allow Codemirror 5 `keyMap` to be defined, default `vim` or `emacs` allowed in addition to the original default of `sublime`. -- Updated dependencies - [[`5437ee61`](https://github.com/graphql/graphiql/commit/5437ee61e1ba6cd28ccc1cb3543df1ea788278f4), - [`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: +- Updated dependencies [[`5437ee61`](https://github.com/graphql/graphiql/commit/5437ee61e1ba6cd28ccc1cb3543df1ea788278f4), [`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: - @graphiql/react@0.4.2 - graphql-language-service@5.0.6 @@ -640,17 +407,13 @@ ### Patch Changes -- [#2499](https://github.com/graphql/graphiql/pull/2499) - [`731b3b72`](https://github.com/graphql/graphiql/commit/731b3b72e9f087a3b429ef5e8143219a0dcf7f00) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - fix the - default value for the `headerEditorEnabled` prop to be `true` +- [#2499](https://github.com/graphql/graphiql/pull/2499) [`731b3b72`](https://github.com/graphql/graphiql/commit/731b3b72e9f087a3b429ef5e8143219a0dcf7f00) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - fix the default value for the `headerEditorEnabled` prop to be `true` ## 1.9.7 ### Patch Changes -- Updated dependencies - [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: +- Updated dependencies [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: - graphql-language-service@5.0.5 - @graphiql/react@0.4.1 @@ -658,171 +421,72 @@ ### Patch Changes -- [#2475](https://github.com/graphql/graphiql/pull/2475) - [`d6558e43`](https://github.com/graphql/graphiql/commit/d6558e43bd24a3af7c5f78dbae572bd8ca7b3995) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix using - the `GraphiQL` export as type by exporting a class again +- [#2475](https://github.com/graphql/graphiql/pull/2475) [`d6558e43`](https://github.com/graphql/graphiql/commit/d6558e43bd24a3af7c5f78dbae572bd8ca7b3995) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix using the `GraphiQL` export as type by exporting a class again -* [#2461](https://github.com/graphql/graphiql/pull/2461) - [`7dfe3ece`](https://github.com/graphql/graphiql/commit/7dfe3ece4e8ab6b3400888f7f357e394db63439d) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use the - `useDragResize` hook from `@graphiql/react` for the sizing of the editors and - the docs explorer +* [#2461](https://github.com/graphql/graphiql/pull/2461) [`7dfe3ece`](https://github.com/graphql/graphiql/commit/7dfe3ece4e8ab6b3400888f7f357e394db63439d) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Use the `useDragResize` hook from `@graphiql/react` for the sizing of the editors and the docs explorer -* Updated dependencies - [[`7dfe3ece`](https://github.com/graphql/graphiql/commit/7dfe3ece4e8ab6b3400888f7f357e394db63439d)]: +* Updated dependencies [[`7dfe3ece`](https://github.com/graphql/graphiql/commit/7dfe3ece4e8ab6b3400888f7f357e394db63439d)]: - @graphiql/react@0.4.0 ## 1.9.5 ### Patch Changes -- [#2453](https://github.com/graphql/graphiql/pull/2453) - [`1b41e33c`](https://github.com/graphql/graphiql/commit/1b41e33c4a871a345836de58f415b7c461ced1f8) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add - execution context to `@graphiql/react` and move over the logic from `graphiql` - -* [#2454](https://github.com/graphql/graphiql/pull/2454) - [`a53bec64`](https://github.com/graphql/graphiql/commit/a53bec64b511fca2da828d7c0ff100e3a110aec1) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Deprecate - the public methods `getQueryEditor`, `getVariableEditor`, `getHeaderEditor`, - and `refresh` on the `GraphiQL` class. - -- [#2451](https://github.com/graphql/graphiql/pull/2451) - [`0659e96e`](https://github.com/graphql/graphiql/commit/0659e96e07f98d532619f29f52cba59e2d528327) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Always use - the current value of the headers for the introspection request - -* [#2452](https://github.com/graphql/graphiql/pull/2452) - [`ee0fd8bf`](https://github.com/graphql/graphiql/commit/ee0fd8bf4042053ec647080b83656dc5e54a7239) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move tab - state from `graphiql` into editor context from `@graphiql/react` - -- [#2454](https://github.com/graphql/graphiql/pull/2454) - [`a53bec64`](https://github.com/graphql/graphiql/commit/a53bec64b511fca2da828d7c0ff100e3a110aec1) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Continue - forwarding the ref to the class component to not break public methods - -* [#2449](https://github.com/graphql/graphiql/pull/2449) - [`a0b02eda`](https://github.com/graphql/graphiql/commit/a0b02edaa629c6113c1c5518fd3aa05b355a1921) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Assume all - context values are nullable and create hooks to consume individual contexts - -- [#2450](https://github.com/graphql/graphiql/pull/2450) - [`1e6fc68b`](https://github.com/graphql/graphiql/commit/1e6fc68b73941544ee64e0499e459f9c7d39aa14) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Extract the - `copy`, `merge`, `prettify`, and `autoCompleteLeafs` functions into hooks and - remove these functions from the editor context value - -- Updated dependencies - [[`1b41e33c`](https://github.com/graphql/graphiql/commit/1b41e33c4a871a345836de58f415b7c461ced1f8), - [`0659e96e`](https://github.com/graphql/graphiql/commit/0659e96e07f98d532619f29f52cba59e2d528327), - [`ee0fd8bf`](https://github.com/graphql/graphiql/commit/ee0fd8bf4042053ec647080b83656dc5e54a7239), - [`a0b02eda`](https://github.com/graphql/graphiql/commit/a0b02edaa629c6113c1c5518fd3aa05b355a1921), - [`1e6fc68b`](https://github.com/graphql/graphiql/commit/1e6fc68b73941544ee64e0499e459f9c7d39aa14)]: +- [#2453](https://github.com/graphql/graphiql/pull/2453) [`1b41e33c`](https://github.com/graphql/graphiql/commit/1b41e33c4a871a345836de58f415b7c461ced1f8) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add execution context to `@graphiql/react` and move over the logic from `graphiql` + +* [#2454](https://github.com/graphql/graphiql/pull/2454) [`a53bec64`](https://github.com/graphql/graphiql/commit/a53bec64b511fca2da828d7c0ff100e3a110aec1) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Deprecate the public methods `getQueryEditor`, `getVariableEditor`, `getHeaderEditor`, and `refresh` on the `GraphiQL` class. + +- [#2451](https://github.com/graphql/graphiql/pull/2451) [`0659e96e`](https://github.com/graphql/graphiql/commit/0659e96e07f98d532619f29f52cba59e2d528327) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Always use the current value of the headers for the introspection request + +* [#2452](https://github.com/graphql/graphiql/pull/2452) [`ee0fd8bf`](https://github.com/graphql/graphiql/commit/ee0fd8bf4042053ec647080b83656dc5e54a7239) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move tab state from `graphiql` into editor context from `@graphiql/react` + +- [#2454](https://github.com/graphql/graphiql/pull/2454) [`a53bec64`](https://github.com/graphql/graphiql/commit/a53bec64b511fca2da828d7c0ff100e3a110aec1) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Continue forwarding the ref to the class component to not break public methods + +* [#2449](https://github.com/graphql/graphiql/pull/2449) [`a0b02eda`](https://github.com/graphql/graphiql/commit/a0b02edaa629c6113c1c5518fd3aa05b355a1921) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Assume all context values are nullable and create hooks to consume individual contexts + +- [#2450](https://github.com/graphql/graphiql/pull/2450) [`1e6fc68b`](https://github.com/graphql/graphiql/commit/1e6fc68b73941544ee64e0499e459f9c7d39aa14) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Extract the `copy`, `merge`, `prettify`, and `autoCompleteLeafs` functions into hooks and remove these functions from the editor context value + +- Updated dependencies [[`1b41e33c`](https://github.com/graphql/graphiql/commit/1b41e33c4a871a345836de58f415b7c461ced1f8), [`0659e96e`](https://github.com/graphql/graphiql/commit/0659e96e07f98d532619f29f52cba59e2d528327), [`ee0fd8bf`](https://github.com/graphql/graphiql/commit/ee0fd8bf4042053ec647080b83656dc5e54a7239), [`a0b02eda`](https://github.com/graphql/graphiql/commit/a0b02edaa629c6113c1c5518fd3aa05b355a1921), [`1e6fc68b`](https://github.com/graphql/graphiql/commit/1e6fc68b73941544ee64e0499e459f9c7d39aa14)]: - @graphiql/react@0.3.0 ## 1.9.4 ### Patch Changes -- [#2437](https://github.com/graphql/graphiql/pull/2437) - [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - prettify query functionality to editor context in `@graphiql/react` - -* [#2435](https://github.com/graphql/graphiql/pull/2435) - [`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - logic for deriving operation facts from the current query to `@graphiql/react` - and store these facts as properties on the query editor instance - -- [#2437](https://github.com/graphql/graphiql/pull/2437) - [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move copy - query functionality to editor context in `@graphiql/react` - -* [#2437](https://github.com/graphql/graphiql/pull/2437) - [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move merge - query functionality to editor context in `@graphiql/react` - -- [#2436](https://github.com/graphql/graphiql/pull/2436) - [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Inline - logic for clicking a reference to open the docs and remove the - `onClickReference` and `onHintInformationRender` props of the editor - components and hooks - -* [#2436](https://github.com/graphql/graphiql/pull/2436) - [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - visibility state for doc explorer from `graphiql` to the explorer context in - `@graphiql/react` - -* Updated dependencies - [[`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995), - [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789), - [`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995), - [`3dae62fc`](https://github.com/graphql/graphiql/commit/3dae62fc871385e148a799cde55a52a5e6b41d19), - [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789), - [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789), - [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50), - [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50)]: +- [#2437](https://github.com/graphql/graphiql/pull/2437) [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move prettify query functionality to editor context in `@graphiql/react` + +* [#2435](https://github.com/graphql/graphiql/pull/2435) [`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic for deriving operation facts from the current query to `@graphiql/react` and store these facts as properties on the query editor instance + +- [#2437](https://github.com/graphql/graphiql/pull/2437) [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move copy query functionality to editor context in `@graphiql/react` + +* [#2437](https://github.com/graphql/graphiql/pull/2437) [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move merge query functionality to editor context in `@graphiql/react` + +- [#2436](https://github.com/graphql/graphiql/pull/2436) [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Inline logic for clicking a reference to open the docs and remove the `onClickReference` and `onHintInformationRender` props of the editor components and hooks + +* [#2436](https://github.com/graphql/graphiql/pull/2436) [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move visibility state for doc explorer from `graphiql` to the explorer context in `@graphiql/react` + +* Updated dependencies [[`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995), [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789), [`89f0244f`](https://github.com/graphql/graphiql/commit/89f0244f7b7cdf01c168638a09f5137788401995), [`3dae62fc`](https://github.com/graphql/graphiql/commit/3dae62fc871385e148a799cde55a52a5e6b41d19), [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789), [`1f933505`](https://github.com/graphql/graphiql/commit/1f9335051fffc9e6a6f950b6f8060ed521b56789), [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50), [`3e5295f0`](https://github.com/graphql/graphiql/commit/3e5295f0fd3b5f999643ea97e6cee706554f0b50)]: - @graphiql/react@0.2.1 ## 1.9.3 ### Patch Changes -- [#2419](https://github.com/graphql/graphiql/pull/2419) - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - `fillLeafs` utility function from `graphiql` into `@graphiql/toolkit` and - deprecate the export from `graphiql` - -* [#2413](https://github.com/graphql/graphiql/pull/2413) - [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - `StorageContext` and a `HistoryContext` to `@graphiql/react` that replaces the - logic in the `graphiql` package - -- [#2419](https://github.com/graphql/graphiql/pull/2419) - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - `mergeAst` utility function from `graphiql` into `@graphiql/toolkit` and - deprecate the export from `graphiql` - -* [#2420](https://github.com/graphql/graphiql/pull/2420) - [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix sending - multiple introspection requests when loading the page - -- [#2420](https://github.com/graphql/graphiql/pull/2420) - [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Deprecate - the `autoCompleteLeafs` method of the `GraphiQL` component in favor of the - function provided by the `EditorContext` from `@graphiql/react` - -* [#2420](https://github.com/graphql/graphiql/pull/2420) - [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - `SchemaContext` to `@graphiql/react` that replaces the logic for fetching and - validating the schema in the `graphiql` package - -- [#2419](https://github.com/graphql/graphiql/pull/2419) - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - `getSelectedOperationName` utility function from `graphiql` into - `@graphiql/toolkit` and deprecate the export from `graphiql` - -- Updated dependencies - [[`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e), - [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9), - [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9), - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e), - [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962), - [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e)]: +- [#2419](https://github.com/graphql/graphiql/pull/2419) [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the `fillLeafs` utility function from `graphiql` into `@graphiql/toolkit` and deprecate the export from `graphiql` + +* [#2413](https://github.com/graphql/graphiql/pull/2413) [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a `StorageContext` and a `HistoryContext` to `@graphiql/react` that replaces the logic in the `graphiql` package + +- [#2419](https://github.com/graphql/graphiql/pull/2419) [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the `mergeAst` utility function from `graphiql` into `@graphiql/toolkit` and deprecate the export from `graphiql` + +* [#2420](https://github.com/graphql/graphiql/pull/2420) [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix sending multiple introspection requests when loading the page + +- [#2420](https://github.com/graphql/graphiql/pull/2420) [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Deprecate the `autoCompleteLeafs` method of the `GraphiQL` component in favor of the function provided by the `EditorContext` from `@graphiql/react` + +* [#2420](https://github.com/graphql/graphiql/pull/2420) [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a `SchemaContext` to `@graphiql/react` that replaces the logic for fetching and validating the schema in the `graphiql` package + +- [#2419](https://github.com/graphql/graphiql/pull/2419) [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the `getSelectedOperationName` utility function from `graphiql` into `@graphiql/toolkit` and deprecate the export from `graphiql` + +- Updated dependencies [[`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e), [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9), [`8be164b1`](https://github.com/graphql/graphiql/commit/8be164b1e158d00752d6d3f30630a797d07d08c9), [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e), [`3467cd33`](https://github.com/graphql/graphiql/commit/3467cd33264e0766a0a43cf53e52ec371df26962), [`84d8985b`](https://github.com/graphql/graphiql/commit/84d8985b87701133cc41fd424a24bb61c9b7272e)]: - @graphiql/toolkit@0.6.0 - @graphiql/react@0.2.0 @@ -830,92 +494,43 @@ ### Patch Changes -- Updated dependencies - [[`ebc864f0`](https://github.com/graphql/graphiql/commit/ebc864f0ab05000758cb2898daaa73a2f15255ec), - [`ebc864f0`](https://github.com/graphql/graphiql/commit/ebc864f0ab05000758cb2898daaa73a2f15255ec)]: +- Updated dependencies [[`ebc864f0`](https://github.com/graphql/graphiql/commit/ebc864f0ab05000758cb2898daaa73a2f15255ec), [`ebc864f0`](https://github.com/graphql/graphiql/commit/ebc864f0ab05000758cb2898daaa73a2f15255ec)]: - @graphiql/react@0.1.2 ## 1.9.1 ### Patch Changes -- [#2423](https://github.com/graphql/graphiql/pull/2423) - [`838e58da`](https://github.com/graphql/graphiql/commit/838e58dad652d8f5559af7b88d049b1c62348f2f) - Thanks [@chentsulin](https://github.com/chentsulin)! - Fix peer dependency - declaration by using `||` instead of `|` to link multiple major versions +- [#2423](https://github.com/graphql/graphiql/pull/2423) [`838e58da`](https://github.com/graphql/graphiql/commit/838e58dad652d8f5559af7b88d049b1c62348f2f) Thanks [@chentsulin](https://github.com/chentsulin)! - Fix peer dependency declaration by using `||` instead of `|` to link multiple major versions -- Updated dependencies - [[`838e58da`](https://github.com/graphql/graphiql/commit/838e58dad652d8f5559af7b88d049b1c62348f2f)]: +- Updated dependencies [[`838e58da`](https://github.com/graphql/graphiql/commit/838e58dad652d8f5559af7b88d049b1c62348f2f)]: - @graphiql/react@0.1.1 ## 1.9.0 ### Minor Changes -- [#2412](https://github.com/graphql/graphiql/pull/2412) - [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - QueryStore from `graphiql` package to `@graphiql/toolkit` - -* [#2412](https://github.com/graphql/graphiql/pull/2412) - [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - HistoryStore from `graphiql` package to `@graphiql/toolkit` - -- [#2409](https://github.com/graphql/graphiql/pull/2409) - [`f2025ba0`](https://github.com/graphql/graphiql/commit/f2025ba06c5aa8e8ac68d29538ff135f3efc8e46) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - logic of the variable editor from the `graphiql` package into a hook - `useVariableEditor` provided by `@graphiql/react` - -* [#2408](https://github.com/graphql/graphiql/pull/2408) - [`d825bb75`](https://github.com/graphql/graphiql/commit/d825bb7569ca6b1ebbe534b893354645c790e003) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - logic of the query editor from the `graphiql` package into a hook - `useQueryEditor` provided by `@graphiql/react` - -- [#2411](https://github.com/graphql/graphiql/pull/2411) - [`ad448693`](https://github.com/graphql/graphiql/commit/ad4486934ba69247efd33ee500e30f8236ecd079) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the - logic of the result viewer from the `graphiql` package into a hook - `useResponseEditor` provided by `@graphiql/react` - -* [#2370](https://github.com/graphql/graphiql/pull/2370) - [`7f695b10`](https://github.com/graphql/graphiql/commit/7f695b104f9b25ba8c6d36f7827c475b297b7482) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Include the - context provider for the explorer from `@graphiql/react` and replace the local - state for the nav stack of the docs with methods provided by hooks from - `@graphiql/react`. - -- [#2412](https://github.com/graphql/graphiql/pull/2412) - [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move - StorageAPI from `graphiql` package to `@graphiql/toolkit` - -* [#2404](https://github.com/graphql/graphiql/pull/2404) - [`029ddf82`](https://github.com/graphql/graphiql/commit/029ddf82c29754ab8518ae7df66f9b25361a8247) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a - context provider for editors and move the logic of the headers editor from the - `graphiql` package into a hook `useHeaderEditor` provided by `@graphiql/react` - -### Patch Changes - -- [#2418](https://github.com/graphql/graphiql/pull/2418) - [`6d7fb6e6`](https://github.com/graphql/graphiql/commit/6d7fb6e6fa4734e2274d8875971613a8254674e3) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix - persisting headers in tab state and avoid opening duplicate tabs when - reloading - -- Updated dependencies - [[`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29), - [`bc3dc64c`](https://github.com/graphql/graphiql/commit/bc3dc64c37478ba6170c49c25fb755b4f2e020b2), - [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29), - [`f2025ba0`](https://github.com/graphql/graphiql/commit/f2025ba06c5aa8e8ac68d29538ff135f3efc8e46), - [`d825bb75`](https://github.com/graphql/graphiql/commit/d825bb7569ca6b1ebbe534b893354645c790e003), - [`ad448693`](https://github.com/graphql/graphiql/commit/ad4486934ba69247efd33ee500e30f8236ecd079), - [`7f695b10`](https://github.com/graphql/graphiql/commit/7f695b104f9b25ba8c6d36f7827c475b297b7482), - [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29), - [`029ddf82`](https://github.com/graphql/graphiql/commit/029ddf82c29754ab8518ae7df66f9b25361a8247)]: +- [#2412](https://github.com/graphql/graphiql/pull/2412) [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move QueryStore from `graphiql` package to `@graphiql/toolkit` + +* [#2412](https://github.com/graphql/graphiql/pull/2412) [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move HistoryStore from `graphiql` package to `@graphiql/toolkit` + +- [#2409](https://github.com/graphql/graphiql/pull/2409) [`f2025ba0`](https://github.com/graphql/graphiql/commit/f2025ba06c5aa8e8ac68d29538ff135f3efc8e46) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the variable editor from the `graphiql` package into a hook `useVariableEditor` provided by `@graphiql/react` + +* [#2408](https://github.com/graphql/graphiql/pull/2408) [`d825bb75`](https://github.com/graphql/graphiql/commit/d825bb7569ca6b1ebbe534b893354645c790e003) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the query editor from the `graphiql` package into a hook `useQueryEditor` provided by `@graphiql/react` + +- [#2411](https://github.com/graphql/graphiql/pull/2411) [`ad448693`](https://github.com/graphql/graphiql/commit/ad4486934ba69247efd33ee500e30f8236ecd079) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the result viewer from the `graphiql` package into a hook `useResponseEditor` provided by `@graphiql/react` + +* [#2370](https://github.com/graphql/graphiql/pull/2370) [`7f695b10`](https://github.com/graphql/graphiql/commit/7f695b104f9b25ba8c6d36f7827c475b297b7482) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Include the context provider for the explorer from `@graphiql/react` and replace the local state for the nav stack of the docs with methods provided by hooks from `@graphiql/react`. + +- [#2412](https://github.com/graphql/graphiql/pull/2412) [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move StorageAPI from `graphiql` package to `@graphiql/toolkit` + +* [#2404](https://github.com/graphql/graphiql/pull/2404) [`029ddf82`](https://github.com/graphql/graphiql/commit/029ddf82c29754ab8518ae7df66f9b25361a8247) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a context provider for editors and move the logic of the headers editor from the `graphiql` package into a hook `useHeaderEditor` provided by `@graphiql/react` + +### Patch Changes + +- [#2418](https://github.com/graphql/graphiql/pull/2418) [`6d7fb6e6`](https://github.com/graphql/graphiql/commit/6d7fb6e6fa4734e2274d8875971613a8254674e3) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Fix persisting headers in tab state and avoid opening duplicate tabs when reloading + +- Updated dependencies [[`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29), [`bc3dc64c`](https://github.com/graphql/graphiql/commit/bc3dc64c37478ba6170c49c25fb755b4f2e020b2), [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29), [`f2025ba0`](https://github.com/graphql/graphiql/commit/f2025ba06c5aa8e8ac68d29538ff135f3efc8e46), [`d825bb75`](https://github.com/graphql/graphiql/commit/d825bb7569ca6b1ebbe534b893354645c790e003), [`ad448693`](https://github.com/graphql/graphiql/commit/ad4486934ba69247efd33ee500e30f8236ecd079), [`7f695b10`](https://github.com/graphql/graphiql/commit/7f695b104f9b25ba8c6d36f7827c475b297b7482), [`c2e2f53d`](https://github.com/graphql/graphiql/commit/c2e2f53d3b2ae369feb68537f92c73bcfd962f29), [`029ddf82`](https://github.com/graphql/graphiql/commit/029ddf82c29754ab8518ae7df66f9b25361a8247)]: - @graphiql/toolkit@0.5.0 - @graphiql/react@0.1.0 @@ -923,52 +538,31 @@ ### Patch Changes -- [#2397](https://github.com/graphql/graphiql/pull/2397) - [`a63ff958`](https://github.com/graphql/graphiql/commit/a63ff958838cf4fcf31f7eaa3e3b022d02838f65) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - upgrade to - React v17 +- [#2397](https://github.com/graphql/graphiql/pull/2397) [`a63ff958`](https://github.com/graphql/graphiql/commit/a63ff958838cf4fcf31f7eaa3e3b022d02838f65) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - upgrade to React v17 -* [#2401](https://github.com/graphql/graphiql/pull/2401) - [`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5) - Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - move async - helper functions and formatting functions over into the @graphiql/toolkit - package +* [#2401](https://github.com/graphql/graphiql/pull/2401) [`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - move async helper functions and formatting functions over into the @graphiql/toolkit package -* Updated dependencies - [[`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5), - [`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5)]: +* Updated dependencies [[`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5), [`60a744b1`](https://github.com/graphql/graphiql/commit/60a744b1d73d1021afb7abeea1573f26178102b5)]: - @graphiql/toolkit@0.4.5 ## 1.8.9 ### Patch Changes -- [#2387](https://github.com/graphql/graphiql/pull/2387) - [`e823697b`](https://github.com/graphql/graphiql/commit/e823697b5d47565671d5919be84f69919e70977f) - Thanks [@benjie](https://github.com/benjie)! - Add 'children' type definition - to various component props +- [#2387](https://github.com/graphql/graphiql/pull/2387) [`e823697b`](https://github.com/graphql/graphiql/commit/e823697b5d47565671d5919be84f69919e70977f) Thanks [@benjie](https://github.com/benjie)! - Add 'children' type definition to various component props -* [#2388](https://github.com/graphql/graphiql/pull/2388) - [`d3ae074c`](https://github.com/graphql/graphiql/commit/d3ae074c9b9dae6ed4f69b0a79efaa0353dcea2d) - Thanks [@benjie](https://github.com/benjie)! - Add 'pointer-events: none' to - SVG style for dropdown arrow in GraphiQL.Menu component +* [#2388](https://github.com/graphql/graphiql/pull/2388) [`d3ae074c`](https://github.com/graphql/graphiql/commit/d3ae074c9b9dae6ed4f69b0a79efaa0353dcea2d) Thanks [@benjie](https://github.com/benjie)! - Add 'pointer-events: none' to SVG style for dropdown arrow in GraphiQL.Menu component -- [#2373](https://github.com/graphql/graphiql/pull/2373) - [`5b2c1b20`](https://github.com/graphql/graphiql/commit/5b2c1b2054a70e8dca173f380f44766438cb5597) - Thanks [@benjie](https://github.com/benjie)! - Fix TypeScript definition of - FetcherParams to reflect that operationName is optional +- [#2373](https://github.com/graphql/graphiql/pull/2373) [`5b2c1b20`](https://github.com/graphql/graphiql/commit/5b2c1b2054a70e8dca173f380f44766438cb5597) Thanks [@benjie](https://github.com/benjie)! - Fix TypeScript definition of FetcherParams to reflect that operationName is optional -- Updated dependencies - [[`5b2c1b20`](https://github.com/graphql/graphiql/commit/5b2c1b2054a70e8dca173f380f44766438cb5597)]: +- Updated dependencies [[`5b2c1b20`](https://github.com/graphql/graphiql/commit/5b2c1b2054a70e8dca173f380f44766438cb5597)]: - @graphiql/toolkit@0.4.4 ## 1.8.8 ### Patch Changes -- Updated dependencies - [[`2dec55f2`](https://github.com/graphql/graphiql/commit/2dec55f2c5e979cc7bb1adadff4fb063775b088c), - [`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2)]: +- Updated dependencies [[`2dec55f2`](https://github.com/graphql/graphiql/commit/2dec55f2c5e979cc7bb1adadff4fb063775b088c), [`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2)]: - codemirror-graphql@1.3.0 - graphql-language-service@5.0.4 @@ -976,23 +570,15 @@ ### Patch Changes -- [#2316](https://github.com/graphql/graphiql/pull/2316) - [`3d8510c8`](https://github.com/graphql/graphiql/commit/3d8510c87b9f0cc73f747ed4cd88e112f9fe65f7) - Thanks [@AlirezaHaghshenas](https://github.com/AlirezaHaghshenas)! - Fix: With - tabs enabled, if a subscription is restored from storage, a query request is - sent instead +- [#2316](https://github.com/graphql/graphiql/pull/2316) [`3d8510c8`](https://github.com/graphql/graphiql/commit/3d8510c87b9f0cc73f747ed4cd88e112f9fe65f7) Thanks [@AlirezaHaghshenas](https://github.com/AlirezaHaghshenas)! - Fix: With tabs enabled, if a subscription is restored from storage, a query request is sent instead ## 1.8.6 ### Patch Changes -- [#2312](https://github.com/graphql/graphiql/pull/2312) - [`3c97cf63`](https://github.com/graphql/graphiql/commit/3c97cf63f0d6a8c27265905af1a2da243925ff01) - Thanks [@AlirezaHaghshenas](https://github.com/AlirezaHaghshenas)! - Fix: - After changing to a tab with a subscription, graphiql sends a query request +- [#2312](https://github.com/graphql/graphiql/pull/2312) [`3c97cf63`](https://github.com/graphql/graphiql/commit/3c97cf63f0d6a8c27265905af1a2da243925ff01) Thanks [@AlirezaHaghshenas](https://github.com/AlirezaHaghshenas)! - Fix: After changing to a tab with a subscription, graphiql sends a query request -- Updated dependencies - [[`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902)]: +- Updated dependencies [[`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902)]: - graphql-language-service@5.0.3 - codemirror-graphql@1.2.17 @@ -1000,8 +586,7 @@ ### Patch Changes -- Updated dependencies - [[`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f)]: +- Updated dependencies [[`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f)]: - graphql-language-service@5.0.2 - codemirror-graphql@1.2.16 @@ -1009,90 +594,57 @@ ### Patch Changes -- [#2274](https://github.com/graphql/graphiql/pull/2274) - [`12950380`](https://github.com/graphql/graphiql/commit/12950380e92c38f6eec23499e7fca5dc9dcd8216) - Thanks [@B2o5T](https://github.com/B2o5T)! - turn `valid-typeof` as `error`, - SSR fix +- [#2274](https://github.com/graphql/graphiql/pull/2274) [`12950380`](https://github.com/graphql/graphiql/commit/12950380e92c38f6eec23499e7fca5dc9dcd8216) Thanks [@B2o5T](https://github.com/B2o5T)! - turn `valid-typeof` as `error`, SSR fix -- Updated dependencies - [[`12950380`](https://github.com/graphql/graphiql/commit/12950380e92c38f6eec23499e7fca5dc9dcd8216)]: +- Updated dependencies [[`12950380`](https://github.com/graphql/graphiql/commit/12950380e92c38f6eec23499e7fca5dc9dcd8216)]: - @graphiql/toolkit@0.4.3 ## 1.8.3 ### Patch Changes -- [#2268](https://github.com/graphql/graphiql/pull/2268) - [`b1886822`](https://github.com/graphql/graphiql/commit/b188682296ee04a87fbf09dc51385f127bffcec0) - Thanks [@acao](https://github.com/acao)! - remove dependency on `global` for - esbuild/etc users! +- [#2268](https://github.com/graphql/graphiql/pull/2268) [`b1886822`](https://github.com/graphql/graphiql/commit/b188682296ee04a87fbf09dc51385f127bffcec0) Thanks [@acao](https://github.com/acao)! - remove dependency on `global` for esbuild/etc users! -* [#2265](https://github.com/graphql/graphiql/pull/2265) - [`9458e10b`](https://github.com/graphql/graphiql/commit/9458e10ba24a6c919142ea1cebb409c7d055baf9) - Thanks [@acao](https://github.com/acao)! - fix `codemirror` import bug for - `onHasCompletion` for #2263. for esm/cjs users on autocomplete (umd bundle - users not impacted) +* [#2265](https://github.com/graphql/graphiql/pull/2265) [`9458e10b`](https://github.com/graphql/graphiql/commit/9458e10ba24a6c919142ea1cebb409c7d055baf9) Thanks [@acao](https://github.com/acao)! - fix `codemirror` import bug for `onHasCompletion` for #2263. for esm/cjs users on autocomplete (umd bundle users not impacted) ## 1.8.2 ### Patch Changes -- Updated dependencies - [[`261f2044`](https://github.com/graphql/graphiql/commit/261f2044066412e40f9962bef55295f7c9c35aec)]: +- Updated dependencies [[`261f2044`](https://github.com/graphql/graphiql/commit/261f2044066412e40f9962bef55295f7c9c35aec)]: - codemirror-graphql@1.2.15 ## 1.8.1 ### Patch Changes -- [#2257](https://github.com/graphql/graphiql/pull/2257) - [`6cc95851`](https://github.com/graphql/graphiql/commit/6cc9585119f33ba80f960da310f7ef2747b7bc38) - Thanks [@acao](https://github.com/acao)! - _security fix:_ replace the - vulnerable `dset` dependency with `set-value` +- [#2257](https://github.com/graphql/graphiql/pull/2257) [`6cc95851`](https://github.com/graphql/graphiql/commit/6cc9585119f33ba80f960da310f7ef2747b7bc38) Thanks [@acao](https://github.com/acao)! - _security fix:_ replace the vulnerable `dset` dependency with `set-value` - `dset` is vulnerable to prototype pollution attacks. this is only possible if - you are doing all of the following: + `dset` is vulnerable to prototype pollution attacks. this is only possible if you are doing all of the following: - 1. running graphiql with an experimental graphql-js release tag that supports - @stream and @defer - 2. executing a properly @streamed or @deferred query ala IncrementalDelivery - spec, with multipart chunks - 3. consuming a malicious schema that contains field names like proto, - prototype, or constructor that return malicious data designed to exploit a - prototype pollution attack + 1. running graphiql with an experimental graphql-js release tag that supports @stream and @defer + 2. executing a properly @streamed or @deferred query ala IncrementalDelivery spec, with multipart chunks + 3. consuming a malicious schema that contains field names like proto, prototype, or constructor that return malicious data designed to exploit a prototype pollution attack ## 1.8.0 ### Minor Changes -- [#2197](https://github.com/graphql/graphiql/pull/2197) - [`3137a6c4`](https://github.com/graphql/graphiql/commit/3137a6c4333dad8db8a0eb980d6c6464c7292946) - Thanks [@n1ru4l](https://github.com/n1ru4l)! - Now featuring: tabs! 🥳 🍾 just - opt-in with new prop ``. You can also both opt-in and provide - a handler via ``! +- [#2197](https://github.com/graphql/graphiql/pull/2197) [`3137a6c4`](https://github.com/graphql/graphiql/commit/3137a6c4333dad8db8a0eb980d6c6464c7292946) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Now featuring: tabs! 🥳 🍾 just opt-in with new prop ``. You can also both opt-in and provide a handler via ``! ### Patch Changes -- [#2249](https://github.com/graphql/graphiql/pull/2249) - [`1540fd3d`](https://github.com/graphql/graphiql/commit/1540fd3d0df553798e41a153c5f0386d9d52be01) - Thanks [@acao](https://github.com/acao)! - Finally remove inline `require()` - for codemirror addon imports, replace with modern dynamic `import()` (which - enables `esbuild`, `vite`, etc). +- [#2249](https://github.com/graphql/graphiql/pull/2249) [`1540fd3d`](https://github.com/graphql/graphiql/commit/1540fd3d0df553798e41a153c5f0386d9d52be01) Thanks [@acao](https://github.com/acao)! - Finally remove inline `require()` for codemirror addon imports, replace with modern dynamic `import()` (which enables `esbuild`, `vite`, etc). - This change should allow your bundler to code split codemirror-graphql and the - codemirror addons based on which you import. For SSR support, GraphiQL must - load these modules dynamically. + This change should allow your bundler to code split codemirror-graphql and the codemirror addons based on which you import. For SSR support, GraphiQL must load these modules dynamically. - If you want to use other codemirror addons (vim, etc) for non-ssr you can just - import them top level, or for SSR, you can just dynamically import them. + If you want to use other codemirror addons (vim, etc) for non-ssr you can just import them top level, or for SSR, you can just dynamically import them. ## 1.7.2 ### Patch Changes -- Updated dependencies - [[`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa), - [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa)]: +- Updated dependencies [[`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa), [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa)]: - graphql-language-service@5.0.1 - codemirror-graphql@1.2.14 @@ -1100,8 +652,7 @@ ### Patch Changes -- Updated dependencies - [[`2502a364`](https://github.com/graphql/graphiql/commit/2502a364b74dc754d92baa1579b536cf42139958)]: +- Updated dependencies [[`2502a364`](https://github.com/graphql/graphiql/commit/2502a364b74dc754d92baa1579b536cf42139958)]: - graphql-language-service@5.0.0 - codemirror-graphql@1.2.13 @@ -1109,51 +660,27 @@ ### Minor Changes -- [#2221](https://github.com/graphql/graphiql/pull/2221) - [`64826c87`](https://github.com/graphql/graphiql/commit/64826c8776dfc8394a65c98663d47cc3c9d397b9) - Thanks [@dwwoelfel](https://github.com/dwwoelfel)! - Fix to trigger codemirror - update when externalFragments prop changes - [#2220](https://github.com/graphql/graphiql/pull/2220) +- [#2221](https://github.com/graphql/graphiql/pull/2221) [`64826c87`](https://github.com/graphql/graphiql/commit/64826c8776dfc8394a65c98663d47cc3c9d397b9) Thanks [@dwwoelfel](https://github.com/dwwoelfel)! - Fix to trigger codemirror update when externalFragments prop changes [#2220](https://github.com/graphql/graphiql/pull/2220) -* [#2213](https://github.com/graphql/graphiql/pull/2213) - [`ba85bc24`](https://github.com/graphql/graphiql/commit/ba85bc242b8271cbd09ade9d69a93d86e4e1a49f) - Thanks [@hatappi](https://github.com/hatappi)! - remove IE7 CSS star property - hack +* [#2213](https://github.com/graphql/graphiql/pull/2213) [`ba85bc24`](https://github.com/graphql/graphiql/commit/ba85bc242b8271cbd09ade9d69a93d86e4e1a49f) Thanks [@hatappi](https://github.com/hatappi)! - remove IE7 CSS star property hack ### Patch Changes -- [#2205](https://github.com/graphql/graphiql/pull/2205) - [`91500d4e`](https://github.com/graphql/graphiql/commit/91500d4eba8b99bf779ff6ac899c814070c6dff3) - Thanks [@francisu](https://github.com/francisu)! - Fixed problem where - 'global' variable is referenced when it might not be present (#2155) +- [#2205](https://github.com/graphql/graphiql/pull/2205) [`91500d4e`](https://github.com/graphql/graphiql/commit/91500d4eba8b99bf779ff6ac899c814070c6dff3) Thanks [@francisu](https://github.com/francisu)! - Fixed problem where 'global' variable is referenced when it might not be present (#2155) ## 1.6.0 ### Minor Changes -- [#2191](https://github.com/graphql/graphiql/pull/2191) - [`eb8af7b5`](https://github.com/graphql/graphiql/commit/eb8af7b5666e7ed01497a862127011524fc400f5) - Thanks [@n1ru4l](https://github.com/n1ru4l)! - Allow inserting content before - the topBar element via the `beforeTopBarContent` property. +- [#2191](https://github.com/graphql/graphiql/pull/2191) [`eb8af7b5`](https://github.com/graphql/graphiql/commit/eb8af7b5666e7ed01497a862127011524fc400f5) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Allow inserting content before the topBar element via the `beforeTopBarContent` property. ```ts } /> ``` -* [#2189](https://github.com/graphql/graphiql/pull/2189) - [`96d47267`](https://github.com/graphql/graphiql/commit/96d4726716b782fcafa9d6c1671f3a3050ebe0b7) - Thanks [@n1ru4l](https://github.com/n1ru4l)! - Apply variable editor title - text styles via class `variable-editor-title-text` instead of using - inline-styles. This allows better customization of styles. An active element - also has the class `active`. This allows overriding the inactive state color - using the selector `.graphiql-container .variable-editor-title-text` and - overriding the active state color using the selector - `.graphiql-container .variable-editor-title-text.active`. - -- [#2190](https://github.com/graphql/graphiql/pull/2190) - [`d5179899`](https://github.com/graphql/graphiql/commit/d517989996cf6f33ef7e08d18a870e2bed565cca) - Thanks [@n1ru4l](https://github.com/n1ru4l)! - New callback property - `onSchemaChange` for `GraphiQL`. +* [#2189](https://github.com/graphql/graphiql/pull/2189) [`96d47267`](https://github.com/graphql/graphiql/commit/96d4726716b782fcafa9d6c1671f3a3050ebe0b7) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Apply variable editor title text styles via class `variable-editor-title-text` instead of using inline-styles. This allows better customization of styles. An active element also has the class `active`. This allows overriding the inactive state color using the selector `.graphiql-container .variable-editor-title-text` and overriding the active state color using the selector `.graphiql-container .variable-editor-title-text.active`. + +- [#2190](https://github.com/graphql/graphiql/pull/2190) [`d5179899`](https://github.com/graphql/graphiql/commit/d517989996cf6f33ef7e08d18a870e2bed565cca) Thanks [@n1ru4l](https://github.com/n1ru4l)! - New callback property `onSchemaChange` for `GraphiQL`. The callback is invoked with the successfully fetched schema from the remote. @@ -1167,10 +694,7 @@ ### Patch Changes -- Updated dependencies - [[`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f), - [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c), - [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5)]: +- Updated dependencies [[`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f), [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c), [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5)]: - graphql-language-service@4.1.5 - codemirror-graphql@1.2.12 @@ -1178,28 +702,19 @@ ### Patch Changes -- [#2167](https://github.com/graphql/graphiql/pull/2167) - [`bc81f0ee`](https://github.com/graphql/graphiql/commit/bc81f0ee6d382fe996d92e55f90cdc3be10910a7) - Thanks [@acao](https://github.com/acao)! - Fix legacy bug where global is - expected +- [#2167](https://github.com/graphql/graphiql/pull/2167) [`bc81f0ee`](https://github.com/graphql/graphiql/commit/bc81f0ee6d382fe996d92e55f90cdc3be10910a7) Thanks [@acao](https://github.com/acao)! - Fix legacy bug where global is expected ## 1.5.18 ### Patch Changes -- [#2156](https://github.com/graphql/graphiql/pull/2156) - [`ae5ea77b`](https://github.com/graphql/graphiql/commit/ae5ea77b4c2ec2a25e25c542ae72b2c3dabbe256) - Thanks [@francisu](https://github.com/francisu)! - Fixed problem where - 'global' variable is referenced when it might not be present (#2155) +- [#2156](https://github.com/graphql/graphiql/pull/2156) [`ae5ea77b`](https://github.com/graphql/graphiql/commit/ae5ea77b4c2ec2a25e25c542ae72b2c3dabbe256) Thanks [@francisu](https://github.com/francisu)! - Fixed problem where 'global' variable is referenced when it might not be present (#2155) ## 1.5.17 ### Patch Changes -- [#2138](https://github.com/graphql/graphiql/pull/2138) - [`8700b4bb`](https://github.com/graphql/graphiql/commit/8700b4bbaadb17136f649f504c9575a8c853cd0b) - Thanks [@danielleletarte](https://github.com/danielleletarte)! - Correctly - render line breaks for Descriptions in Doc Explorer - #2137 - @danielleletarte +- [#2138](https://github.com/graphql/graphiql/pull/2138) [`8700b4bb`](https://github.com/graphql/graphiql/commit/8700b4bbaadb17136f649f504c9575a8c853cd0b) Thanks [@danielleletarte](https://github.com/danielleletarte)! - Correctly render line breaks for Descriptions in Doc Explorer - #2137 - @danielleletarte ## 1.5.16 @@ -1213,8 +728,7 @@ ### Patch Changes -- Updated dependencies - [[`a44772d6`](https://github.com/graphql/graphiql/commit/a44772d6af97254c4f159ea7237e842a3e3719e8)]: +- Updated dependencies [[`a44772d6`](https://github.com/graphql/graphiql/commit/a44772d6af97254c4f159ea7237e842a3e3719e8)]: - graphql-language-service@4.1.3 - codemirror-graphql@1.2.10 @@ -1222,8 +736,7 @@ ### Patch Changes -- Updated dependencies - [[`e20760fb`](https://github.com/graphql/graphiql/commit/e20760fbd95c13d6d549cba3faa15a59aee9a2c0)]: +- Updated dependencies [[`e20760fb`](https://github.com/graphql/graphiql/commit/e20760fbd95c13d6d549cba3faa15a59aee9a2c0)]: - graphql-language-service@4.1.2 - codemirror-graphql@1.2.9 @@ -1231,22 +744,15 @@ ### Patch Changes -- [#2097](https://github.com/graphql/graphiql/pull/2097) - [`4d3eeaa4`](https://github.com/graphql/graphiql/commit/4d3eeaa4446c84e92cd77f213e454059602a72e5) - Thanks [@acao](https://github.com/acao)! - Disable introspection of - schema.description by default +- [#2097](https://github.com/graphql/graphiql/pull/2097) [`4d3eeaa4`](https://github.com/graphql/graphiql/commit/4d3eeaa4446c84e92cd77f213e454059602a72e5) Thanks [@acao](https://github.com/acao)! - Disable introspection of schema.description by default ## 1.5.12 ### Patch Changes -- [#2091](https://github.com/graphql/graphiql/pull/2091) - [`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63) - Thanks [@acao](https://github.com/acao)! - Fix graphql 15 related issues. - Should now build & test interchangeably. +- [#2091](https://github.com/graphql/graphiql/pull/2091) [`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63) Thanks [@acao](https://github.com/acao)! - Fix graphql 15 related issues. Should now build & test interchangeably. -- Updated dependencies - [[`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63)]: +- Updated dependencies [[`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63)]: - codemirror-graphql@1.2.8 - graphql-language-service@4.1.1 @@ -1254,8 +760,7 @@ ### Patch Changes -- Updated dependencies - [[`0f1f90ce`](https://github.com/graphql/graphiql/commit/0f1f90ce8f4a25ddebdaf7a9ddbe136214aa64a3)]: +- Updated dependencies [[`0f1f90ce`](https://github.com/graphql/graphiql/commit/0f1f90ce8f4a25ddebdaf7a9ddbe136214aa64a3)]: - graphql-language-service@4.1.0 - codemirror-graphql@1.2.7 @@ -1263,25 +768,14 @@ ### Patch Changes -- [#2087](https://github.com/graphql/graphiql/pull/2087) - [`45a9075d`](https://github.com/graphql/graphiql/commit/45a9075d718046e0f17c930162fa9752dfe052ec) - Thanks [@acao](https://github.com/acao)! - Fix issue with introspection in - servers which don't support `inputValueDeprecation`. make - `inputValueDeprecation` an opt-in prop for DocExplorer features +- [#2087](https://github.com/graphql/graphiql/pull/2087) [`45a9075d`](https://github.com/graphql/graphiql/commit/45a9075d718046e0f17c930162fa9752dfe052ec) Thanks [@acao](https://github.com/acao)! - Fix issue with introspection in servers which don't support `inputValueDeprecation`. make `inputValueDeprecation` an opt-in prop for DocExplorer features ## 1.5.9 ### Patch Changes -- [#2077](https://github.com/graphql/graphiql/pull/2077) - [`701ca13f`](https://github.com/graphql/graphiql/commit/701ca13f625735564d71931e6d917e5bf69c8aa5) - Thanks [@acao](https://github.com/acao)! - Include schema description in - DocExplorer for schema introspection requests. Enables the `schemaDescription` - option for `getIntrospectionQuery()`. Also includes `deprecationReason` - support in DocExplorer for arguments! Enables `inputValueDeprecation` in - `getIntrospectionQuery()` and displays deprecation section on field doc view. -- Updated dependencies - [[`9df315b4`](https://github.com/graphql/graphiql/commit/9df315b44896efa313ed6744445fc8f9e702ebc3)]: +- [#2077](https://github.com/graphql/graphiql/pull/2077) [`701ca13f`](https://github.com/graphql/graphiql/commit/701ca13f625735564d71931e6d917e5bf69c8aa5) Thanks [@acao](https://github.com/acao)! - Include schema description in DocExplorer for schema introspection requests. Enables the `schemaDescription` option for `getIntrospectionQuery()`. Also includes `deprecationReason` support in DocExplorer for arguments! Enables `inputValueDeprecation` in `getIntrospectionQuery()` and displays deprecation section on field doc view. +- Updated dependencies [[`9df315b4`](https://github.com/graphql/graphiql/commit/9df315b44896efa313ed6744445fc8f9e702ebc3)]: - graphql-language-service@4.0.0 - codemirror-graphql@1.2.6 @@ -1289,8 +783,7 @@ ### Patch Changes -- Updated dependencies - [[`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1)]: +- Updated dependencies [[`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1)]: - graphql-language-service@3.2.5 - codemirror-graphql@1.2.5 @@ -1298,10 +791,7 @@ ### Patch Changes -- [`49bce429`](https://github.com/graphql/graphiql/commit/49bce429f0780a5e2856cfb7ccda50d10d38f724) - [#2051](https://github.com/graphql/graphiql/pull/2051) Thanks - [@willstott101](https://github.com/willstott101)! - Include source maps for - minified JS and CSS in the graphiql package. +- [`49bce429`](https://github.com/graphql/graphiql/commit/49bce429f0780a5e2856cfb7ccda50d10d38f724) [#2051](https://github.com/graphql/graphiql/pull/2051) Thanks [@willstott101](https://github.com/willstott101)! - Include source maps for minified JS and CSS in the graphiql package. ## 1.5.6 @@ -1315,23 +805,16 @@ ### Patch Changes -- Updated dependencies - [[`c42b145f`](https://github.com/graphql/graphiql/commit/c42b145fffeaefbd1103bc7addee1873e939bc83)]: +- Updated dependencies [[`c42b145f`](https://github.com/graphql/graphiql/commit/c42b145fffeaefbd1103bc7addee1873e939bc83)]: - codemirror-graphql@1.2.3 ## 1.5.4 ### Patch Changes -- [`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf) - [#2047](https://github.com/graphql/graphiql/pull/2047) Thanks - [@willstott101](https://github.com/willstott101)! - Source code included in - all packages to fix source maps. codemirror-graphql includes esm build in - package. +- [`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf) [#2047](https://github.com/graphql/graphiql/pull/2047) Thanks [@willstott101](https://github.com/willstott101)! - Source code included in all packages to fix source maps. codemirror-graphql includes esm build in package. -- Updated dependencies - [[`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf), - [`8b486555`](https://github.com/graphql/graphiql/commit/8b486555e2aa4d90891070a1bbc52b59d9c670c4)]: +- Updated dependencies [[`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf), [`8b486555`](https://github.com/graphql/graphiql/commit/8b486555e2aa4d90891070a1bbc52b59d9c670c4)]: - codemirror-graphql@1.2.2 - graphql-language-service@3.2.3 @@ -1339,17 +822,11 @@ ### Patch Changes -- [`c83d1d4c`](https://github.com/graphql/graphiql/commit/c83d1d4c518ad1b0862aae5f46359dfaee00dda1) - Thanks [@kikkupico](https://github.com/kikkupico)! - fix `schema` type - nullability for #2028 +- [`c83d1d4c`](https://github.com/graphql/graphiql/commit/c83d1d4c518ad1b0862aae5f46359dfaee00dda1) Thanks [@kikkupico](https://github.com/kikkupico)! - fix `schema` type nullability for #2028 -* [`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf) - [#2045](https://github.com/graphql/graphiql/pull/2045) Thanks - [@acao](https://github.com/acao)! - fix graphql-js peer dependencies - - [#2044](https://github.com/graphql/graphiql/pull/2044) +* [`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf) [#2045](https://github.com/graphql/graphiql/pull/2045) Thanks [@acao](https://github.com/acao)! - fix graphql-js peer dependencies - [#2044](https://github.com/graphql/graphiql/pull/2044) -* Updated dependencies - [[`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf)]: +* Updated dependencies [[`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf)]: - codemirror-graphql@1.2.1 - @graphiql/toolkit@0.4.2 - graphql-language-service@3.2.2 @@ -1358,10 +835,7 @@ ### Patch Changes -- Updated dependencies - [[`dec207e7`](https://github.com/graphql/graphiql/commit/dec207e74f0506db069482cc30f8cd1f045d8107), - [`b79bf304`](https://github.com/graphql/graphiql/commit/b79bf304045add4b5c3b2539dd6b551a64e6ed87), - [`d0c22c4f`](https://github.com/graphql/graphiql/commit/d0c22c4fce5ea39611c7ecee553943fdf27fd03e)]: +- Updated dependencies [[`dec207e7`](https://github.com/graphql/graphiql/commit/dec207e74f0506db069482cc30f8cd1f045d8107), [`b79bf304`](https://github.com/graphql/graphiql/commit/b79bf304045add4b5c3b2539dd6b551a64e6ed87), [`d0c22c4f`](https://github.com/graphql/graphiql/commit/d0c22c4fce5ea39611c7ecee553943fdf27fd03e)]: - @graphiql/toolkit@0.4.1 - codemirror-graphql@1.2.0 @@ -1369,27 +843,20 @@ ### Patch Changes -- [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce) - [#2013](https://github.com/graphql/graphiql/pull/2013) Thanks - [@PabloSzx](https://github.com/PabloSzx)! - Update utils +- [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce) [#2013](https://github.com/graphql/graphiql/pull/2013) Thanks [@PabloSzx](https://github.com/PabloSzx)! - Update utils -- Updated dependencies - [[`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce)]: +- Updated dependencies [[`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce)]: - graphql-language-service@3.2.1 ## 1.5.0 ### Minor Changes -- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) - [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks - [@acao](https://github.com/acao)! - upgrade to - `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! +- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks [@acao](https://github.com/acao)! - upgrade to `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! ### Patch Changes -- Updated dependencies - [[`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a)]: +- Updated dependencies [[`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a)]: - codemirror-graphql@1.1.0 - @graphiql/toolkit@0.4.0 - graphql-language-service@3.2.0 @@ -1398,44 +865,25 @@ ### Patch Changes -- [`e63696de`](https://github.com/graphql/graphiql/commit/e63696de57a85c34d937bfb53345e2e0d0b874a4) - [#2005](https://github.com/graphql/graphiql/pull/2005) Thanks - [@acao](https://github.com/acao)! - Correct the npm readme security fix - version number and links, thanks [@glasser](https://github.com/glasser) & - [@dotansimha](https://github.com/dotansimha)! +- [`e63696de`](https://github.com/graphql/graphiql/commit/e63696de57a85c34d937bfb53345e2e0d0b874a4) [#2005](https://github.com/graphql/graphiql/pull/2005) Thanks [@acao](https://github.com/acao)! - Correct the npm readme security fix version number and links, thanks [@glasser](https://github.com/glasser) & [@dotansimha](https://github.com/dotansimha)! ## 1.4.7 ### Patch Changes -- [`130ddad6`](https://github.com/graphql/graphiql/commit/130ddad6d0394356ec32070a6fee1840450a4660) - Thanks [@acao](https://github.com/acao)! - **CRITICAL SECURITY PATCH** for the - [GraphiQL introspection schema template injection attack](https://github.com/graphql/graphiql/security/advisories/GHSA-x4r7-m2q9-69c8) +- [`130ddad6`](https://github.com/graphql/graphiql/commit/130ddad6d0394356ec32070a6fee1840450a4660) Thanks [@acao](https://github.com/acao)! - **CRITICAL SECURITY PATCH** for the [GraphiQL introspection schema template injection attack](https://github.com/graphql/graphiql/security/advisories/GHSA-x4r7-m2q9-69c8) ## 1.4.6 ### Patch Changes -- [`d3a88283`](https://github.com/graphql/graphiql/commit/d3a88283c7b618376ad4a06c7db20e60b066d1a0) - [#1934](https://github.com/graphql/graphiql/pull/1934) Thanks - [@tonyfromundefined](https://github.com/tonyfromundefined)! - add react 17, 18 - in peerDependencies +- [`d3a88283`](https://github.com/graphql/graphiql/commit/d3a88283c7b618376ad4a06c7db20e60b066d1a0) [#1934](https://github.com/graphql/graphiql/pull/1934) Thanks [@tonyfromundefined](https://github.com/tonyfromundefined)! - add react 17, 18 in peerDependencies -* [`afaa36c1`](https://github.com/graphql/graphiql/commit/afaa36c198648e84f305986a0b1dfefa97e70221) - [#1883](https://github.com/graphql/graphiql/pull/1883) Thanks - [@Sweetabix1](https://github.com/Sweetabix1)! - Updating font colors for line - numbers, comments & brackets from #999 to #666 for accessibility purposes. - #666 passes AA accessibility standards for small text, with a contrast ratio - of over 5:1. +* [`afaa36c1`](https://github.com/graphql/graphiql/commit/afaa36c198648e84f305986a0b1dfefa97e70221) [#1883](https://github.com/graphql/graphiql/pull/1883) Thanks [@Sweetabix1](https://github.com/Sweetabix1)! - Updating font colors for line numbers, comments & brackets from #999 to #666 for accessibility purposes. #666 passes AA accessibility standards for small text, with a contrast ratio of over 5:1. -- [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8) - [#1777](https://github.com/graphql/graphiql/pull/1777) Thanks - [@dwwoelfel](https://github.com/dwwoelfel)! - adopt block string parsing for - variables in language parser +- [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8) [#1777](https://github.com/graphql/graphiql/pull/1777) Thanks [@dwwoelfel](https://github.com/dwwoelfel)! - adopt block string parsing for variables in language parser -- Updated dependencies - [[`0e2c1a02`](https://github.com/graphql/graphiql/commit/0e2c1a020cc2761155f7c9467d3ed4cb45941aeb), - [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8)]: +- Updated dependencies [[`0e2c1a02`](https://github.com/graphql/graphiql/commit/0e2c1a020cc2761155f7c9467d3ed4cb45941aeb), [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8)]: - graphql-language-service@3.1.6 - codemirror-graphql@1.0.3 @@ -1443,57 +891,33 @@ ### Patch Changes -- [`86795d5f`](https://github.com/graphql/graphiql/commit/86795d5ffa2d3e6c8aee74f761d02f054b428d46) - Thanks [@acao](https://github.com/acao)! - Remove bad type definition from - `subscriptions-transport-ws` #1992 closes #1989 +- [`86795d5f`](https://github.com/graphql/graphiql/commit/86795d5ffa2d3e6c8aee74f761d02f054b428d46) Thanks [@acao](https://github.com/acao)! - Remove bad type definition from `subscriptions-transport-ws` #1992 closes #1989 -- Updated dependencies - [[`86795d5f`](https://github.com/graphql/graphiql/commit/86795d5ffa2d3e6c8aee74f761d02f054b428d46)]: +- Updated dependencies [[`86795d5f`](https://github.com/graphql/graphiql/commit/86795d5ffa2d3e6c8aee74f761d02f054b428d46)]: - @graphiql/toolkit@0.3.2 ## 1.4.4 ### Patch Changes -- [`62e786b5`](https://github.com/graphql/graphiql/commit/62e786b57cc5748eccac59814dfc8ecd0104c748) - [#1990](https://github.com/graphql/graphiql/pull/1990) Thanks - [@acao](https://github.com/acao)! - Remove type definition from - `subscriptions-transport-ws` +- [`62e786b5`](https://github.com/graphql/graphiql/commit/62e786b57cc5748eccac59814dfc8ecd0104c748) [#1990](https://github.com/graphql/graphiql/pull/1990) Thanks [@acao](https://github.com/acao)! - Remove type definition from `subscriptions-transport-ws` -- Updated dependencies - [[`62e786b5`](https://github.com/graphql/graphiql/commit/62e786b57cc5748eccac59814dfc8ecd0104c748)]: +- Updated dependencies [[`62e786b5`](https://github.com/graphql/graphiql/commit/62e786b57cc5748eccac59814dfc8ecd0104c748)]: - @graphiql/toolkit@0.3.1 ## 1.4.3 ### Patch Changes -- [`6a459f4c`](https://github.com/graphql/graphiql/commit/6a459f4c235bb0d70725ae6ad7fc1cfa34f49dca) - [#1968](https://github.com/graphql/graphiql/pull/1968) Thanks - [@acao](https://github.com/acao)! - Remove `optionalDependencies` entirely, - remove `subscriptions-transport-ws` which introduces vulnerabilities, upgrade - `@n1ru4l/push-pull-async-iterable-iterator` to 3.0.0, upgrade `graphql-ws` - several minor versions - the `graphql-ws@5.x` upgrade will come in a later - minor release. +- [`6a459f4c`](https://github.com/graphql/graphiql/commit/6a459f4c235bb0d70725ae6ad7fc1cfa34f49dca) [#1968](https://github.com/graphql/graphiql/pull/1968) Thanks [@acao](https://github.com/acao)! - Remove `optionalDependencies` entirely, remove `subscriptions-transport-ws` which introduces vulnerabilities, upgrade `@n1ru4l/push-pull-async-iterable-iterator` to 3.0.0, upgrade `graphql-ws` several minor versions - the `graphql-ws@5.x` upgrade will come in a later minor release. -* [`eb2d91fa`](https://github.com/graphql/graphiql/commit/eb2d91fa8e4a03cb5663f27f724db2c95989a40f) - [#1914](https://github.com/graphql/graphiql/pull/1914) Thanks - [@harshithpabbati](https://github.com/harshithpabbati)! - fix: history can now - be saved even when query history panel is not opened feat: create a new - maxHistoryLength prop to allow more than 20 queries in history panel +* [`eb2d91fa`](https://github.com/graphql/graphiql/commit/eb2d91fa8e4a03cb5663f27f724db2c95989a40f) [#1914](https://github.com/graphql/graphiql/pull/1914) Thanks [@harshithpabbati](https://github.com/harshithpabbati)! - fix: history can now be saved even when query history panel is not opened feat: create a new maxHistoryLength prop to allow more than 20 queries in history panel -- [`04fad79c`](https://github.com/graphql/graphiql/commit/04fad79c094318d4b4c9e0250c5cff55d9fc5116) - [#1889](https://github.com/graphql/graphiql/pull/1889) Thanks - [@henryqdineen](https://github.com/henryqdineen)! - feat: export - ToolbarSelectOption and ToolbarMenuItem +- [`04fad79c`](https://github.com/graphql/graphiql/commit/04fad79c094318d4b4c9e0250c5cff55d9fc5116) [#1889](https://github.com/graphql/graphiql/pull/1889) Thanks [@henryqdineen](https://github.com/henryqdineen)! - feat: export ToolbarSelectOption and ToolbarMenuItem -* [`cd685435`](https://github.com/graphql/graphiql/commit/cd6854352ac6beff57af76db7de38e8157ff13aa) - [#1923](https://github.com/graphql/graphiql/pull/1923) Thanks - [@cgarnier](https://github.com/cgarnier)! - Fix result window theme +* [`cd685435`](https://github.com/graphql/graphiql/commit/cd6854352ac6beff57af76db7de38e8157ff13aa) [#1923](https://github.com/graphql/graphiql/pull/1923) Thanks [@cgarnier](https://github.com/cgarnier)! - Fix result window theme -* Updated dependencies - [[`6a459f4c`](https://github.com/graphql/graphiql/commit/6a459f4c235bb0d70725ae6ad7fc1cfa34f49dca), - [`2fd5bf72`](https://github.com/graphql/graphiql/commit/2fd5bf7239edb78339e5ac7211f09c245e47c3bb)]: +* Updated dependencies [[`6a459f4c`](https://github.com/graphql/graphiql/commit/6a459f4c235bb0d70725ae6ad7fc1cfa34f49dca), [`2fd5bf72`](https://github.com/graphql/graphiql/commit/2fd5bf7239edb78339e5ac7211f09c245e47c3bb)]: - @graphiql/toolkit@0.3.0 - graphql-language-service@3.1.5 @@ -1501,77 +925,47 @@ ### Patch Changes -- [`5b8a057d`](https://github.com/graphql/graphiql/commit/5b8a057dd64ebecc391be32176a2403bb9d9ff92) - [#1838](https://github.com/graphql/graphiql/pull/1838) Thanks - [@acao](https://github.com/acao)! - Set all cross-runtime build targets to es6 +- [`5b8a057d`](https://github.com/graphql/graphiql/commit/5b8a057dd64ebecc391be32176a2403bb9d9ff92) [#1838](https://github.com/graphql/graphiql/pull/1838) Thanks [@acao](https://github.com/acao)! - Set all cross-runtime build targets to es6 ## 1.4.1 ### Patch Changes -- [`9f8c78ce`](https://github.com/graphql/graphiql/commit/9f8c78ce8c72a9dcf35b3e82bd3129ac17d845e6) - [#1821](https://github.com/graphql/graphiql/pull/1821) Thanks - [@harshithpabbati](https://github.com/harshithpabbati)! - fix: render query - history panel only when it's toggled, instead of hiding with CSS +- [`9f8c78ce`](https://github.com/graphql/graphiql/commit/9f8c78ce8c72a9dcf35b3e82bd3129ac17d845e6) [#1821](https://github.com/graphql/graphiql/pull/1821) Thanks [@harshithpabbati](https://github.com/harshithpabbati)! - fix: render query history panel only when it's toggled, instead of hiding with CSS -* [`dd9397e4`](https://github.com/graphql/graphiql/commit/dd9397e4c693b5ceadbd26d6fa92aa6246aac9c3) - [#1819](https://github.com/graphql/graphiql/pull/1819) Thanks - [@acao](https://github.com/acao)! - `GraphiQL.createClient()` accepts custom - `legacyClient`, exports typescript types, fixes #1800. +* [`dd9397e4`](https://github.com/graphql/graphiql/commit/dd9397e4c693b5ceadbd26d6fa92aa6246aac9c3) [#1819](https://github.com/graphql/graphiql/pull/1819) Thanks [@acao](https://github.com/acao)! - `GraphiQL.createClient()` accepts custom `legacyClient`, exports typescript types, fixes #1800. - `createGraphiQLFetcher` now only attempts an `graphql-ws` connection when only - `subscriptionUrl` is provided. In order to use `graphql-transport-ws`, you'll - need to provide the `legacyClient` option only, and no `subscriptionUrl` or - `wsClient` option. + `createGraphiQLFetcher` now only attempts an `graphql-ws` connection when only `subscriptionUrl` is provided. In order to use `graphql-transport-ws`, you'll need to provide the `legacyClient` option only, and no `subscriptionUrl` or `wsClient` option. -- [`1f92d1dc`](https://github.com/graphql/graphiql/commit/1f92d1dcc0102bdec078263b87ca20cd670a1c86) - [#1804](https://github.com/graphql/graphiql/pull/1804) Thanks - [@maraisr](https://github.com/maraisr)! - Fixes issue where with - IncrementalDelivery directives objects wouldn't deep-merge. +- [`1f92d1dc`](https://github.com/graphql/graphiql/commit/1f92d1dcc0102bdec078263b87ca20cd670a1c86) [#1804](https://github.com/graphql/graphiql/pull/1804) Thanks [@maraisr](https://github.com/maraisr)! - Fixes issue where with IncrementalDelivery directives objects wouldn't deep-merge. -* [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) - [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks - [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 - & 15. `14.5.0` minimum is for built-in typescript types, and another method - only available in `14.4.0` +* [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 & 15. `14.5.0` minimum is for built-in typescript types, and another method only available in `14.4.0` -* Updated dependencies - [[`dd9397e4`](https://github.com/graphql/graphiql/commit/dd9397e4c693b5ceadbd26d6fa92aa6246aac9c3), - [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a)]: +* Updated dependencies [[`dd9397e4`](https://github.com/graphql/graphiql/commit/dd9397e4c693b5ceadbd26d6fa92aa6246aac9c3), [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a)]: - @graphiql/toolkit@0.2.0 ## 1.4.0 ### Patch Changes -- Updated dependencies - [[`b4fc16c0`](https://github.com/graphql/graphiql/commit/b4fc16c025da6f466727dc17cab6026d14c6e7fe)]: +- Updated dependencies [[`b4fc16c0`](https://github.com/graphql/graphiql/commit/b4fc16c025da6f466727dc17cab6026d14c6e7fe)]: - codemirror-graphql@1.0.0 ## 1.4.0 ### Bugfixes -- Fixes the search icon misalignment. (#1776) by - [@iifawzi](https://github.com/iifawzi) -- run `onToggleDocs` when setting `docExplorerOpen` to false (#1768) by - [@ChiragKasat](https://github.com/ChiragKasat) +- Fixes the search icon misalignment. (#1776) by [@iifawzi](https://github.com/iifawzi) +- run `onToggleDocs` when setting `docExplorerOpen` to false (#1768) by [@ChiragKasat](https://github.com/ChiragKasat) ### Minor Changes -- 1c119386: `@defer`, `@stream`, and `graphql-ws` support in a - `createGraphiQLFetcher` utility (#1770) - - - support for `@defer` and `@stream` in `GraphiQL` itself on fetcher execution - and when handling stream payloads - - introduce `@graphiql/toolkit` for types and utilities used to compose - `GraphiQL` and other related libraries - - introduce `@graphiql/create-fetcher` to accept simplified parameters to - generate a `fetcher` that covers the most commonly used `graphql-over-http` - transport spec proposals. using `meros` for multipart http, and `graphql-ws` - for websockets subscriptions. - - use `graphql` and `graphql-express` `experimental-defer-stream` branch in - development until it's merged +- 1c119386: `@defer`, `@stream`, and `graphql-ws` support in a `createGraphiQLFetcher` utility (#1770) + + - support for `@defer` and `@stream` in `GraphiQL` itself on fetcher execution and when handling stream payloads + - introduce `@graphiql/toolkit` for types and utilities used to compose `GraphiQL` and other related libraries + - introduce `@graphiql/create-fetcher` to accept simplified parameters to generate a `fetcher` that covers the most commonly used `graphql-over-http` transport spec proposals. using `meros` for multipart http, and `graphql-ws` for websockets subscriptions. + - use `graphql` and `graphql-express` `experimental-defer-stream` branch in development until it's merged - add cypress e2e tests for `@stream` in different scenarios - add some unit tests for `createGraphiQLFetcher` @@ -1593,13 +987,8 @@ ### Features -- also support fetcher functions that return Promise or Promise - ([#1739](https://github.com/graphql/graphiql/issues/1739)) - ([a804f3c](https://github.com/graphql/graphiql/commit/a804f3c011e7cafb4f8a48a1ba101b875be3540d)) -- implied or external fragments, for - [#612](https://github.com/graphql/graphiql/issues/612) - ([#1750](https://github.com/graphql/graphiql/issues/1750)) - ([cfed265](https://github.com/graphql/graphiql/commit/cfed265e3cf31875b39ea517781a217fcdfcadc2)) +- also support fetcher functions that return Promise or Promise ([#1739](https://github.com/graphql/graphiql/issues/1739)) ([a804f3c](https://github.com/graphql/graphiql/commit/a804f3c011e7cafb4f8a48a1ba101b875be3540d)) +- implied or external fragments, for [#612](https://github.com/graphql/graphiql/issues/612) ([#1750](https://github.com/graphql/graphiql/issues/1750)) ([cfed265](https://github.com/graphql/graphiql/commit/cfed265e3cf31875b39ea517781a217fcdfcadc2)) ## [1.2.2](https://github.com/graphql/graphiql/compare/graphiql@1.2.1...graphiql@1.2.2) (2021-01-03) @@ -1609,44 +998,32 @@ ### Bug Fixes -- display schema description if available - ([050c506](https://github.com/graphql/graphiql/commit/050c506ed4ed2852bf9a5b099f967928d9856156)) -- fix linting issue - ([7117b7c](https://github.com/graphql/graphiql/commit/7117b7ccd2a2872e0051c8751252040d4042e190)) +- display schema description if available ([050c506](https://github.com/graphql/graphiql/commit/050c506ed4ed2852bf9a5b099f967928d9856156)) +- fix linting issue ([7117b7c](https://github.com/graphql/graphiql/commit/7117b7ccd2a2872e0051c8751252040d4042e190)) ## [1.2.0](https://github.com/graphql/graphiql/compare/graphiql@1.1.0...graphiql@1.2.0) (2020-12-08) ### Features -- add AsyncIterable support to fetcher function - ([#1724](https://github.com/graphql/graphiql/issues/1724)) - ([a568af3](https://github.com/graphql/graphiql/commit/a568af3674404b8a15055792c2c35128b2bd711c)) -- provide validation rules via props - ([#1716](https://github.com/graphql/graphiql/issues/1716)) - ([0c5785c](https://github.com/graphql/graphiql/commit/0c5785c82adbd4affb25300ae2d128b42c9b81fe)) +- add AsyncIterable support to fetcher function ([#1724](https://github.com/graphql/graphiql/issues/1724)) ([a568af3](https://github.com/graphql/graphiql/commit/a568af3674404b8a15055792c2c35128b2bd711c)) +- provide validation rules via props ([#1716](https://github.com/graphql/graphiql/issues/1716)) ([0c5785c](https://github.com/graphql/graphiql/commit/0c5785c82adbd4affb25300ae2d128b42c9b81fe)) ## [1.1.0](https://github.com/graphql/graphiql/compare/graphiql@1.0.6...graphiql@1.1.0) (2020-11-28) ### Bug Fixes -- improve props in GraphiQL readme - ([b9b2c8d](https://github.com/graphql/graphiql/commit/b9b2c8d8bde6064a4cdcb01911b024602fcdbe9f)) +- improve props in GraphiQL readme ([b9b2c8d](https://github.com/graphql/graphiql/commit/b9b2c8d8bde6064a4cdcb01911b024602fcdbe9f)) ### Features -- **graphiql:** add prop for adding toolbar content while preserving the default - buttons - ([ea81056](https://github.com/graphql/graphiql/commit/ea81056e09b0a95e1536c79fab27e027739808c4)) -- deeper fragment merging - ([238d0b5](https://github.com/graphql/graphiql/commit/238d0b5e52cfa9354757c9d52050692d152aae21)) +- **graphiql:** add prop for adding toolbar content while preserving the default buttons ([ea81056](https://github.com/graphql/graphiql/commit/ea81056e09b0a95e1536c79fab27e027739808c4)) +- deeper fragment merging ([238d0b5](https://github.com/graphql/graphiql/commit/238d0b5e52cfa9354757c9d52050692d152aae21)) ## [1.0.6](https://github.com/graphql/graphiql/compare/graphiql@1.0.5...graphiql@1.0.6) (2020-10-20) ### Bug Fixes -- enable variable editor when header editor is not enabled - ([#1682](https://github.com/graphql/graphiql/issues/1682)) - ([205fbad](https://github.com/graphql/graphiql/commit/205fbad84806d175d66a6f5598e0a0f521129a16)) +- enable variable editor when header editor is not enabled ([#1682](https://github.com/graphql/graphiql/issues/1682)) ([205fbad](https://github.com/graphql/graphiql/commit/205fbad84806d175d66a6f5598e0a0f521129a16)) ## [1.0.5](https://github.com/graphql/graphiql/compare/graphiql@1.0.4...graphiql@1.0.5) (2020-09-18) @@ -1656,17 +1033,13 @@ ### Bug Fixes -- don't use initial query on every re-render - ([#1663](https://github.com/graphql/graphiql/issues/1663)) - ([5aa890f](https://github.com/graphql/graphiql/commit/5aa890f6e145a7ad49f82cc122e209a291060709)) +- don't use initial query on every re-render ([#1663](https://github.com/graphql/graphiql/issues/1663)) ([5aa890f](https://github.com/graphql/graphiql/commit/5aa890f6e145a7ad49f82cc122e209a291060709)) ## [1.0.3](https://github.com/graphql/graphiql/compare/graphiql@1.0.2...graphiql@1.0.3) (2020-06-24) ### Bug Fixes -- headers tab - highlighting and schema fetch - ([#1593](https://github.com/graphql/graphiql/issues/1593)) - ([0d050ca](https://github.com/graphql/graphiql/commit/0d050caeb5278799f2b1c206d0c61f3ac768e7cd)) +- headers tab - highlighting and schema fetch ([#1593](https://github.com/graphql/graphiql/issues/1593)) ([0d050ca](https://github.com/graphql/graphiql/commit/0d050caeb5278799f2b1c206d0c61f3ac768e7cd)) ## [1.0.2](https://github.com/graphql/graphiql/compare/graphiql@1.0.1...graphiql@1.0.2) (2020-06-19) @@ -1676,31 +1049,17 @@ ### Bug Fixes -- more server side rendering fixes - ([#1581](https://github.com/graphql/graphiql/issues/1581)) - ([881a19f](https://github.com/graphql/graphiql/commit/881a19fbd5fbe5f65678de8074e593be7deb2ede)), - closes [#1573](https://github.com/graphql/graphiql/issues/1573) -- network cancellation for 1.0 - ([#1582](https://github.com/graphql/graphiql/issues/1582)) - ([ad3cc0d](https://github.com/graphql/graphiql/commit/ad3cc0d1567ea49ff5677d4cd8524e5e072b605e)) -- Set headers to localStorage - ([#1578](https://github.com/graphql/graphiql/issues/1578)) - ([cc7a7e2](https://github.com/graphql/graphiql/commit/cc7a7e2f6d25d7e8150dc89c6984e6a04b01566b)) +- more server side rendering fixes ([#1581](https://github.com/graphql/graphiql/issues/1581)) ([881a19f](https://github.com/graphql/graphiql/commit/881a19fbd5fbe5f65678de8074e593be7deb2ede)), closes [#1573](https://github.com/graphql/graphiql/issues/1573) +- network cancellation for 1.0 ([#1582](https://github.com/graphql/graphiql/issues/1582)) ([ad3cc0d](https://github.com/graphql/graphiql/commit/ad3cc0d1567ea49ff5677d4cd8524e5e072b605e)) +- Set headers to localStorage ([#1578](https://github.com/graphql/graphiql/issues/1578)) ([cc7a7e2](https://github.com/graphql/graphiql/commit/cc7a7e2f6d25d7e8150dc89c6984e6a04b01566b)) ## [1.0.0](https://github.com/graphql/graphiql/compare/graphiql@1.0.0-alpha.13...graphiql@1.0.0) (2020-06-11) ### Bug Fixes -- call debounce statements as they are functions - ([#1571](https://github.com/graphql/graphiql/issues/1571)) - ([8541250](https://github.com/graphql/graphiql/commit/85412501307ccfffe258b7fbca74bb9309726a73)) -- fix server side rendering by using type only codemirror import - ([#1573](https://github.com/graphql/graphiql/issues/1573)) - ([1ee60a6](https://github.com/graphql/graphiql/commit/1ee60a6db87d54c7a1e8f1089e52a65f335351b6)), - closes [#118](https://github.com/graphql/graphiql/issues/118) -- Move all componentWillUnMount functionality to respective events - ([#1544](https://github.com/graphql/graphiql/issues/1544)) - ([046b09f](https://github.com/graphql/graphiql/commit/046b09f541e6a9f2ce4b46de590d49c04c916716)) +- call debounce statements as they are functions ([#1571](https://github.com/graphql/graphiql/issues/1571)) ([8541250](https://github.com/graphql/graphiql/commit/85412501307ccfffe258b7fbca74bb9309726a73)) +- fix server side rendering by using type only codemirror import ([#1573](https://github.com/graphql/graphiql/issues/1573)) ([1ee60a6](https://github.com/graphql/graphiql/commit/1ee60a6db87d54c7a1e8f1089e52a65f335351b6)), closes [#118](https://github.com/graphql/graphiql/issues/118) +- Move all componentWillUnMount functionality to respective events ([#1544](https://github.com/graphql/graphiql/issues/1544)) ([046b09f](https://github.com/graphql/graphiql/commit/046b09f541e6a9f2ce4b46de590d49c04c916716)) ## [1.0.0-alpha.13](https://github.com/graphql/graphiql/compare/graphiql@1.0.0-alpha.12...graphiql@1.0.0-alpha.13) (2020-06-04) @@ -1710,52 +1069,36 @@ ### Bug Fixes -- cleanup cache entry from lerna publish - ([4a26218](https://github.com/graphql/graphiql/commit/4a2621808a1aea8b30d5d27b8d86a60bf2b44b01)) -- display variable editor when headers are not enabled - ([ce7b2e2](https://github.com/graphql/graphiql/commit/ce7b2e2b45d530b61e916112e864074cf3a6ddc7)) +- cleanup cache entry from lerna publish ([4a26218](https://github.com/graphql/graphiql/commit/4a2621808a1aea8b30d5d27b8d86a60bf2b44b01)) +- display variable editor when headers are not enabled ([ce7b2e2](https://github.com/graphql/graphiql/commit/ce7b2e2b45d530b61e916112e864074cf3a6ddc7)) ## [1.0.0-alpha.11](https://github.com/graphql/graphiql/compare/graphiql@1.0.0-alpha.10...graphiql@1.0.0-alpha.11) (2020-05-28) ### Bug Fixes -- Safe setState ([#1547](https://github.com/graphql/graphiql/issues/1547)) - ([f85969c](https://github.com/graphql/graphiql/commit/f85969c7e77e8fd269e026be36cc5065d6d33237)) -- trigger edit variables on first render - ([#1545](https://github.com/graphql/graphiql/issues/1545)) - ([e54e1a8](https://github.com/graphql/graphiql/commit/e54e1a8691483f1d336231314130d9822481b3be)) +- Safe setState ([#1547](https://github.com/graphql/graphiql/issues/1547)) ([f85969c](https://github.com/graphql/graphiql/commit/f85969c7e77e8fd269e026be36cc5065d6d33237)) +- trigger edit variables on first render ([#1545](https://github.com/graphql/graphiql/issues/1545)) ([e54e1a8](https://github.com/graphql/graphiql/commit/e54e1a8691483f1d336231314130d9822481b3be)) ### Features -- Add Headers Editor to GraphiQL - ([#1543](https://github.com/graphql/graphiql/issues/1543)) - ([3faa1ac](https://github.com/graphql/graphiql/commit/3faa1ac46514252e90abf2b2bda0841edf6115ea)) +- Add Headers Editor to GraphiQL ([#1543](https://github.com/graphql/graphiql/issues/1543)) ([3faa1ac](https://github.com/graphql/graphiql/commit/3faa1ac46514252e90abf2b2bda0841edf6115ea)) ## [1.0.0-alpha.10](https://github.com/graphql/graphiql/compare/graphiql@1.0.0-alpha.9...graphiql@1.0.0-alpha.10) (2020-05-19) ### Bug Fixes -- graphiql non-relative import issues - ([#1534](https://github.com/graphql/graphiql/issues/1534)) fixes - [#1530](https://github.com/graphql/graphiql/issues/1530) - ([0ac9fa0](https://github.com/graphql/graphiql/commit/0ac9fa0a8dcdf8464c8ce31c487ebcfd6b9536a8)) +- graphiql non-relative import issues ([#1534](https://github.com/graphql/graphiql/issues/1534)) fixes [#1530](https://github.com/graphql/graphiql/issues/1530) ([0ac9fa0](https://github.com/graphql/graphiql/commit/0ac9fa0a8dcdf8464c8ce31c487ebcfd6b9536a8)) ## [1.0.0-alpha.9](https://github.com/graphql/graphiql/compare/graphiql@1.0.0-alpha.8...graphiql@1.0.0-alpha.9) (2020-05-17) ### Bug Fixes -- remove problematic file resolution module from webpack sco… - ([#1489](https://github.com/graphql/graphiql/issues/1489)) - ([8dab038](https://github.com/graphql/graphiql/commit/8dab0385772f443f73b559e2c668080733168236)) +- remove problematic file resolution module from webpack sco… ([#1489](https://github.com/graphql/graphiql/issues/1489)) ([8dab038](https://github.com/graphql/graphiql/commit/8dab0385772f443f73b559e2c668080733168236)) ### Features -- introduce proper vscode completion kinds - ([#1488](https://github.com/graphql/graphiql/issues/1488)) - ([f19aa0d](https://github.com/graphql/graphiql/commit/f19aa0ddde6109526c101c8a487f43bbb8238394)) -- Monaco Mode - Phase 2 - Mode & Worker - ([#1459](https://github.com/graphql/graphiql/issues/1459)) - ([bc95fb4](https://github.com/graphql/graphiql/commit/bc95fb46459a4437ff9471ff43c98e1c5c50f51e)) +- introduce proper vscode completion kinds ([#1488](https://github.com/graphql/graphiql/issues/1488)) ([f19aa0d](https://github.com/graphql/graphiql/commit/f19aa0ddde6109526c101c8a487f43bbb8238394)) +- Monaco Mode - Phase 2 - Mode & Worker ([#1459](https://github.com/graphql/graphiql/issues/1459)) ([bc95fb4](https://github.com/graphql/graphiql/commit/bc95fb46459a4437ff9471ff43c98e1c5c50f51e)) ## [1.0.0-alpha.8](https://github.com/graphql/graphiql/compare/graphiql@1.0.0-alpha.7...graphiql@1.0.0-alpha.8) (2020-04-10) @@ -1773,18 +1116,13 @@ ### Features -- upgrade to graphql@15.0.0 for - [#1191](https://github.com/graphql/graphiql/issues/1191) - ([#1204](https://github.com/graphql/graphiql/issues/1204)) - ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) +- upgrade to graphql@15.0.0 for [#1191](https://github.com/graphql/graphiql/issues/1191) ([#1204](https://github.com/graphql/graphiql/issues/1204)) ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) ## [1.0.0-alpha.4](https://github.com/graphql/graphiql/compare/graphiql@1.0.0-alpha.3...graphiql@1.0.0-alpha.4) (2020-04-03) ### Bug Fixes -- fix query argument missing from onEditQuery call - ([#1440](https://github.com/graphql/graphiql/issues/1440)) - ([6c335a8](https://github.com/graphql/graphiql/commit/6c335a813f6101afded00c0e869c337a7ca44020)) +- fix query argument missing from onEditQuery call ([#1440](https://github.com/graphql/graphiql/issues/1440)) ([6c335a8](https://github.com/graphql/graphiql/commit/6c335a813f6101afded00c0e869c337a7ca44020)) ## [1.0.0-alpha.3](https://github.com/graphql/graphiql/compare/graphiql@1.0.0-alpha.2...graphiql@1.0.0-alpha.3) (2020-03-20) @@ -1794,51 +1132,28 @@ ### Bug Fixes -- Fix typo in documentation (comments) - ([#1431](https://github.com/graphql/graphiql/issues/1431)) - ([fdda8f0](https://github.com/graphql/graphiql/commit/fdda8f04479412d22e9a3e9215c7caa5369e7d83)) -- initial request cache set, import tsc bugs - ([#1266](https://github.com/graphql/graphiql/issues/1266)) - ([6b98f8a](https://github.com/graphql/graphiql/commit/6b98f8a442d4a8ea160fb90a29acf33f5382db2e)) +- Fix typo in documentation (comments) ([#1431](https://github.com/graphql/graphiql/issues/1431)) ([fdda8f0](https://github.com/graphql/graphiql/commit/fdda8f04479412d22e9a3e9215c7caa5369e7d83)) +- initial request cache set, import tsc bugs ([#1266](https://github.com/graphql/graphiql/issues/1266)) ([6b98f8a](https://github.com/graphql/graphiql/commit/6b98f8a442d4a8ea160fb90a29acf33f5382db2e)) ## [1.0.0-alpha.1](https://github.com/graphql/graphiql/compare/graphiql@0.17.5...graphiql@1.0.0-alpha.1) (2020-01-18) ### Bug Fixes -- hmr, file resolution warnings - ([69bf701](https://github.com/graphql/graphiql/commit/69bf701)) -- prefer displayName over type equality for children overrides - ([e4cec0a](https://github.com/graphql/graphiql/commit/e4cec0a)) - - remove use of `findDOMNode` - ([0b12323](https://github.com/graphql/graphiql/commit/0b12323)) by - [@ryan-m-walker](https://github.com/ryan-m-walker) +- hmr, file resolution warnings ([69bf701](https://github.com/graphql/graphiql/commit/69bf701)) +- prefer displayName over type equality for children overrides ([e4cec0a](https://github.com/graphql/graphiql/commit/e4cec0a)) + - remove use of `findDOMNode` ([0b12323](https://github.com/graphql/graphiql/commit/0b12323)) by [@ryan-m-walker](https://github.com/ryan-m-walker) ### Features -- deprecate support for 15, support react 16 features - ([#1107](https://github.com/graphql/graphiql/issues/1107)) - ([bc4b6fc](https://github.com/graphql/graphiql/commit/bc4b6fc)) -- **graphiql-theming:** Toolbar component - ([#1203](https://github.com/graphql/graphiql/issues/1203)) by - [@walaura](https://github.com/walaura) - ([adb73f5](https://github.com/graphql/graphiql/commit/adb73f5)) -- [new-ui] Tabs & Tab-bars - ([#1198](https://github.com/graphql/graphiql/issues/1198)) - ([033f971](https://github.com/graphql/graphiql/commit/033f971)) by - [@walaura](https://github.com/walaura) -- replace use of enzyme with react-testing-library - ([#1144](https://github.com/graphql/graphiql/issues/1144)) by - [@ryan-m-walker](https://github.com/ryan-m-walker) - ([de73d6c](https://github.com/graphql/graphiql/commit/de73d6c)) -- storybook+theme-ui for the new design - ([#1145](https://github.com/graphql/graphiql/issues/1145)) - ([7f97c0c](https://github.com/graphql/graphiql/commit/7f97c0c)) by - [@walaura](https://github.com/walaura) +- deprecate support for 15, support react 16 features ([#1107](https://github.com/graphql/graphiql/issues/1107)) ([bc4b6fc](https://github.com/graphql/graphiql/commit/bc4b6fc)) +- **graphiql-theming:** Toolbar component ([#1203](https://github.com/graphql/graphiql/issues/1203)) by [@walaura](https://github.com/walaura) ([adb73f5](https://github.com/graphql/graphiql/commit/adb73f5)) +- [new-ui] Tabs & Tab-bars ([#1198](https://github.com/graphql/graphiql/issues/1198)) ([033f971](https://github.com/graphql/graphiql/commit/033f971)) by [@walaura](https://github.com/walaura) +- replace use of enzyme with react-testing-library ([#1144](https://github.com/graphql/graphiql/issues/1144)) by [@ryan-m-walker](https://github.com/ryan-m-walker) ([de73d6c](https://github.com/graphql/graphiql/commit/de73d6c)) +- storybook+theme-ui for the new design ([#1145](https://github.com/graphql/graphiql/issues/1145)) ([7f97c0c](https://github.com/graphql/graphiql/commit/7f97c0c)) by [@walaura](https://github.com/walaura) ### BREAKING CHANGES -- Deprecate support for React 15. Please use React 16.8 or greater for hooks - support. Co-authored-by: @ryan-m-walker, @acao Reviewed-by: @benjie +- Deprecate support for React 15. Please use React 16.8 or greater for hooks support. Co-authored-by: @ryan-m-walker, @acao Reviewed-by: @benjie ## [0.17.5](https://github.com/graphql/graphiql/compare/graphiql@0.17.4...graphiql@0.17.5) (2019-12-09) @@ -1848,79 +1163,52 @@ ### Bug Fixes -- graphiql babel test ignore paths - ([e1588d9](https://github.com/graphql/graphiql/commit/e1588d9)) +- graphiql babel test ignore paths ([e1588d9](https://github.com/graphql/graphiql/commit/e1588d9)) ## [0.17.3](https://github.com/graphql/graphiql/compare/graphiql@0.17.2...graphiql@0.17.3) (2019-12-09) ### Bug Fixes -- express-graphql version - ([e9848b0](https://github.com/graphql/graphiql/commit/e9848b0)) -- test output, webpack resolution, clean build - ([3b1c2c1](https://github.com/graphql/graphiql/commit/3b1c2c1)) +- express-graphql version ([e9848b0](https://github.com/graphql/graphiql/commit/e9848b0)) +- test output, webpack resolution, clean build ([3b1c2c1](https://github.com/graphql/graphiql/commit/3b1c2c1)) ## [0.17.2](https://github.com/graphql/graphiql/compare/graphiql@0.17.1...graphiql@0.17.2) (2019-12-03) ### Bug Fixes -- ensure css files move with babel dist - ([ca95547](https://github.com/graphql/graphiql/commit/ca95547)) -- remove css from downstream components. soon to be replaced w styled - ([e765543](https://github.com/graphql/graphiql/commit/e765543)) +- ensure css files move with babel dist ([ca95547](https://github.com/graphql/graphiql/commit/ca95547)) +- remove css from downstream components. soon to be replaced w styled ([e765543](https://github.com/graphql/graphiql/commit/e765543)) ## [0.17.1](https://github.com/graphql/graphiql/compare/graphiql@0.17.0...graphiql@0.17.1) (2019-12-03) ### Bug Fixes -- **graphiql:** duplicate query history key issue, fixes - [#988](https://github.com/graphql/graphiql/issues/988) - ([#1035](https://github.com/graphql/graphiql/issues/1035)) - ([69c6826](https://github.com/graphql/graphiql/commit/69c6826)) -- convert browserify build to webpack, fixes - [#976](https://github.com/graphql/graphiql/issues/976) - ([#1001](https://github.com/graphql/graphiql/issues/1001)) - ([3caf041](https://github.com/graphql/graphiql/commit/3caf041)) -- hints vertical scroll - ([216eaeb](https://github.com/graphql/graphiql/commit/216eaeb)) +- **graphiql:** duplicate query history key issue, fixes [#988](https://github.com/graphql/graphiql/issues/988) ([#1035](https://github.com/graphql/graphiql/issues/1035)) ([69c6826](https://github.com/graphql/graphiql/commit/69c6826)) +- convert browserify build to webpack, fixes [#976](https://github.com/graphql/graphiql/issues/976) ([#1001](https://github.com/graphql/graphiql/issues/1001)) ([3caf041](https://github.com/graphql/graphiql/commit/3caf041)) +- hints vertical scroll ([216eaeb](https://github.com/graphql/graphiql/commit/216eaeb)) ## [0.17.0](https://github.com/graphql/graphiql/compare/graphiql@0.16.0...graphiql@0.17.0) (2019-11-26) ### Bug Fixes -- security bump, resolves - [#1004](https://github.com/graphql/graphiql/issues/1004), - SNYK-JS-MARKDOWNIT-459438 - ([89c83db](https://github.com/graphql/graphiql/commit/89c83db)) -- webpack resolutions for - [#882](https://github.com/graphql/graphiql/issues/882), add webpack example - ([ea9df3e](https://github.com/graphql/graphiql/commit/ea9df3e)) +- security bump, resolves [#1004](https://github.com/graphql/graphiql/issues/1004), SNYK-JS-MARKDOWNIT-459438 ([89c83db](https://github.com/graphql/graphiql/commit/89c83db)) +- webpack resolutions for [#882](https://github.com/graphql/graphiql/issues/882), add webpack example ([ea9df3e](https://github.com/graphql/graphiql/commit/ea9df3e)) ### Features -- **graphiql:** Prettify also formats query variables - ([b7d0bfd](https://github.com/graphql/graphiql/commit/b7d0bfd)) +- **graphiql:** Prettify also formats query variables ([b7d0bfd](https://github.com/graphql/graphiql/commit/b7d0bfd)) ## [0.16.0](https://github.com/graphql/graphiql/compare/graphiql@0.15.1...graphiql@0.16.0) (2019-10-19) ### Bug Fixes -- **accessibility:** improve accessibility of all components - ([#967](https://github.com/graphql/graphiql/issues/967)) - ([73a3f90](https://github.com/graphql/graphiql/commit/73a3f90)) -- **css:** added minimum width for result panel in GraphiQL - ([#980](https://github.com/graphql/graphiql/issues/980)) - ([0c8b7ad](https://github.com/graphql/graphiql/commit/0c8b7ad)) -- **graphiql:** better quota management - ([#764](https://github.com/graphql/graphiql/issues/764)) - ([7efed6c](https://github.com/graphql/graphiql/commit/7efed6c)) +- **accessibility:** improve accessibility of all components ([#967](https://github.com/graphql/graphiql/issues/967)) ([73a3f90](https://github.com/graphql/graphiql/commit/73a3f90)) +- **css:** added minimum width for result panel in GraphiQL ([#980](https://github.com/graphql/graphiql/issues/980)) ([0c8b7ad](https://github.com/graphql/graphiql/commit/0c8b7ad)) +- **graphiql:** better quota management ([#764](https://github.com/graphql/graphiql/issues/764)) ([7efed6c](https://github.com/graphql/graphiql/commit/7efed6c)) ### Features -- **css:** beautify code tag in doc explorer - ([#959](https://github.com/graphql/graphiql/issues/959)) resolves - [#949](https://github.com/graphql/graphiql/issues/949) - ([30810a2](https://github.com/graphql/graphiql/commit/30810a2)) +- **css:** beautify code tag in doc explorer ([#959](https://github.com/graphql/graphiql/issues/959)) resolves [#949](https://github.com/graphql/graphiql/issues/949) ([30810a2](https://github.com/graphql/graphiql/commit/30810a2)) ### [0.15.1](https://github.com/graphql/graphiql/compare/graphiql@0.15.0...graphiql@0.15.1) (2019-10-04) @@ -1932,27 +1220,15 @@ ### Bug Fixes -- check `window` is defined before using it - ([#962](https://github.com/graphql/graphiql/issues/962)) - ([e4866ad](https://github.com/graphql/graphiql/commit/e4866ad)) -- **graphiql:** prettify keybinding bug for Firefox. Fixes - [#905](https://github.com/graphql/graphiql/issues/905) - ([fdf98ba](https://github.com/graphql/graphiql/commit/fdf98ba)) -- check `this.editor` exist before `this.editor.off` in QueryEditor - ([#669](https://github.com/graphql/graphiql/issues/669)) - ([ca226ee](https://github.com/graphql/graphiql/commit/ca226ee)), closes - [#665](https://github.com/graphql/graphiql/issues/665) -- extraKeys bugfix window regression - ([f3d0427](https://github.com/graphql/graphiql/commit/f3d0427)) -- preserve ctrl-f key for macOS - ([7c381f9](https://github.com/graphql/graphiql/commit/7c381f9)) +- check `window` is defined before using it ([#962](https://github.com/graphql/graphiql/issues/962)) ([e4866ad](https://github.com/graphql/graphiql/commit/e4866ad)) +- **graphiql:** prettify keybinding bug for Firefox. Fixes [#905](https://github.com/graphql/graphiql/issues/905) ([fdf98ba](https://github.com/graphql/graphiql/commit/fdf98ba)) +- check `this.editor` exist before `this.editor.off` in QueryEditor ([#669](https://github.com/graphql/graphiql/issues/669)) ([ca226ee](https://github.com/graphql/graphiql/commit/ca226ee)), closes [#665](https://github.com/graphql/graphiql/issues/665) +- extraKeys bugfix window regression ([f3d0427](https://github.com/graphql/graphiql/commit/f3d0427)) +- preserve ctrl-f key for macOS ([7c381f9](https://github.com/graphql/graphiql/commit/7c381f9)) ### Features -- convert LSP from flow to typescript - ([#957](https://github.com/graphql/graphiql/issues/957)) - [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) - ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) +- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) ## 0.13.2 (2019-06-21) @@ -1960,14 +1236,9 @@ ### Bug Fixes -- check `this.editor` exist before `this.editor.off` in QueryEditor - ([#669](https://github.com/graphql/graphiql/issues/669)) - ([ca226ee](https://github.com/graphql/graphiql/commit/ca226ee)), closes - [#665](https://github.com/graphql/graphiql/issues/665) -- extraKeys bugfix window regression - ([f3d0427](https://github.com/graphql/graphiql/commit/f3d0427)) -- preserve ctrl-f key for macOS - ([7c381f9](https://github.com/graphql/graphiql/commit/7c381f9)) +- check `this.editor` exist before `this.editor.off` in QueryEditor ([#669](https://github.com/graphql/graphiql/issues/669)) ([ca226ee](https://github.com/graphql/graphiql/commit/ca226ee)), closes [#665](https://github.com/graphql/graphiql/issues/665) +- extraKeys bugfix window regression ([f3d0427](https://github.com/graphql/graphiql/commit/f3d0427)) +- preserve ctrl-f key for macOS ([7c381f9](https://github.com/graphql/graphiql/commit/7c381f9)) - remove newline ([19f5d1d](https://github.com/graphql/graphiql/commit/19f5d1d)) ## 0.13.2 (2019-06-21) diff --git a/packages/graphiql/__mocks__/@graphiql/react.tsx b/packages/graphiql/__mocks__/@graphiql/react.tsx index f94190e49c6..671964f7844 100644 --- a/packages/graphiql/__mocks__/@graphiql/react.tsx +++ b/packages/graphiql/__mocks__/@graphiql/react.tsx @@ -173,10 +173,9 @@ function useMockedEditor(name: Name, onEdit?: (newValue: string) => void) { mockTextArea.className = 'mockCodeMirror'; const mockWrapper = document.createElement('div'); - mockWrapper.appendChild(mockGutter); - mockWrapper.appendChild(mockTextArea); + mockWrapper.append(mockGutter, mockTextArea); - ref.current.appendChild(mockWrapper); + ref.current.append(mockWrapper); setEditor({ getValue() { diff --git a/packages/graphiql/__mocks__/codemirror.ts b/packages/graphiql/__mocks__/codemirror.ts index 68b795589d6..a70296e7ebb 100644 --- a/packages/graphiql/__mocks__/codemirror.ts +++ b/packages/graphiql/__mocks__/codemirror.ts @@ -9,9 +9,8 @@ function CodeMirror(node: HTMLElement, { value, ...options }) { _emit('change', e); }); mockTextArea.value = value; - mockWrapper.appendChild(mockGutter); - mockWrapper.appendChild(mockTextArea); - node.appendChild(mockWrapper); + mockWrapper.append(mockGutter, mockTextArea); + node.append(mockWrapper); function _emit(event, data) { if (_eventListeners[event]) { diff --git a/packages/graphiql/cypress/e2e/init.cy.ts b/packages/graphiql/cypress/e2e/init.cy.ts index 7fb1d9c84ed..cd5d8433499 100644 --- a/packages/graphiql/cypress/e2e/init.cy.ts +++ b/packages/graphiql/cypress/e2e/init.cy.ts @@ -38,7 +38,9 @@ describe('GraphiQL On Initialization', () => { ]; cy.visit(`/`); cy.get('.graphiql-query-editor').contains('# Welcome to GraphiQL'); - containers.forEach(cSelector => cy.get(cSelector).should('be.visible')); + for (const cSelector of containers) { + cy.get(cSelector).should('be.visible'); + } }); it('Executes a GraphQL query over HTTP that has the expected result', () => { diff --git a/packages/graphiql/package.json b/packages/graphiql/package.json index 41bde464148..e6565d60a46 100644 --- a/packages/graphiql/package.json +++ b/packages/graphiql/package.json @@ -1,6 +1,6 @@ { "name": "graphiql", - "version": "2.4.1", + "version": "2.4.2", "description": "An graphical interactive in-browser GraphQL IDE.", "contributors": [ "Hyohyeon Jeong ", @@ -50,9 +50,9 @@ "webpack": "webpack-cli --config resources/webpack.config.js" }, "dependencies": { - "@graphiql/react": "^0.17.1", - "@graphiql/toolkit": "^0.8.3", - "graphql-language-service": "^5.1.3", + "@graphiql/react": "^0.17.2", + "@graphiql/toolkit": "^0.8.4", + "graphql-language-service": "^5.1.4", "markdown-it": "^12.2.0" }, "peerDependencies": { diff --git a/packages/graphiql/resources/renderExample.js b/packages/graphiql/resources/renderExample.js index 8c989ceb056..011cc0dae0f 100644 --- a/packages/graphiql/resources/renderExample.js +++ b/packages/graphiql/resources/renderExample.js @@ -13,18 +13,15 @@ */ // Parse the search string to get url parameters. -var parameters = {}; -window.location.search - .slice(1) - .split('&') - .forEach(function (entry) { - var eq = entry.indexOf('='); - if (eq >= 0) { - parameters[decodeURIComponent(entry.slice(0, eq))] = decodeURIComponent( - entry.slice(eq + 1), - ); - } - }); +const parameters = {}; +for (const entry of window.location.search.slice(1).split('&')) { + const eq = entry.indexOf('='); + if (eq >= 0) { + parameters[decodeURIComponent(entry.slice(0, eq))] = decodeURIComponent( + entry.slice(eq + 1), + ); + } +} // When the query and variables string is edited, update the URL bar so // that it can be easily shared. @@ -52,7 +49,7 @@ function onTabChange(tabsState) { } function updateURL() { - var newSearch = + const newSearch = '?' + Object.keys(parameters) .filter(function (key) { diff --git a/packages/graphiql/resources/webpack.config.js b/packages/graphiql/resources/webpack.config.js index b8814e36509..c9e23e20a64 100644 --- a/packages/graphiql/resources/webpack.config.js +++ b/packages/graphiql/resources/webpack.config.js @@ -30,8 +30,12 @@ const resultConfig = { // bypass simple localhost CORS restrictions by setting // these to 127.0.0.1 in /etc/hosts allowedHosts: ['local.example.com', 'graphiql.com'], - before: require('../test/beforeDevServer'), - after: require('../test/afterDevServer'), + setupMiddlewares: (middlewares, devServer) => { + require('../test/beforeDevServer')(devServer.app); + require('../test/afterDevServer')(); + + return middlewares; + }, }, devtool: isDev ? 'cheap-module-source-map' : 'source-map', externals: { diff --git a/packages/graphiql/src/components/GraphiQL.tsx b/packages/graphiql/src/components/GraphiQL.tsx index fcaf397c1cd..0db2be31ca8 100644 --- a/packages/graphiql/src/components/GraphiQL.tsx +++ b/packages/graphiql/src/components/GraphiQL.tsx @@ -249,7 +249,7 @@ export function GraphiQLInterface(props: GraphiQLInterfaceProps) { props.defaultEditorToolsVisibility === 'variables' || props.defaultEditorToolsVisibility === 'headers' ) { - return undefined; + return; } if (typeof props.defaultEditorToolsVisibility === 'boolean') { diff --git a/packages/graphiql/test/beforeDevServer.js b/packages/graphiql/test/beforeDevServer.js index fe3415f0c03..ceefb7cfc59 100644 --- a/packages/graphiql/test/beforeDevServer.js +++ b/packages/graphiql/test/beforeDevServer.js @@ -24,7 +24,7 @@ module.exports = function beforeDevServer(app, _server, _compiler) { app.use('/images', express.static(path.join(__dirname, 'images'))); app.use( - '/renderExample.js', + '/resources/renderExample.js', express.static(path.join(__dirname, '../resources/renderExample.js')), ); }; diff --git a/packages/graphql-language-service-cli/CHANGELOG.md b/packages/graphql-language-service-cli/CHANGELOG.md index 7a7ae18cbbb..b50b5c5b91c 100644 --- a/packages/graphql-language-service-cli/CHANGELOG.md +++ b/packages/graphql-language-service-cli/CHANGELOG.md @@ -1,18 +1,22 @@ # graphql-language-service-cli +## 3.3.18 + +### Patch Changes + +- [#3109](https://github.com/graphql/graphiql/pull/3109) [`51007002`](https://github.com/graphql/graphiql/commit/510070028b7d8e98f2ba25f396519976aea5fa4b) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-floating-promises` eslint rule + +- Updated dependencies [[`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9), [`06d39823`](https://github.com/graphql/graphiql/commit/06d39823e093c8441fea469446c25f18a664e778), [`51007002`](https://github.com/graphql/graphiql/commit/510070028b7d8e98f2ba25f396519976aea5fa4b), [`15c26eb6`](https://github.com/graphql/graphiql/commit/15c26eb6d621a85df9eecb2b8a5fa009fa2fe040)]: + - graphql-language-service@5.1.4 + - graphql-language-service-server@2.9.8 + ## 3.3.17 ### Patch Changes -- [#3046](https://github.com/graphql/graphiql/pull/3046) - [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) - Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index - access +- [#3046](https://github.com/graphql/graphiql/pull/3046) [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index access -- Updated dependencies - [[`9d9478ae`](https://github.com/graphql/graphiql/commit/9d9478aea7536d2957e4371cef4f30577db2113d), - [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), - [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: +- Updated dependencies [[`9d9478ae`](https://github.com/graphql/graphiql/commit/9d9478aea7536d2957e4371cef4f30577db2113d), [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: - graphql-language-service-server@2.9.7 - graphql-language-service@5.1.3 @@ -20,18 +24,9 @@ ### Patch Changes -- [#2940](https://github.com/graphql/graphiql/pull/2940) - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-node-protocol` rule - -- Updated dependencies - [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), - [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), - [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), - [`90350022`](https://github.com/graphql/graphiql/commit/90350022334d9fcce0f4b72b3b0f7a12d21f78f9), - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: +- [#2940](https://github.com/graphql/graphiql/pull/2940) [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-node-protocol` rule + +- Updated dependencies [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), [`90350022`](https://github.com/graphql/graphiql/commit/90350022334d9fcce0f4b72b3b0f7a12d21f78f9), [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: - graphql-language-service@5.1.2 - graphql-language-service-server@2.9.6 @@ -39,35 +34,13 @@ ### Patch Changes -- [#2922](https://github.com/graphql/graphiql/pull/2922) - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) - Thanks [@B2o5T](https://github.com/B2o5T)! - extends - `plugin:import/recommended` and fix warnings - -- [#2966](https://github.com/graphql/graphiql/pull/2966) - [`f9aa87dc`](https://github.com/graphql/graphiql/commit/f9aa87dc6a88ed8a8a0a94de520c7a41fff8ffde) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `sonarjs/no-small-switch` - and `sonarjs/no-duplicated-branches` rules - -- [#2938](https://github.com/graphql/graphiql/pull/2938) - [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/throw-new-error` - rule - -- Updated dependencies - [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), - [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), - [`f9aa87dc`](https://github.com/graphql/graphiql/commit/f9aa87dc6a88ed8a8a0a94de520c7a41fff8ffde), - [`10e97bbe`](https://github.com/graphql/graphiql/commit/10e97bbe6c9ff81bae73b11ba81ac2b69eca2772), - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), - [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), - [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d), - [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), - [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), - [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171), - [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e)]: +- [#2922](https://github.com/graphql/graphiql/pull/2922) [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) Thanks [@B2o5T](https://github.com/B2o5T)! - extends `plugin:import/recommended` and fix warnings + +- [#2966](https://github.com/graphql/graphiql/pull/2966) [`f9aa87dc`](https://github.com/graphql/graphiql/commit/f9aa87dc6a88ed8a8a0a94de520c7a41fff8ffde) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `sonarjs/no-small-switch` and `sonarjs/no-duplicated-branches` rules + +- [#2938](https://github.com/graphql/graphiql/pull/2938) [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/throw-new-error` rule + +- Updated dependencies [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), [`f9aa87dc`](https://github.com/graphql/graphiql/commit/f9aa87dc6a88ed8a8a0a94de520c7a41fff8ffde), [`10e97bbe`](https://github.com/graphql/graphiql/commit/10e97bbe6c9ff81bae73b11ba81ac2b69eca2772), [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d), [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171), [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e)]: - graphql-language-service@5.1.1 - graphql-language-service-server@2.9.5 @@ -75,118 +48,88 @@ ### Patch Changes -- [#2901](https://github.com/graphql/graphiql/pull/2901) - [`eff4fd6b`](https://github.com/graphql/graphiql/commit/eff4fd6b9087c2d9cdb260ee2502a31d23769c3f) - Thanks [@acao](https://github.com/acao)! - Reload the language service when a - legacy format .graphqlconfig file has changed +- [#2901](https://github.com/graphql/graphiql/pull/2901) [`eff4fd6b`](https://github.com/graphql/graphiql/commit/eff4fd6b9087c2d9cdb260ee2502a31d23769c3f) Thanks [@acao](https://github.com/acao)! - Reload the language service when a legacy format .graphqlconfig file has changed -- Updated dependencies - [[`eff4fd6b`](https://github.com/graphql/graphiql/commit/eff4fd6b9087c2d9cdb260ee2502a31d23769c3f)]: +- Updated dependencies [[`eff4fd6b`](https://github.com/graphql/graphiql/commit/eff4fd6b9087c2d9cdb260ee2502a31d23769c3f)]: - graphql-language-service-server@2.9.4 ## 3.3.13 ### Patch Changes -- [#2900](https://github.com/graphql/graphiql/pull/2900) - [`8989ffce`](https://github.com/graphql/graphiql/commit/8989ffce7d6beca874e70f5a1ff066102580173a) - Thanks [@acao](https://github.com/acao)! - use decorators-legacy @babel/parser - plugin so that all styles of decorator usage are supported -- Updated dependencies - [[`8989ffce`](https://github.com/graphql/graphiql/commit/8989ffce7d6beca874e70f5a1ff066102580173a)]: +- [#2900](https://github.com/graphql/graphiql/pull/2900) [`8989ffce`](https://github.com/graphql/graphiql/commit/8989ffce7d6beca874e70f5a1ff066102580173a) Thanks [@acao](https://github.com/acao)! - use decorators-legacy @babel/parser plugin so that all styles of decorator usage are supported +- Updated dependencies [[`8989ffce`](https://github.com/graphql/graphiql/commit/8989ffce7d6beca874e70f5a1ff066102580173a)]: - graphql-language-service-server@2.9.3 ## 3.3.12 ### Patch Changes -- Updated dependencies - [[`bdd1bd04`](https://github.com/graphql/graphiql/commit/bdd1bd045fc6610ccaae4745b8ecc10004594274), - [`967006a6`](https://github.com/graphql/graphiql/commit/967006a68e56f8f3a605c69fee5f920afdb6d8cf)]: +- Updated dependencies [[`bdd1bd04`](https://github.com/graphql/graphiql/commit/bdd1bd045fc6610ccaae4745b8ecc10004594274), [`967006a6`](https://github.com/graphql/graphiql/commit/967006a68e56f8f3a605c69fee5f920afdb6d8cf)]: - graphql-language-service-server@2.9.2 ## 3.3.11 ### Patch Changes -- [#2829](https://github.com/graphql/graphiql/pull/2829) - [`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10) - Thanks [@acao](https://github.com/acao)! - svelte language support, using the - vue sfc parser introduced for vue support +- [#2829](https://github.com/graphql/graphiql/pull/2829) [`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10) Thanks [@acao](https://github.com/acao)! - svelte language support, using the vue sfc parser introduced for vue support -- Updated dependencies - [[`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10), - [`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10)]: +- Updated dependencies [[`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10), [`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10)]: - graphql-language-service-server@2.9.1 ## 3.3.10 ### Patch Changes -- Updated dependencies - [[`b422003c`](https://github.com/graphql/graphiql/commit/b422003c2403072e96d14f920a3f0f1dc1f4f708)]: +- Updated dependencies [[`b422003c`](https://github.com/graphql/graphiql/commit/b422003c2403072e96d14f920a3f0f1dc1f4f708)]: - graphql-language-service-server@2.9.0 ## 3.3.9 ### Patch Changes -- Updated dependencies - [[`929152f8`](https://github.com/graphql/graphiql/commit/929152f8ea076ffa3bf34b83445473331c3bdb67)]: +- Updated dependencies [[`929152f8`](https://github.com/graphql/graphiql/commit/929152f8ea076ffa3bf34b83445473331c3bdb67)]: - graphql-language-service-server@2.8.9 ## 3.3.8 ### Patch Changes -- [#2812](https://github.com/graphql/graphiql/pull/2812) - [`cf2e3061`](https://github.com/graphql/graphiql/commit/cf2e3061f67ef5cf6b890e217d20915d0eaec1bd) - Thanks [@acao](https://github.com/acao)! - fix a bundling bug for vscode, - rolling back graphql-config upgrade +- [#2812](https://github.com/graphql/graphiql/pull/2812) [`cf2e3061`](https://github.com/graphql/graphiql/commit/cf2e3061f67ef5cf6b890e217d20915d0eaec1bd) Thanks [@acao](https://github.com/acao)! - fix a bundling bug for vscode, rolling back graphql-config upgrade -- Updated dependencies - [[`cf2e3061`](https://github.com/graphql/graphiql/commit/cf2e3061f67ef5cf6b890e217d20915d0eaec1bd)]: +- Updated dependencies [[`cf2e3061`](https://github.com/graphql/graphiql/commit/cf2e3061f67ef5cf6b890e217d20915d0eaec1bd)]: - graphql-language-service-server@2.8.8 ## 3.3.7 ### Patch Changes -- Updated dependencies - [[`f688422e`](https://github.com/graphql/graphiql/commit/f688422ed87ddd411cf3552fa6d9a5a367cd8662)]: +- Updated dependencies [[`f688422e`](https://github.com/graphql/graphiql/commit/f688422ed87ddd411cf3552fa6d9a5a367cd8662)]: - graphql-language-service-server@2.8.7 ## 3.3.6 ### Patch Changes -- Updated dependencies - [[`a2071504`](https://github.com/graphql/graphiql/commit/a20715046fe7684bb9b17fbc9f5637b44e5210d6)]: +- Updated dependencies [[`a2071504`](https://github.com/graphql/graphiql/commit/a20715046fe7684bb9b17fbc9f5637b44e5210d6)]: - graphql-language-service-server@2.8.6 ## 3.3.5 ### Patch Changes -- [#2616](https://github.com/graphql/graphiql/pull/2616) - [`b0d7f06c`](https://github.com/graphql/graphiql/commit/b0d7f06cf9ec6fd6b1dcb61dd0273e37dd546ed5) - Thanks [@acao](https://github.com/acao)! - support vscode multi-root - workspaces! creates an LSP server instance for each workspace. +- [#2616](https://github.com/graphql/graphiql/pull/2616) [`b0d7f06c`](https://github.com/graphql/graphiql/commit/b0d7f06cf9ec6fd6b1dcb61dd0273e37dd546ed5) Thanks [@acao](https://github.com/acao)! - support vscode multi-root workspaces! creates an LSP server instance for each workspace. - WARNING: large-scale vscode workspaces usage, and this in tandem with - `graphql.config.*` multi-project configs could lead to excessive system - resource usage. Optimizations coming soon. + WARNING: large-scale vscode workspaces usage, and this in tandem with `graphql.config.*` multi-project configs could lead to excessive system resource usage. Optimizations coming soon. -- Updated dependencies - [[`b0d7f06c`](https://github.com/graphql/graphiql/commit/b0d7f06cf9ec6fd6b1dcb61dd0273e37dd546ed5)]: +- Updated dependencies [[`b0d7f06c`](https://github.com/graphql/graphiql/commit/b0d7f06cf9ec6fd6b1dcb61dd0273e37dd546ed5)]: - graphql-language-service-server@2.8.5 ## 3.3.4 ### Patch Changes -- Updated dependencies - [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: +- Updated dependencies [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: - graphql-language-service@5.1.0 - graphql-language-service-server@2.8.4 @@ -194,97 +137,63 @@ ### Patch Changes -- Updated dependencies - [[`721425b3`](https://github.com/graphql/graphiql/commit/721425b3382e68dd4c7b883473e3eda38a9816ee)]: +- Updated dependencies [[`721425b3`](https://github.com/graphql/graphiql/commit/721425b3382e68dd4c7b883473e3eda38a9816ee)]: - graphql-language-service-server@2.8.3 ## 3.3.2 ### Patch Changes -- [#2660](https://github.com/graphql/graphiql/pull/2660) - [`34d31fbc`](https://github.com/graphql/graphiql/commit/34d31fbce6c49c929b48bdf1a6b0cebc33d8bbbf) - Thanks [@acao](https://github.com/acao)! - bump `ts-node` to 10.x, so that - TypeScript based configs (i.e. `.graphqlrc.ts`) will continue to work. It also - bumps to the latest patch releases of `graphql-config` fixed several issues - with TypeScript loading - ([v4.3.2](https://github.com/kamilkisiela/graphql-config/releases/tag/v4.3.2), - [v4.3.3](https://github.com/kamilkisiela/graphql-config/releases/tag/v4.3.3)). - We tested manually, but please open a bug if you encounter any with - schema-as-url configs & schema introspection. - -- Updated dependencies - [[`34d31fbc`](https://github.com/graphql/graphiql/commit/34d31fbce6c49c929b48bdf1a6b0cebc33d8bbbf)]: +- [#2660](https://github.com/graphql/graphiql/pull/2660) [`34d31fbc`](https://github.com/graphql/graphiql/commit/34d31fbce6c49c929b48bdf1a6b0cebc33d8bbbf) Thanks [@acao](https://github.com/acao)! - bump `ts-node` to 10.x, so that TypeScript based configs (i.e. `.graphqlrc.ts`) will continue to work. It also bumps to the latest patch releases of `graphql-config` fixed several issues with TypeScript loading ([v4.3.2](https://github.com/kamilkisiela/graphql-config/releases/tag/v4.3.2), [v4.3.3](https://github.com/kamilkisiela/graphql-config/releases/tag/v4.3.3)). We tested manually, but please open a bug if you encounter any with schema-as-url configs & schema introspection. + +- Updated dependencies [[`34d31fbc`](https://github.com/graphql/graphiql/commit/34d31fbce6c49c929b48bdf1a6b0cebc33d8bbbf)]: - graphql-language-service-server@2.8.2 ## 3.3.1 ### Patch Changes -- Updated dependencies - [[`12cf4db0`](https://github.com/graphql/graphiql/commit/12cf4db006d1c058460bc04f51d8743fe1ac63bb)]: +- Updated dependencies [[`12cf4db0`](https://github.com/graphql/graphiql/commit/12cf4db006d1c058460bc04f51d8743fe1ac63bb)]: - graphql-language-service-server@2.8.1 ## 3.3.0 ### Minor Changes -- [#2557](https://github.com/graphql/graphiql/pull/2557) - [`3304606d`](https://github.com/graphql/graphiql/commit/3304606d5130a745cbdab0e6c9182e75101ddde9) - Thanks [@acao](https://github.com/acao)! - upgrades the - `vscode-languageserver` and `vscode-jsonrpc` reference implementations for the - lsp server to the latest. also upgrades `vscode-languageclient` in - `vscode-graphql` to the latest 8.0.1. seems to work fine for IPC in - `vscode-graphql` at least! +- [#2557](https://github.com/graphql/graphiql/pull/2557) [`3304606d`](https://github.com/graphql/graphiql/commit/3304606d5130a745cbdab0e6c9182e75101ddde9) Thanks [@acao](https://github.com/acao)! - upgrades the `vscode-languageserver` and `vscode-jsonrpc` reference implementations for the lsp server to the latest. also upgrades `vscode-languageclient` in `vscode-graphql` to the latest 8.0.1. seems to work fine for IPC in `vscode-graphql` at least! hopefully this solves #2230 once and for all! ### Patch Changes -- Updated dependencies - [[`3304606d`](https://github.com/graphql/graphiql/commit/3304606d5130a745cbdab0e6c9182e75101ddde9)]: +- Updated dependencies [[`3304606d`](https://github.com/graphql/graphiql/commit/3304606d5130a745cbdab0e6c9182e75101ddde9)]: - graphql-language-service-server@2.8.0 ## 3.2.30 ### Patch Changes -- [#2553](https://github.com/graphql/graphiql/pull/2553) - [`edc1c964`](https://github.com/graphql/graphiql/commit/edc1c96477cc2fbc2b6ac5d6195b8f9766a8c5d4) - Thanks [@acao](https://github.com/acao)! - Fix error with LSP crash for CLI - users #2230. `vscode-graphql` not impacted - rather, `nvim.coc`, maybe other - clients who use CLI directly). recreation of #2546 by - [@xuanduc987](https://github.com/xuanduc987, thank you!) +- [#2553](https://github.com/graphql/graphiql/pull/2553) [`edc1c964`](https://github.com/graphql/graphiql/commit/edc1c96477cc2fbc2b6ac5d6195b8f9766a8c5d4) Thanks [@acao](https://github.com/acao)! - Fix error with LSP crash for CLI users #2230. `vscode-graphql` not impacted - rather, `nvim.coc`, maybe other clients who use CLI directly). recreation of #2546 by [@xuanduc987](https://github.com/xuanduc987, thank you!) -- Updated dependencies - [[`edc1c964`](https://github.com/graphql/graphiql/commit/edc1c96477cc2fbc2b6ac5d6195b8f9766a8c5d4)]: +- Updated dependencies [[`edc1c964`](https://github.com/graphql/graphiql/commit/edc1c96477cc2fbc2b6ac5d6195b8f9766a8c5d4)]: - graphql-language-service-server@2.7.29 ## 3.2.29 ### Patch Changes -- [#2519](https://github.com/graphql/graphiql/pull/2519) - [`de5d5a07`](https://github.com/graphql/graphiql/commit/de5d5a07891fd49241a5abbb17eaf377a015a0a8) - Thanks [@acao](https://github.com/acao)! - enable graphql-config legacy mode - by default in the LSP server +- [#2519](https://github.com/graphql/graphiql/pull/2519) [`de5d5a07`](https://github.com/graphql/graphiql/commit/de5d5a07891fd49241a5abbb17eaf377a015a0a8) Thanks [@acao](https://github.com/acao)! - enable graphql-config legacy mode by default in the LSP server -* [#2509](https://github.com/graphql/graphiql/pull/2509) - [`737d4184`](https://github.com/graphql/graphiql/commit/737d4184f3af1d8fe9d64eb1b7e23dfcfbe640ea) - Thanks [@Chnapy](https://github.com/Chnapy)! - Add ` gql(``) `, - ` graphql(``) ` call expressions support for highlighting & language +* [#2509](https://github.com/graphql/graphiql/pull/2509) [`737d4184`](https://github.com/graphql/graphiql/commit/737d4184f3af1d8fe9d64eb1b7e23dfcfbe640ea) Thanks [@Chnapy](https://github.com/Chnapy)! - Add ` gql(``) `, ` graphql(``) ` call expressions support for highlighting & language -* Updated dependencies - [[`de5d5a07`](https://github.com/graphql/graphiql/commit/de5d5a07891fd49241a5abbb17eaf377a015a0a8), - [`737d4184`](https://github.com/graphql/graphiql/commit/737d4184f3af1d8fe9d64eb1b7e23dfcfbe640ea)]: +* Updated dependencies [[`de5d5a07`](https://github.com/graphql/graphiql/commit/de5d5a07891fd49241a5abbb17eaf377a015a0a8), [`737d4184`](https://github.com/graphql/graphiql/commit/737d4184f3af1d8fe9d64eb1b7e23dfcfbe640ea)]: - graphql-language-service-server@2.7.28 ## 3.2.28 ### Patch Changes -- Updated dependencies - [[`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: +- Updated dependencies [[`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: - graphql-language-service-server@2.7.27 - graphql-language-service@5.0.6 @@ -292,16 +201,11 @@ ### Patch Changes -- [#2486](https://github.com/graphql/graphiql/pull/2486) - [`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa) - Thanks [@stonexer](https://github.com/stonexer)! - definition support for - operation fields ✨ +- [#2486](https://github.com/graphql/graphiql/pull/2486) [`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa) Thanks [@stonexer](https://github.com/stonexer)! - definition support for operation fields ✨ - you can now jump to the applicable object type definition for - query/mutation/subscription fields! + you can now jump to the applicable object type definition for query/mutation/subscription fields! -- Updated dependencies - [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: +- Updated dependencies [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: - graphql-language-service-server@2.7.26 - graphql-language-service@5.0.5 @@ -309,41 +213,35 @@ ### Patch Changes -- Updated dependencies - [[`cf092f59`](https://github.com/graphql/graphiql/commit/cf092f5960eae250bb193b9011b2fb883f797a99)]: +- Updated dependencies [[`cf092f59`](https://github.com/graphql/graphiql/commit/cf092f5960eae250bb193b9011b2fb883f797a99)]: - graphql-language-service-server@2.7.25 ## 3.2.25 ### Patch Changes -- Updated dependencies - [[`d0017a93`](https://github.com/graphql/graphiql/commit/d0017a93b818cf3119e51c2b6c4a19004f98e29b)]: +- Updated dependencies [[`d0017a93`](https://github.com/graphql/graphiql/commit/d0017a93b818cf3119e51c2b6c4a19004f98e29b)]: - graphql-language-service-server@2.7.24 ## 3.2.24 ### Patch Changes -- Updated dependencies - [[`6ca6a92d`](https://github.com/graphql/graphiql/commit/6ca6a92d0fd12af974683de9706c8e8e06c751c2)]: +- Updated dependencies [[`6ca6a92d`](https://github.com/graphql/graphiql/commit/6ca6a92d0fd12af974683de9706c8e8e06c751c2)]: - graphql-language-service-server@2.7.23 ## 3.2.23 ### Patch Changes -- Updated dependencies - [[`6db28447`](https://github.com/graphql/graphiql/commit/6db284479a14873fea3e359efd71be0b15ab3ee8), - [`1bea864d`](https://github.com/graphql/graphiql/commit/1bea864d05dee04bb20c06dc3c3d68675b87a50a)]: +- Updated dependencies [[`6db28447`](https://github.com/graphql/graphiql/commit/6db284479a14873fea3e359efd71be0b15ab3ee8), [`1bea864d`](https://github.com/graphql/graphiql/commit/1bea864d05dee04bb20c06dc3c3d68675b87a50a)]: - graphql-language-service-server@2.7.22 ## 3.2.22 ### Patch Changes -- Updated dependencies - [[`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2)]: +- Updated dependencies [[`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2)]: - graphql-language-service@5.0.4 - graphql-language-service-server@2.7.21 @@ -351,13 +249,9 @@ ### Patch Changes -- [#2291](https://github.com/graphql/graphiql/pull/2291) - [`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902) - Thanks [@retrodaredevil](https://github.com/retrodaredevil)! - Target es6 for - the languages services +- [#2291](https://github.com/graphql/graphiql/pull/2291) [`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902) Thanks [@retrodaredevil](https://github.com/retrodaredevil)! - Target es6 for the languages services -- Updated dependencies - [[`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902)]: +- Updated dependencies [[`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902)]: - graphql-language-service@5.0.3 - graphql-language-service-server@2.7.20 @@ -365,8 +259,7 @@ ### Patch Changes -- Updated dependencies - [[`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f)]: +- Updated dependencies [[`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f)]: - graphql-language-service@5.0.2 - graphql-language-service-server@2.7.19 @@ -374,38 +267,29 @@ ### Patch Changes -- Updated dependencies - [[`e15d1dae`](https://github.com/graphql/graphiql/commit/e15d1dae399a7d43d8d98f2ce431a9a1f0ba84ae)]: +- Updated dependencies [[`e15d1dae`](https://github.com/graphql/graphiql/commit/e15d1dae399a7d43d8d98f2ce431a9a1f0ba84ae)]: - graphql-language-service-server@2.7.18 ## 3.2.18 ### Patch Changes -- [#2267](https://github.com/graphql/graphiql/pull/2267) - [`fe441272`](https://github.com/graphql/graphiql/commit/fe44127296f808e58407855c7f8806e04c8ddf03) - Thanks [@elken](https://github.com/elken)! - Re-add - `graphql-language-service-server` as a dep to `graphql-language-service-cli` +- [#2267](https://github.com/graphql/graphiql/pull/2267) [`fe441272`](https://github.com/graphql/graphiql/commit/fe44127296f808e58407855c7f8806e04c8ddf03) Thanks [@elken](https://github.com/elken)! - Re-add `graphql-language-service-server` as a dep to `graphql-language-service-cli` ## 3.2.17 ### Patch Changes -- [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa) - Thanks [@acao](https://github.com/acao)! - fix lockfile and imports from LSP - merge +- [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa) Thanks [@acao](https://github.com/acao)! - fix lockfile and imports from LSP merge -- Updated dependencies - [[`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa), - [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa)]: +- Updated dependencies [[`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa), [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa)]: - graphql-language-service@5.0.1 ## 3.2.16 ### Patch Changes -- Updated dependencies - [[`2502a364`](https://github.com/graphql/graphiql/commit/2502a364b74dc754d92baa1579b536cf42139958)]: +- Updated dependencies [[`2502a364`](https://github.com/graphql/graphiql/commit/2502a364b74dc754d92baa1579b536cf42139958)]: - graphql-language-service@5.0.0 - graphql-language-service-server@2.7.16 @@ -413,18 +297,14 @@ ### Patch Changes -- Updated dependencies - [[`ab83198f`](https://github.com/graphql/graphiql/commit/ab83198fa8b3c5453d3733982ee9ca8a2d6bca7a)]: +- Updated dependencies [[`ab83198f`](https://github.com/graphql/graphiql/commit/ab83198fa8b3c5453d3733982ee9ca8a2d6bca7a)]: - graphql-language-service-server@2.7.15 ## 3.2.14 ### Patch Changes -- Updated dependencies - [[`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f), - [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c), - [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5)]: +- Updated dependencies [[`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f), [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c), [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5)]: - graphql-language-service-server@2.7.14 - graphql-language-service@4.1.5 @@ -432,8 +312,7 @@ ### Patch Changes -- Updated dependencies - [[`08ff6dce`](https://github.com/graphql/graphiql/commit/08ff6dce0625f7ab58a45364aed9ca04c7862fa7)]: +- Updated dependencies [[`08ff6dce`](https://github.com/graphql/graphiql/commit/08ff6dce0625f7ab58a45364aed9ca04c7862fa7)]: - graphql-language-service-server@2.7.13 - graphql-language-service@4.1.4 @@ -441,8 +320,7 @@ ### Patch Changes -- Updated dependencies - [[`a44772d6`](https://github.com/graphql/graphiql/commit/a44772d6af97254c4f159ea7237e842a3e3719e8)]: +- Updated dependencies [[`a44772d6`](https://github.com/graphql/graphiql/commit/a44772d6af97254c4f159ea7237e842a3e3719e8)]: - graphql-language-service@4.1.3 - graphql-language-service-server@2.7.12 @@ -450,8 +328,7 @@ ### Patch Changes -- Updated dependencies - [[`e20760fb`](https://github.com/graphql/graphiql/commit/e20760fbd95c13d6d549cba3faa15a59aee9a2c0)]: +- Updated dependencies [[`e20760fb`](https://github.com/graphql/graphiql/commit/e20760fbd95c13d6d549cba3faa15a59aee9a2c0)]: - graphql-language-service@4.1.2 - graphql-language-service-server@2.7.11 @@ -459,8 +336,7 @@ ### Patch Changes -- Updated dependencies - [[`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63)]: +- Updated dependencies [[`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63)]: - graphql-language-service-server@2.7.10 - graphql-language-service-utils@2.7.1 - graphql-language-service@4.1.1 @@ -469,8 +345,7 @@ ### Patch Changes -- Updated dependencies - [[`0f1f90ce`](https://github.com/graphql/graphiql/commit/0f1f90ce8f4a25ddebdaf7a9ddbe136214aa64a3)]: +- Updated dependencies [[`0f1f90ce`](https://github.com/graphql/graphiql/commit/0f1f90ce8f4a25ddebdaf7a9ddbe136214aa64a3)]: - graphql-language-service@4.1.0 - graphql-language-service-server@2.7.9 @@ -478,8 +353,7 @@ ### Patch Changes -- Updated dependencies - [[`9df315b4`](https://github.com/graphql/graphiql/commit/9df315b44896efa313ed6744445fc8f9e702ebc3)]: +- Updated dependencies [[`9df315b4`](https://github.com/graphql/graphiql/commit/9df315b44896efa313ed6744445fc8f9e702ebc3)]: - graphql-language-service-utils@2.7.0 - graphql-language-service@4.0.0 - graphql-language-service-server@2.7.8 @@ -488,9 +362,7 @@ ### Patch Changes -- Updated dependencies - [[`c4236190`](https://github.com/graphql/graphiql/commit/c4236190f91adedaf4f4a54cd0400a6b42c3c407), - [`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1)]: +- Updated dependencies [[`c4236190`](https://github.com/graphql/graphiql/commit/c4236190f91adedaf4f4a54cd0400a6b42c3c407), [`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1)]: - graphql-language-service-server@2.7.7 - graphql-language-service@3.2.5 @@ -498,27 +370,20 @@ ### Patch Changes -- Updated dependencies - [[`4286185c`](https://github.com/graphql/graphiql/commit/4286185cdc6119175e23d66b8e177ba32693a63a)]: +- Updated dependencies [[`4286185c`](https://github.com/graphql/graphiql/commit/4286185cdc6119175e23d66b8e177ba32693a63a)]: - graphql-language-service-server@2.7.6 ## 3.2.5 ### Patch Changes -- [`f82bd7a9`](https://github.com/graphql/graphiql/commit/f82bd7a931eb5fa9a33e59d417303706844c9063) - [#2055](https://github.com/graphql/graphiql/pull/2055) Thanks - [@acao](https://github.com/acao)! - this fixes the URI scheme related bugs and - make sure schema as sdl config works again. +- [`f82bd7a9`](https://github.com/graphql/graphiql/commit/f82bd7a931eb5fa9a33e59d417303706844c9063) [#2055](https://github.com/graphql/graphiql/pull/2055) Thanks [@acao](https://github.com/acao)! - this fixes the URI scheme related bugs and make sure schema as sdl config works again. - `fileURLToPath` had been introduced by a contributor and I didn't test - properly, it broke sdl file loading! + `fileURLToPath` had been introduced by a contributor and I didn't test properly, it broke sdl file loading! - definitions, autocomplete, diagnostics, etc should work again also hides the - more verbose logging output for now + definitions, autocomplete, diagnostics, etc should work again also hides the more verbose logging output for now -- Updated dependencies - [[`f82bd7a9`](https://github.com/graphql/graphiql/commit/f82bd7a931eb5fa9a33e59d417303706844c9063)]: +- Updated dependencies [[`f82bd7a9`](https://github.com/graphql/graphiql/commit/f82bd7a931eb5fa9a33e59d417303706844c9063)]: - graphql-language-service-server@2.7.5 - graphql-language-service@3.2.4 - graphql-language-service-utils@2.6.3 @@ -527,14 +392,9 @@ ### Patch Changes -- [`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf) - [#2047](https://github.com/graphql/graphiql/pull/2047) Thanks - [@willstott101](https://github.com/willstott101)! - Source code included in - all packages to fix source maps. codemirror-graphql includes esm build in - package. +- [`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf) [#2047](https://github.com/graphql/graphiql/pull/2047) Thanks [@willstott101](https://github.com/willstott101)! - Source code included in all packages to fix source maps. codemirror-graphql includes esm build in package. -- Updated dependencies - [[`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf)]: +- Updated dependencies [[`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf)]: - graphql-language-service@3.2.3 - graphql-language-service-server@2.7.4 - graphql-language-service-utils@2.6.2 @@ -543,8 +403,7 @@ ### Patch Changes -- Updated dependencies - [[`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf)]: +- Updated dependencies [[`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf)]: - graphql-language-service@3.2.2 - graphql-language-service-server@2.7.3 - graphql-language-service-utils@2.6.1 @@ -553,21 +412,16 @@ ### Patch Changes -- Updated dependencies - [[`7e98c6ff`](https://github.com/graphql/graphiql/commit/7e98c6fff3b1c62954c9c8d902ac64ddbf23fc5d)]: +- Updated dependencies [[`7e98c6ff`](https://github.com/graphql/graphiql/commit/7e98c6fff3b1c62954c9c8d902ac64ddbf23fc5d)]: - graphql-language-service-server@2.7.2 ## 3.2.1 ### Patch Changes -- [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce) - [#2013](https://github.com/graphql/graphiql/pull/2013) Thanks - [@PabloSzx](https://github.com/PabloSzx)! - Update utils +- [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce) [#2013](https://github.com/graphql/graphiql/pull/2013) Thanks [@PabloSzx](https://github.com/PabloSzx)! - Update utils -- Updated dependencies - [[`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce), - [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce)]: +- Updated dependencies [[`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce), [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce)]: - graphql-language-service-utils@2.6.0 - graphql-language-service@3.2.1 - graphql-language-service-server@2.7.1 @@ -576,15 +430,11 @@ ### Minor Changes -- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) - [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks - [@acao](https://github.com/acao)! - upgrade to - `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! +- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks [@acao](https://github.com/acao)! - upgrade to `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! ### Patch Changes -- Updated dependencies - [[`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a)]: +- Updated dependencies [[`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a)]: - graphql-language-service-server@2.7.0 - graphql-language-service@3.2.0 @@ -592,20 +442,11 @@ ### Patch Changes -- [`83c4a007`](https://github.com/graphql/graphiql/commit/83c4a0070a4df704ce874ec977d65ca6c7e43ee8) - [#1964](https://github.com/graphql/graphiql/pull/1964) Thanks - [@patrickszmucer](https://github.com/patrickszmucer)! - Fix unknown fragment - errors on save +- [`83c4a007`](https://github.com/graphql/graphiql/commit/83c4a0070a4df704ce874ec977d65ca6c7e43ee8) [#1964](https://github.com/graphql/graphiql/pull/1964) Thanks [@patrickszmucer](https://github.com/patrickszmucer)! - Fix unknown fragment errors on save -* [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8) - [#1777](https://github.com/graphql/graphiql/pull/1777) Thanks - [@dwwoelfel](https://github.com/dwwoelfel)! - adopt block string parsing for - variables in language parser +* [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8) [#1777](https://github.com/graphql/graphiql/pull/1777) Thanks [@dwwoelfel](https://github.com/dwwoelfel)! - adopt block string parsing for variables in language parser -* Updated dependencies - [[`0e2c1a02`](https://github.com/graphql/graphiql/commit/0e2c1a020cc2761155f7c9467d3ed4cb45941aeb), - [`83c4a007`](https://github.com/graphql/graphiql/commit/83c4a0070a4df704ce874ec977d65ca6c7e43ee8), - [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8)]: +* Updated dependencies [[`0e2c1a02`](https://github.com/graphql/graphiql/commit/0e2c1a020cc2761155f7c9467d3ed4cb45941aeb), [`83c4a007`](https://github.com/graphql/graphiql/commit/83c4a0070a4df704ce874ec977d65ca6c7e43ee8), [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8)]: - graphql-language-service@3.1.6 - graphql-language-service-server@2.6.5 @@ -613,11 +454,7 @@ ### Patch Changes -- [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) - [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks - [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 - & 15. `14.5.0` minimum is for built-in typescript types, and another method - only available in `14.4.0` +- [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 & 15. `14.5.0` minimum is for built-in typescript types, and another method only available in `14.4.0` ## [3.1.12](https://github.com/graphql/graphiql/compare/graphql-language-service-cli@3.1.11...graphql-language-service-cli@3.1.12) (2021-01-07) @@ -695,15 +532,11 @@ ### Bug Fixes -- pre-caching schema bugs, new server config options - ([#1636](https://github.com/graphql/graphiql/issues/1636)) - ([d989456](https://github.com/graphql/graphiql/commit/d9894564c056134e15093956e0951dcefe061d76)) +- pre-caching schema bugs, new server config options ([#1636](https://github.com/graphql/graphiql/issues/1636)) ([d989456](https://github.com/graphql/graphiql/commit/d9894564c056134e15093956e0951dcefe061d76)) ### Features -- graphql-config@3 support in lsp server - ([#1616](https://github.com/graphql/graphiql/issues/1616)) - ([27cd185](https://github.com/graphql/graphiql/commit/27cd18562b64dfe18e6343b6a49f3f606af89d86)) +- graphql-config@3 support in lsp server ([#1616](https://github.com/graphql/graphiql/issues/1616)) ([27cd185](https://github.com/graphql/graphiql/commit/27cd18562b64dfe18e6343b6a49f3f606af89d86)) ## [3.0.1](https://github.com/graphql/graphiql/compare/graphql-language-service-cli@3.0.0...graphql-language-service-cli@3.0.1) (2020-08-06) @@ -721,8 +554,7 @@ ### Bug Fixes -- cleanup cache entry from lerna publish - ([4a26218](https://github.com/graphql/graphiql/commit/4a2621808a1aea8b30d5d27b8d86a60bf2b44b01)) +- cleanup cache entry from lerna publish ([4a26218](https://github.com/graphql/graphiql/commit/4a2621808a1aea8b30d5d27b8d86a60bf2b44b01)) ## [3.0.0-alpha.3](https://github.com/graphql/graphiql/compare/graphql-language-service-cli@3.0.0-alpha.2...graphql-language-service-cli@3.0.0-alpha.3) (2020-05-28) @@ -736,9 +568,7 @@ ### Bug Fixes -- repair CLI, handle all schema and LSP errors - ([#1482](https://github.com/graphql/graphiql/issues/1482)) - ([992f384](https://github.com/graphql/graphiql/commit/992f38494f20f5877bfd6ff54893854ac7a0eaa2)) +- repair CLI, handle all schema and LSP errors ([#1482](https://github.com/graphql/graphiql/issues/1482)) ([992f384](https://github.com/graphql/graphiql/commit/992f38494f20f5877bfd6ff54893854ac7a0eaa2)) ## [2.4.0-alpha.7](https://github.com/graphql/graphiql/compare/graphql-language-service@2.4.0-alpha.6...graphql-language-service@2.4.0-alpha.7) (2020-04-10) @@ -752,10 +582,7 @@ ### Features -- upgrade to graphql@15.0.0 for - [#1191](https://github.com/graphql/graphiql/issues/1191) - ([#1204](https://github.com/graphql/graphiql/issues/1204)) - ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) +- upgrade to graphql@15.0.0 for [#1191](https://github.com/graphql/graphiql/issues/1191) ([#1204](https://github.com/graphql/graphiql/issues/1204)) ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) ## [2.4.0-alpha.4](https://github.com/graphql/graphiql/compare/graphql-language-service@2.4.0-alpha.3...graphql-language-service@2.4.0-alpha.4) (2020-04-03) @@ -769,32 +596,20 @@ ### Bug Fixes -- error formatting, [#1319](https://github.com/graphql/graphiql/issues/1319) - ([#1381](https://github.com/graphql/graphiql/issues/1381)) - ([16509a4](https://github.com/graphql/graphiql/commit/16509a4278d523a7f0a96c846cc0f370d29a0700)) +- error formatting, [#1319](https://github.com/graphql/graphiql/issues/1319) ([#1381](https://github.com/graphql/graphiql/issues/1381)) ([16509a4](https://github.com/graphql/graphiql/commit/16509a4278d523a7f0a96c846cc0f370d29a0700)) ### Features -- **cli:** recommend matching commands - ([#1420](https://github.com/graphql/graphiql/issues/1420)) - ([0fbae82](https://github.com/graphql/graphiql/commit/0fbae828ced2e8b95016268805654cde8322b076)) -- **graphql-config:** add graphql config extensions - ([#1118](https://github.com/graphql/graphiql/issues/1118)) - ([2a77e47](https://github.com/graphql/graphiql/commit/2a77e47719ec9181a00183a08ffa11287b8fd2f5)) -- capture unknown commands making use of the in-house s… - ([#1417](https://github.com/graphql/graphiql/issues/1417)) - ([dd12a6b](https://github.com/graphql/graphiql/commit/dd12a6b903976ce8d35cf91d3c9606450f1c0990)) -- use new GraphQL Config - ([#1342](https://github.com/graphql/graphiql/issues/1342)) - ([e45838f](https://github.com/graphql/graphiql/commit/e45838f5ba579e05b20f1a147ce431478ffad9aa)) +- **cli:** recommend matching commands ([#1420](https://github.com/graphql/graphiql/issues/1420)) ([0fbae82](https://github.com/graphql/graphiql/commit/0fbae828ced2e8b95016268805654cde8322b076)) +- **graphql-config:** add graphql config extensions ([#1118](https://github.com/graphql/graphiql/issues/1118)) ([2a77e47](https://github.com/graphql/graphiql/commit/2a77e47719ec9181a00183a08ffa11287b8fd2f5)) +- capture unknown commands making use of the in-house s… ([#1417](https://github.com/graphql/graphiql/issues/1417)) ([dd12a6b](https://github.com/graphql/graphiql/commit/dd12a6b903976ce8d35cf91d3c9606450f1c0990)) +- use new GraphQL Config ([#1342](https://github.com/graphql/graphiql/issues/1342)) ([e45838f](https://github.com/graphql/graphiql/commit/e45838f5ba579e05b20f1a147ce431478ffad9aa)) ## [2.4.0-alpha.1](https://github.com/graphql/graphiql/compare/graphql-language-service@2.3.4...graphql-language-service@2.4.0-alpha.1) (2020-01-18) ### Features -- convert LSP Server to Typescript, remove watchman - ([#1138](https://github.com/graphql/graphiql/issues/1138)) - ([8e33dbb](https://github.com/graphql/graphiql/commit/8e33dbb)) +- convert LSP Server to Typescript, remove watchman ([#1138](https://github.com/graphql/graphiql/issues/1138)) ([8e33dbb](https://github.com/graphql/graphiql/commit/8e33dbb)) ## [2.3.4](https://github.com/graphql/graphiql/compare/graphql-language-service@2.3.3...graphql-language-service@2.3.4) (2019-12-09) @@ -816,10 +631,7 @@ ### Features -- convert LSP from flow to typescript - ([#957](https://github.com/graphql/graphiql/issues/957)) - [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) - ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) +- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) ## 2.0.1 (2019-05-14) @@ -875,10 +687,7 @@ ### Features -- convert LSP from flow to typescript - ([#957](https://github.com/graphql/graphiql/issues/957)) - [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) - ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) +- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) ## 2.0.1 (2019-05-14) @@ -934,10 +743,7 @@ ### Features -- convert LSP from flow to typescript - ([#957](https://github.com/graphql/graphiql/issues/957)) - [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) - ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) +- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) ## 2.0.1 (2019-05-14) diff --git a/packages/graphql-language-service-cli/package.json b/packages/graphql-language-service-cli/package.json index b553eb60b94..cb57ad8f444 100644 --- a/packages/graphql-language-service-cli/package.json +++ b/packages/graphql-language-service-cli/package.json @@ -1,6 +1,6 @@ { "name": "graphql-language-service-cli", - "version": "3.3.17", + "version": "3.3.18", "description": "An interface for building GraphQL language services for IDEs", "contributors": [ "Hyohyeon Jeong ", @@ -36,8 +36,8 @@ }, "dependencies": { "@babel/polyfill": "^7.12.1", - "graphql-language-service": "^5.1.3", - "graphql-language-service-server": "^2.9.7", + "graphql-language-service": "^5.1.4", + "graphql-language-service-server": "^2.9.8", "yargs": "^16.2.0" }, "devDependencies": { diff --git a/packages/graphql-language-service-cli/src/cli.ts b/packages/graphql-language-service-cli/src/cli.ts index 0b5f1b39519..75647184aa7 100644 --- a/packages/graphql-language-service-cli/src/cli.ts +++ b/packages/graphql-language-service-cli/src/cli.ts @@ -117,23 +117,22 @@ if (command === 'server') { }); const options: { [key: string]: any } = {}; - if (argv?.port) { + if (argv.port) { options.port = argv.port; } - if (argv?.method) { + if (argv.method) { options.method = argv.method; } - if (argv?.configDir) { + if (argv.configDir) { options.configDir = argv.configDir; } - try { - startServer(options); - } catch (error) { + // eslint-disable-next-line promise/prefer-await-to-then -- don't know if I can use top level await here + startServer(options).catch(error => { const logger = new Logger(); logger.error(String(error)); - } + }); } else { - client(command as string, argv as { [key: string]: string }); + client(command as string, argv as Record); } // Exit the process when stream closes from remote end. diff --git a/packages/graphql-language-service-server/CHANGELOG.md b/packages/graphql-language-service-server/CHANGELOG.md index 2888f020049..459bc70195c 100644 --- a/packages/graphql-language-service-server/CHANGELOG.md +++ b/packages/graphql-language-service-server/CHANGELOG.md @@ -1,290 +1,179 @@ # graphql-language-service-server +## 2.9.8 + +### Patch Changes + +- [#3113](https://github.com/graphql/graphiql/pull/3113) [`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9) Thanks [@B2o5T](https://github.com/B2o5T)! - replace `.forEach` with `for..of` + +- [#3157](https://github.com/graphql/graphiql/pull/3157) [`06d39823`](https://github.com/graphql/graphiql/commit/06d39823e093c8441fea469446c25f18a664e778) Thanks [@jycouet](https://github.com/jycouet)! - fix: `.vue` and `.svelte` files doesn't log errors anymore when parsing with no script tag (#2836) + +- [#3109](https://github.com/graphql/graphiql/pull/3109) [`51007002`](https://github.com/graphql/graphiql/commit/510070028b7d8e98f2ba25f396519976aea5fa4b) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-floating-promises` eslint rule + +- [#3120](https://github.com/graphql/graphiql/pull/3120) [`15c26eb6`](https://github.com/graphql/graphiql/commit/15c26eb6d621a85df9eecb2b8a5fa009fa2fe040) Thanks [@B2o5T](https://github.com/B2o5T)! - prefer await to then + +- Updated dependencies [[`2e477eb2`](https://github.com/graphql/graphiql/commit/2e477eb24672a242ae4a4f2dfaeaf41152ed7ee9)]: + - graphql-language-service@5.1.4 + ## 2.9.7 ### Patch Changes -- [#3088](https://github.com/graphql/graphiql/pull/3088) - [`9d9478ae`](https://github.com/graphql/graphiql/commit/9d9478aea7536d2957e4371cef4f30577db2113d) - Thanks [@B2o5T](https://github.com/B2o5T)! - remove nowhere used `node-fetch` - dependency +- [#3088](https://github.com/graphql/graphiql/pull/3088) [`9d9478ae`](https://github.com/graphql/graphiql/commit/9d9478aea7536d2957e4371cef4f30577db2113d) Thanks [@B2o5T](https://github.com/B2o5T)! - remove nowhere used `node-fetch` dependency -- [#3046](https://github.com/graphql/graphiql/pull/3046) - [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) - Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index - access +- [#3046](https://github.com/graphql/graphiql/pull/3046) [`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d) Thanks [@B2o5T](https://github.com/B2o5T)! - Prefer .at() method for index access -- Updated dependencies - [[`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), - [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: +- Updated dependencies [[`b9c13328`](https://github.com/graphql/graphiql/commit/b9c13328f3d28c0026ee0f0ecc7213065c9b016d), [`881a2024`](https://github.com/graphql/graphiql/commit/881a202497d5a58eb5260a5aa54c0c88930d69a0)]: - graphql-language-service@5.1.3 ## 2.9.6 ### Patch Changes -- [#2993](https://github.com/graphql/graphiql/pull/2993) - [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4) - Thanks [@B2o5T](https://github.com/B2o5T)! - add - `unicorn/consistent-destructuring` rule - -- [#2962](https://github.com/graphql/graphiql/pull/2962) - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) - Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add - `--max-warnings=0` and `--cache` flags - -- [#3051](https://github.com/graphql/graphiql/pull/3051) - [`90350022`](https://github.com/graphql/graphiql/commit/90350022334d9fcce0f4b72b3b0f7a12d21f78f9) - Thanks [@B2o5T](https://github.com/B2o5T)! - update babel, support `satisfies` - operator - -- [#2940](https://github.com/graphql/graphiql/pull/2940) - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-node-protocol` rule - -- Updated dependencies - [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), - [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), - [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), - [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), - [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: +- [#2993](https://github.com/graphql/graphiql/pull/2993) [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4) Thanks [@B2o5T](https://github.com/B2o5T)! - add `unicorn/consistent-destructuring` rule + +- [#2962](https://github.com/graphql/graphiql/pull/2962) [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d) Thanks [@B2o5T](https://github.com/B2o5T)! - clean all ESLint warnings, add `--max-warnings=0` and `--cache` flags + +- [#3051](https://github.com/graphql/graphiql/pull/3051) [`90350022`](https://github.com/graphql/graphiql/commit/90350022334d9fcce0f4b72b3b0f7a12d21f78f9) Thanks [@B2o5T](https://github.com/B2o5T)! - update babel, support `satisfies` operator + +- [#2940](https://github.com/graphql/graphiql/pull/2940) [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-node-protocol` rule + +- Updated dependencies [[`e68cb8bc`](https://github.com/graphql/graphiql/commit/e68cb8bcaf9baddf6fca747abab871ecd1bc7a4c), [`f788e65a`](https://github.com/graphql/graphiql/commit/f788e65aff267ec873237034831d1fd936222a9b), [`bdc966cb`](https://github.com/graphql/graphiql/commit/bdc966cba6134a72ff7fe40f76543c77ba15d4a4), [`db2a0982`](https://github.com/graphql/graphiql/commit/db2a0982a17134f0069483ab283594eb64735b7d), [`8725d1b6`](https://github.com/graphql/graphiql/commit/8725d1b6b686139286cf05dec6a84d89942128ba)]: - graphql-language-service@5.1.2 ## 2.9.5 ### Patch Changes -- [#2931](https://github.com/graphql/graphiql/pull/2931) - [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and - `no-else-return` rules - -- [#2922](https://github.com/graphql/graphiql/pull/2922) - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) - Thanks [@B2o5T](https://github.com/B2o5T)! - extends - `plugin:import/recommended` and fix warnings - -- [#2966](https://github.com/graphql/graphiql/pull/2966) - [`f9aa87dc`](https://github.com/graphql/graphiql/commit/f9aa87dc6a88ed8a8a0a94de520c7a41fff8ffde) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `sonarjs/no-small-switch` - and `sonarjs/no-duplicated-branches` rules - -- [#2926](https://github.com/graphql/graphiql/pull/2926) - [`10e97bbe`](https://github.com/graphql/graphiql/commit/10e97bbe6c9ff81bae73b11ba81ac2b69eca2772) - Thanks [@elijaholmos](https://github.com/elijaholmos)! - support cts and mts - file extensions - -- [#2937](https://github.com/graphql/graphiql/pull/2937) - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-includes` - -- [#2933](https://github.com/graphql/graphiql/pull/2933) - [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - @typescript-eslint/no-unused-expressions - -- [#2965](https://github.com/graphql/graphiql/pull/2965) - [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `unicorn/prefer-optional-catch-binding` rule - -- [#2963](https://github.com/graphql/graphiql/pull/2963) - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable `prefer-destructuring` - rule - -- [#2942](https://github.com/graphql/graphiql/pull/2942) - [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e) - Thanks [@B2o5T](https://github.com/B2o5T)! - enable - `sonarjs/no-redundant-jump` rule - -- Updated dependencies - [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), - [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), - [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), - [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), - [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), - [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), - [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), - [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), - [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171)]: +- [#2931](https://github.com/graphql/graphiql/pull/2931) [`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `no-negated-condition` and `no-else-return` rules + +- [#2922](https://github.com/graphql/graphiql/pull/2922) [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b) Thanks [@B2o5T](https://github.com/B2o5T)! - extends `plugin:import/recommended` and fix warnings + +- [#2966](https://github.com/graphql/graphiql/pull/2966) [`f9aa87dc`](https://github.com/graphql/graphiql/commit/f9aa87dc6a88ed8a8a0a94de520c7a41fff8ffde) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `sonarjs/no-small-switch` and `sonarjs/no-duplicated-branches` rules + +- [#2926](https://github.com/graphql/graphiql/pull/2926) [`10e97bbe`](https://github.com/graphql/graphiql/commit/10e97bbe6c9ff81bae73b11ba81ac2b69eca2772) Thanks [@elijaholmos](https://github.com/elijaholmos)! - support cts and mts file extensions + +- [#2937](https://github.com/graphql/graphiql/pull/2937) [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-includes` + +- [#2933](https://github.com/graphql/graphiql/pull/2933) [`d502a33b`](https://github.com/graphql/graphiql/commit/d502a33b4332f1025e947c02d7cfdc5799365c8d) Thanks [@B2o5T](https://github.com/B2o5T)! - enable @typescript-eslint/no-unused-expressions + +- [#2965](https://github.com/graphql/graphiql/pull/2965) [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `unicorn/prefer-optional-catch-binding` rule + +- [#2963](https://github.com/graphql/graphiql/pull/2963) [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `prefer-destructuring` rule + +- [#2942](https://github.com/graphql/graphiql/pull/2942) [`4ff2794c`](https://github.com/graphql/graphiql/commit/4ff2794c8b6032168e27252096cb276ce712878e) Thanks [@B2o5T](https://github.com/B2o5T)! - enable `sonarjs/no-redundant-jump` rule + +- Updated dependencies [[`f7addb20`](https://github.com/graphql/graphiql/commit/f7addb20c4a558fbfb4112c8ff095bbc8f9d9147), [`d1fcad72`](https://github.com/graphql/graphiql/commit/d1fcad72607e2789517dfe4936b5ec604e46762b), [`4a8b2e17`](https://github.com/graphql/graphiql/commit/4a8b2e1766a38eb4828cf9a81bf9d767070041de), [`c70d9165`](https://github.com/graphql/graphiql/commit/c70d9165cc1ef8eb1cd0d6b506ced98c626597f9), [`c44ea4f1`](https://github.com/graphql/graphiql/commit/c44ea4f1917b97daac815c08299b934c8ca57ed9), [`0669767e`](https://github.com/graphql/graphiql/commit/0669767e1e2196a78cbefe3679a52bcbb341e913), [`18f8e80a`](https://github.com/graphql/graphiql/commit/18f8e80ae12edfd0c36adcb300cf9e06ac27ea49), [`f263f778`](https://github.com/graphql/graphiql/commit/f263f778cb95b9f413bd09ca56a43f5b9c2f6215), [`6a9d913f`](https://github.com/graphql/graphiql/commit/6a9d913f0d1b847124286b3fa1f3a2649d315171)]: - graphql-language-service@5.1.1 ## 2.9.4 ### Patch Changes -- [#2901](https://github.com/graphql/graphiql/pull/2901) - [`eff4fd6b`](https://github.com/graphql/graphiql/commit/eff4fd6b9087c2d9cdb260ee2502a31d23769c3f) - Thanks [@acao](https://github.com/acao)! - Reload the language service when a - legacy format .graphqlconfig file has changed +- [#2901](https://github.com/graphql/graphiql/pull/2901) [`eff4fd6b`](https://github.com/graphql/graphiql/commit/eff4fd6b9087c2d9cdb260ee2502a31d23769c3f) Thanks [@acao](https://github.com/acao)! - Reload the language service when a legacy format .graphqlconfig file has changed ## 2.9.3 ### Patch Changes -- [#2900](https://github.com/graphql/graphiql/pull/2900) - [`8989ffce`](https://github.com/graphql/graphiql/commit/8989ffce7d6beca874e70f5a1ff066102580173a) - Thanks [@acao](https://github.com/acao)! - use decorators-legacy @babel/parser - plugin so that all styles of decorator usage are supported +- [#2900](https://github.com/graphql/graphiql/pull/2900) [`8989ffce`](https://github.com/graphql/graphiql/commit/8989ffce7d6beca874e70f5a1ff066102580173a) Thanks [@acao](https://github.com/acao)! - use decorators-legacy @babel/parser plugin so that all styles of decorator usage are supported ## 2.9.2 ### Patch Changes -- [#2861](https://github.com/graphql/graphiql/pull/2861) - [`bdd1bd04`](https://github.com/graphql/graphiql/commit/bdd1bd045fc6610ccaae4745b8ecc10004594274) - Thanks [@aloker](https://github.com/aloker)! - add missing pieces for svelte - language support +- [#2861](https://github.com/graphql/graphiql/pull/2861) [`bdd1bd04`](https://github.com/graphql/graphiql/commit/bdd1bd045fc6610ccaae4745b8ecc10004594274) Thanks [@aloker](https://github.com/aloker)! - add missing pieces for svelte language support -* [#2488](https://github.com/graphql/graphiql/pull/2488) - [`967006a6`](https://github.com/graphql/graphiql/commit/967006a68e56f8f3a605c69fee5f920afdb6d8cf) - Thanks [@acao](https://github.com/acao)! - Disable`fillLeafsOnComplete` by - default +* [#2488](https://github.com/graphql/graphiql/pull/2488) [`967006a6`](https://github.com/graphql/graphiql/commit/967006a68e56f8f3a605c69fee5f920afdb6d8cf) Thanks [@acao](https://github.com/acao)! - Disable`fillLeafsOnComplete` by default - Users found this generally annoying by default, especially when there are - required arguments + Users found this generally annoying by default, especially when there are required arguments - Without automatically prompting autocompletion of required arguments as well - as lead expansion, it makes the extension harder to use + Without automatically prompting autocompletion of required arguments as well as lead expansion, it makes the extension harder to use You can now supply this in your graphql config: `config.extensions.languageService.fillLeafsOnComplete` - Setting it to to `true` will enable this feature. Will soon add the ability to - manually enable this in `monaco-graphql` as well. + Setting it to to `true` will enable this feature. Will soon add the ability to manually enable this in `monaco-graphql` as well. - For both, this kind of behavior would be better as a keyboard command, context - menu item &/or codelens prompt + For both, this kind of behavior would be better as a keyboard command, context menu item &/or codelens prompt ## 2.9.1 ### Patch Changes -- [#2829](https://github.com/graphql/graphiql/pull/2829) - [`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10) - Thanks [@acao](https://github.com/acao)! - major bugfixes with `onDidChange` - and `onDidChangeWatchedFiles` events +- [#2829](https://github.com/graphql/graphiql/pull/2829) [`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10) Thanks [@acao](https://github.com/acao)! - major bugfixes with `onDidChange` and `onDidChangeWatchedFiles` events -* [#2829](https://github.com/graphql/graphiql/pull/2829) - [`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10) - Thanks [@acao](https://github.com/acao)! - svelte language support, using the - vue sfc parser introduced for vue support +* [#2829](https://github.com/graphql/graphiql/pull/2829) [`c835ca87`](https://github.com/graphql/graphiql/commit/c835ca87e93e00713fbbbb2f4448db03f6b97b10) Thanks [@acao](https://github.com/acao)! - svelte language support, using the vue sfc parser introduced for vue support ## 2.9.0 ### Minor Changes -- [#2827](https://github.com/graphql/graphiql/pull/2827) - [`b422003c`](https://github.com/graphql/graphiql/commit/b422003c2403072e96d14f920a3f0f1dc1f4f708) - Thanks [@acao](https://github.com/acao)! - Introducing vue.js support for - intellisense! Thanks @AumyF +- [#2827](https://github.com/graphql/graphiql/pull/2827) [`b422003c`](https://github.com/graphql/graphiql/commit/b422003c2403072e96d14f920a3f0f1dc1f4f708) Thanks [@acao](https://github.com/acao)! - Introducing vue.js support for intellisense! Thanks @AumyF ## 2.8.9 ### Patch Changes -- [#2818](https://github.com/graphql/graphiql/pull/2818) - [`929152f8`](https://github.com/graphql/graphiql/commit/929152f8ea076ffa3bf34b83445473331c3bdb67) - Thanks [@acao](https://github.com/acao)! - Workspaces support introduced a - regression for no-config scenario. Reverting to fix bugs with no graphql - config crashing the server. +- [#2818](https://github.com/graphql/graphiql/pull/2818) [`929152f8`](https://github.com/graphql/graphiql/commit/929152f8ea076ffa3bf34b83445473331c3bdb67) Thanks [@acao](https://github.com/acao)! - Workspaces support introduced a regression for no-config scenario. Reverting to fix bugs with no graphql config crashing the server. ## 2.8.8 ### Patch Changes -- [#2812](https://github.com/graphql/graphiql/pull/2812) - [`cf2e3061`](https://github.com/graphql/graphiql/commit/cf2e3061f67ef5cf6b890e217d20915d0eaec1bd) - Thanks [@acao](https://github.com/acao)! - fix a bundling bug for vscode, - rolling back graphql-config upgrade +- [#2812](https://github.com/graphql/graphiql/pull/2812) [`cf2e3061`](https://github.com/graphql/graphiql/commit/cf2e3061f67ef5cf6b890e217d20915d0eaec1bd) Thanks [@acao](https://github.com/acao)! - fix a bundling bug for vscode, rolling back graphql-config upgrade ## 2.8.7 ### Patch Changes -- [#2810](https://github.com/graphql/graphiql/pull/2810) - [`f688422e`](https://github.com/graphql/graphiql/commit/f688422ed87ddd411cf3552fa6d9a5a367cd8662) - Thanks [@acao](https://github.com/acao)! - fix graphql exec extension, upgrade - `graphql-config`, fix issue with graphql-config cosmiconfig typescript config - loader. +- [#2810](https://github.com/graphql/graphiql/pull/2810) [`f688422e`](https://github.com/graphql/graphiql/commit/f688422ed87ddd411cf3552fa6d9a5a367cd8662) Thanks [@acao](https://github.com/acao)! - fix graphql exec extension, upgrade `graphql-config`, fix issue with graphql-config cosmiconfig typescript config loader. ## 2.8.6 ### Patch Changes -- [#2808](https://github.com/graphql/graphiql/pull/2808) - [`a2071504`](https://github.com/graphql/graphiql/commit/a20715046fe7684bb9b17fbc9f5637b44e5210d6) - Thanks [@acao](https://github.com/acao)! - fix graphql config init bug +- [#2808](https://github.com/graphql/graphiql/pull/2808) [`a2071504`](https://github.com/graphql/graphiql/commit/a20715046fe7684bb9b17fbc9f5637b44e5210d6) Thanks [@acao](https://github.com/acao)! - fix graphql config init bug ## 2.8.5 ### Patch Changes -- [#2616](https://github.com/graphql/graphiql/pull/2616) - [`b0d7f06c`](https://github.com/graphql/graphiql/commit/b0d7f06cf9ec6fd6b1dcb61dd0273e37dd546ed5) - Thanks [@acao](https://github.com/acao)! - support vscode multi-root - workspaces! creates an LSP server instance for each workspace. +- [#2616](https://github.com/graphql/graphiql/pull/2616) [`b0d7f06c`](https://github.com/graphql/graphiql/commit/b0d7f06cf9ec6fd6b1dcb61dd0273e37dd546ed5) Thanks [@acao](https://github.com/acao)! - support vscode multi-root workspaces! creates an LSP server instance for each workspace. - WARNING: large-scale vscode workspaces usage, and this in tandem with - `graphql.config.*` multi-project configs could lead to excessive system - resource usage. Optimizations coming soon. + WARNING: large-scale vscode workspaces usage, and this in tandem with `graphql.config.*` multi-project configs could lead to excessive system resource usage. Optimizations coming soon. ## 2.8.4 ### Patch Changes -- Updated dependencies - [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: +- Updated dependencies [[`d6ff4d7a`](https://github.com/graphql/graphiql/commit/d6ff4d7a5d535a0c43fe5914016bac9ef0c2b782)]: - graphql-language-service@5.1.0 ## 2.8.3 ### Patch Changes -- [#2664](https://github.com/graphql/graphiql/pull/2664) - [`721425b3`](https://github.com/graphql/graphiql/commit/721425b3382e68dd4c7b883473e3eda38a9816ee) - Thanks [@acao](https://github.com/acao)! - This reverts the bugfix for - .graphqlrc.ts users, which broke the extension for schema url users +- [#2664](https://github.com/graphql/graphiql/pull/2664) [`721425b3`](https://github.com/graphql/graphiql/commit/721425b3382e68dd4c7b883473e3eda38a9816ee) Thanks [@acao](https://github.com/acao)! - This reverts the bugfix for .graphqlrc.ts users, which broke the extension for schema url users ## 2.8.2 ### Patch Changes -- [#2660](https://github.com/graphql/graphiql/pull/2660) - [`34d31fbc`](https://github.com/graphql/graphiql/commit/34d31fbce6c49c929b48bdf1a6b0cebc33d8bbbf) - Thanks [@acao](https://github.com/acao)! - bump `ts-node` to 10.x, so that - TypeScript based configs (i.e. `.graphqlrc.ts`) will continue to work. It also - bumps to the latest patch releases of `graphql-config` fixed several issues - with TypeScript loading - ([v4.3.2](https://github.com/kamilkisiela/graphql-config/releases/tag/v4.3.2), - [v4.3.3](https://github.com/kamilkisiela/graphql-config/releases/tag/v4.3.3)). - We tested manually, but please open a bug if you encounter any with - schema-as-url configs & schema introspection. +- [#2660](https://github.com/graphql/graphiql/pull/2660) [`34d31fbc`](https://github.com/graphql/graphiql/commit/34d31fbce6c49c929b48bdf1a6b0cebc33d8bbbf) Thanks [@acao](https://github.com/acao)! - bump `ts-node` to 10.x, so that TypeScript based configs (i.e. `.graphqlrc.ts`) will continue to work. It also bumps to the latest patch releases of `graphql-config` fixed several issues with TypeScript loading ([v4.3.2](https://github.com/kamilkisiela/graphql-config/releases/tag/v4.3.2), [v4.3.3](https://github.com/kamilkisiela/graphql-config/releases/tag/v4.3.3)). We tested manually, but please open a bug if you encounter any with schema-as-url configs & schema introspection. ## 2.8.1 ### Patch Changes -- [#2623](https://github.com/graphql/graphiql/pull/2623) - [`12cf4db0`](https://github.com/graphql/graphiql/commit/12cf4db006d1c058460bc04f51d8743fe1ac63bb) - Thanks [@acao](https://github.com/acao)! - In #2624, fix introspection schema - fetching regression in lsp server, and fix for users writing new .gql/.graphql - files +- [#2623](https://github.com/graphql/graphiql/pull/2623) [`12cf4db0`](https://github.com/graphql/graphiql/commit/12cf4db006d1c058460bc04f51d8743fe1ac63bb) Thanks [@acao](https://github.com/acao)! - In #2624, fix introspection schema fetching regression in lsp server, and fix for users writing new .gql/.graphql files ## 2.8.0 ### Minor Changes -- [#2557](https://github.com/graphql/graphiql/pull/2557) - [`3304606d`](https://github.com/graphql/graphiql/commit/3304606d5130a745cbdab0e6c9182e75101ddde9) - Thanks [@acao](https://github.com/acao)! - upgrades the - `vscode-languageserver` and `vscode-jsonrpc` reference implementations for the - lsp server to the latest. also upgrades `vscode-languageclient` in - `vscode-graphql` to the latest 8.0.1. seems to work fine for IPC in - `vscode-graphql` at least! +- [#2557](https://github.com/graphql/graphiql/pull/2557) [`3304606d`](https://github.com/graphql/graphiql/commit/3304606d5130a745cbdab0e6c9182e75101ddde9) Thanks [@acao](https://github.com/acao)! - upgrades the `vscode-languageserver` and `vscode-jsonrpc` reference implementations for the lsp server to the latest. also upgrades `vscode-languageclient` in `vscode-graphql` to the latest 8.0.1. seems to work fine for IPC in `vscode-graphql` at least! hopefully this solves #2230 once and for all! @@ -292,216 +181,141 @@ ### Patch Changes -- [#2553](https://github.com/graphql/graphiql/pull/2553) - [`edc1c964`](https://github.com/graphql/graphiql/commit/edc1c96477cc2fbc2b6ac5d6195b8f9766a8c5d4) - Thanks [@acao](https://github.com/acao)! - Fix error with LSP crash for CLI - users #2230. `vscode-graphql` not impacted - rather, `nvim.coc`, maybe other - clients who use CLI directly). recreation of #2546 by - [@xuanduc987](https://github.com/xuanduc987, thank you!) +- [#2553](https://github.com/graphql/graphiql/pull/2553) [`edc1c964`](https://github.com/graphql/graphiql/commit/edc1c96477cc2fbc2b6ac5d6195b8f9766a8c5d4) Thanks [@acao](https://github.com/acao)! - Fix error with LSP crash for CLI users #2230. `vscode-graphql` not impacted - rather, `nvim.coc`, maybe other clients who use CLI directly). recreation of #2546 by [@xuanduc987](https://github.com/xuanduc987, thank you!) ## 2.7.28 ### Patch Changes -- [#2519](https://github.com/graphql/graphiql/pull/2519) - [`de5d5a07`](https://github.com/graphql/graphiql/commit/de5d5a07891fd49241a5abbb17eaf377a015a0a8) - Thanks [@acao](https://github.com/acao)! - enable graphql-config legacy mode - by default in the LSP server +- [#2519](https://github.com/graphql/graphiql/pull/2519) [`de5d5a07`](https://github.com/graphql/graphiql/commit/de5d5a07891fd49241a5abbb17eaf377a015a0a8) Thanks [@acao](https://github.com/acao)! - enable graphql-config legacy mode by default in the LSP server -* [#2509](https://github.com/graphql/graphiql/pull/2509) - [`737d4184`](https://github.com/graphql/graphiql/commit/737d4184f3af1d8fe9d64eb1b7e23dfcfbe640ea) - Thanks [@Chnapy](https://github.com/Chnapy)! - Add ` gql(``) `, - ` graphql(``) ` call expressions support for highlighting & language +* [#2509](https://github.com/graphql/graphiql/pull/2509) [`737d4184`](https://github.com/graphql/graphiql/commit/737d4184f3af1d8fe9d64eb1b7e23dfcfbe640ea) Thanks [@Chnapy](https://github.com/Chnapy)! - Add ` gql(``) `, ` graphql(``) ` call expressions support for highlighting & language ## 2.7.27 ### Patch Changes -- [#2506](https://github.com/graphql/graphiql/pull/2506) - [`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c) - Thanks [@acao](https://github.com/acao)! - Remove redundant check, trigger LSP - release +- [#2506](https://github.com/graphql/graphiql/pull/2506) [`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c) Thanks [@acao](https://github.com/acao)! - Remove redundant check, trigger LSP release -- Updated dependencies - [[`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: +- Updated dependencies [[`cccefa70`](https://github.com/graphql/graphiql/commit/cccefa70c0466d60e8496e1df61aeb1490af723c)]: - graphql-language-service@5.0.6 ## 2.7.26 ### Patch Changes -- [#2486](https://github.com/graphql/graphiql/pull/2486) - [`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa) - Thanks [@stonexer](https://github.com/stonexer)! - definition support for - operation fields ✨ +- [#2486](https://github.com/graphql/graphiql/pull/2486) [`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa) Thanks [@stonexer](https://github.com/stonexer)! - definition support for operation fields ✨ - you can now jump to the applicable object type definition for - query/mutation/subscription fields! + you can now jump to the applicable object type definition for query/mutation/subscription fields! -- Updated dependencies - [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: +- Updated dependencies [[`c9c51b8a`](https://github.com/graphql/graphiql/commit/c9c51b8a98e1f0427272d3e9ad60989b32f1a1aa)]: - graphql-language-service@5.0.5 ## 2.7.25 ### Patch Changes -- [#2481](https://github.com/graphql/graphiql/pull/2481) - [`cf092f59`](https://github.com/graphql/graphiql/commit/cf092f5960eae250bb193b9011b2fb883f797a99) - Thanks [@acao](https://github.com/acao)! - No longer load dotenv in the LSP - server +- [#2481](https://github.com/graphql/graphiql/pull/2481) [`cf092f59`](https://github.com/graphql/graphiql/commit/cf092f5960eae250bb193b9011b2fb883f797a99) Thanks [@acao](https://github.com/acao)! - No longer load dotenv in the LSP server ## 2.7.24 ### Patch Changes -- [#2470](https://github.com/graphql/graphiql/pull/2470) - [`d0017a93`](https://github.com/graphql/graphiql/commit/d0017a93b818cf3119e51c2b6c4a19004f98e29b) - Thanks [@acao](https://github.com/acao)! - Aims to resolve #2421 +- [#2470](https://github.com/graphql/graphiql/pull/2470) [`d0017a93`](https://github.com/graphql/graphiql/commit/d0017a93b818cf3119e51c2b6c4a19004f98e29b) Thanks [@acao](https://github.com/acao)! - Aims to resolve #2421 - graphql config errors only log to output channel, no longer crash the LSP - more performant LSP request no-ops for failing/missing config - this used to fail silently in the output channel, but vscode introduced a new - retry and notification for this + this used to fail silently in the output channel, but vscode introduced a new retry and notification for this - would like to provide more helpful graphql config DX in the future but this - should be better for now + would like to provide more helpful graphql config DX in the future but this should be better for now ## 2.7.23 ### Patch Changes -- [#2417](https://github.com/graphql/graphiql/pull/2417) - [`6ca6a92d`](https://github.com/graphql/graphiql/commit/6ca6a92d0fd12af974683de9706c8e8e06c751c2) - Thanks [@acao](https://github.com/acao)! - fix annoying trigger character on - newline issue #2182 +- [#2417](https://github.com/graphql/graphiql/pull/2417) [`6ca6a92d`](https://github.com/graphql/graphiql/commit/6ca6a92d0fd12af974683de9706c8e8e06c751c2) Thanks [@acao](https://github.com/acao)! - fix annoying trigger character on newline issue #2182 ## 2.7.22 ### Patch Changes -- [#2385](https://github.com/graphql/graphiql/pull/2385) - [`6db28447`](https://github.com/graphql/graphiql/commit/6db284479a14873fea3e359efd71be0b15ab3ee8) - Thanks [@acao](https://github.com/acao)! - Stop reporting unnecessary EOF - errors when authoring new queries +- [#2385](https://github.com/graphql/graphiql/pull/2385) [`6db28447`](https://github.com/graphql/graphiql/commit/6db284479a14873fea3e359efd71be0b15ab3ee8) Thanks [@acao](https://github.com/acao)! - Stop reporting unnecessary EOF errors when authoring new queries -* [#2382](https://github.com/graphql/graphiql/pull/2382) - [`1bea864d`](https://github.com/graphql/graphiql/commit/1bea864d05dee04bb20c06dc3c3d68675b87a50a) - Thanks [@acao](https://github.com/acao)! - allow disabling query/SDL - validation with `graphql-config` setting - `{ extensions: { languageService: { enableValidation: false } } }`. +* [#2382](https://github.com/graphql/graphiql/pull/2382) [`1bea864d`](https://github.com/graphql/graphiql/commit/1bea864d05dee04bb20c06dc3c3d68675b87a50a) Thanks [@acao](https://github.com/acao)! - allow disabling query/SDL validation with `graphql-config` setting `{ extensions: { languageService: { enableValidation: false } } }`. - Currently, users receive duplicate validation messages when using our LSP - alongside existing validation tools like `graphql-eslint`, and this allows - them to disable the LSP feature in that case. + Currently, users receive duplicate validation messages when using our LSP alongside existing validation tools like `graphql-eslint`, and this allows them to disable the LSP feature in that case. ## 2.7.21 ### Patch Changes -- [#2378](https://github.com/graphql/graphiql/pull/2378) - [`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2) - Thanks [@acao](https://github.com/acao)! - Trap all graphql parsing exceptions - from (relatively) newly added logic. This should clear up bugs that have been - plaguing users for two years now, sorry! +- [#2378](https://github.com/graphql/graphiql/pull/2378) [`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2) Thanks [@acao](https://github.com/acao)! - Trap all graphql parsing exceptions from (relatively) newly added logic. This should clear up bugs that have been plaguing users for two years now, sorry! -- Updated dependencies - [[`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2)]: +- Updated dependencies [[`d22f6111`](https://github.com/graphql/graphiql/commit/d22f6111a60af25727d8dbc1058c79607df76af2)]: - graphql-language-service@5.0.4 ## 2.7.20 ### Patch Changes -- Updated dependencies - [[`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902)]: +- Updated dependencies [[`45cbc759`](https://github.com/graphql/graphiql/commit/45cbc759c732999e8b1eb4714d6047ab77c17902)]: - graphql-language-service@5.0.3 ## 2.7.19 ### Patch Changes -- [`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f) - Thanks [@acao](https://github.com/acao)! - - upgrade `graphql-config` to - latest in server - - remove `graphql-config` dependency from `vscode-graphql` and - `graphql-language-service` - - fix `vscode-graphql` esbuild bundling bug in `vscode-graphql` - [#2269](https://github.com/graphql/graphiql/issues/2269) by fixing `esbuild` - version -- Updated dependencies - [[`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f)]: +- [`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f) Thanks [@acao](https://github.com/acao)! - - upgrade `graphql-config` to latest in server + - remove `graphql-config` dependency from `vscode-graphql` and `graphql-language-service` + - fix `vscode-graphql` esbuild bundling bug in `vscode-graphql` [#2269](https://github.com/graphql/graphiql/issues/2269) by fixing `esbuild` version +- Updated dependencies [[`c36504a8`](https://github.com/graphql/graphiql/commit/c36504a804d8cc54a5136340152999b4a1a2c69f)]: - graphql-language-service@5.0.2 ## 2.7.18 ### Patch Changes -- [#2271](https://github.com/graphql/graphiql/pull/2271) - [`e15d1dae`](https://github.com/graphql/graphiql/commit/e15d1dae399a7d43d8d98f2ce431a9a1f0ba84ae) - Thanks [@acao](https://github.com/acao)! - a few bugfixes related to config - handling impacting vim and potentially other LSP server users +- [#2271](https://github.com/graphql/graphiql/pull/2271) [`e15d1dae`](https://github.com/graphql/graphiql/commit/e15d1dae399a7d43d8d98f2ce431a9a1f0ba84ae) Thanks [@acao](https://github.com/acao)! - a few bugfixes related to config handling impacting vim and potentially other LSP server users ## 2.7.17 ### Patch Changes -- Updated dependencies - [[`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa), - [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa)]: +- Updated dependencies [[`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa), [`3626f8d5`](https://github.com/graphql/graphiql/commit/3626f8d5012ee77a39e984ae347396cb00fcc6fa)]: - graphql-language-service@5.0.1 ## 2.7.16 ### Patch Changes -- Updated dependencies - [[`2502a364`](https://github.com/graphql/graphiql/commit/2502a364b74dc754d92baa1579b536cf42139958)]: +- Updated dependencies [[`2502a364`](https://github.com/graphql/graphiql/commit/2502a364b74dc754d92baa1579b536cf42139958)]: - graphql-language-service@5.0.0 ## 2.7.15 ### Patch Changes -- [#2214](https://github.com/graphql/graphiql/pull/2214) - [`ab83198f`](https://github.com/graphql/graphiql/commit/ab83198fa8b3c5453d3733982ee9ca8a2d6bca7a) - Thanks [@Cellule](https://github.com/Cellule)! - Fixed Windows fileUri when - resolving type definition location +- [#2214](https://github.com/graphql/graphiql/pull/2214) [`ab83198f`](https://github.com/graphql/graphiql/commit/ab83198fa8b3c5453d3733982ee9ca8a2d6bca7a) Thanks [@Cellule](https://github.com/Cellule)! - Fixed Windows fileUri when resolving type definition location ## 2.7.14 ### Patch Changes -- [#2161](https://github.com/graphql/graphiql/pull/2161) - [`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f) - Thanks [@orta](https://github.com/orta)! - Do not log errors when a JS/TS file - has no embedded graphql tags - -* [#2176](https://github.com/graphql/graphiql/pull/2176) - [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c) - Thanks [@orta](https://github.com/orta)! - Update babel parser in the graphql - language server - -- [#2175](https://github.com/graphql/graphiql/pull/2175) - [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5) - Thanks [@orta](https://github.com/orta)! - Better handling of unparsable babel - JS/TS files - -- Updated dependencies - [[`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f), - [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c), - [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5)]: +- [#2161](https://github.com/graphql/graphiql/pull/2161) [`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f) Thanks [@orta](https://github.com/orta)! - Do not log errors when a JS/TS file has no embedded graphql tags + +* [#2176](https://github.com/graphql/graphiql/pull/2176) [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c) Thanks [@orta](https://github.com/orta)! - Update babel parser in the graphql language server + +- [#2175](https://github.com/graphql/graphiql/pull/2175) [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5) Thanks [@orta](https://github.com/orta)! - Better handling of unparsable babel JS/TS files + +- Updated dependencies [[`484c0523`](https://github.com/graphql/graphiql/commit/484c0523cdd529f9e261d61a38616b6745075c7f), [`5852ba47`](https://github.com/graphql/graphiql/commit/5852ba47c720a2577817aed512bef9a262254f2c), [`48c5df65`](https://github.com/graphql/graphiql/commit/48c5df654e323cee3b8c57d7414247465235d1b5)]: - graphql-language-service@4.1.5 ## 2.7.13 ### Patch Changes -- [#2111](https://github.com/graphql/graphiql/pull/2111) - [`08ff6dce`](https://github.com/graphql/graphiql/commit/08ff6dce0625f7ab58a45364aed9ca04c7862fa7) - Thanks [@acao](https://github.com/acao)! - Support template literals and - tagged template literals with replacement expressions +- [#2111](https://github.com/graphql/graphiql/pull/2111) [`08ff6dce`](https://github.com/graphql/graphiql/commit/08ff6dce0625f7ab58a45364aed9ca04c7862fa7) Thanks [@acao](https://github.com/acao)! - Support template literals and tagged template literals with replacement expressions - Updated dependencies []: - graphql-language-service@4.1.4 @@ -510,29 +324,23 @@ ### Patch Changes -- Updated dependencies - [[`a44772d6`](https://github.com/graphql/graphiql/commit/a44772d6af97254c4f159ea7237e842a3e3719e8)]: +- Updated dependencies [[`a44772d6`](https://github.com/graphql/graphiql/commit/a44772d6af97254c4f159ea7237e842a3e3719e8)]: - graphql-language-service@4.1.3 ## 2.7.11 ### Patch Changes -- Updated dependencies - [[`e20760fb`](https://github.com/graphql/graphiql/commit/e20760fbd95c13d6d549cba3faa15a59aee9a2c0)]: +- Updated dependencies [[`e20760fb`](https://github.com/graphql/graphiql/commit/e20760fbd95c13d6d549cba3faa15a59aee9a2c0)]: - graphql-language-service@4.1.2 ## 2.7.10 ### Patch Changes -- [#2091](https://github.com/graphql/graphiql/pull/2091) - [`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63) - Thanks [@acao](https://github.com/acao)! - Fix graphql 15 related issues. - Should now build & test interchangeably. +- [#2091](https://github.com/graphql/graphiql/pull/2091) [`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63) Thanks [@acao](https://github.com/acao)! - Fix graphql 15 related issues. Should now build & test interchangeably. -- Updated dependencies - [[`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63)]: +- Updated dependencies [[`ff9cebe5`](https://github.com/graphql/graphiql/commit/ff9cebe515a3539f85b9479954ae644dfeb68b63)]: - graphql-language-service-utils@2.7.1 - graphql-language-service@4.1.1 @@ -540,16 +348,14 @@ ### Patch Changes -- Updated dependencies - [[`0f1f90ce`](https://github.com/graphql/graphiql/commit/0f1f90ce8f4a25ddebdaf7a9ddbe136214aa64a3)]: +- Updated dependencies [[`0f1f90ce`](https://github.com/graphql/graphiql/commit/0f1f90ce8f4a25ddebdaf7a9ddbe136214aa64a3)]: - graphql-language-service@4.1.0 ## 2.7.8 ### Patch Changes -- Updated dependencies - [[`9df315b4`](https://github.com/graphql/graphiql/commit/9df315b44896efa313ed6744445fc8f9e702ebc3)]: +- Updated dependencies [[`9df315b4`](https://github.com/graphql/graphiql/commit/9df315b44896efa313ed6744445fc8f9e702ebc3)]: - graphql-language-service-utils@2.7.0 - graphql-language-service@4.0.0 @@ -557,62 +363,40 @@ ### Patch Changes -- [`c4236190`](https://github.com/graphql/graphiql/commit/c4236190f91adedaf4f4a54cd0400a6b42c3c407) - [#2072](https://github.com/graphql/graphiql/pull/2072) Thanks - [@acao](https://github.com/acao)! - this fixes the parsing of file URIs by - `graphql-language-service-server` in cases such as: +- [`c4236190`](https://github.com/graphql/graphiql/commit/c4236190f91adedaf4f4a54cd0400a6b42c3c407) [#2072](https://github.com/graphql/graphiql/pull/2072) Thanks [@acao](https://github.com/acao)! - this fixes the parsing of file URIs by `graphql-language-service-server` in cases such as: - windows without WSL - special characters in filenames - likely other cases - previously we were using the old approach of `URL(uri).pathname` which was not - working! now using the standard `vscode-uri` approach of - `URI.parse(uri).fsName`. + previously we were using the old approach of `URL(uri).pathname` which was not working! now using the standard `vscode-uri` approach of `URI.parse(uri).fsName`. - this should fix issues with object and fragment type completion as well I - think + this should fix issues with object and fragment type completion as well I think - also for #2066 made it so that graphql config is not loaded into the file - cache unnecessarily, and that it's only loaded on editor save events rather - than on file changed events + also for #2066 made it so that graphql config is not loaded into the file cache unnecessarily, and that it's only loaded on editor save events rather than on file changed events fixes #1644 and #2066 -* [`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1) - [#2065](https://github.com/graphql/graphiql/pull/2065) Thanks - [@acao](https://github.com/acao)! - Add an opt-in feature to generate markdown - in hover elements, starting with highlighting type information. Enabled for - the language server and also the language service and thus `monaco-graphql` as - well. +* [`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1) [#2065](https://github.com/graphql/graphiql/pull/2065) Thanks [@acao](https://github.com/acao)! - Add an opt-in feature to generate markdown in hover elements, starting with highlighting type information. Enabled for the language server and also the language service and thus `monaco-graphql` as well. -* Updated dependencies - [[`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1)]: +* Updated dependencies [[`df57cd25`](https://github.com/graphql/graphiql/commit/df57cd2556302d6aa5dd140e7bee3f7bdab4deb1)]: - graphql-language-service@3.2.5 ## 2.7.6 ### Patch Changes -- [`4286185c`](https://github.com/graphql/graphiql/commit/4286185cdc6119175e23d66b8e177ba32693a63a) - [#2060](https://github.com/graphql/graphiql/pull/2060) Thanks - [@acao](https://github.com/acao)! - Parse more JS extensions in the language - server +- [`4286185c`](https://github.com/graphql/graphiql/commit/4286185cdc6119175e23d66b8e177ba32693a63a) [#2060](https://github.com/graphql/graphiql/pull/2060) Thanks [@acao](https://github.com/acao)! - Parse more JS extensions in the language server ## 2.7.5 ### Patch Changes -- [`f82bd7a9`](https://github.com/graphql/graphiql/commit/f82bd7a931eb5fa9a33e59d417303706844c9063) - [#2055](https://github.com/graphql/graphiql/pull/2055) Thanks - [@acao](https://github.com/acao)! - this fixes the URI scheme related bugs and - make sure schema as sdl config works again. +- [`f82bd7a9`](https://github.com/graphql/graphiql/commit/f82bd7a931eb5fa9a33e59d417303706844c9063) [#2055](https://github.com/graphql/graphiql/pull/2055) Thanks [@acao](https://github.com/acao)! - this fixes the URI scheme related bugs and make sure schema as sdl config works again. - `fileURLToPath` had been introduced by a contributor and I didn't test - properly, it broke sdl file loading! + `fileURLToPath` had been introduced by a contributor and I didn't test properly, it broke sdl file loading! - definitions, autocomplete, diagnostics, etc should work again also hides the - more verbose logging output for now + definitions, autocomplete, diagnostics, etc should work again also hides the more verbose logging output for now - Updated dependencies []: - graphql-language-service@3.2.4 @@ -622,14 +406,9 @@ ### Patch Changes -- [`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf) - [#2047](https://github.com/graphql/graphiql/pull/2047) Thanks - [@willstott101](https://github.com/willstott101)! - Source code included in - all packages to fix source maps. codemirror-graphql includes esm build in - package. +- [`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf) [#2047](https://github.com/graphql/graphiql/pull/2047) Thanks [@willstott101](https://github.com/willstott101)! - Source code included in all packages to fix source maps. codemirror-graphql includes esm build in package. -- Updated dependencies - [[`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf)]: +- Updated dependencies [[`bdd57312`](https://github.com/graphql/graphiql/commit/bdd573129844168749aba0aaa20e31b9da81aacf)]: - graphql-language-service@3.2.3 - graphql-language-service-utils@2.6.2 @@ -637,13 +416,9 @@ ### Patch Changes -- [`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf) - [#2045](https://github.com/graphql/graphiql/pull/2045) Thanks - [@acao](https://github.com/acao)! - fix graphql-js peer dependencies - - [#2044](https://github.com/graphql/graphiql/pull/2044) +- [`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf) [#2045](https://github.com/graphql/graphiql/pull/2045) Thanks [@acao](https://github.com/acao)! - fix graphql-js peer dependencies - [#2044](https://github.com/graphql/graphiql/pull/2044) -- Updated dependencies - [[`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf)]: +- Updated dependencies [[`858907d2`](https://github.com/graphql/graphiql/commit/858907d2106742a65ec52eb017f2e91268cc37bf)]: - graphql-language-service@3.2.2 - graphql-language-service-utils@2.6.1 @@ -651,23 +426,15 @@ ### Patch Changes -- [`7e98c6ff`](https://github.com/graphql/graphiql/commit/7e98c6fff3b1c62954c9c8d902ac64ddbf23fc5d) - Thanks [@acao](https://github.com/acao)! - upgrade - graphql-language-service-server to use graphql-config 4.1.0! adds support for - .ts and .toml config files in the language server, amongst many other - improvements! +- [`7e98c6ff`](https://github.com/graphql/graphiql/commit/7e98c6fff3b1c62954c9c8d902ac64ddbf23fc5d) Thanks [@acao](https://github.com/acao)! - upgrade graphql-language-service-server to use graphql-config 4.1.0! adds support for .ts and .toml config files in the language server, amongst many other improvements! ## 2.7.1 ### Patch Changes -- [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce) - [#2013](https://github.com/graphql/graphiql/pull/2013) Thanks - [@PabloSzx](https://github.com/PabloSzx)! - Update utils +- [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce) [#2013](https://github.com/graphql/graphiql/pull/2013) Thanks [@PabloSzx](https://github.com/PabloSzx)! - Update utils -- Updated dependencies - [[`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce), - [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce)]: +- Updated dependencies [[`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce), [`9a6ed03f`](https://github.com/graphql/graphiql/commit/9a6ed03fbe4de9652ff5d81a8f584234995dd2ce)]: - graphql-language-service-utils@2.6.0 - graphql-language-service@3.2.1 @@ -675,63 +442,40 @@ ### Minor Changes -- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) - [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks - [@acao](https://github.com/acao)! - upgrade to - `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! +- [`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a) [#2010](https://github.com/graphql/graphiql/pull/2010) Thanks [@acao](https://github.com/acao)! - upgrade to `graphql@16.0.0-experimental-stream-defer.5`. thanks @saihaj! ### Patch Changes -- Updated dependencies - [[`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a)]: +- Updated dependencies [[`716cf786`](https://github.com/graphql/graphiql/commit/716cf786aea6af42ea637ca3c56ae6c6ebc17c7a)]: - graphql-language-service@3.2.0 ## 2.6.5 ### Patch Changes -- [`83c4a007`](https://github.com/graphql/graphiql/commit/83c4a0070a4df704ce874ec977d65ca6c7e43ee8) - [#1964](https://github.com/graphql/graphiql/pull/1964) Thanks - [@patrickszmucer](https://github.com/patrickszmucer)! - Fix unknown fragment - errors on save +- [`83c4a007`](https://github.com/graphql/graphiql/commit/83c4a0070a4df704ce874ec977d65ca6c7e43ee8) [#1964](https://github.com/graphql/graphiql/pull/1964) Thanks [@patrickszmucer](https://github.com/patrickszmucer)! - Fix unknown fragment errors on save -* [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8) - [#1777](https://github.com/graphql/graphiql/pull/1777) Thanks - [@dwwoelfel](https://github.com/dwwoelfel)! - adopt block string parsing for - variables in language parser +* [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8) [#1777](https://github.com/graphql/graphiql/pull/1777) Thanks [@dwwoelfel](https://github.com/dwwoelfel)! - adopt block string parsing for variables in language parser -* Updated dependencies - [[`0e2c1a02`](https://github.com/graphql/graphiql/commit/0e2c1a020cc2761155f7c9467d3ed4cb45941aeb), - [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8)]: +* Updated dependencies [[`0e2c1a02`](https://github.com/graphql/graphiql/commit/0e2c1a020cc2761155f7c9467d3ed4cb45941aeb), [`75dbb0b1`](https://github.com/graphql/graphiql/commit/75dbb0b18e2102d271a5cfe78faf54fe22e83ac8)]: - graphql-language-service@3.1.6 ## 2.6.4 ### Patch Changes -- [`72bff0e7`](https://github.com/graphql/graphiql/commit/72bff0e7db46fb53293efc990dc64d2c06401459) - [#1951](https://github.com/graphql/graphiql/pull/1951) Thanks - [@GoodForOneFare](https://github.com/GoodForOneFare)! - fix: skip config - updates when no custom filename is defined +- [`72bff0e7`](https://github.com/graphql/graphiql/commit/72bff0e7db46fb53293efc990dc64d2c06401459) [#1951](https://github.com/graphql/graphiql/pull/1951) Thanks [@GoodForOneFare](https://github.com/GoodForOneFare)! - fix: skip config updates when no custom filename is defined -* [`2fd5bf72`](https://github.com/graphql/graphiql/commit/2fd5bf7239edb78339e5ac7211f09c245e47c3bb) - [#1941](https://github.com/graphql/graphiql/pull/1941) Thanks - [@arcanis](https://github.com/arcanis)! - Adds support for `#graphql` and - `/* GraphQL */` in the language server +* [`2fd5bf72`](https://github.com/graphql/graphiql/commit/2fd5bf7239edb78339e5ac7211f09c245e47c3bb) [#1941](https://github.com/graphql/graphiql/pull/1941) Thanks [@arcanis](https://github.com/arcanis)! - Adds support for `#graphql` and `/* GraphQL */` in the language server -* Updated dependencies - [[`2fd5bf72`](https://github.com/graphql/graphiql/commit/2fd5bf7239edb78339e5ac7211f09c245e47c3bb)]: +* Updated dependencies [[`2fd5bf72`](https://github.com/graphql/graphiql/commit/2fd5bf7239edb78339e5ac7211f09c245e47c3bb)]: - graphql-language-service@3.1.5 ## 2.6.3 ### Patch Changes -- [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) - [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks - [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 - & 15. `14.5.0` minimum is for built-in typescript types, and another method - only available in `14.4.0` +- [`6869ce77`](https://github.com/graphql/graphiql/commit/6869ce7767050787db5f1017abf82fa5a52fc97a) [#1816](https://github.com/graphql/graphiql/pull/1816) Thanks [@acao](https://github.com/acao)! - improve peer resolutions for graphql 14 & 15. `14.5.0` minimum is for built-in typescript types, and another method only available in `14.4.0` ## [2.6.2](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.6.1...graphql-language-service-server@2.6.2) (2021-01-07) @@ -745,10 +489,7 @@ ### Features -- implied or external fragments, for - [#612](https://github.com/graphql/graphiql/issues/612) - ([#1750](https://github.com/graphql/graphiql/issues/1750)) - ([cfed265](https://github.com/graphql/graphiql/commit/cfed265e3cf31875b39ea517781a217fcdfcadc2)) +- implied or external fragments, for [#612](https://github.com/graphql/graphiql/issues/612) ([#1750](https://github.com/graphql/graphiql/issues/1750)) ([cfed265](https://github.com/graphql/graphiql/commit/cfed265e3cf31875b39ea517781a217fcdfcadc2)) ## [2.5.9](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.5.8...graphql-language-service-server@2.5.9) (2021-01-03) @@ -766,12 +507,8 @@ ### Bug Fixes -- crash on receiving an LSP message in "stream" mode - ([1238075](https://github.com/graphql/graphiql/commit/1238075c5bbd18b09f493c0018da5e4b24e8e615)), - closes [#1708](https://github.com/graphql/graphiql/issues/1708) -- languageserver filepath on Windows - ([#1715](https://github.com/graphql/graphiql/issues/1715)) - ([d2feff9](https://github.com/graphql/graphiql/commit/d2feff92aba979fb52fd0e5846776be223fbf11e)) +- crash on receiving an LSP message in "stream" mode ([1238075](https://github.com/graphql/graphiql/commit/1238075c5bbd18b09f493c0018da5e4b24e8e615)), closes [#1708](https://github.com/graphql/graphiql/issues/1708) +- languageserver filepath on Windows ([#1715](https://github.com/graphql/graphiql/issues/1715)) ([d2feff9](https://github.com/graphql/graphiql/commit/d2feff92aba979fb52fd0e5846776be223fbf11e)) ## [2.5.5](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.5.4...graphql-language-service-server@2.5.5) (2020-10-20) @@ -781,9 +518,7 @@ ### Bug Fixes -- useSchemaFileDefinitions, cleanup - ([#1674](https://github.com/graphql/graphiql/issues/1674)) - ([3673455](https://github.com/graphql/graphiql/commit/36734557e2874384adbfe86b64aeaa93e06df53f)) +- useSchemaFileDefinitions, cleanup ([#1674](https://github.com/graphql/graphiql/issues/1674)) ([3673455](https://github.com/graphql/graphiql/commit/36734557e2874384adbfe86b64aeaa93e06df53f)) ## [2.5.3](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.5.2...graphql-language-service-server@2.5.3) (2020-09-23) @@ -793,17 +528,13 @@ ### Bug Fixes -- re-introduce allowed extensions - ([#1668](https://github.com/graphql/graphiql/issues/1668)) - ([eedd575](https://github.com/graphql/graphiql/commit/eedd5753751857bd5837dd8be8602bf7fadb5517)) +- re-introduce allowed extensions ([#1668](https://github.com/graphql/graphiql/issues/1668)) ([eedd575](https://github.com/graphql/graphiql/commit/eedd5753751857bd5837dd8be8602bf7fadb5517)) ## [2.5.1](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.5.0...graphql-language-service-server@2.5.1) (2020-09-20) ### Bug Fixes -- better error handling when the config isn't present - ([#1667](https://github.com/graphql/graphiql/issues/1667)) - ([f414300](https://github.com/graphql/graphiql/commit/f4143008f93a8849dfa4caae948d2eceb299a141)) +- better error handling when the config isn't present ([#1667](https://github.com/graphql/graphiql/issues/1667)) ([f414300](https://github.com/graphql/graphiql/commit/f4143008f93a8849dfa4caae948d2eceb299a141)) ## [2.5.0](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.5.0-alpha.5...graphql-language-service-server@2.5.0) (2020-09-18) @@ -817,9 +548,7 @@ ### Features -- custom config baseDir, embedded fragment def offsets - ([#1651](https://github.com/graphql/graphiql/issues/1651)) - ([e8dc958](https://github.com/graphql/graphiql/commit/e8dc958b46544022fe58b498ca5eef572f54afe0)) +- custom config baseDir, embedded fragment def offsets ([#1651](https://github.com/graphql/graphiql/issues/1651)) ([e8dc958](https://github.com/graphql/graphiql/commit/e8dc958b46544022fe58b498ca5eef572f54afe0)) ## [2.5.0-alpha.3](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.5.0-alpha.2...graphql-language-service-server@2.5.0-alpha.3) (2020-08-22) @@ -833,23 +562,17 @@ ### Bug Fixes -- recursively write tmp directories, write schema async - ([#1641](https://github.com/graphql/graphiql/issues/1641)) - ([cd0061e](https://github.com/graphql/graphiql/commit/cd0061e1abe47f5f4075d52a6c1e4157cbd0a95a)) +- recursively write tmp directories, write schema async ([#1641](https://github.com/graphql/graphiql/issues/1641)) ([cd0061e](https://github.com/graphql/graphiql/commit/cd0061e1abe47f5f4075d52a6c1e4157cbd0a95a)) ## [2.5.0-alpha.0](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.4.1...graphql-language-service-server@2.5.0-alpha.0) (2020-08-10) ### Bug Fixes -- pre-caching schema bugs, new server config options - ([#1636](https://github.com/graphql/graphiql/issues/1636)) - ([d989456](https://github.com/graphql/graphiql/commit/d9894564c056134e15093956e0951dcefe061d76)) +- pre-caching schema bugs, new server config options ([#1636](https://github.com/graphql/graphiql/issues/1636)) ([d989456](https://github.com/graphql/graphiql/commit/d9894564c056134e15093956e0951dcefe061d76)) ### Features -- graphql-config@3 support in lsp server - ([#1616](https://github.com/graphql/graphiql/issues/1616)) - ([27cd185](https://github.com/graphql/graphiql/commit/27cd18562b64dfe18e6343b6a49f3f606af89d86)) +- graphql-config@3 support in lsp server ([#1616](https://github.com/graphql/graphiql/issues/1616)) ([27cd185](https://github.com/graphql/graphiql/commit/27cd18562b64dfe18e6343b6a49f3f606af89d86)) ## [2.4.1](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.4.0...graphql-language-service-server@2.4.1) (2020-08-06) @@ -867,8 +590,7 @@ ### Bug Fixes -- cleanup cache entry from lerna publish - ([4a26218](https://github.com/graphql/graphiql/commit/4a2621808a1aea8b30d5d27b8d86a60bf2b44b01)) +- cleanup cache entry from lerna publish ([4a26218](https://github.com/graphql/graphiql/commit/4a2621808a1aea8b30d5d27b8d86a60bf2b44b01)) ## [2.4.0-alpha.10](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.4.0-alpha.9...graphql-language-service-server@2.4.0-alpha.10) (2020-05-28) @@ -882,18 +604,12 @@ ### Bug Fixes -- remove problematic file resolution module from webpack sco… - ([#1489](https://github.com/graphql/graphiql/issues/1489)) - ([8dab038](https://github.com/graphql/graphiql/commit/8dab0385772f443f73b559e2c668080733168236)) -- repair CLI, handle all schema and LSP errors - ([#1482](https://github.com/graphql/graphiql/issues/1482)) - ([992f384](https://github.com/graphql/graphiql/commit/992f38494f20f5877bfd6ff54893854ac7a0eaa2)) +- remove problematic file resolution module from webpack sco… ([#1489](https://github.com/graphql/graphiql/issues/1489)) ([8dab038](https://github.com/graphql/graphiql/commit/8dab0385772f443f73b559e2c668080733168236)) +- repair CLI, handle all schema and LSP errors ([#1482](https://github.com/graphql/graphiql/issues/1482)) ([992f384](https://github.com/graphql/graphiql/commit/992f38494f20f5877bfd6ff54893854ac7a0eaa2)) ### Features -- Monaco Mode - Phase 2 - Mode & Worker - ([#1459](https://github.com/graphql/graphiql/issues/1459)) - ([bc95fb4](https://github.com/graphql/graphiql/commit/bc95fb46459a4437ff9471ff43c98e1c5c50f51e)) +- Monaco Mode - Phase 2 - Mode & Worker ([#1459](https://github.com/graphql/graphiql/issues/1459)) ([bc95fb4](https://github.com/graphql/graphiql/commit/bc95fb46459a4437ff9471ff43c98e1c5c50f51e)) ## [2.4.0-alpha.7](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.4.0-alpha.6...graphql-language-service-server@2.4.0-alpha.7) (2020-04-10) @@ -907,24 +623,17 @@ ### Features -- upgrade to graphql@15.0.0 for - [#1191](https://github.com/graphql/graphiql/issues/1191) - ([#1204](https://github.com/graphql/graphiql/issues/1204)) - ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) +- upgrade to graphql@15.0.0 for [#1191](https://github.com/graphql/graphiql/issues/1191) ([#1204](https://github.com/graphql/graphiql/issues/1204)) ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd)) ## [2.4.0-alpha.4](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.4.0-alpha.3...graphql-language-service-server@2.4.0-alpha.4) (2020-04-03) ### Bug Fixes -- make sure that custom parser is used if passed to process - ([#1438](https://github.com/graphql/graphiql/issues/1438)) - ([5e098a4](https://github.com/graphql/graphiql/commit/5e098a4a80a8e1cff4541ad34363ab2001fcda4a)) +- make sure that custom parser is used if passed to process ([#1438](https://github.com/graphql/graphiql/issues/1438)) ([5e098a4](https://github.com/graphql/graphiql/commit/5e098a4a80a8e1cff4541ad34363ab2001fcda4a)) ### Features -- make sure @ triggers directive completion automatically - ([#1441](https://github.com/graphql/graphiql/issues/1441)) - ([935220a](https://github.com/graphql/graphiql/commit/935220a68641b94af2598840b0ced3fd945f86dd)) +- make sure @ triggers directive completion automatically ([#1441](https://github.com/graphql/graphiql/issues/1441)) ([935220a](https://github.com/graphql/graphiql/commit/935220a68641b94af2598840b0ced3fd945f86dd)) ## [2.4.0-alpha.3](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.4.0-alpha.2...graphql-language-service-server@2.4.0-alpha.3) (2020-03-20) @@ -934,67 +643,41 @@ ### Bug Fixes -- eslint warnings ([#1360](https://github.com/graphql/graphiql/issues/1360)) - ([84d4821](https://github.com/graphql/graphiql/commit/84d4821ee19030314666a46f11a4b69ffaddca45)) -- initial request cache set, import tsc bugs - ([#1266](https://github.com/graphql/graphiql/issues/1266)) - ([6b98f8a](https://github.com/graphql/graphiql/commit/6b98f8a442d4a8ea160fb90a29acf33f5382db2e)) -- restore error handling for server - [#1306](https://github.com/graphql/graphiql/issues/1306) - ([#1425](https://github.com/graphql/graphiql/issues/1425)) - ([c12d975](https://github.com/graphql/graphiql/commit/c12d975027e4021bbea7ad54e7e0c19ac7943e6c)) -- type check ([#1374](https://github.com/graphql/graphiql/issues/1374)) - ([84cc41e](https://github.com/graphql/graphiql/commit/84cc41ef1c5b56d26929edd9669c766cdf3628e8)) -- typo to fix hover ([#1426](https://github.com/graphql/graphiql/issues/1426)) - ([1fdcb28](https://github.com/graphql/graphiql/commit/1fdcb28689bf85a31af10cbdc4648c5ed3013672)) +- eslint warnings ([#1360](https://github.com/graphql/graphiql/issues/1360)) ([84d4821](https://github.com/graphql/graphiql/commit/84d4821ee19030314666a46f11a4b69ffaddca45)) +- initial request cache set, import tsc bugs ([#1266](https://github.com/graphql/graphiql/issues/1266)) ([6b98f8a](https://github.com/graphql/graphiql/commit/6b98f8a442d4a8ea160fb90a29acf33f5382db2e)) +- restore error handling for server [#1306](https://github.com/graphql/graphiql/issues/1306) ([#1425](https://github.com/graphql/graphiql/issues/1425)) ([c12d975](https://github.com/graphql/graphiql/commit/c12d975027e4021bbea7ad54e7e0c19ac7943e6c)) +- type check ([#1374](https://github.com/graphql/graphiql/issues/1374)) ([84cc41e](https://github.com/graphql/graphiql/commit/84cc41ef1c5b56d26929edd9669c766cdf3628e8)) +- typo to fix hover ([#1426](https://github.com/graphql/graphiql/issues/1426)) ([1fdcb28](https://github.com/graphql/graphiql/commit/1fdcb28689bf85a31af10cbdc4648c5ed3013672)) ### Features -- optionally provide LSP an instantiated GraphQLConfig - ([#1432](https://github.com/graphql/graphiql/issues/1432)) - ([012db2a](https://github.com/graphql/graphiql/commit/012db2a39bfcddde63ffd2e93dae0c158f8e73ed)) -- typescript, tsx, jsx support for LSP server using babel - ([#1427](https://github.com/graphql/graphiql/issues/1427)) - ([ee06123](https://github.com/graphql/graphiql/commit/ee061235489c8f5ed27c116c09b606e371ee40c5)) -- **graphql-config:** add graphql config extensions - ([#1118](https://github.com/graphql/graphiql/issues/1118)) - ([2a77e47](https://github.com/graphql/graphiql/commit/2a77e47719ec9181a00183a08ffa11287b8fd2f5)) -- Symbol support for single document - ([#1244](https://github.com/graphql/graphiql/issues/1244)) - ([f729f9a](https://github.com/graphql/graphiql/commit/f729f9a3c20362f4515bf3037347a07cc3690b38)) -- use new GraphQL Config - ([#1342](https://github.com/graphql/graphiql/issues/1342)) - ([e45838f](https://github.com/graphql/graphiql/commit/e45838f5ba579e05b20f1a147ce431478ffad9aa)) +- optionally provide LSP an instantiated GraphQLConfig ([#1432](https://github.com/graphql/graphiql/issues/1432)) ([012db2a](https://github.com/graphql/graphiql/commit/012db2a39bfcddde63ffd2e93dae0c158f8e73ed)) +- typescript, tsx, jsx support for LSP server using babel ([#1427](https://github.com/graphql/graphiql/issues/1427)) ([ee06123](https://github.com/graphql/graphiql/commit/ee061235489c8f5ed27c116c09b606e371ee40c5)) +- **graphql-config:** add graphql config extensions ([#1118](https://github.com/graphql/graphiql/issues/1118)) ([2a77e47](https://github.com/graphql/graphiql/commit/2a77e47719ec9181a00183a08ffa11287b8fd2f5)) +- Symbol support for single document ([#1244](https://github.com/graphql/graphiql/issues/1244)) ([f729f9a](https://github.com/graphql/graphiql/commit/f729f9a3c20362f4515bf3037347a07cc3690b38)) +- use new GraphQL Config ([#1342](https://github.com/graphql/graphiql/issues/1342)) ([e45838f](https://github.com/graphql/graphiql/commit/e45838f5ba579e05b20f1a147ce431478ffad9aa)) ## [2.4.0-alpha.1](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.3.3...graphql-language-service-server@2.4.0-alpha.1) (2020-01-18) ### Bug Fixes -- linting issues, trailingCommas: all - ([#1099](https://github.com/graphql/graphiql/issues/1099)) - ([de4005b](https://github.com/graphql/graphiql/commit/de4005b)) +- linting issues, trailingCommas: all ([#1099](https://github.com/graphql/graphiql/issues/1099)) ([de4005b](https://github.com/graphql/graphiql/commit/de4005b)) ### Features -- convert LSP Server to Typescript, remove watchman - ([#1138](https://github.com/graphql/graphiql/issues/1138)) - ([8e33dbb](https://github.com/graphql/graphiql/commit/8e33dbb)) +- convert LSP Server to Typescript, remove watchman ([#1138](https://github.com/graphql/graphiql/issues/1138)) ([8e33dbb](https://github.com/graphql/graphiql/commit/8e33dbb)) ## [2.3.3](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.3.2...graphql-language-service-server@2.3.3) (2019-12-09) ### Bug Fixes -- a few more tweaks to babel ignore - ([e0ad2c6](https://github.com/graphql/graphiql/commit/e0ad2c6)) +- a few more tweaks to babel ignore ([e0ad2c6](https://github.com/graphql/graphiql/commit/e0ad2c6)) ## [2.3.2](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.3.1...graphql-language-service-server@2.3.2) (2019-12-03) ### Bug Fixes -- convert browserify build to webpack, fixes - [#976](https://github.com/graphql/graphiql/issues/976) - ([#1001](https://github.com/graphql/graphiql/issues/1001)) - ([3caf041](https://github.com/graphql/graphiql/commit/3caf041)) +- convert browserify build to webpack, fixes [#976](https://github.com/graphql/graphiql/issues/976) ([#1001](https://github.com/graphql/graphiql/issues/1001)) ([3caf041](https://github.com/graphql/graphiql/commit/3caf041)) ## [2.3.1](https://github.com/graphql/graphiql/compare/graphql-language-service-server@2.3.0...graphql-language-service-server@2.3.1) (2019-11-26) @@ -1004,10 +687,7 @@ ### Features -- convert LSP from flow to typescript - ([#957](https://github.com/graphql/graphiql/issues/957)) - [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) - ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) +- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) ## 0.0.1 (2017-03-29) @@ -1015,10 +695,7 @@ ### Features -- convert LSP from flow to typescript - ([#957](https://github.com/graphql/graphiql/issues/957)) - [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) - ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) +- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) ## 0.0.1 (2017-03-29) @@ -1026,10 +703,7 @@ ### Features -- convert LSP from flow to typescript - ([#957](https://github.com/graphql/graphiql/issues/957)) - [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) - ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) +- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitsch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669)) ## 0.0.1 (2017-03-29) diff --git a/packages/graphql-language-service-server/package.json b/packages/graphql-language-service-server/package.json index 4fc5ec8e738..d7a98096cc0 100644 --- a/packages/graphql-language-service-server/package.json +++ b/packages/graphql-language-service-server/package.json @@ -1,6 +1,6 @@ { "name": "graphql-language-service-server", - "version": "2.9.7", + "version": "2.9.8", "description": "Server process backing the GraphQL Language Service", "contributors": [ "Greg Hurrell (https://greg.hurrell.net/)", @@ -45,7 +45,7 @@ "fast-glob": "^3.2.7", "glob": "^7.2.0", "graphql-config": "4.3.0", - "graphql-language-service": "^5.1.3", + "graphql-language-service": "^5.1.4", "mkdirp": "^1.0.4", "node-abort-controller": "^3.0.1", "nullthrows": "^1.0.0", diff --git a/packages/graphql-language-service-server/src/GraphQLCache.ts b/packages/graphql-language-service-server/src/GraphQLCache.ts index df87ce89599..146b160783f 100644 --- a/packages/graphql-language-service-server/src/GraphQLCache.ts +++ b/packages/graphql-language-service-server/src/GraphQLCache.ts @@ -151,15 +151,15 @@ export class GraphQLCache implements GraphQLCacheInterface { }); const asts = new Set(); - referencedFragNames.forEach(name => { + for (const name of referencedFragNames) { if (!existingFrags.has(name) && fragmentDefinitions.has(name)) { asts.add(nullthrows(fragmentDefinitions.get(name))); } - }); + } const referencedFragments: FragmentInfo[] = []; - asts.forEach(ast => { + for (const ast of asts) { visit(ast.definition, { FragmentSpread(node) { if ( @@ -174,7 +174,7 @@ export class GraphQLCache implements GraphQLCacheInterface { if (!existingFrags.has(ast.definition.name.value)) { referencedFragments.push(ast); } - }); + } return referencedFragments; }; @@ -252,15 +252,15 @@ export class GraphQLCache implements GraphQLCacheInterface { }); const asts = new Set(); - referencedObjectTypes.forEach(name => { + for (const name of referencedObjectTypes) { if (!existingObjectTypes.has(name) && objectTypeDefinitions.has(name)) { asts.add(nullthrows(objectTypeDefinitions.get(name))); } - }); + } const referencedObjects: ObjectTypeInfo[] = []; - asts.forEach(ast => { + for (const ast of asts) { visit(ast.definition, { NamedType(node) { if ( @@ -275,7 +275,7 @@ export class GraphQLCache implements GraphQLCacheInterface { if (!existingObjectTypes.has(ast.definition.name.value)) { referencedObjects.push(ast); } - }); + } return referencedObjects; }; @@ -412,16 +412,16 @@ export class GraphQLCache implements GraphQLCacheInterface { }); if (cache) { // first go through the fragment list to delete the ones from this file - cache.forEach((value, key) => { + for (const [key, value] of cache.entries()) { if (value.filePath === filePath) { cache.delete(key); } - }); - asts.forEach(({ ast, query }) => { + } + for (const { ast, query } of asts) { if (!ast) { - return; + continue; } - ast.definitions.forEach(definition => { + for (const definition of ast.definitions) { if (definition.kind === Kind.FRAGMENT_DEFINITION) { cache.set(definition.name.value, { filePath, @@ -429,8 +429,8 @@ export class GraphQLCache implements GraphQLCacheInterface { definition, }); } - }); - }); + } + } } } @@ -452,7 +452,11 @@ export class GraphQLCache implements GraphQLCacheInterface { cache.delete(filePath); } } else if (fileAndContent?.queries) { - this.updateFragmentDefinition(rootDir, filePath, fileAndContent.queries); + await this.updateFragmentDefinition( + rootDir, + filePath, + fileAndContent.queries, + ); } } @@ -474,16 +478,16 @@ export class GraphQLCache implements GraphQLCacheInterface { }); if (cache) { // first go through the types list to delete the ones from this file - cache.forEach((value, key) => { + for (const [key, value] of cache.entries()) { if (value.filePath === filePath) { cache.delete(key); } - }); - asts.forEach(({ ast, query }) => { + } + for (const { ast, query } of asts) { if (!ast) { - return; + continue; } - ast.definitions.forEach(definition => { + for (const definition of ast.definitions) { if ( definition.kind === Kind.OBJECT_TYPE_DEFINITION || definition.kind === Kind.INPUT_OBJECT_TYPE_DEFINITION || @@ -495,8 +499,8 @@ export class GraphQLCache implements GraphQLCacheInterface { definition, }); } - }); - }); + } + } } } @@ -518,7 +522,7 @@ export class GraphQLCache implements GraphQLCacheInterface { cache.delete(filePath); } } else if (fileAndContent?.queries) { - this.updateObjectTypeDefinition( + await this.updateObjectTypeDefinition( rootDir, filePath, fileAndContent.queries, @@ -537,12 +541,12 @@ export class GraphQLCache implements GraphQLCacheInterface { if (!graphQLFileMap) { return schema; } - graphQLFileMap.forEach(({ filePath, asts }) => { - asts.forEach(ast => { + for (const { filePath, asts } of graphQLFileMap.values()) { + for (const ast of asts) { if (filePath === schemaPath) { - return; + continue; } - ast.definitions.forEach(definition => { + for (const definition of ast.definitions) { switch (definition.kind) { case Kind.OBJECT_TYPE_DEFINITION: case Kind.INTERFACE_TYPE_DEFINITION: @@ -560,9 +564,9 @@ export class GraphQLCache implements GraphQLCacheInterface { typeExtensions.push(definition); break; } - }); - }); - }); + } + } + } if (schemaCacheKey) { const sorted = typeExtensions.sort((a: any, b: any) => { @@ -675,33 +679,32 @@ export class GraphQLCache implements GraphQLCacheInterface { const responses: GraphQLFileInfo[] = []; while (queue.length) { const chunk = queue.splice(0, MAX_READS); - const promises = chunk.map(fileInfo => - this.promiseToReadGraphQLFile(fileInfo.filePath) - .catch(error => { - // eslint-disable-next-line no-console - console.log('pro', error); - /** - * fs emits `EMFILE | ENFILE` error when there are too many - * open files - this can cause some fragment files not to be - * processed. Solve this case by implementing a queue to save - * files failed to be processed because of `EMFILE` error, - * and await on Promises created with the next batch from the - * queue. - */ - if (error.code === 'EMFILE' || error.code === 'ENFILE') { - queue.push(fileInfo); - } - }) - .then((response: GraphQLFileInfo | void) => { - if (response) { - responses.push({ - ...response, - mtime: fileInfo.mtime, - size: fileInfo.size, - }); - } - }), - ); + const promises = chunk.map(async fileInfo => { + try { + const response = await this.promiseToReadGraphQLFile( + fileInfo.filePath, + ); + responses.push({ + ...response, + mtime: fileInfo.mtime, + size: fileInfo.size, + }); + } catch (error: any) { + // eslint-disable-next-line no-console + console.log('pro', error); + /** + * fs emits `EMFILE | ENFILE` error when there are too many + * open files - this can cause some fragment files not to be + * processed. Solve this case by implementing a queue to save + * files failed to be processed because of `EMFILE` error, + * and await on Promises created with the next batch from the + * queue. + */ + if (error.code === 'EMFILE' || error.code === 'ENFILE') { + queue.push(fileInfo); + } + } + }); await Promise.all(promises); // eslint-disable-line no-await-in-loop } @@ -723,12 +726,12 @@ export class GraphQLCache implements GraphQLCacheInterface { const fragmentDefinitions = new Map(); const graphQLFileMap = new Map(); - responses.forEach(response => { + for (const response of responses) { const { filePath, content, asts, mtime, size } = response; if (asts) { - asts.forEach(ast => { - ast.definitions.forEach(definition => { + for (const ast of asts) { + for (const definition of ast.definitions) { if (definition.kind === Kind.FRAGMENT_DEFINITION) { fragmentDefinitions.set(definition.name.value, { filePath, @@ -747,8 +750,8 @@ export class GraphQLCache implements GraphQLCacheInterface { definition, }); } - }); - }); + } + } } // Relay the previous object whether or not ast exists. @@ -759,7 +762,7 @@ export class GraphQLCache implements GraphQLCacheInterface { mtime, size, }); - }); + } return { objectTypeDefinitions, @@ -794,7 +797,9 @@ export class GraphQLCache implements GraphQLCacheInterface { }; } - queries.forEach(({ query }) => asts.push(parse(query))); + for (const { query } of queries) { + asts.push(parse(query)); + } return { filePath, content, diff --git a/packages/graphql-language-service-server/src/Logger.ts b/packages/graphql-language-service-server/src/Logger.ts index 01ca1a9293f..6f1506c7991 100644 --- a/packages/graphql-language-service-server/src/Logger.ts +++ b/packages/graphql-language-service-server/src/Logger.ts @@ -63,7 +63,7 @@ export class Logger implements VSCodeLogger { } _log(message: string, severityKey: SeverityEnum): void { - const timestamp = new Date().toLocaleString(undefined); + const timestamp = new Date().toLocaleString(); const severity = DIAGNOSTIC_SEVERITY[severityKey]; const { pid } = process; diff --git a/packages/graphql-language-service-server/src/MessageProcessor.ts b/packages/graphql-language-service-server/src/MessageProcessor.ts index e22160b7e89..78ae60af40a 100644 --- a/packages/graphql-language-service-server/src/MessageProcessor.ts +++ b/packages/graphql-language-service-server/src/MessageProcessor.ts @@ -143,7 +143,7 @@ export class MessageProcessor { } if (!existsSync(this._tmpDirBase)) { - mkdirp(this._tmpDirBase); + void mkdirp(this._tmpDirBase); } } get connection(): Connection { @@ -350,7 +350,7 @@ export class MessageProcessor { uri.match('package.json')?.length && require(uri)?.graphql; if (hasGraphQLConfigFile || hasPackageGraphQLConfig) { this._logger.info('updating graphql config'); - this._updateGraphQLConfig(); + await this._updateGraphQLConfig(); return { uri, diagnostics: [] }; } // update graphql config only when graphql config is saved! @@ -703,12 +703,12 @@ export class MessageProcessor { return { uri, diagnostics }; } if (change.type === FileChangeTypeKind.Deleted) { - this._graphQLCache.updateFragmentDefinitionCache( + await this._graphQLCache.updateFragmentDefinitionCache( this._graphQLCache.getGraphQLConfig().dirpath, change.uri, false, ); - this._graphQLCache.updateObjectTypeDefinitionCache( + await this._graphQLCache.updateObjectTypeDefinitionCache( this._graphQLCache.getGraphQLConfig().dirpath, change.uri, false, @@ -924,7 +924,7 @@ export class MessageProcessor { version = schemaDocument.version++; } const schemaText = readFileSync(uri, 'utf8'); - this._cacheSchemaText(schemaUri, schemaText, version); + await this._cacheSchemaText(schemaUri, schemaText, version); } } _getTmpProjectPath( @@ -937,7 +937,7 @@ export class MessageProcessor { const basePath = path.join(this._tmpDirBase, workspaceName); let projectTmpPath = path.join(basePath, 'projects', project.name); if (!existsSync(projectTmpPath)) { - mkdirp(projectTmpPath); + void mkdirp(projectTmpPath); } if (appendPath) { projectTmpPath = path.join(projectTmpPath, appendPath); @@ -963,7 +963,7 @@ export class MessageProcessor { ); } else { try { - this._cacheSchemaFile(uri, project); + await this._cacheSchemaFile(uri, project); } catch { // this string may be an SDL string even, how do we even evaluate this? } diff --git a/packages/graphql-language-service-server/src/__tests__/MessageProcessor-test.ts b/packages/graphql-language-service-server/src/__tests__/MessageProcessor-test.ts index 3e95f7c7946..dd87770581d 100644 --- a/packages/graphql-language-service-server/src/__tests__/MessageProcessor-test.ts +++ b/packages/graphql-language-service-server/src/__tests__/MessageProcessor-test.ts @@ -270,10 +270,10 @@ describe('MessageProcessor', () => { const params = { textDocument: initialDocument.textDocument, position }; // Should throw because file has been deleted from cache - return messageProcessor - .handleCompletionRequest(params) - .then(result => expect(result).toEqual(null)) - .catch(() => {}); + try { + const result = await messageProcessor.handleCompletionRequest(params); + expect(result).toEqual(null); + } catch {} }); // modified to work with jest.mock() of WatchmanClient diff --git a/packages/graphql-language-service-server/src/__tests__/findGraphQLTags-test.ts b/packages/graphql-language-service-server/src/__tests__/findGraphQLTags-test.ts index 48bd37be429..15aac193bb1 100644 --- a/packages/graphql-language-service-server/src/__tests__/findGraphQLTags-test.ts +++ b/packages/graphql-language-service-server/src/__tests__/findGraphQLTags-test.ts @@ -289,6 +289,72 @@ query {id} query {id}`); }); + it('no crash in Svelte files without `; + + const consoleErrorSpy = jest + .spyOn(process.stderr, 'write') + .mockImplementation(() => true); + + const contents = baseFindGraphQLTags( + text, + '.svelte', + '', + new Logger(tmpdir(), false), + ); + // We should have no contents + expect(contents).toMatchObject([]); + + // Nothing should be logged as it's a managed error + expect(consoleErrorSpy.mock.calls.length).toBe(0); + + consoleErrorSpy.mockRestore(); + }); + + it('no crash in Svelte files with empty `; + + const consoleErrorSpy = jest + .spyOn(process.stderr, 'write') + .mockImplementation(() => true); + + const contents = baseFindGraphQLTags( + text, + '.svelte', + '', + new Logger(tmpdir(), false), + ); + // We should have no contents + expect(contents).toMatchObject([]); + + // Nothing should be logged as it's a managed error + expect(consoleErrorSpy.mock.calls.length).toBe(0); + + consoleErrorSpy.mockRestore(); + }); + it('finds multiple queries in a single file', async () => { const text = `something({ else: () => gql\` query {} \` diff --git a/packages/graphql-language-service-server/src/findGraphQLTags.ts b/packages/graphql-language-service-server/src/findGraphQLTags.ts index f4af43009cd..5dfd5db8894 100644 --- a/packages/graphql-language-service-server/src/findGraphQLTags.ts +++ b/packages/graphql-language-service-server/src/findGraphQLTags.ts @@ -90,6 +90,16 @@ function parseVueSFC(source: string): ParseVueSFCResult { try { scriptBlock = VueParser.compileScript(descriptor, { id: 'foobar' }); } catch (error) { + if ( + error instanceof Error && + error.message === '[@vue/compiler-sfc] SFC contains no