Skip to content

Version Packages #3909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2025
Merged

Version Packages #3909

merged 1 commit into from
May 3, 2025

Conversation

acao
Copy link
Member

@acao acao commented May 3, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

Major Changes

  • #3904 d1395f9 Thanks @dimaMachina! - drop commonjs build files

  • #3904 d1395f9 Thanks @dimaMachina! - show tabs even there is only 1 tab

  • #3904 d1395f9 Thanks @dimaMachina! - remove default export

    Migration

    Before

    import GraphiQL from 'graphiql';

    After

    import { GraphiQL } from 'graphiql';
  • #3904 d1395f9 Thanks @dimaMachina! - - support react 19, drop support react 16 and react 17

    • replace deprecated ReactDOM.unmountComponentAtNode() and ReactDOM.render() with root.unmount() and createRoot(container).render()
    • update @radix-ui and @headlessui/react dependencies
  • #3904 d1395f9 Thanks @dimaMachina! - remove disableTabs option

  • #3904 d1395f9 Thanks @dimaMachina! - remove data-testid="graphiql-container"

  • #3904 d1395f9 Thanks @dimaMachina! - 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
  • #3904 d1395f9 Thanks @dimaMachina! - - new looks of tabs

    • fix disableTabs when Add tab button is still shown
  • #3904 d1395f9 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>

Minor Changes

Patch Changes

@graphiql/[email protected]

Major Changes

  • #3904 d1395f9 Thanks @dimaMachina! - style.css import was changed

    Migration

    -import '@graphiql/plugin-code-exporter/dist/style.css';
    +import '@graphiql/plugin-code-exporter/style.css';
  • #3904 d1395f9 Thanks @dimaMachina! - drop commonjs build files

  • #3904 d1395f9 Thanks @dimaMachina! - - support react 19, drop support react 16 and react 17

    • replace deprecated ReactDOM.unmountComponentAtNode() and ReactDOM.render() with root.unmount() and createRoot(container).render()
    • update @radix-ui and @headlessui/react dependencies

Minor Changes

Patch Changes

@graphiql/[email protected]

Major Changes

  • #3904 d1395f9 Thanks @dimaMachina! - drop commonjs build files

  • #3904 d1395f9 Thanks @dimaMachina! - - support react 19, drop support react 16 and react 17

    • replace deprecated ReactDOM.unmountComponentAtNode() and ReactDOM.render() with root.unmount() and createRoot(container).render()
    • update @radix-ui and @headlessui/react dependencies
  • #3904 d1395f9 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]

Minor Changes

Patch Changes

  • #3904 d1395f9 Thanks @dimaMachina! - Respect Markdown format: ignore single newline

  • #3904 d1395f9 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

  • #3904 d1395f9 Thanks @dimaMachina! - replace overflow-y: scroll with overflow-y: auto

  • #3904 d1395f9 Thanks @dimaMachina! - rollback position: absolute style for .graphiql-logo because tabs will behind logo

  • #3904 d1395f9 Thanks @dimaMachina! - - prefer location over window.location

    • prefer navigator over window.navigator

@dimaMachina dimaMachina merged commit 50b6836 into main May 3, 2025
2 checks passed
@dimaMachina dimaMachina deleted the changeset-release/main branch May 3, 2025 09:31
Copy link
Contributor

github-actions bot commented May 3, 2025

The latest changes of this PR are not available as canary, since there are no linked changesets for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants