- Dropped support for React 16/17, added support for React 19
- Dropped CommonJS build output – now ESM only
- Improved UI of tabs
- Changed tabs behavior – tabs are always visible (even if only one)
- Updated tabs tooltip usage – now use HTML
titleattribute
- Removed default export
- Removed
disableTabsoption - Improved Markdown handling – single newlines are ignored
- Added
onPrettifyQuerycallback for custom formatting ⚠️ Deprecate UMD CDN buildindex.umd.js- Changed CDN paths and style import
Warning
index.umd.js is deprecated. Switch to the ESM CDN example.
-https://unpkg.com/graphiql/graphiql.js
-https://unpkg.com/graphiql/graphiql.min.js
+https://unpkg.com/graphiql/dist/index.umd.js // ⚠️ deprecated
-https://unpkg.com/graphiql/graphiql.css
-https://unpkg.com/graphiql/graphiql.min.css
+https://unpkg.com/graphiql/dist/style.css-import GraphiQL from 'graphiql'
+import { GraphiQL } from 'graphiql'-import 'graphiql/graphiql.css'
+import 'graphiql/style.css'Before:
<GraphiQL toolbar={{ additionalContent: <button>My button</button> }} />After:
<GraphiQL>
<GraphiQL.Toolbar>
{({ merge, prettify, copy }) => (
<>
{prettify}
{merge}
{copy}
<button>My button</button>
</>
)}
</GraphiQL.Toolbar>
</GraphiQL>Before:
<GraphiQL
toolbar={{
additionalComponent: function MyComponentWithAccessToContext() {
return <button>My button</button>;
},
}}
/>After:
<GraphiQL>
<GraphiQL.Toolbar>
{({ merge, prettify, copy }) => (
<>
{prettify}
{merge}
{copy}
<MyComponentWithAccessToContext />
</>
)}
</GraphiQL.Toolbar>
</GraphiQL>You can reorder or remove default toolbar buttons:
<GraphiQL>
<GraphiQL.Toolbar>
{({ prettify, copy }) => (
<>
{copy} {/* Move copy button to the top */}
{prettify} {/* Omit merge button */}
</>
)}
</GraphiQL.Toolbar>
</GraphiQL>- Dropped support for React 16/17, added support for React 19
- Dropped CommonJS build output
- Improved UI of tabs
- Updated dependencies:
@radix-uiand@headlessui/react - Added
onPrettifyQuerycallback for custom formatting - Improved Markdown handling (ignores single newlines)
- Style import changed:
-import '@graphiql/react/dist/style.css' +import '@graphiql/react/style.css'
- Dropped support for React 16/17, added support for React 19
- Dropped CommonJS build output
- Updated ESM-based CDN example: code-exporter ESM CDN example
⚠️ UMD build deprecated – migrate to ESM-based CDN- Style import changed:
-import '@graphiql/plugin-code-exporter/dist/style.css' +import '@graphiql/plugin-code-exporter/style.css'
- Dropped support for React 16/17, added support for React 19
- Dropped CommonJS build output
- Improved styles for the explorer UI
- Updated ESM-based CDN example: explorer ESM CDN example
⚠️ UMD build deprecated – migrate to ESM-based CDN- Style import changed:
-import '@graphiql/plugin-explorer/dist/style.css' +import '@graphiql/plugin-explorer/style.css'