diff --git a/.changeset/eighty-maps-change.md b/.changeset/eighty-maps-change.md deleted file mode 100644 index f7c32e9c6ae..00000000000 --- a/.changeset/eighty-maps-change.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'graphql-language-service-server': patch -'graphql-language-service-cli': patch -'vscode-graphql': patch ---- - -**Bugfixes** - -debounce schema change events to fix codegen bugs to fix #3622 - -on mass file changes, network schema is overfetching because the schema cache is now invalidated on every watched schema file change - -to address this, we debounce the new `onSchemaChange` event by 400ms - -note that `schemaCacheTTL` can only be set in extension settings or graphql config at the top level - it will be ignored if configured per-project in the graphql config - -**Code Improvements** - -- Fixes flaky tests, and `schemaCacheTTL` setting not being passed to the cache -- Adds a test to validate network schema changes are reflected in the cache diff --git a/.changeset/gold-numbers-crash.md b/.changeset/gold-numbers-crash.md deleted file mode 100644 index f29910685ba..00000000000 --- a/.changeset/gold-numbers-crash.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"codemirror-graphql": patch -"@graphiql/react": patch -"graphql-language-service": patch -"graphql-language-service-server": patch -"monaco-graphql": patch ---- - -update eslint plugins and fix errors diff --git a/examples/graphiql-webpack/package.json b/examples/graphiql-webpack/package.json index 7c7fa22f1fb..211282b1a57 100644 --- a/examples/graphiql-webpack/package.json +++ b/examples/graphiql-webpack/package.json @@ -9,11 +9,11 @@ "start": "NODE_ENV=development webpack-cli serve" }, "dependencies": { - "@graphiql/plugin-code-exporter": "^3.0.4", - "@graphiql/plugin-explorer": "^3.1.0", + "@graphiql/plugin-code-exporter": "^3.0.5", + "@graphiql/plugin-explorer": "^3.1.1", "@graphiql/toolkit": "^0.9.1", - "@graphiql/react": "^0.22.4", - "graphiql": "^3.3.2", + "@graphiql/react": "^0.22.5", + "graphiql": "^3.3.3", "graphql": "^16.8.1", "graphql-ws": "^5.5.5", "react": "^18.2.0", diff --git a/examples/monaco-graphql-nextjs/package.json b/examples/monaco-graphql-nextjs/package.json index 1c3c7ed64e4..aac3e9cd523 100644 --- a/examples/monaco-graphql-nextjs/package.json +++ b/examples/monaco-graphql-nextjs/package.json @@ -16,7 +16,7 @@ "marked": "^4.2.12", "monaco-editor": "^0.39.0", "monaco-editor-webpack-plugin": "^7.0.1", - "monaco-graphql": "^1.5.2", + "monaco-graphql": "^1.5.3", "next": "13.4.7", "prettier": "3.3.2", "react": "^18.2.0", diff --git a/examples/monaco-graphql-react-vite/package.json b/examples/monaco-graphql-react-vite/package.json index b794e520d5f..e522cb29d79 100644 --- a/examples/monaco-graphql-react-vite/package.json +++ b/examples/monaco-graphql-react-vite/package.json @@ -5,10 +5,10 @@ "dependencies": { "@graphiql/toolkit": "^0.9.1", "graphql": "^16.8.1", - "graphql-language-service": "^5.2.1", + "graphql-language-service": "^5.2.2", "jsonc-parser": "^3.2.0", "monaco-editor": "^0.39.0", - "monaco-graphql": "^1.5.2", + "monaco-graphql": "^1.5.3", "prettier": "3.3.2", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/examples/monaco-graphql-webpack/package.json b/examples/monaco-graphql-webpack/package.json index d42ce071b6e..093c7f662fe 100644 --- a/examples/monaco-graphql-webpack/package.json +++ b/examples/monaco-graphql-webpack/package.json @@ -10,11 +10,11 @@ }, "dependencies": { "graphql": "^16.8.1", - "graphql-language-service": "^5.2.1", + "graphql-language-service": "^5.2.2", "json-schema": "^0.4.0", "jsonc-parser": "^3.2.0", "monaco-editor": "^0.39.0", - "monaco-graphql": "^1.5.2", + "monaco-graphql": "^1.5.3", "prettier": "3.3.2" }, "devDependencies": { diff --git a/packages/cm6-graphql/CHANGELOG.md b/packages/cm6-graphql/CHANGELOG.md index 840ee2a0c4d..010b5b412f9 100644 --- a/packages/cm6-graphql/CHANGELOG.md +++ b/packages/cm6-graphql/CHANGELOG.md @@ -1,5 +1,12 @@ # cm6-graphql +## 0.0.16 + +### Patch Changes + +- Updated dependencies [[`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - graphql-language-service@5.2.2 + ## 0.0.15 ### Patch Changes diff --git a/packages/cm6-graphql/package.json b/packages/cm6-graphql/package.json index 74a3fb5832c..b6970c5ee3e 100644 --- a/packages/cm6-graphql/package.json +++ b/packages/cm6-graphql/package.json @@ -1,6 +1,6 @@ { "name": "cm6-graphql", - "version": "0.0.15", + "version": "0.0.16", "description": "GraphQL language support for CodeMirror 6", "scripts": { "build": "cm-buildhelper src/index.ts", @@ -16,7 +16,7 @@ "types": "dist/index.d.ts", "sideEffects": false, "dependencies": { - "graphql-language-service": "^5.2.1" + "graphql-language-service": "^5.2.2" }, "devDependencies": { "@codemirror/autocomplete": "6.2.0", diff --git a/packages/codemirror-graphql/CHANGELOG.md b/packages/codemirror-graphql/CHANGELOG.md index 5d9c7a482b8..f637f99a000 100644 --- a/packages/codemirror-graphql/CHANGELOG.md +++ b/packages/codemirror-graphql/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.0.13 + +### Patch Changes + +- [#3637](https://github.com/graphql/graphiql/pull/3637) [`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d) Thanks [@dimaMachina](https://github.com/dimaMachina)! - update eslint plugins and fix errors + +- Updated dependencies [[`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - graphql-language-service@5.2.2 + ## 2.0.12 ### Patch Changes diff --git a/packages/codemirror-graphql/package.json b/packages/codemirror-graphql/package.json index 2d0f1e79f23..23b29225446 100644 --- a/packages/codemirror-graphql/package.json +++ b/packages/codemirror-graphql/package.json @@ -1,6 +1,6 @@ { "name": "codemirror-graphql", - "version": "2.0.12", + "version": "2.0.13", "description": "GraphQL mode and helpers for CodeMirror.", "contributors": [ "Hyohyeon Jeong ", @@ -45,7 +45,7 @@ "// TEMPORARILY PINNED until we fix graphql 15 support": "", "dependencies": { "@types/codemirror": "^0.0.90", - "graphql-language-service": "5.2.1" + "graphql-language-service": "5.2.2" }, "devDependencies": { "@codemirror/language": "^6.0.0", diff --git a/packages/graphiql-plugin-code-exporter/CHANGELOG.md b/packages/graphiql-plugin-code-exporter/CHANGELOG.md index c82a7b3a90e..aff809d2870 100644 --- a/packages/graphiql-plugin-code-exporter/CHANGELOG.md +++ b/packages/graphiql-plugin-code-exporter/CHANGELOG.md @@ -1,5 +1,12 @@ # @graphiql/plugin-code-exporter +## 3.0.5 + +### Patch Changes + +- Updated dependencies [[`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - @graphiql/react@0.22.5 + ## 3.0.4 ### Patch Changes @@ -132,12 +139,12 @@ now, instead of something like this: ```jsx - import { useExplorerPlugin } from '@graphiql/plugin-explorer'; - import { snippets } from './snippets'; - import { useExporterPlugin } from '@graphiql/plugin-code-exporter'; + import { useExplorerPlugin } from "@graphiql/plugin-explorer"; + import { snippets } from "./snippets"; + import { useExporterPlugin } from "@graphiql/plugin-code-exporter"; const App = () => { - const [query, setQuery] = React.useState(''); + const [query, setQuery] = React.useState(""); const explorerPlugin = useExplorerPlugin({ query, onEdit: setQuery, @@ -166,17 +173,17 @@ you can just do this: ```jsx - import { explorerPlugin } from '@graphiql/plugin-explorer'; - import { snippets } from './snippets'; - import { codeExporterPlugin } from '@graphiql/plugin-code-exporter'; - import { createGraphiQLFetcher } from '@graphiql/toolkit'; + import { explorerPlugin } from "@graphiql/plugin-explorer"; + import { snippets } from "./snippets"; + import { codeExporterPlugin } from "@graphiql/plugin-code-exporter"; + import { createGraphiQLFetcher } from "@graphiql/toolkit"; // only invoke these inside the component lifecycle // if there are dynamic values, and then use useMemo() (see below) const explorer = explorerPlugin(); const exporter = codeExporterPlugin({ snippets }); - const fetcher = createGraphiQLFetcher({ url: '/graphql' }); + const fetcher = createGraphiQLFetcher({ url: "/graphql" }); const App = () => { return ; @@ -186,13 +193,13 @@ or this, for more complex state-driven needs: ```jsx - import { useMemo } from 'react'; - import { explorerPlugin } from '@graphiql/plugin-explorer'; - import { snippets } from './snippets'; - import { codeExporterPlugin } from '@graphiql/plugin-code-exporter'; + import { useMemo } from "react"; + import { explorerPlugin } from "@graphiql/plugin-explorer"; + import { snippets } from "./snippets"; + import { codeExporterPlugin } from "@graphiql/plugin-code-exporter"; const explorer = explorerPlugin(); - const fetcher = createGraphiQLFetcher({ url: '/graphql' }); + const fetcher = createGraphiQLFetcher({ url: "/graphql" }); const App = () => { const { snippets } = useMyUserSuppliedState(); diff --git a/packages/graphiql-plugin-code-exporter/package.json b/packages/graphiql-plugin-code-exporter/package.json index b8d14aedfb3..96be3b781d1 100644 --- a/packages/graphiql-plugin-code-exporter/package.json +++ b/packages/graphiql-plugin-code-exporter/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/plugin-code-exporter", - "version": "3.0.4", + "version": "3.0.5", "repository": { "type": "git", "url": "https://github.com/graphql/graphiql", @@ -33,13 +33,13 @@ "graphiql-code-exporter": "^3.0.3" }, "peerDependencies": { - "@graphiql/react": "^0.22.4", + "@graphiql/react": "^0.22.5", "graphql": "^15.5.0 || ^16.0.0", "react": "^16.8.0 || ^17 || ^18", "react-dom": "^16.8.0 || ^17 || ^18" }, "devDependencies": { - "@graphiql/react": "^0.22.4", + "@graphiql/react": "^0.22.5", "@vitejs/plugin-react": "^4.0.1", "graphql": "^16.8.1", "postcss-nesting": "^10.1.7", diff --git a/packages/graphiql-plugin-explorer/CHANGELOG.md b/packages/graphiql-plugin-explorer/CHANGELOG.md index 4ba4b13d777..1302ac4a02b 100644 --- a/packages/graphiql-plugin-explorer/CHANGELOG.md +++ b/packages/graphiql-plugin-explorer/CHANGELOG.md @@ -1,5 +1,12 @@ # @graphiql/plugin-explorer +## 3.1.1 + +### Patch Changes + +- Updated dependencies [[`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - @graphiql/react@0.22.5 + ## 3.1.0 ### Minor Changes @@ -130,12 +137,12 @@ now, instead of something like this: ```jsx - import { useExplorerPlugin } from '@graphiql/plugin-explorer'; - import { snippets } from './snippets'; - import { useExporterPlugin } from '@graphiql/plugin-code-exporter'; + import { useExplorerPlugin } from "@graphiql/plugin-explorer"; + import { snippets } from "./snippets"; + import { useExporterPlugin } from "@graphiql/plugin-code-exporter"; const App = () => { - const [query, setQuery] = React.useState(''); + const [query, setQuery] = React.useState(""); const explorerPlugin = useExplorerPlugin({ query, onEdit: setQuery, @@ -164,17 +171,17 @@ you can just do this: ```jsx - import { explorerPlugin } from '@graphiql/plugin-explorer'; - import { snippets } from './snippets'; - import { codeExporterPlugin } from '@graphiql/plugin-code-exporter'; - import { createGraphiQLFetcher } from '@graphiql/toolkit'; + import { explorerPlugin } from "@graphiql/plugin-explorer"; + import { snippets } from "./snippets"; + import { codeExporterPlugin } from "@graphiql/plugin-code-exporter"; + import { createGraphiQLFetcher } from "@graphiql/toolkit"; // only invoke these inside the component lifecycle // if there are dynamic values, and then use useMemo() (see below) const explorer = explorerPlugin(); const exporter = codeExporterPlugin({ snippets }); - const fetcher = createGraphiQLFetcher({ url: '/graphql' }); + const fetcher = createGraphiQLFetcher({ url: "/graphql" }); const App = () => { return ; @@ -184,13 +191,13 @@ or this, for more complex state-driven needs: ```jsx - import { useMemo } from 'react'; - import { explorerPlugin } from '@graphiql/plugin-explorer'; - import { snippets } from './snippets'; - import { codeExporterPlugin } from '@graphiql/plugin-code-exporter'; + import { useMemo } from "react"; + import { explorerPlugin } from "@graphiql/plugin-explorer"; + import { snippets } from "./snippets"; + import { codeExporterPlugin } from "@graphiql/plugin-code-exporter"; const explorer = explorerPlugin(); - const fetcher = createGraphiQLFetcher({ url: '/graphql' }); + const fetcher = createGraphiQLFetcher({ url: "/graphql" }); const App = () => { const { snippets } = useMyUserSuppliedState(); diff --git a/packages/graphiql-plugin-explorer/package.json b/packages/graphiql-plugin-explorer/package.json index 94753463bd7..433de831209 100644 --- a/packages/graphiql-plugin-explorer/package.json +++ b/packages/graphiql-plugin-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/plugin-explorer", - "version": "3.1.0", + "version": "3.1.1", "repository": { "type": "git", "url": "https://github.com/graphql/graphiql", @@ -32,13 +32,13 @@ "graphiql-explorer": "^0.9.0" }, "peerDependencies": { - "@graphiql/react": "^0.22.4", + "@graphiql/react": "^0.22.5", "graphql": "^15.5.0 || ^16.0.0", "react": "^16.8.0 || ^17 || ^18", "react-dom": "^16.8.0 || ^17 || ^18" }, "devDependencies": { - "@graphiql/react": "^0.22.4", + "@graphiql/react": "^0.22.5", "@vitejs/plugin-react": "^4.0.1", "graphql": "^16.8.1", "react": "^18.2.0", diff --git a/packages/graphiql-react/CHANGELOG.md b/packages/graphiql-react/CHANGELOG.md index 63b6185f5a5..e06388be4b9 100644 --- a/packages/graphiql-react/CHANGELOG.md +++ b/packages/graphiql-react/CHANGELOG.md @@ -1,5 +1,15 @@ # @graphiql/react +## 0.22.5 + +### Patch Changes + +- [#3637](https://github.com/graphql/graphiql/pull/3637) [`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d) Thanks [@dimaMachina](https://github.com/dimaMachina)! - update eslint plugins and fix errors + +- Updated dependencies [[`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - codemirror-graphql@2.0.13 + - graphql-language-service@5.2.2 + ## 0.22.4 ### Patch Changes diff --git a/packages/graphiql-react/package.json b/packages/graphiql-react/package.json index bc5e49240d4..20d0e63b6d8 100644 --- a/packages/graphiql-react/package.json +++ b/packages/graphiql-react/package.json @@ -1,6 +1,6 @@ { "name": "@graphiql/react", - "version": "0.22.4", + "version": "0.22.5", "repository": { "type": "git", "url": "https://github.com/graphql/graphiql", @@ -57,10 +57,10 @@ "@types/codemirror": "^5.60.8", "clsx": "^1.2.1", "codemirror": "^5.65.3", - "codemirror-graphql": "^2.0.12", + "codemirror-graphql": "^2.0.13", "copy-to-clipboard": "^3.2.0", "framer-motion": "^6.5.1", - "graphql-language-service": "^5.2.1", + "graphql-language-service": "^5.2.2", "markdown-it": "^14.1.0", "set-value": "^4.1.0" }, diff --git a/packages/graphiql/CHANGELOG.md b/packages/graphiql/CHANGELOG.md index a4d5333c76b..81f44203585 100644 --- a/packages/graphiql/CHANGELOG.md +++ b/packages/graphiql/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 3.3.3 + +### Patch Changes + +- Updated dependencies [[`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - @graphiql/react@0.22.5 + - graphql-language-service@5.2.2 + ## 3.3.2 ### Patch Changes @@ -457,7 +465,7 @@ - `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'; + import { GraphiQL } from "graphiql"; function CustomGraphiQL() { return ( @@ -916,7 +924,7 @@ **Usage example:** ```tsx - console.log(schema)} /> + console.log(schema)} /> ``` ## 1.5.20 diff --git a/packages/graphiql/package.json b/packages/graphiql/package.json index eae04d5b517..61637252019 100644 --- a/packages/graphiql/package.json +++ b/packages/graphiql/package.json @@ -1,6 +1,6 @@ { "name": "graphiql", - "version": "3.3.2", + "version": "3.3.3", "description": "An graphical interactive in-browser GraphQL IDE.", "contributors": [ "Hyohyeon Jeong ", @@ -47,9 +47,9 @@ "webpack": "webpack-cli --config resources/webpack.config.js" }, "dependencies": { - "@graphiql/react": "^0.22.4", + "@graphiql/react": "^0.22.5", "@graphiql/toolkit": "^0.9.1", - "graphql-language-service": "^5.2.1", + "graphql-language-service": "^5.2.2", "markdown-it": "^14.1.0" }, "peerDependencies": { diff --git a/packages/graphql-language-service-cli/CHANGELOG.md b/packages/graphql-language-service-cli/CHANGELOG.md index bc03e1480a5..3d4084831a7 100644 --- a/packages/graphql-language-service-cli/CHANGELOG.md +++ b/packages/graphql-language-service-cli/CHANGELOG.md @@ -1,5 +1,28 @@ # graphql-language-service-cli +## 3.4.2 + +### Patch Changes + +- [#3647](https://github.com/graphql/graphiql/pull/3647) [`ba5720b4`](https://github.com/graphql/graphiql/commit/ba5720b430ed1c888ff64c67aa4b9a36083b9ed0) Thanks [@acao](https://github.com/acao)! - **Bugfixes** + + debounce schema change events to fix codegen bugs to fix #3622 + + on mass file changes, network schema is overfetching because the schema cache is now invalidated on every watched schema file change + + to address this, we debounce the new `onSchemaChange` event by 400ms + + note that `schemaCacheTTL` can only be set in extension settings or graphql config at the top level - it will be ignored if configured per-project in the graphql config + + **Code Improvements** + + - Fixes flaky tests, and `schemaCacheTTL` setting not being passed to the cache + - Adds a test to validate network schema changes are reflected in the cache + +- Updated dependencies [[`ba5720b4`](https://github.com/graphql/graphiql/commit/ba5720b430ed1c888ff64c67aa4b9a36083b9ed0), [`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - graphql-language-service-server@2.13.2 + - graphql-language-service@5.2.2 + ## 3.4.1 ### Patch Changes @@ -72,7 +95,7 @@ ```ts // import it - import { locateCommand } from './graphql/tooling/lsp/locate.js'; + import { locateCommand } from "./graphql/tooling/lsp/locate.js"; export default { languageService: { locateCommand, @@ -80,12 +103,12 @@ projects: { a: { - schema: 'https://localhost:8000/graphql', - documents: './a/**/*.{ts,tsx,jsx,js,graphql}', + schema: "https://localhost:8000/graphql", + documents: "./a/**/*.{ts,tsx,jsx,js,graphql}", }, b: { - schema: './schema/ascode.ts', - documents: './b/**/*.{ts,tsx,jsx,js,graphql}', + schema: "./schema/ascode.ts", + documents: "./b/**/*.{ts,tsx,jsx,js,graphql}", }, }, }; @@ -94,7 +117,7 @@ ```ts // or define it inline - import { type LocateCommand } from 'graphql-language-service-server'; + import { type LocateCommand } from "graphql-language-service-server"; // relay LSP style const locateCommand = (projectName: string, typePath: string) => { @@ -120,8 +143,8 @@ languageService: { locateCommand, }, - schema: 'https://localhost:8000/graphql', - documents: './**/*.{ts,tsx,jsx,js,graphql}', + schema: "https://localhost:8000/graphql", + documents: "./**/*.{ts,tsx,jsx,js,graphql}", }; ``` diff --git a/packages/graphql-language-service-cli/package.json b/packages/graphql-language-service-cli/package.json index c8bb60d6f4f..5aa65f3e105 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.4.1", + "version": "3.4.2", "description": "An interface for building GraphQL language services for IDEs", "contributors": [ "Hyohyeon Jeong ", @@ -37,8 +37,8 @@ "dependencies": { "@babel/polyfill": "^7.12.1", "@types/yargs": "16.0.5", - "graphql-language-service": "^5.2.1", - "graphql-language-service-server": "^2.13.1", + "graphql-language-service": "^5.2.2", + "graphql-language-service-server": "^2.13.2", "yargs": "^16.2.0" }, "devDependencies": { diff --git a/packages/graphql-language-service-server/CHANGELOG.md b/packages/graphql-language-service-server/CHANGELOG.md index d361148802c..2b7f28a32f3 100644 --- a/packages/graphql-language-service-server/CHANGELOG.md +++ b/packages/graphql-language-service-server/CHANGELOG.md @@ -1,5 +1,29 @@ # graphql-language-service-server +## 2.13.2 + +### Patch Changes + +- [#3647](https://github.com/graphql/graphiql/pull/3647) [`ba5720b4`](https://github.com/graphql/graphiql/commit/ba5720b430ed1c888ff64c67aa4b9a36083b9ed0) Thanks [@acao](https://github.com/acao)! - **Bugfixes** + + debounce schema change events to fix codegen bugs to fix #3622 + + on mass file changes, network schema is overfetching because the schema cache is now invalidated on every watched schema file change + + to address this, we debounce the new `onSchemaChange` event by 400ms + + note that `schemaCacheTTL` can only be set in extension settings or graphql config at the top level - it will be ignored if configured per-project in the graphql config + + **Code Improvements** + + - Fixes flaky tests, and `schemaCacheTTL` setting not being passed to the cache + - Adds a test to validate network schema changes are reflected in the cache + +- [#3637](https://github.com/graphql/graphiql/pull/3637) [`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d) Thanks [@dimaMachina](https://github.com/dimaMachina)! - update eslint plugins and fix errors + +- Updated dependencies [[`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - graphql-language-service@5.2.2 + ## 2.13.1 ### Patch Changes @@ -61,7 +85,7 @@ ```ts // import it - import { locateCommand } from './graphql/tooling/lsp/locate.js'; + import { locateCommand } from "./graphql/tooling/lsp/locate.js"; export default { languageService: { locateCommand, @@ -69,12 +93,12 @@ projects: { a: { - schema: 'https://localhost:8000/graphql', - documents: './a/**/*.{ts,tsx,jsx,js,graphql}', + schema: "https://localhost:8000/graphql", + documents: "./a/**/*.{ts,tsx,jsx,js,graphql}", }, b: { - schema: './schema/ascode.ts', - documents: './b/**/*.{ts,tsx,jsx,js,graphql}', + schema: "./schema/ascode.ts", + documents: "./b/**/*.{ts,tsx,jsx,js,graphql}", }, }, }; @@ -83,7 +107,7 @@ ```ts // or define it inline - import { type LocateCommand } from 'graphql-language-service-server'; + import { type LocateCommand } from "graphql-language-service-server"; // relay LSP style const locateCommand = (projectName: string, typePath: string) => { @@ -109,8 +133,8 @@ languageService: { locateCommand, }, - schema: 'https://localhost:8000/graphql', - documents: './**/*.{ts,tsx,jsx,js,graphql}', + schema: "https://localhost:8000/graphql", + documents: "./**/*.{ts,tsx,jsx,js,graphql}", }; ``` diff --git a/packages/graphql-language-service-server/package.json b/packages/graphql-language-service-server/package.json index 3076e31b7f3..11e81b6c195 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.13.1", + "version": "2.13.2", "description": "Server process backing the GraphQL Language Service", "contributors": [ "Greg Hurrell (https://greg.hurrell.net/)", @@ -49,7 +49,7 @@ "fast-glob": "^3.2.7", "glob": "^7.2.0", "graphql-config": "5.0.3", - "graphql-language-service": "^5.2.1", + "graphql-language-service": "^5.2.2", "lru-cache": "^10.2.0", "mkdirp": "^1.0.4", "node-abort-controller": "^3.0.1", diff --git a/packages/graphql-language-service/CHANGELOG.md b/packages/graphql-language-service/CHANGELOG.md index 00a9cd70ddf..0d6549d9be7 100644 --- a/packages/graphql-language-service/CHANGELOG.md +++ b/packages/graphql-language-service/CHANGELOG.md @@ -1,5 +1,11 @@ # graphql-language-service +## 5.2.2 + +### Patch Changes + +- [#3637](https://github.com/graphql/graphiql/pull/3637) [`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d) Thanks [@dimaMachina](https://github.com/dimaMachina)! - update eslint plugins and fix errors + ## 5.2.1 ### Patch Changes diff --git a/packages/graphql-language-service/package.json b/packages/graphql-language-service/package.json index 111f91c33b6..ac6b50ff1d3 100644 --- a/packages/graphql-language-service/package.json +++ b/packages/graphql-language-service/package.json @@ -1,6 +1,6 @@ { "name": "graphql-language-service", - "version": "5.2.1", + "version": "5.2.2", "description": "The official, runtime independent Language Service for GraphQL", "contributors": [ "GraphQL Contributors" diff --git a/packages/monaco-graphql/CHANGELOG.md b/packages/monaco-graphql/CHANGELOG.md index 91eefdf320a..25d4bd0df38 100644 --- a/packages/monaco-graphql/CHANGELOG.md +++ b/packages/monaco-graphql/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 1.5.3 + +### Patch Changes + +- [#3637](https://github.com/graphql/graphiql/pull/3637) [`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d) Thanks [@dimaMachina](https://github.com/dimaMachina)! - update eslint plugins and fix errors + +- Updated dependencies [[`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - graphql-language-service@5.2.2 + ## 1.5.2 ### Patch Changes diff --git a/packages/monaco-graphql/package.json b/packages/monaco-graphql/package.json index 2e37be371e3..7a08cd9ee81 100644 --- a/packages/monaco-graphql/package.json +++ b/packages/monaco-graphql/package.json @@ -1,7 +1,7 @@ { "name": "monaco-graphql", "description": "full service, official monaco mode for GraphQL", - "version": "1.5.2", + "version": "1.5.3", "license": "MIT", "main": "dist/monaco.contribution.js", "module": "esm/monaco.contribution.js", @@ -66,7 +66,7 @@ "test": "vitest run" }, "dependencies": { - "graphql-language-service": "^5.2.1", + "graphql-language-service": "^5.2.2", "picomatch-browser": "^2.2.6" }, "devDependencies": { diff --git a/packages/vscode-graphql/CHANGELOG.md b/packages/vscode-graphql/CHANGELOG.md index 0ca84f1eb6f..dd23106412f 100644 --- a/packages/vscode-graphql/CHANGELOG.md +++ b/packages/vscode-graphql/CHANGELOG.md @@ -1,5 +1,27 @@ # Change Log +## 0.11.2 + +### Patch Changes + +- [#3647](https://github.com/graphql/graphiql/pull/3647) [`ba5720b4`](https://github.com/graphql/graphiql/commit/ba5720b430ed1c888ff64c67aa4b9a36083b9ed0) Thanks [@acao](https://github.com/acao)! - **Bugfixes** + + debounce schema change events to fix codegen bugs to fix #3622 + + on mass file changes, network schema is overfetching because the schema cache is now invalidated on every watched schema file change + + to address this, we debounce the new `onSchemaChange` event by 400ms + + note that `schemaCacheTTL` can only be set in extension settings or graphql config at the top level - it will be ignored if configured per-project in the graphql config + + **Code Improvements** + + - Fixes flaky tests, and `schemaCacheTTL` setting not being passed to the cache + - Adds a test to validate network schema changes are reflected in the cache + +- Updated dependencies [[`ba5720b4`](https://github.com/graphql/graphiql/commit/ba5720b430ed1c888ff64c67aa4b9a36083b9ed0), [`fdec377f`](https://github.com/graphql/graphiql/commit/fdec377f28ac0d918a219b78dfa2d8f0996ff84d)]: + - graphql-language-service-server@2.13.2 + ## 0.11.1 ### Patch Changes @@ -70,7 +92,7 @@ ```ts // import it - import { locateCommand } from './graphql/tooling/lsp/locate.js'; + import { locateCommand } from "./graphql/tooling/lsp/locate.js"; export default { languageService: { locateCommand, @@ -78,12 +100,12 @@ projects: { a: { - schema: 'https://localhost:8000/graphql', - documents: './a/**/*.{ts,tsx,jsx,js,graphql}', + schema: "https://localhost:8000/graphql", + documents: "./a/**/*.{ts,tsx,jsx,js,graphql}", }, b: { - schema: './schema/ascode.ts', - documents: './b/**/*.{ts,tsx,jsx,js,graphql}', + schema: "./schema/ascode.ts", + documents: "./b/**/*.{ts,tsx,jsx,js,graphql}", }, }, }; @@ -92,7 +114,7 @@ ```ts // or define it inline - import { type LocateCommand } from 'graphql-language-service-server'; + import { type LocateCommand } from "graphql-language-service-server"; // relay LSP style const locateCommand = (projectName: string, typePath: string) => { @@ -118,8 +140,8 @@ languageService: { locateCommand, }, - schema: 'https://localhost:8000/graphql', - documents: './**/*.{ts,tsx,jsx,js,graphql}', + schema: "https://localhost:8000/graphql", + documents: "./**/*.{ts,tsx,jsx,js,graphql}", }; ``` diff --git a/packages/vscode-graphql/package.json b/packages/vscode-graphql/package.json index e32a9c81cfb..775e8ca17c9 100644 --- a/packages/vscode-graphql/package.json +++ b/packages/vscode-graphql/package.json @@ -1,6 +1,6 @@ { "name": "vscode-graphql", - "version": "0.11.1", + "version": "0.11.2", "private": true, "license": "MIT", "displayName": "GraphQL: Language Feature Support", @@ -180,7 +180,7 @@ }, "dependencies": { "graphql": "^16.8.1", - "graphql-language-service-server": "^2.13.1", + "graphql-language-service-server": "^2.13.2", "vscode-languageclient": "8.0.2", "typescript": "^5.3.3" }