Releases: graphql/graphiql
graphiql@4.0.0-alpha.1
Major Changes
-
#3713
27bbc51
Thanks @dimaMachina! - show tabs even there is only 1 tab -
#3707
3c901c1
Thanks @dimaMachina! - Removetoolbar.additionalContent
andtoolbar.additionalComponent
props in favor ofGraphiQL.Toolbar
render props.Migration from
toolbar.additionalContent
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>
Migration from
toolbar.additionalComponent
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>
Additionally, you can sort default toolbar buttons in different order or remove unneeded buttons for you:
<GraphiQL> <GraphiQL.Toolbar> {({ prettify, copy }) => ( <> {copy /* Copy button will be first instead of default last */} {/* Merge button is removed from toolbar */} {prettify} </> )} </GraphiQL.Toolbar> </GraphiQL>
@graphiql/react@1.0.0-alpha.1
Minor Changes
- #3717
bf0c4e7
Thanks @dimaMachina! - removecreateComponentGroup
utility in favourObject.assign
graphiql@4.0.0-alpha.0
Major Changes
-
#3706
343dd59
Thanks @dimaMachina! - remove default exportMigration
Before
import GraphiQL from 'graphiql';
After
import { GraphiQL } from 'graphiql';
-
#3687
09e7004
Thanks @dimaMachina! - removedisableTabs
option -
#3688
0fdd9b9
Thanks @dimaMachina! - removedata-testid="graphiql-container"
-
#3679
5d90e0e
Thanks @dimaMachina! - migrate fromwebpack
tovite
changed exports
-graphiql/graphiql.css +graphiql/style.css
changed cdn paths,
dist/index.umd.js
anddist/style.css
are minified-https://unpkg.com/graphiql/graphiql.js -https://unpkg.com/graphiql/graphiql.min.js +https://unpkg.com/graphiql/dist/index.umd.js -https://unpkg.com/graphiql/graphiql.css -https://unpkg.com/graphiql/graphiql.min.css +https://unpkg.com/graphiql/dist/style.css
-
#3644
3c1a345
Thanks @dimaMachina! - - new looks of tabs- fix
disableTabs
whenAdd tab
button is still shown
- fix
Patch Changes
-
#3683
8efb873
Thanks @dimaMachina! - update graphql to16.9.0
and use vitedefine
configuration to remove development code from cdn bundle -
#3692
82bc961
Thanks @dimaMachina! - - preferlocation
overwindow.location
- prefer
navigator
overwindow.navigator
- prefer
-
Updated dependencies [
00415d2
,9baf1f0
,8ff87d7
,82bc961
,3c1a345
]:- @graphiql/react@1.0.0-alpha.0
@graphiql/react@1.0.0-alpha.0
Major Changes
-
#3709
9baf1f0
Thanks @dimaMachina! -style.css
import was changedMigration
-import '@graphiql/react/dist/style.css'; +import '@graphiql/react/style.css';
Minor Changes
-
#3702
00415d2
Thanks @dimaMachina! - generate types withvite-plugin-dts
-
#3644
3c1a345
Thanks @dimaMachina! - - new looks of tabs- fix
disableTabs
whenAdd tab
button is still shown
- fix
Patch Changes
-
#3705
8ff87d7
Thanks @dimaMachina! - usevite build --watch
instead ofvite
fordev
script because we don't need development server for themdo not use
vite-plugin-dts
when generating umd build -
#3692
82bc961
Thanks @dimaMachina! - - preferlocation
overwindow.location
- prefer
navigator
overwindow.navigator
- prefer
@graphiql/plugin-explorer@4.0.0-alpha.0
Major Changes
-
#3709
9baf1f0
Thanks @dimaMachina! -style.css
import was changedMigration
-import '@graphiql/plugin-explorer/dist/style.css'; +import '@graphiql/plugin-explorer/style.css';
Minor Changes
- #3702
00415d2
Thanks @dimaMachina! - generate types withvite-plugin-dts
Patch Changes
@graphiql/plugin-code-exporter@4.0.0-alpha.0
Major Changes
-
#3709
9baf1f0
Thanks @dimaMachina! -style.css
import was changedMigration
-import '@graphiql/plugin-code-exporter/dist/style.css'; +import '@graphiql/plugin-code-exporter/style.css';
Minor Changes
- #3702
00415d2
Thanks @dimaMachina! - generate types withvite-plugin-dts
Patch Changes
graphql-language-service-server@2.13.3
graphiql@3.4.1
Patch Changes
-
#3675
676f910
Thanks @dimaMachina! - move@graphiql/toolkit
todevDependecies
because umd build is bundled with all dependencies in one file -
#3655
5450e6b
Thanks @dimaMachina! - remove unused dependenciesgraphql-language-service
andmarkdown-it
-
Updated dependencies [
6a0a5e5
]:- @graphiql/react@0.23.1
@graphiql/react@0.23.1
monaco-graphql@1.5.3
Patch Changes
-
#3637
fdec377
Thanks @dimaMachina! - update eslint plugins and fix errors -
Updated dependencies [
fdec377
]:- graphql-language-service@5.2.2