Skip to content

Latest commit

 

History

History
261 lines (136 loc) · 16.7 KB

CHANGELOG.md

File metadata and controls

261 lines (136 loc) · 16.7 KB

@graphiql/toolkit

0.11.1

Patch Changes

0.11.0

Minor Changes

  • #3747 21c4409 Thanks @dimaMachina! - do not include require statements in ESM build, include import in esm and require in cjs builds

    make getWsFetcher, createWebsocketsFetcherFromUrl async

  • #3746 2ad4e75 Thanks @dimaMachina! - compile with tsup instead of tsc

0.10.0

Minor Changes

0.9.2

Patch Changes

0.9.1

Patch Changes

0.9.0

Minor Changes

  • #3022 ffb6486d Thanks @heyacherry! - Add a new utility function createLocalStorage that creates a local storage with support for custom namespaces

0.8.4

Patch Changes

0.8.3

Patch Changes

0.8.2

Patch Changes

  • #2962 db2a0982 Thanks @B2o5T! - clean all ESLint warnings, add --max-warnings=0 and --cache flags

0.8.1

Patch Changes

0.8.0

Minor Changes

0.7.3

Patch Changes

0.7.2

Patch Changes

  • #2753 bfa90f24 Thanks @thomasheyenbrock! - Mark the graphql-ws peer dependency as optional (as it's only needed when the fetcher needs to support subscriptions)

0.7.1

Patch Changes

  • #2737 48872a87 Thanks @thomasheyenbrock! - Handle execution when there is no document AST (because the query editor is empty or the query string contains syntax errors)

0.7.0

Minor Changes

  • #2694 e59ec32e Thanks @acao! - BREAKING: Don't pass shouldPersistHeaders anymore when invoking the fetcher function. This value can be looked up by consuming the EditorContext:

    import { useEditorContext } from '@graphiql/react';
    
    function MyComponent() {
      const { shouldPersistHeaders } = useEditorContext();
      // Do things...
    }

0.6.1

Patch Changes

0.6.0

Minor Changes

  • #2419 84d8985b Thanks @thomasheyenbrock! - Move the fillLeafs utility function from graphiql into @graphiql/toolkit and deprecate the export from graphiql
  • #2419 84d8985b Thanks @thomasheyenbrock! - Move the mergeAst utility function from graphiql into @graphiql/toolkit and deprecate the export from graphiql
  • #2419 84d8985b Thanks @thomasheyenbrock! - Move the getSelectedOperationName utility function from graphiql into @graphiql/toolkit and deprecate the export from graphiql

Patch Changes

0.5.0

Minor Changes

Patch Changes

  • #2407 bc3dc64c Thanks @benjdlambert! - Move graphql-ws dependency to a dynamic import, and add a nice error message when it's not installed

0.4.5

Patch Changes

  • #2401 60a744b1 Thanks @thomasheyenbrock! - deprecate the unused shouldPersistHeaders property from fetcher options to be removed in the next major version

0.4.4

Patch Changes

  • #2373 5b2c1b20 Thanks @benjie! - Fix TypeScript definition of FetcherParams to reflect that operationName is optional

0.4.3

Patch Changes

0.4.2

Patch Changes

0.4.1

Patch Changes

0.4.0

Minor Changes

0.3.2

Patch Changes

  • 86795d5f Thanks @acao! - Remove bad type definition from subscriptions-transport-ws #1992 closes #1989

0.3.1

Patch Changes

0.3.0

Minor Changes

  • 6a459f4c #1968 Thanks @acao! - Remove optionalDependencies entirely, remove subscriptions-transport-ws which introduces vulnerabilities, upgrade @n1ru4l/push-pull-async-iterable-iterator to 3.0.0, upgrade graphql-ws several minor versions - the [email protected] upgrade will come in a later minor release.

0.2.2

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • dd9397e4 #1819 Thanks @acao! - GraphiQL.createClient() accepts custom legacyClient, exports typescript types, fixes #1800.

    createGraphiQLFetcher now only attempts an graphql-ws connection when only subscriptionUrl is provided. In order to use graphql-transport-ws, you'll need to provide the legacyClient option only, and no subscriptionUrl or wsClient option.

Patch Changes

  • 6869ce77 #1816 Thanks @acao! - improve peer resolutions for graphql 14 & 15. 14.5.0 minimum is for built-in typescript types, and another method only available in 14.4.0

0.1.1

Patch Changes

  • d3278556 Thanks @harshithpabbati! - Move @graphiql/create-fetcher to @graphiql/toolkit because it doesn't need to be it's own package as @imolorhe pointed out

0.1.0

Minor Changes

  • 1c119386: @defer, @stream, and graphql-ws support in a createGraphiQLFetcher utility (#1770)

    • support for @defer and @stream in GraphiQL itself on fetcher execution and when handling stream payloads
    • introduce @graphiql/toolkit for types and utilities used to compose GraphiQL and other related libraries
    • introduce @graphiql/create-fetcher to accept simplified parameters to generate a fetcher that covers the most commonly used graphql-over-http transport spec proposals. using meros for multipart http, and graphql-ws for websockets subscriptions.
    • use graphql and graphql-express experimental-defer-stream branch in development until it's merged
    • add cypress e2e tests for @stream in different scenarios
    • add some unit tests for createGraphiQLFetcher