Skip to content

Releases: graphql/graphiql

@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>

@graphiql/[email protected]

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

Minor Changes

[email protected]

11 Aug 18:05
1a6d63d
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Major Changes

  • #3706 343dd59 Thanks @dimaMachina! - remove default export

    Migration

    Before

    import GraphiQL from 'graphiql';

    After

    import { GraphiQL } from 'graphiql';
  • #3687 09e7004 Thanks @dimaMachina! - remove disableTabs option

  • #3688 0fdd9b9 Thanks @dimaMachina! - remove data-testid="graphiql-container"

  • #3679 5d90e0e Thanks @dimaMachina! - migrate from webpack to vite

    changed exports

    -graphiql/graphiql.css
    +graphiql/style.css

    changed cdn paths, dist/index.umd.js and dist/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 when Add tab button is still shown

Patch Changes

@graphiql/[email protected]

11 Aug 18:05
1a6d63d
Compare
Choose a tag to compare
Pre-release

Major Changes

  • #3709 9baf1f0 Thanks @dimaMachina! - style.css import was changed

    Migration

    -import '@graphiql/react/dist/style.css';
    +import '@graphiql/react/style.css';

Minor Changes

Patch Changes

  • #3705 8ff87d7 Thanks @dimaMachina! - use vite build --watch instead of vite for dev script because we don't need development server for them

    do not use vite-plugin-dts when generating umd build

  • #3692 82bc961 Thanks @dimaMachina! - - prefer location over window.location

    • prefer navigator over window.navigator

@graphiql/[email protected]

11 Aug 18:05
1a6d63d
Compare
Choose a tag to compare
Pre-release

Major Changes

  • #3709 9baf1f0 Thanks @dimaMachina! - style.css import was changed

    Migration

    -import '@graphiql/plugin-explorer/dist/style.css';
    +import '@graphiql/plugin-explorer/style.css';

Minor Changes

Patch Changes

@graphiql/[email protected]

11 Aug 18:04
1a6d63d
Compare
Choose a tag to compare
Pre-release

Major Changes

  • #3709 9baf1f0 Thanks @dimaMachina! - style.css import was changed

    Migration

    -import '@graphiql/plugin-code-exporter/dist/style.css';
    +import '@graphiql/plugin-code-exporter/style.css';

Minor Changes

Patch Changes