You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added new examples: [**GraphiQL x Vite**](../../examples/graphiql-vite) and [**GraphiQL x Next.js**](../../examples/graphiql-nextjs)
15
110
- Removed examples: **GraphiQL x Parcel** and **GraphiQL x Create React App**
16
-
- UMD build is removed. Use the ESM-based CDN instead.
17
111
- Removed props
18
-
-`keyMap`. To use Vim or Emacs keybindings in Monaco, you can use community plugins. Monaco Vim: https://github.com/brijeshb42/monaco-vim. Monaco Emacs: https://github.com/aioutecism/monaco-emacs
112
+
-`query`
113
+
-`variables`
114
+
-`headers`
115
+
-`response`
19
116
-`readOnly`
117
+
-`keyMap`. To use Vim or Emacs keybindings in Monaco, you can use community plugins. Monaco Vim: https://github.com/brijeshb42/monaco-vim. Monaco Emacs: https://github.com/aioutecism/monaco-emacs
20
118
-`validationRules`. Use custom GraphQL worker, see https://github.com/graphql/graphiql/tree/main/packages/monaco-graphql#custom-webworker-for-passing-non-static-config-to-worker.'
21
119
120
+
> [!NOTE]
121
+
>
122
+
> If you used `query`, `variables` and `headers` in integration tests, you can use the new `initialQuery`,
123
+
> `initialVariables` and `initialHeaders` props instead. These props will only be used for the first tab.
124
+
> When opening more tabs, the query editor will start out empty.
125
+
126
+
- Added new props
127
+
-`initialQuery`
128
+
-`initialVariables`
129
+
-`initialHeaders`
130
+
- feat: allow `children: ReactNode` for `<GraphiQL.Toolbar />` component
131
+
132
+
---
133
+
22
134
## `@graphiql/react`
23
135
136
+
> [!IMPORTANT]
137
+
>
138
+
> Clicking on a reference in the Query editor now works by holding `Cmd` on macOS or `Ctrl` on Windows/Linux.
139
+
140
+
-`usePrettifyEditors`, `useCopyQuery`, `useMergeQuery`, `useExecutionContext`, `usePluginContext`, `useSchemaContext`, `useStorageContext` hooks are deprecated.
141
+
- Add new `useGraphiQL` and `useGraphiQLActions` hooks instead. See updated [README](../../packages/graphiql-react/README.md#available-stores) for more details about them.
142
+
- remove `useSynchronizeValue` hook
143
+
- fix `defaultQuery` with empty string does not result in an empty default query
144
+
- fix `defaultQuery`, when is set will only be used for the first tab. When opening more tabs, the query editor will start out empty
145
+
- fix execute query shortcut in query editor, run it even there are no operations in query editor
146
+
- fix plugin store, save last opened plugin in storage
147
+
- remove `onClickReference` from variable editor
148
+
- fix shortcut text per OS for default query and in run query in execute query button's tooltip
149
+
24
150
The `ToolbarMenu` component has changed.
25
151
26
152
- The `label` and `className` props were removed
@@ -40,3 +166,34 @@ The `ToolbarMenu` component has changed.
40
166
</ToolbarMenu.Item>
41
167
</ToolbarMenu>
42
168
```
169
+
170
+
## `@graphiql/plugin-code-exporter`
171
+
172
+
> [!WARNING]
173
+
>
174
+
> ⚠️ UMD build is removed. Switch to the [ESM CDN example](../../packages/graphiql-plugin-code-exporter/example/index.html).
175
+
176
+
---
177
+
178
+
## `@graphiql/plugin-explorer`
179
+
180
+
> [!WARNING]
181
+
>
182
+
> ⚠️ UMD build is removed. Switch to the [ESM CDN example](../../examples/graphiql-cdn/index.html).
183
+
184
+
---
185
+
186
+
## @graphiql/plugin-doc-explorer
187
+
188
+
-`useExplorerContext` hook is deprecated. Use new `useDocExplorer` and `useDocExplorerActions` hooks instead.
189
+
- The shortcut to focus on the Doc Explorer search input is now `Cmd/Ctrl+Alt+K`
190
+
instead of the previous `Cmd/Ctrl+K`. This was changed because monaco-editor has
191
+
a built-in `Cmd/Ctrl+K` command.
192
+
- push a field type on stack too before field
193
+
- fix: show spinner in doc explorer based on `isIntrospecting` value, and not based on `isFetching`
194
+
195
+
---
196
+
197
+
## @graphiql/plugin-history
198
+
199
+
-`useHistoryContext` hook is deprecated. Use new `useHistory` and `useHistoryActions` hooks instead.
0 commit comments