|
| 1 | +--- |
| 2 | +title: GraphiQL 4.1 is Released |
| 3 | +tags: [announcements, grants] |
| 4 | +date: 2025-06-01 |
| 5 | +byline: Dimitri Postolov |
| 6 | +--- |
| 7 | + |
| 8 | +import { Callout } from "nextra/components" |
| 9 | + |
| 10 | +I'm thrilled to announce the release of **GraphiQL 4.1**! 🎉 |
| 11 | + |
| 12 | +Thanks to funding from the **GraphQL Foundation**, I'm working on migrating |
| 13 | +GraphiQL to the Monaco code editor — a long-awaited update that's been on our |
| 14 | +roadmap for years. |
| 15 | + |
| 16 | +> In fact, the [original issue](https://github.com/graphql/graphiql/issues/2326) |
| 17 | +> was opened over **three years ago**! |
| 18 | +
|
| 19 | +## Roadmap |
| 20 | + |
| 21 | +Migrating to the Monaco editor is a major milestone, and to ensure a smooth |
| 22 | +transition for everyone, I've broken it down into several incremental releases: |
| 23 | + |
| 24 | +### GraphiQL 3.9 |
| 25 | + |
| 26 | +- Switched build system from Webpack to Vite |
| 27 | +- Compiled the codebase using the new |
| 28 | + [React Compiler](https://react.dev/learn/react-compiler) |
| 29 | + |
| 30 | +### GraphiQL 4 |
| 31 | + |
| 32 | +- Dropped support for React 16/17 |
| 33 | +- Added support for React 19 |
| 34 | +- Introduced a refreshed tabs UI |
| 35 | +- New ESM-based CDN examples |
| 36 | +- Deprecated the legacy UMD CDN build |
| 37 | + |
| 38 | +### GraphiQL 4.1 _(This release)_ |
| 39 | + |
| 40 | +- Standalone Doc Explorer plugin |
| 41 | +- Standalone History plugin |
| 42 | +- Migrated state management from React context to |
| 43 | + [zustand](https://zustand-demo.pmnd.rs) |
| 44 | + |
| 45 | +### GraphiQL 5 _(Coming Soon)_ |
| 46 | + |
| 47 | +- Migration from Codemirror to |
| 48 | + [Monaco Editor](https://github.com/microsoft/monaco-editor) |
| 49 | +- Replacing `codemirror-graphql` with |
| 50 | + [`monaco-graphql`](https://github.com/graphql/graphiql/tree/main/packages/monaco-graphql) |
| 51 | +- Support for comments in **Variables** and **Headers** editors |
| 52 | +- New examples: **GraphiQL x Vite** and **GraphiQL x Next.js** |
| 53 | + |
| 54 | +<Callout type="info"> |
| 55 | + For the full roadmap, check out the [tracking issue on |
| 56 | + GitHub](https://github.com/graphql/graphiql/issues/3874). |
| 57 | +</Callout> |
| 58 | + |
| 59 | +## How to Update |
| 60 | + |
| 61 | +Follow the step-by-step guide in our |
| 62 | +[GraphiQL 4 migration documentation](https://github.com/graphql/graphiql/blob/main/docs/migration/graphiql-4.0.0.md). |
| 63 | + |
| 64 | +## What's Next? |
| 65 | + |
| 66 | +The development of **GraphiQL 5** is already complete! You can checkout the last |
| 67 | +[Live Preview](https://deploy-preview-3234--graphiql-test.netlify.app). |
| 68 | + |
| 69 | +The official release is just around the corner — arriving later **this month**! |
| 70 | + |
| 71 | +## Stay Connected |
| 72 | + |
| 73 | +Follow me, **Dima Machina**, on [𝕏](https://x.com/dimaMachina_) and |
| 74 | +[GitHub](https://github.com/dimaMachina) to stay up to date with the latest |
| 75 | +updates! |
0 commit comments