Releases: graphql/graphiql
[email protected]
Major Changes
-
#3966
17bee1c
Thanks @dimaMachina! - Remove examples:GraphiQL x Parcel
andGraphiQL x Create React App
Add new examples:
GraphiQL x Vite
andGraphiQL x Next.js
-
#3234
86a96e5
Thanks @dimaMachina! - Migration from Codemirror to Monaco EditorReplacing
codemirror-graphql
withmonaco-graphql
Support for comments in Variables and Headers editors
Patch Changes
-
#3949
0844dc1
Thanks @dimaMachina! - - replaceonCopyQuery
hook withcopyQuery
function- replace
onMergeQuery
hook withmergeQuery
function - replace
onPrettifyEditors
hook withprettifyEditors
function - remove
fetcher
prop fromSchemaContextProvider
andschemaStore
and addfetcher
toexecutionStore
- add
onCopyQuery
andonPrettifyQuery
props toEditorContextProvider
- remove exports (use
GraphiQLProvider
)EditorContextProvider
ExecutionContextProvider
PluginContextProvider
SchemaContextProvider
StorageContextProvider
ExecutionContextType
PluginContextType
- feat(@graphiql/react): migrate React context to zustand:
- replace
useExecutionContext
withuseExecutionStore
hook - replace
useEditorContext
withuseEditorStore
hook
- replace
- prefer
getComputedStyle
overwindow.getComputedStyle
- replace
-
#3950
2455907
Thanks @dimaMachina! - - removeuseQueryEditor
,useVariableEditor
,useHeaderEditor
,useResponseEditor
hooks- remove
UseHeaderEditorArgs
,UseQueryEditorArgs
,UseResponseEditorArgs
,UseVariableEditorArgs
exports - rename components
StorageContextProvider
=>StorageStore
EditorContextProvider
=>EditorStore
SchemaContextProvider
=>SchemaStore
ExecutionContextProvider
=>ExecutionStore
HistoryContextProvider
=>HistoryStore
ExplorerContextProvider
=>ExplorerStore
- remove
-
Updated dependencies [
0844dc1
,86a96e5
,2455907
]:- @graphiql/[email protected]
- @graphiql/[email protected]
- @graphiql/[email protected]
[email protected]
Patch Changes
- #3949
0844dc1
Thanks @dimaMachina! - - replaceonCopyQuery
hook withcopyQuery
function- replace
onMergeQuery
hook withmergeQuery
function - replace
onPrettifyEditors
hook withprettifyEditors
function - remove
fetcher
prop fromSchemaContextProvider
andschemaStore
and addfetcher
toexecutionStore
- add
onCopyQuery
andonPrettifyQuery
props toEditorContextProvider
- remove exports (use
GraphiQLProvider
)EditorContextProvider
ExecutionContextProvider
PluginContextProvider
SchemaContextProvider
StorageContextProvider
ExecutionContextType
PluginContextType
- feat(@graphiql/react): migrate React context to zustand:
- replace
useExecutionContext
withuseExecutionStore
hook - replace
useEditorContext
withuseEditorStore
hook
- replace
- prefer
getComputedStyle
overwindow.getComputedStyle
- replace
@graphiql/[email protected]
Minor Changes
-
#3949
0844dc1
Thanks @dimaMachina! - - replaceonCopyQuery
hook withcopyQuery
function- replace
onMergeQuery
hook withmergeQuery
function - replace
onPrettifyEditors
hook withprettifyEditors
function - remove
fetcher
prop fromSchemaContextProvider
andschemaStore
and addfetcher
toexecutionStore
- add
onCopyQuery
andonPrettifyQuery
props toEditorContextProvider
- remove exports (use
GraphiQLProvider
)EditorContextProvider
ExecutionContextProvider
PluginContextProvider
SchemaContextProvider
StorageContextProvider
ExecutionContextType
PluginContextType
- feat(@graphiql/react): migrate React context to zustand:
- replace
useExecutionContext
withuseExecutionStore
hook - replace
useEditorContext
withuseEditorStore
hook
- replace
- prefer
getComputedStyle
overwindow.getComputedStyle
- replace
-
#3234
86a96e5
Thanks @dimaMachina! - Migration from Codemirror to Monaco EditorReplacing
codemirror-graphql
withmonaco-graphql
Support for comments in Variables and Headers editors
-
#3950
2455907
Thanks @dimaMachina! - - removeuseQueryEditor
,useVariableEditor
,useHeaderEditor
,useResponseEditor
hooks- remove
UseHeaderEditorArgs
,UseQueryEditorArgs
,UseResponseEditorArgs
,UseVariableEditorArgs
exports - rename components
StorageContextProvider
=>StorageStore
EditorContextProvider
=>EditorStore
SchemaContextProvider
=>SchemaStore
ExecutionContextProvider
=>ExecutionStore
HistoryContextProvider
=>HistoryStore
ExplorerContextProvider
=>ExplorerStore
- remove
@graphiql/[email protected]
Minor Changes
- #3950
2455907
Thanks @dimaMachina! - - removeuseQueryEditor
,useVariableEditor
,useHeaderEditor
,useResponseEditor
hooks- remove
UseHeaderEditorArgs
,UseQueryEditorArgs
,UseResponseEditorArgs
,UseVariableEditorArgs
exports - rename components
StorageContextProvider
=>StorageStore
EditorContextProvider
=>EditorStore
SchemaContextProvider
=>SchemaStore
ExecutionContextProvider
=>ExecutionStore
HistoryContextProvider
=>HistoryStore
ExplorerContextProvider
=>ExplorerStore
- remove
Patch Changes
-
#3949
0844dc1
Thanks @dimaMachina! - - replaceonCopyQuery
hook withcopyQuery
function- replace
onMergeQuery
hook withmergeQuery
function - replace
onPrettifyEditors
hook withprettifyEditors
function - remove
fetcher
prop fromSchemaContextProvider
andschemaStore
and addfetcher
toexecutionStore
- add
onCopyQuery
andonPrettifyQuery
props toEditorContextProvider
- remove exports (use
GraphiQLProvider
)EditorContextProvider
ExecutionContextProvider
PluginContextProvider
SchemaContextProvider
StorageContextProvider
ExecutionContextType
PluginContextType
- feat(@graphiql/react): migrate React context to zustand:
- replace
useExecutionContext
withuseExecutionStore
hook - replace
useEditorContext
withuseEditorStore
hook
- replace
- prefer
getComputedStyle
overwindow.getComputedStyle
- replace
-
#3234
86a96e5
Thanks @dimaMachina! - Migration from Codemirror to Monaco EditorReplacing
codemirror-graphql
withmonaco-graphql
Support for comments in Variables and Headers editors
-
Updated dependencies [
0844dc1
,86a96e5
,2455907
]:- @graphiql/[email protected]
@graphiql/[email protected]
Patch Changes
-
#3949
0844dc1
Thanks @dimaMachina! - - replaceonCopyQuery
hook withcopyQuery
function- replace
onMergeQuery
hook withmergeQuery
function - replace
onPrettifyEditors
hook withprettifyEditors
function - remove
fetcher
prop fromSchemaContextProvider
andschemaStore
and addfetcher
toexecutionStore
- add
onCopyQuery
andonPrettifyQuery
props toEditorContextProvider
- remove exports (use
GraphiQLProvider
)EditorContextProvider
ExecutionContextProvider
PluginContextProvider
SchemaContextProvider
StorageContextProvider
ExecutionContextType
PluginContextType
- feat(@graphiql/react): migrate React context to zustand:
- replace
useExecutionContext
withuseExecutionStore
hook - replace
useEditorContext
withuseEditorStore
hook
- replace
- prefer
getComputedStyle
overwindow.getComputedStyle
- replace
-
#3234
86a96e5
Thanks @dimaMachina! - Migration from Codemirror to Monaco EditorReplacing
codemirror-graphql
withmonaco-graphql
Support for comments in Variables and Headers editors
-
Updated dependencies [
0844dc1
,86a96e5
,2455907
]:- @graphiql/[email protected]
@graphiql/[email protected]
Minor Changes
-
#3234
86a96e5
Thanks @dimaMachina! - Migration from Codemirror to Monaco EditorReplacing
codemirror-graphql
withmonaco-graphql
Support for comments in Variables and Headers editors
-
#3950
2455907
Thanks @dimaMachina! - - removeuseQueryEditor
,useVariableEditor
,useHeaderEditor
,useResponseEditor
hooks- remove
UseHeaderEditorArgs
,UseQueryEditorArgs
,UseResponseEditorArgs
,UseVariableEditorArgs
exports - rename components
StorageContextProvider
=>StorageStore
EditorContextProvider
=>EditorStore
SchemaContextProvider
=>SchemaStore
ExecutionContextProvider
=>ExecutionStore
HistoryContextProvider
=>HistoryStore
ExplorerContextProvider
=>ExplorerStore
- remove
Patch Changes
- #3949
0844dc1
Thanks @dimaMachina! - - replaceonCopyQuery
hook withcopyQuery
function- replace
onMergeQuery
hook withmergeQuery
function - replace
onPrettifyEditors
hook withprettifyEditors
function - remove
fetcher
prop fromSchemaContextProvider
andschemaStore
and addfetcher
toexecutionStore
- add
onCopyQuery
andonPrettifyQuery
props toEditorContextProvider
- remove exports (use
GraphiQLProvider
)EditorContextProvider
ExecutionContextProvider
PluginContextProvider
SchemaContextProvider
StorageContextProvider
ExecutionContextType
PluginContextType
- feat(@graphiql/react): migrate React context to zustand:
- replace
useExecutionContext
withuseExecutionStore
hook - replace
useEditorContext
withuseEditorStore
hook
- replace
- prefer
getComputedStyle
overwindow.getComputedStyle
- replace
- Updated dependencies [
0844dc1
,86a96e5
,2455907
]:- @graphiql/[email protected]
@graphiql/[email protected]
Patch Changes
-
#3234
86a96e5
Thanks @dimaMachina! - Migration from Codemirror to Monaco EditorReplacing
codemirror-graphql
withmonaco-graphql
Support for comments in Variables and Headers editors
-
Updated dependencies [
0844dc1
,86a96e5
,2455907
]:- @graphiql/[email protected]
[email protected]
[email protected]
Patch Changes
-
#3970
7054591
Thanks @dimaMachina! - revert #3946 to have support multiple embedded graphiql instances on the same page -
Updated dependencies [
7054591
]:- @graphiql/[email protected]
- @graphiql/[email protected]
- @graphiql/[email protected]
@graphiql/[email protected]
Patch Changes
- #3970
7054591
Thanks @dimaMachina! - revert #3946 to have support multiple embedded graphiql instances on the same page