Major Changes
- #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 v6 migration guide for one-line replacements.
Minor Changes
-
#4228 Thanks @trevor-scheer! - A ground-up visual redesign for v6. A new OKLCH-based design-token system brings first-class light and dark themes, driven by a
data-themeattribute on the GraphiQL container. The layout is rebuilt around a top bar (endpoint and Run action), a left activity rail for plugins, a resizable side panel, a slim status bar, a flattened editor workspace, and a Variables/Headers tab strip. Every built-in component and both Monaco editor themes are restyled to match, and the doc explorer and history panels are rebuilt on the new chrome.GraphQL syntax coloring is unified across the doc explorer, history, and query builder, with type names colored by category. The mapping is public API for retheming: the
--type-scalar,--type-enum,--type-input, and--type-compositeCSS tokens, plus thetypeCategoryhelper exported from@graphiql/react.Custom CSS that overrides GraphiQL's internal class names may need updating; only the CSS custom properties (design tokens) are supported theming API. The build now targets the
defaultsbrowserslist preset, which covers the modern browsers the OKLCH color system requires. See the migration guide atdocs/migration/graphiql-6.0.0.md. Refs #4219.
Patch Changes
-
#4413
1919f6aThanks @trevor-scheer! - Add a global keyboard focus ring and fill in a few missing screen-reader labels. Every control now shows a clearly visible blue outline when focused with the keyboard, with enough contrast against the canvas in both light and dark themes. Decorative icons that sit next to a text label no longer announce a redundant name, the doc explorer search box shows a focus ring while typing, and the cancel button on a history label edit now has an accessible name. -
Updated dependencies [
0f96193,1919f6a,b6f8dc6,d4f0268,c25bfd5,f8a9445,1ce71e4,f45e26b,827da62,b6f8dc6,a0fe11a,b6f8dc6,093cb10,b6f8dc6]:- @graphiql/react@1.0.0-beta.0