On this page

@graphql-yoga/graphiql

Changelog for @graphql-yoga/graphiql: every release with its changes and the pull requests behind them.

5.0.0

Major Changes

  • #4623 be89d05 Thanks @ardatan! - ### Dependencies

    • Bump @graphql-tools/utils to ^13.1.1, @graphql-tools/schema to ^11.0.0, and @graphql-tools/executor to ^4.1.2.

    Incremental delivery

    Yoga maps the GraphQL HTTP Accept header through INCREMENTAL_DELIVERY_SPECS from @graphql-tools/utils onto executor incrementalSpec. multipart/mixed;incrementalSpec=v0.2 runs the v0.2 payload format and echoes that spec on Content-Type. multipart/mixed;deferSpec=20220824 or bare multipart/mixed stays on v0.1. An unsupported incremental spec yields 406.

    A later incremental spec is a graphql-tools table row plus an executor publisher. Yoga, Hive Gateway, and HTTP executors pick it up by bumping @graphql-tools/utils / @graphql-tools/executor.

    Breaking Changes

    • createGraphQLError is removed. Use new GraphQLError(message, options) from graphql. To attach Yoga’s experimental schema coordinate, use withSchemaCoordinate(error, coordinate) and read with getSchemaCoordinate from @graphql-tools/utils.
    • mapMaybePromise is removed (was exported from Yoga / @envelop/core). Use handleMaybePromise from @whatwg-node/promise-helpers.
    • Yoga no longer re-exports helpers that already live upstream:
      • getSchemaCoordinate -> @graphql-tools/utils
      • mergeSchemas -> @graphql-tools/schema
      • DisposableSymbols -> @whatwg-node/server
      • mapAsyncIterator / isPromise / fakePromise / handleMaybePromise / MaybePromise -> @whatwg-node/promise-helpers
    • @envelop/core utils no longer re-exports mapAsyncIterator or isPromise. Import from @whatwg-node/promise-helpers.
    • Use asGetArgumentValuesVariables / coerceGetVariableValuesResult from @graphql-tools/utils for GraphQL 16/17 VariableValues compatibility.

    Migration

    import { GraphQLError } from 'graphql'
    import { withSchemaCoordinate } from 'graphql-yoga'
    import { mergeSchemas } from '@graphql-tools/schema'
    import { getSchemaCoordinate } from '@graphql-tools/utils'
    import { handleMaybePromise, isPromise, type MaybePromise } from '@whatwg-node/promise-helpers'
    import { DisposableSymbols } from '@whatwg-node/server'
    
    throw withSchemaCoordinate(new GraphQLError('not found'), 'Query.user')

4.5.2

Patch Changes

4.5.1

Patch Changes

4.5.0

Minor Changes

  • #4545 94ebe5b Thanks @egoodwinx! - Update to support graphql-js 17

    Bump package versions, fix expected typing, and update compatability with subscribe.

4.4.4

Patch Changes

4.4.3

Patch Changes

4.4.2

Patch Changes

4.4.1

Patch Changes

4.4.0

Minor Changes

4.3.6

Patch Changes

4.3.5

Patch Changes

  • #3712 1c055f5 Thanks @ardatan! - Show deprecated input fields, arguments and all other input values in GraphiQL

4.3.4

Patch Changes

4.3.3

Patch Changes

4.3.2

Patch Changes

4.3.1

Patch Changes

4.3.0

Minor Changes

  • #3314 d5dfe99 Thanks @EmrysMyrddin! - Allow for full customization of the GraphiQL page.

    Props from the YogaGraphiQL are now forwarded to the underlying GraphiQL components.

    The graphiql option field type of the Yoga server as also been updated to document which options are configurable from the server side. Only serializable options are available.

  • #3255 7335a82 Thanks @nissy-dev! - support shouldPersistHeaders option in GraphiQL plugin

Patch Changes

4.2.1

Patch Changes

4.2.0

Minor Changes

4.1.1

Patch Changes

4.1.0

Minor Changes

4.0.0

Major Changes

3.0.12

Patch Changes

3.0.11

Patch Changes

3.0.10

Patch Changes

3.0.9

Patch Changes

3.0.8

Patch Changes

3.0.7

Patch Changes

3.0.6

Patch Changes

3.0.5

Patch Changes

3.0.4

Patch Changes

3.0.3

Patch Changes

3.0.2

Patch Changes

3.0.1

Patch Changes

3.0.0

Major Changes

3.0.0-next.3

Patch Changes

3.0.0-next.2

Patch Changes

3.0.0-next.1

Patch Changes

3.0.0-next.0

Major Changes

2.4.2

Patch Changes

2.4.1

Patch Changes

2.4.0

Minor Changes

  • bcda7fd: New “additionalHeaders” property to GraphiQL

2.3.0

Minor Changes

  • 4aaf814: feat(graphiql): ability to choose WS over SSE

2.2.0

Minor Changes

  • 32e2e40: Thanks to the recent release of DataLoader, we don’t need to setImmediate for browser environments anymore.

2.1.0

Minor Changes

  • 2739db2: Update to latest GraphiQL 1.8.4
  • f6bcbd1: Show BigInt correctly in the result pane.

Patch Changes

  • f6bcbd1: Load GraphiQL from CDN in order to reduce bundle size.

    If you need to use GraphiQL in an offline environment please follow the instructions in the docs for installing @graphql-yoga/render-graphiql.

    https://www.graphql-yoga.com/docs/features/graphiql#offline-usage

  • e207079: Defaults to the current pathname for the GraphQL endpoint.

2.0.0

Major Changes

  • 799a050: Improve caret color, add hover colors and add some paddings
  • a665e1e: feat(graphiql): better colors and ability to change title
  • 6d60ebf: add tabs to GraphiQL

Patch Changes

  • de1693e: trigger release

0.1.0-beta.3

Minor Changes

  • 6d60ebf: add tabs to GraphiQL

0.1.0-beta.2

Minor Changes

  • 799a050: Improve caret color, add hover colors and add some paddings

0.1.0-beta.1

Minor Changes

  • a665e1e: feat(graphiql): better colors and ability to change title

0.0.1-beta.0

Patch Changes

  • de1693e: trigger release