Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
7c5f11f
use execution store
dimaMachina May 13, 2025
53cb535
upd
dimaMachina May 13, 2025
e52977e
upd
dimaMachina May 13, 2025
fcfd519
upd
dimaMachina May 13, 2025
8db47ce
upd
dimaMachina May 13, 2025
7589253
upd
dimaMachina May 13, 2025
9425ff8
upd
dimaMachina May 13, 2025
f0d728d
upd
dimaMachina May 13, 2025
7335522
upd
dimaMachina May 13, 2025
6ac226e
upd
dimaMachina May 13, 2025
7bf7e80
upd
dimaMachina May 13, 2025
b28cc14
upd
dimaMachina May 13, 2025
7a09053
upd
dimaMachina May 13, 2025
dba736e
upd
dimaMachina May 13, 2025
d16a30c
upd
dimaMachina May 13, 2025
58cb9eb
default query
dimaMachina May 13, 2025
518ed77
persist headers
dimaMachina May 13, 2025
0662a03
upd
dimaMachina May 13, 2025
cf1a268
upd
dimaMachina May 13, 2025
839d938
upd
dimaMachina May 13, 2025
f912245
upd
dimaMachina May 13, 2025
0abb0ec
upd
dimaMachina May 13, 2025
e8403f6
upd
dimaMachina May 13, 2025
5824175
upd
dimaMachina May 13, 2025
418b805
upd
dimaMachina May 13, 2025
7b9bc0b
upd
dimaMachina May 13, 2025
fec041b
upd
dimaMachina May 13, 2025
9afd50c
reduce rerenders
dimaMachina May 13, 2025
50b7ef3
add logs
dimaMachina May 13, 2025
82f6c09
try
dimaMachina May 13, 2025
7d9cd26
cleanup
dimaMachina May 13, 2025
30d298f
cspell
dimaMachina May 13, 2025
2e261ca
upd
dimaMachina May 14, 2025
7119c6a
upd
dimaMachina May 14, 2025
31241e2
upd
dimaMachina May 14, 2025
037485d
upd
dimaMachina May 14, 2025
13b008b
upd
dimaMachina May 14, 2025
93b1492
upd
dimaMachina May 14, 2025
5e572fd
upd
dimaMachina May 14, 2025
3648b78
upd
dimaMachina May 14, 2025
bc43eb3
upd
dimaMachina May 14, 2025
0595458
upd
dimaMachina May 14, 2025
24c2373
upd
dimaMachina May 14, 2025
384e7b0
upd
dimaMachina May 14, 2025
7a9224c
upd
dimaMachina May 14, 2025
727fd1a
upd
dimaMachina May 14, 2025
3ba26c5
upd
dimaMachina May 14, 2025
77303a1
upd
dimaMachina May 14, 2025
c1f402d
upd
dimaMachina May 14, 2025
7ca8fa1
upd
dimaMachina May 14, 2025
12cf600
upd
dimaMachina May 14, 2025
b0193b2
upd
dimaMachina May 14, 2025
576b52d
upd
dimaMachina May 14, 2025
e149cd3
upd
dimaMachina May 14, 2025
6a61215
upd
dimaMachina May 14, 2025
567cca6
upd
dimaMachina May 14, 2025
db445ec
upd
dimaMachina May 14, 2025
88a5be2
upd
dimaMachina May 14, 2025
9649e6d
upd
dimaMachina May 14, 2025
ced804c
upd
dimaMachina May 14, 2025
74c059f
upd
dimaMachina May 14, 2025
3580e94
upd
dimaMachina May 14, 2025
661df4b
upd
dimaMachina May 14, 2025
787d47c
upd
dimaMachina May 14, 2025
9a5e29f
upd
dimaMachina May 14, 2025
95e5e85
upd
dimaMachina May 14, 2025
27554e2
upd
dimaMachina May 14, 2025
454cb97
upd
dimaMachina May 14, 2025
ca53861
upd
dimaMachina May 14, 2025
5d07602
upd
dimaMachina May 14, 2025
a7ceaa8
upd
dimaMachina May 14, 2025
2bc1a06
upd
dimaMachina May 14, 2025
04747d3
upd
dimaMachina May 14, 2025
ef835fb
upd
dimaMachina May 14, 2025
6bcc55d
upd
dimaMachina May 14, 2025
6682497
upd
dimaMachina May 14, 2025
1fe7eaf
upd
dimaMachina May 14, 2025
7e85d71
upd
dimaMachina May 14, 2025
695832c
upd
dimaMachina May 14, 2025
c062b23
upd
dimaMachina May 14, 2025
9b3c029
upd
dimaMachina May 14, 2025
43e83d0
upd
dimaMachina May 14, 2025
efa078a
upd
dimaMachina May 14, 2025
a7d21a2
upd
dimaMachina May 14, 2025
df6bc60
Merge branch 'main' into v4-6
dimaMachina May 14, 2025
2723780
Merge branch 'v4-6' into v4-9
dimaMachina May 14, 2025
5207987
fixes
dimaMachina May 14, 2025
ed99173
fixes
dimaMachina May 14, 2025
0747d7e
fixes
dimaMachina May 14, 2025
f553781
fixes
dimaMachina May 14, 2025
39242be
fixes
dimaMachina May 14, 2025
2ecda33
upd
dimaMachina May 15, 2025
ad4a8a9
upd
dimaMachina May 15, 2025
0e8823f
upd
dimaMachina May 15, 2025
a83cf69
upd
dimaMachina May 15, 2025
62ea76e
upd
dimaMachina May 15, 2025
796aa20
upd
dimaMachina May 15, 2025
ce31c60
upd
dimaMachina May 15, 2025
0274e87
upd
dimaMachina May 15, 2025
65790ea
upd
dimaMachina May 15, 2025
78fc130
upd
dimaMachina May 15, 2025
6a14d7e
upd
dimaMachina May 15, 2025
b1ff040
upd
dimaMachina May 15, 2025
e42dd2d
upd
dimaMachina May 15, 2025
4be721b
upd
dimaMachina May 15, 2025
19bf02f
upd
dimaMachina May 15, 2025
b08df3c
upd
dimaMachina May 15, 2025
f43edcc
upd
dimaMachina May 15, 2025
9222dbf
upd
dimaMachina May 15, 2025
22693e7
upd
dimaMachina May 15, 2025
c1b09c8
upd
dimaMachina May 15, 2025
e8008ae
upd
dimaMachina May 15, 2025
00da1c8
upd
dimaMachina May 15, 2025
a6dda07
upd
dimaMachina May 15, 2025
8f92b6a
upd
dimaMachina May 15, 2025
f899b18
upd
dimaMachina May 15, 2025
e2ce749
upd
dimaMachina May 15, 2025
b7969bc
upd
dimaMachina May 15, 2025
1aab847
upd
dimaMachina May 15, 2025
980c83a
upd
dimaMachina May 15, 2025
1882e20
upd
dimaMachina May 15, 2025
fa90c0c
upd
dimaMachina May 15, 2025
036ebde
upd
dimaMachina May 15, 2025
3290391
upd
dimaMachina May 15, 2025
b78624a
upd
dimaMachina May 15, 2025
005091e
upd
dimaMachina May 15, 2025
154cb8b
upd
dimaMachina May 15, 2025
f799696
upd
dimaMachina May 15, 2025
9bb265f
upd
dimaMachina May 15, 2025
8a894da
upd
dimaMachina May 15, 2025
83825c3
upd
dimaMachina May 15, 2025
e78fa9a
upd
dimaMachina May 15, 2025
a785297
upd
dimaMachina May 15, 2025
d2f0d36
upd
dimaMachina May 15, 2025
e9c0567
upd
dimaMachina May 15, 2025
aa701c5
upd
dimaMachina May 15, 2025
639bc4c
upd
dimaMachina May 15, 2025
6f44cd8
upd
dimaMachina May 15, 2025
e4eb50c
prettier
dimaMachina May 15, 2025
14be107
upd
dimaMachina May 15, 2025
388495d
move plugins check to store
dimaMachina May 15, 2025
bc2c655
upd
dimaMachina May 15, 2025
7e937c3
upd
dimaMachina May 15, 2025
25ba8cc
refactor
dimaMachina May 15, 2025
319cb36
refactor
dimaMachina May 15, 2025
0623c2d
upd
dimaMachina May 15, 2025
f8cecc2
upd
dimaMachina May 15, 2025
7320d0d
upd
dimaMachina May 15, 2025
fe17c0b
upd
dimaMachina May 15, 2025
df29d87
upd
dimaMachina May 15, 2025
e63113b
upd
dimaMachina May 15, 2025
537a8f9
lint fix
dimaMachina May 15, 2025
5c1eec5
Merge branch 'main' into v4-9
dimaMachina May 20, 2025
c94a092
Merge branch 'v4-9' into v4-10
dimaMachina May 20, 2025
3f701ba
all in one
dimaMachina May 26, 2025
2e4ff5b
yarn lokc
dimaMachina May 26, 2025
d75740c
fix
dimaMachina May 26, 2025
c0ed68d
yarn.lock
dimaMachina May 26, 2025
768ab60
update babel.config.js
dimaMachina May 26, 2025
a2765fb
fix tests
dimaMachina May 26, 2025
c08fcdb
update examples
dimaMachina May 26, 2025
deedf19
yarn.lock
dimaMachina May 26, 2025
cf27707
Merge branch 'graphiql-5' into monaco4-examples
dimaMachina Jun 4, 2025
960062f
run yarn
dimaMachina Jun 4, 2025
4415025
add changeset
dimaMachina Jun 4, 2025
37aff03
Delete .changeset/five-cars-roll.md
dimaMachina Jun 4, 2025
c5e6b70
upd snapshot
dimaMachina Jun 4, 2025
ebdbfe3
trigger rebuild of netlify example
dimaMachina Jun 4, 2025
3aa59d8
should fix netlify
dimaMachina Jun 4, 2025
f25b4c1
and here
dimaMachina Jun 4, 2025
10649ab
Merge branch 'graphiql-5' into monaco4-examples
dimaMachina Jun 4, 2025
a875cf5
upd yarn.lock
dimaMachina Jun 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/nasty-pandas-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'graphiql': major
---

Remove examples: `GraphiQL x Parcel` and `GraphiQL x Create React App`

Add new examples: `GraphiQL x Vite` and `GraphiQL x Next.js`
1 change: 0 additions & 1 deletion examples/graphiql-cdn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<style>
body {
margin: 0;
overflow: hidden; /* in Firefox */
}

#graphiql {
Expand Down
10 changes: 4 additions & 6 deletions examples/graphiql-create-react-app/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# GraphiQL `create-react-app` Example

This example demonstrates how to transpile your own custom ES6 and typescript GraphiQL implementation bootstrapped with `create-react-app`, no config needed.

## Setup

1. `yarn` and `yarn start` from this folder to start `react-scripts` dev server.
1. `yarn build` from this folder to build production ready transpiled files using `react-scripts`. Find the output in `build` folder.
> [!WARNING]
>
> This example has been removed. You can find its last version [here](https://github.com/graphql/graphiql/tree/3b93d27f7568d93db5cd146157220b127eeea737/examples/graphiql-create-react-app).
> We recommend using the [GraphiQL Vite](../graphiql-vite) or [GraphiQL Next.js](../graphiql-nextjs) examples instead.
31 changes: 0 additions & 31 deletions examples/graphiql-create-react-app/package.json

This file was deleted.

30 changes: 0 additions & 30 deletions examples/graphiql-create-react-app/public/index.html

This file was deleted.

22 changes: 0 additions & 22 deletions examples/graphiql-create-react-app/src/App.jsx

This file was deleted.

6 changes: 0 additions & 6 deletions examples/graphiql-create-react-app/src/index.css

This file was deleted.

19 changes: 19 additions & 0 deletions examples/graphiql-nextjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
5 changes: 5 additions & 0 deletions examples/graphiql-nextjs/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
7 changes: 7 additions & 0 deletions examples/graphiql-nextjs/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
24 changes: 24 additions & 0 deletions examples/graphiql-nextjs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "example-graphiql-nextjs",
"version": "0.0.0",
"private": true,
"scripts": {
"types:check": "tsc --noEmit",
"dev": "next --turbopack",
"build": "next build --turbopack",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"graphiql": "^4.1.0",
"next": "15.3.3",
"react": "^19.1.0",
"react-dom": "^19.1.0"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"typescript": "^5"
}
}
7 changes: 7 additions & 0 deletions examples/graphiql-nextjs/src/app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
body {
margin: 0;
}

.graphiql-container {
height: 100dvh !important;
}
17 changes: 17 additions & 0 deletions examples/graphiql-nextjs/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { FC, ReactNode } from 'react';
import type { Metadata } from 'next';
import './globals.css';

export const metadata: Metadata = {
title: 'GraphiQL Next.js Example',
};

const RootLayout: FC<Readonly<{ children: ReactNode }>> = ({ children }) => {
return (
<html lang="en">
<body>{children}</body>
</html>
);
};

export default RootLayout;
29 changes: 29 additions & 0 deletions examples/graphiql-nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
'use client';

import type { FC } from 'react';
import dynamic from 'next/dynamic';
import 'graphiql/setup-workers/webpack';
import 'graphiql/style.css';

// dynamically import our GraphiQL component
const GraphiQL = dynamic(() => import('graphiql').then(mod => mod.GraphiQL), {
ssr: false,
});

async function fetcher(graphQLParams: Record<string, unknown>) {
const response = await fetch('https://graphql.earthdata.nasa.gov/api', {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify(graphQLParams),
});
return response.json();
}

const Page: FC = () => {
return <GraphiQL fetcher={fetcher} />;
};

export default Page;
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
{
"compilerOptions": {
"target": "es5",
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"sourceMap": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
]
},
"include": ["src"]
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
1 change: 0 additions & 1 deletion examples/graphiql-parcel/.gitignore

This file was deleted.

69 changes: 0 additions & 69 deletions examples/graphiql-parcel/CHANGELOG.md

This file was deleted.

13 changes: 5 additions & 8 deletions examples/graphiql-parcel/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
## GraphiQL Parcel Example
# GraphiQL Parcel Example

This example demonstrates how to transpile your own custom ES6 GraphiQL
implementation with parcel bundler.

### Setup

1. `yarn` and `yarn start` from this folder to start parcel dev mode.
1. `yarn build` to find production ready files.
> [!WARNING]
>
> This example has been removed. You can find its last version [here](https://github.com/graphql/graphiql/tree/3b93d27f7568d93db5cd146157220b127eeea737/examples/graphiql-parcel).
> We recommend using the [GraphiQL Vite](../graphiql-vite) or [GraphiQL Next.js](../graphiql-nextjs) examples instead.
35 changes: 0 additions & 35 deletions examples/graphiql-parcel/package.json

This file was deleted.

Loading
Loading