chore: update dependency graphiql to v3 #973
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.0.3
->^3.0.0
Release Notes
graphql/graphiql (graphiql)
v3.7.1
Compare Source
Patch Changes
#3751
b8538d8
Thanks @dimaMachina! - replace deprecatednavigator.platform
withnavigator.userAgent
fix placeholder
⌘ K
in doc explorer search input for non mac devices, replace byCtrl K
Updated dependencies [
b8538d8
]:v3.7.0
Compare Source
Minor Changes
9aef83a
Thanks @Yahkob! - add new propdefaultTheme
to set the default color preference themePatch Changes
#3441
959ed21
Thanks @cimdalli! - fix: set query editor todefaultQuery
while adding a new tab or GraphiQL's default queryv3.6.0
Compare Source
Minor Changes
#3563
4fb231f
Thanks @klippx! - Add new propconfirmCloseTab
to allow control of closing tabs#3532
7404e8e
Thanks @Cr4xy! - Add webp support to graphiql results image-previewPatch Changes
7404e8e
]:v3.5.0
Compare Source
Minor Changes
#3682
6c9f0df
Thanks @yaacovCR! - Support v17 ofgraphql-js
from17.0.0-alpha.2
forward.Includes support for the latest incremental delivery response format. For further details, see https://github.com/graphql/defer-stream-wg/discussions/69.
Patch Changes
6c9f0df
]:v3.4.1
Compare Source
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
]:v3.4.0
Compare Source
Minor Changes
82f1ecc
Thanks @dimaMachina! - addclassName
prop. Additional class names which will be appended to the GraphiQL container elementPatch Changes
5bc7b84
,fdec377
,56c6f45
,93c7e9f
]:v3.3.2
Compare Source
Patch Changes
#3634
adf0ba01
Thanks @dimaMachina! - when alpha is1
, usehsl
instead ofhsla
Updated dependencies [
adf0ba01
]:v3.3.1
Compare Source
Patch Changes
335d830c
]:v3.3.0
Compare Source
Minor Changes
115c1c02
Thanks @TuvalSimha! - Add a new prop to GraphiQL component:forcedTheme
to force the theme and hide the theme switcher.v3.2.3
Compare Source
Patch Changes
03ab3a6b
,aa6dbbb4
]:v3.2.2
Compare Source
Patch Changes
224b43f5
]:v3.2.1
Compare Source
Patch Changes
d48f4ef5
]:v3.2.0
Compare Source
Minor Changes
5d051054
Thanks @AaronMoat! - Update to markdown-it 14.xPatch Changes
5d051054
]:v3.1.2
Compare Source
Patch Changes
v3.1.1
Compare Source
Patch Changes
2b6ea316
]:v3.1.0
Compare Source
Minor Changes
a8080197
Thanks @TuvalSimha! - Allow disabling tabs and added new propdisableTabs
v3.0.10
Compare Source
Patch Changes
d07d5fc0
Thanks @xonx4l! - FIX: Unexpected duplicate CSS "display" propertyv3.0.9
Compare Source
Patch Changes
e89c432d
]:v3.0.8
Compare Source
Patch Changes
39bf31d1
]:v3.0.7
Compare Source
Patch Changes
f6afd22d
]:v3.0.6
Compare Source
Patch Changes
7b00774a
,7b00774a
]:v3.0.5
Compare Source
Patch Changes
#3371
2348641c
Thanks @acao! - Solves #2825, an old bug where new tabs were created on every refreshthe bug occurred when:
shouldPersistHeaders
is not set to trueheaders
ordefaultHeaders
are provided as propsUpdated dependencies [
2348641c
]:v3.0.4
Compare Source
Patch Changes
#3364
d67c13f6
Thanks @acao! - Fix search result bug on select, #33307Updated dependencies [
4cbdf183
,d67c13f6
]:v3.0.3
Compare Source
Patch Changes
8ebedc9a
Thanks @acao! - export createLocalStorage in UMD bundlev3.0.2
Compare Source
Patch Changes
#3349
17069e7a
Thanks @acao! - fix display of deprecation reason on field type docsUpdated dependencies [
17069e7a
,ffb6486d
,e4a36207
]:v3.0.1
Compare Source
Patch Changes
d07d5fc0
Thanks @xonx4l! - FIX: Unexpected duplicate CSS "display" propertyv3.0.0
Compare Source
Major Changes
9ac84bfc
Thanks @B2o5T! - removeinitialTabs
, usedefaultTabs
insteadPatch Changes
#3235
5d062809
Thanks @B2o5T! - remove unnecessary<div />
wrappersUpdated dependencies [
9ac84bfc
,9ac84bfc
,9ac84bfc
,5971d528
,9ac84bfc
,d9e5089f
,bc9d243d
,9ac84bfc
,9ac84bfc
,9ac84bfc
,67bf93a3
]:v2.4.7
Compare Source
Patch Changes
e6cb6395
Thanks @B2o5T! - fix ReferenceError: window is not defined in Next.jsv2.4.6
Compare Source
Patch Changes
#3124
c645932c
Thanks @B2o5T! - avoid unecessary renders by using useMemo or useCallbackUpdated dependencies [
911cf3e0
,c645932c
,2ca4841b
,7bf90929
,431b7fe1
]:v2.4.5
Compare Source
Patch Changes
2b212941
,9b333a04
]:v2.4.4
Compare Source
Patch Changes
707f3cbc
,06007498
]:v2.4.3
Compare Source
Patch Changes
4d33b221
]:v2.4.2
Compare Source
Patch Changes
#3113
2e477eb2
Thanks @B2o5T! - replace.forEach
withfor..of
Updated dependencies [
2e477eb2
,4879984e
,51007002
,15c26eb6
]:v2.4.1
Compare Source
Patch Changes
#3087
0e2dfd49
Thanks @B2o5T! - remove nowhere usedentities
dependencyUpdated dependencies [
2d5c60ec
,b9c13328
,4a2284f5
,881a2024
,7cf4908a
]:v2.4.0
Compare Source
Minor Changes
65f5176a
Thanks @benjie! - GraphiQL now maintains the DocExplorer navigation stack as best it can when the schema is updatedPatch Changes
#2995
5f276c41
Thanks @imolorhe! - fix(cm6-graphql): Fix query token used as field name#2962
db2a0982
Thanks @B2o5T! - clean all ESLint warnings, add--max-warnings=0
and--cache
flags#2940
8725d1b6
Thanks @B2o5T! - enableunicorn/prefer-node-protocol
ruleUpdated dependencies [
e68cb8bc
,f788e65a
,bdc966cb
,65f5176a
,db2a0982
,8725d1b6
]:v2.3.0
Compare Source
Minor Changes
ccba2f33
Thanks @TheMightyPenguin! - Add user facing setting for persisting headersPatch Changes
#2922
d1fcad72
Thanks @B2o5T! - extendsplugin:import/recommended
and fix warnings#2941
4a8b2e17
Thanks @B2o5T! - enableunicorn/prefer-logical-operator-over-ternary
rule#2964
cec3fb2a
Thanks @B2o5T! - enableunicorn/prefer-export-from
rule#2939
bca318ce
Thanks @jonathanawesome! - removes regenerator-runtime from cdn.ts, resolves #2868#2963
f263f778
Thanks @B2o5T! - enableprefer-destructuring
rule#2938
6a9d913f
Thanks @B2o5T! - enableunicorn/throw-new-error
ruleUpdated dependencies [
f7addb20
,d1fcad72
,4a8b2e17
,cec3fb2a
,695100bd
,11e6ad11
,c70d9165
,c44ea4f1
,d502a33b
,0669767e
,18f8e80a
,f263f778
,ccba2f33
,6a9d913f
,4ff2794c
]:v2.2.0
Compare Source
Minor Changes
3340fd74
Thanks @thomasheyenbrock! - Deprecate theinitialTabs
prop and add adefaultTabs
props that supersedes itPatch Changes
#2911
118db402
Thanks @thomasheyenbrock! - Fix styles of secondary editor buttons#2919
f6cae4ea
Thanks @thomasheyenbrock! - Fix overflow when there are lots of tabs that don't fit into the tab bar at onceUpdated dependencies [
16174a05
,f6cae4ea
,3340fd74
,0851d5f9
,83364b28
,3a7d0007
]:v2.1.0
Compare Source
Minor Changes
29630c22
Thanks @avaly! - Initial tabs supportPatch Changes
#2885
8f926489
Thanks @simhnna! - Fix stop execution button showing a dropdown#2886
2ba2f620
Thanks @B2o5T! - feat: adddefaultHeaders
propUpdated dependencies [
29630c22
,8f926489
,2ba2f620
]:v2.0.13
Compare Source
Patch Changes
v2.0.12
Compare Source
Patch Changes
#2758
d63801fa
Thanks @LekoArts! - Fix the width of the plugin paneUpdated dependencies []:
v2.0.11
Compare Source
Patch Changes
682ad06e
]:v2.0.10
Compare Source
Patch Changes
4e2f7ff9
]:v2.0.9
Compare Source
Patch Changes
#2778
905f2e5e
Thanks @jonathanawesome! - Adds a box-model reset for all children of the.graphiql-container
class. This change facilitated another change to the--sidebar-width
variable.Updated dependencies [
42700076
,36839800
,905f2e5e
]:v2.0.8
Compare Source
Patch Changes
#2653
39b4668d
Thanks @dylanowen! - FixfetchError
not being cleared when a newfetcher
is usedUpdated dependencies [
39b4668d
]:v2.0.7
Compare Source
Patch Changes
e244b782
]:v2.0.6
Compare Source
Patch Changes
#2735
ca067d88
Thanks @thomasheyenbrock! - Use the new CSS variables for color alpha values defined in@graphiql/react
in style definitionsUpdated dependencies [
ca067d88
,674bf3f8
,32a70065
]:v2.0.5
Compare Source
Patch Changes
bfa90f24
,8ab5fcd0
]:v2.0.4
Compare Source
Patch Changes
92a17490
Thanks @acao! - Specify MIT license for@graphiql/plugin-explorer
package.json
0219eef3
Thanks @thomasheyenbrock! - Improved sizing of button for adding tabs#2746
6f0fa98e
Thanks @thomasheyenbrock! - Fix CodeMirror editors overlapping other parts of the UI on certain browser-OS-combinations (e.g. Chrome on Windows)Updated dependencies [
98e14155
,48872a87
,7dfea94a
,3aa1f39f
,0219eef3
]:v2.0.3
Compare Source
Patch Changes
ff20a381
Thanks @mxstbr! - Wrap the GraphiQL logo with a link to the repositoryc922719e
Thanks @thomasheyenbrock! - Add the contents ofgraphql
and@graphiql/react
as static properties to theGraphiQL
component in CDN bundles so that these modules can be reused from plugin CDN bundles.v2.0.2
Compare Source
Patch Changes
d65f00ea
,f15ee38d
,d65f00ea
]:v2.0.1
Compare Source
Patch Changes
v2.0.0
Compare Source
Major Changes
e59ec32e
Thanks @acao! - BREAKING: TheGraphiQL
component does no longer set a propertyg
on thewindow
object.e59ec32e
Thanks @acao! - BREAKING: Implement a new design for the GraphiQL UI. This changes both DOM structure and class names. We consider this a breaking change as custom GraphQL IDEs built on top of GraphiQL relied on these internals, e.g. overriding styles using certain class names.e59ec32e
Thanks @acao! - BREAKING: The following static properties of theGraphiQL
component have been removed:GraphiQL.formatResult
: You can use the functionformatResult
from@graphiql/toolkit
instead.GraphiQL.formatError
: You can use the functionformatError
from@graphiql/toolkit
instead.GraphiQL.QueryEditor
: You can use theQueryEditor
component from@graphiql/react
instead.GraphiQL.VariableEditor
: You can use theVariableEditor
component from@graphiql/react
instead.GraphiQL.HeaderEditor
: You can use theHeaderEditor
component from@graphiql/react
instead.GraphiQL.ResultViewer
: You can use theResponseEditor
component from@graphiql/react
instead.GraphiQL.Button
: You can use theToolbarButton
component from@graphiql/react
instead.GraphiQL.ToolbarButton
: This exposed the same component asGraphiQL.Button
.GraphiQL.Menu
: You can use theToolbarMenu
component from@graphiql/react
instead.GraphiQL.MenuItem
: You can use theToolbarMenu.Item
component from@graphiql/react
instead.GraphiQL.Group
: Grouping multiple buttons side-by-side is not provided out-of-the box anymore in the new GraphiQL UI. If you want to implement a similar feature in the new vertical toolbar you can do so by adding your own styles for your custom toolbar elements. Example:e59ec32e
Thanks @acao! - BREAKING: The following exports of thegraphiql
package have been removed:DocExplorer
: Now exported from@graphiql/react
asDocExplorer
schema
prop has been removed, the component now uses the schema provided by theExplorerContext
fillLeafs
: Now exported from@graphiql/toolkit
asfillLeafs
getSelectedOperationName
: Now exported from@graphiql/toolkit
asgetSelectedOperationName
mergeAst
: Now exported from@graphiql/toolkit
asmergeAst
onHasCompletion
: Now exported from@graphiql/react
asonHasCompletion
QueryEditor
: Now exported from@graphiql/react
asQueryEditor
ToolbarMenu
: Now exported from@graphiql/react
asToolbarMenu
ToolbarMenuItem
: Now exported from@graphiql/react
asToolbarMenu.Item
ToolbarSelect
: Now exported from@graphiql/react
asToolbarListbox
ToolbarSelectOption
: Now exported from@graphiql/react
asToolbarListbox.Option
VariableEditor
: Now exported from@graphiql/react
asVariableEditor
Fetcher
: Now exported from@graphiql/toolkit
FetcherOpts
: Now exported from@graphiql/toolkit
FetcherParams
: Now exported from@graphiql/toolkit
FetcherResult
: Now exported from@graphiql/toolkit
FetcherReturnType
: Now exported from@graphiql/toolkit
Observable
: Now exported from@graphiql/toolkit
Storage
: Now exported from@graphiql/toolkit
SyncFetcherResult
: Now exported from@graphiql/toolkit
e59ec32e
Thanks @acao! - BREAKING: TheGraphiQL
component has been refactored to be a function component. Attaching a ref to this component will no longer provide access to props, state or class methods. In order to interact with or changeGraphiQL
state you need to use the contexts and hooks provided by the@graphiql/react
package. More details and examples can be found in the migration guide.e59ec32e
Thanks @acao! - BREAKING: The following props of theGraphiQL
component have been changed:defaultVariableEditorOpen
anddefaultSecondaryEditorOpen
have been merged into one propdefaultEditorToolsVisibility
. The default behavior if this prop is not passed is that the editor tools are shown if at least one of the secondary editors has contents. You can pass the following values to the prop:false
hides the editor tools.true
shows the editor tools."variables"
explicitly shows the variables editor."headers"
explicitly shows the headers editor.docExplorerOpen
,onToggleDocs
andonToggleHistory
have been removed. They are replaced by the more generic propsvisiblePlugin
(for controlling which plugin is visible) andonTogglePluginVisibility
(which is called each time the visibility of any plugin changes).headerEditorEnabled
prop has been renamed toisHeadersEditorEnabled
.ResultsTooltip
prop has been renamed toresponseTooltip
.tabs
prop has therefore been replaced with a proponTabChange
. If you used thetabs
prop before to pass this function you can change your implementation like so:Minor Changes
e59ec32e
Thanks @acao! - GraphiQL now ships with a dark theme. By default the interface respects the system settings, the theme can also be explicitly chosen via the new settings dialog.Patch Changes
e59ec32e
,e59ec32e
,e59ec32e
,e59ec32e
,e59ec32e
,e59ec32e
]:v1.11.5
Compare Source
Patch Changes
b3470b99
Thanks @thomasheyenbrock!Configuration
📅 Schedule: Branch creation - "after 10am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.