Major Changes
-
#4478
066528aThanks @trevor-scheer! - GraphQL.js 15 and 16.0–16.10 are no longer supported peer dependencies. The supported range is^16.11.0 || ^17.0.0. GraphQL.js 16.11 fixes OneOf input validation for nullable variables and tightens input-object coercion to reject arrays, giving GraphiQL 6 a correct baseline for OneOf inputs. Upgradegraphqlbefore upgrading these packages. -
#4393
827da62Thanks @trevor-scheer! - Remove deprecated hooks:useEditorContext,useExecutionContext,usePluginContext,useSchemaContext,useTheme,useStorage,useStorageContext,usePrettifyEditors,useCopyQuery,useMergeQuery, the*Storealiases (in@graphiql/react);useExplorerContext(in@graphiql/plugin-doc-explorer); anduseHistoryContext(in@graphiql/plugin-history). Replacements were available since v5 — see the removed-hooks migration guide for one-line replacements.
Minor Changes
-
#4228 Thanks @trevor-scheer! - Restyle the Documentation Explorer for GraphiQL 6, including light and dark themes, keyboard focus indicators, and GraphQL type-category colors. Customize type colors with
--type-scalar,--type-enum,--type-input, and--type-composite.The v5
--color-*overrides no longer theme the built-in UI. Migrate custom styles to the new OKLCH tokens using the CSS and retheming guide.
Patch Changes
- #4623
ecedd76Thanks @trevor-scheer! - Build with the stable React Compiler and use its stable runtime for React 18 compatibility.