Skip to content

Releases: graphql/graphiql

[email protected]

13 Aug 19:40
5f000ed
Compare
Choose a tag to compare

Minor Changes

Patch Changes

[email protected]

13 Aug 19:40
5f000ed
Compare
Choose a tag to compare

Minor Changes

Patch Changes

[email protected]

13 Aug 19:40
5f000ed
Compare
Choose a tag to compare

Minor Changes

Patch Changes

[email protected]

13 Aug 19:40
5f000ed
Compare
Choose a tag to compare

Minor Changes

Patch Changes

[email protected]

13 Aug 19:40
5f000ed
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@graphiql/[email protected]

13 Aug 19:40
5f000ed
Compare
Choose a tag to compare

Minor Changes

@graphiql/[email protected]

13 Aug 19:40
5f000ed
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@graphiql/[email protected]

13 Aug 19:40
5f000ed
Compare
Choose a tag to compare

Minor Changes

Patch Changes

[email protected]

13 Aug 21:33
15fff26
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

[email protected]

13 Aug 18:04
cb4553d
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Major Changes

  • #3713 27bbc51 Thanks @dimaMachina! - show tabs even there is only 1 tab

  • #3707 3c901c1 Thanks @dimaMachina! - Remove toolbar.additionalContent and toolbar.additionalComponent props in favor of GraphiQL.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>