-
#3747
21c4409
Thanks @dimaMachina! - do not includerequire
statements in ESM build, includeimport
in esm andrequire
in cjs buildsmake
getWsFetcher
,createWebsocketsFetcherFromUrl
async -
#3746
2ad4e75
Thanks @dimaMachina! - compile withtsup
instead oftsc
-
#3682
6c9f0df
Thanks @yaacovCR! - Support v17 ofgraphql-js
from17.0.0-alpha.2
forward.Includes support for the latest incremental delivery response format. For further details, see graphql/defer-stream-wg#69.
- #3646
56c6f45
Thanks @dimaMachina! - preferlocalStorage
overwindow.localStorage
- #3022
ffb6486d
Thanks @heyacherry! - Add a new utility functioncreateLocalStorage
that creates a local storage with support for custom namespaces
-
#3113
2e477eb2
Thanks @B2o5T! - replace.forEach
withfor..of
-
#3109
51007002
Thanks @B2o5T! - enableno-floating-promises
eslint rule
-
#3046
b9c13328
Thanks @B2o5T! - Prefer .at() method for index access -
#3042
881a2024
Thanks @B2o5T! - Prefer String#slice() over String#substr() and String#substring()
-
#2931
f7addb20
Thanks @B2o5T! - enableno-negated-condition
andno-else-return
rules -
#2923
695100bd
Thanks @TheMightyPenguin! - Remove side-effect in StorageAPI that overrides localStorage.clear -
#2937
c70d9165
Thanks @B2o5T! - enableunicorn/prefer-includes
-
#2965
0669767e
Thanks @B2o5T! - enableunicorn/prefer-optional-catch-binding
rule -
#2936
18f8e80a
Thanks @B2o5T! - enablelonely-if
/unicorn/lonely-if
rules -
#2938
6a9d913f
Thanks @B2o5T! - enableunicorn/throw-new-error
rule
- #2719
e244b782
Thanks @andreialecu! - Allow passing Headers for subscriptions into connection_init payload
- #2755
674bf3f8
Thanks @thomasheyenbrock! - Only remove namespaced items when clearinglocalStorage
- #2753
bfa90f24
Thanks @thomasheyenbrock! - Mark thegraphql-ws
peer dependency as optional (as it's only needed when the fetcher needs to support subscriptions)
- #2751
8ab5fcd0
Thanks @thomasheyenbrock! - Correctly handlenull
in type-guard functions forPromise
andObservable
- #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)
-
#2694
e59ec32e
Thanks @acao! - BREAKING: Don't passshouldPersistHeaders
anymore when invoking the fetcher function. This value can be looked up by consuming theEditorContext
:import { useEditorContext } from '@graphiql/react'; function MyComponent() { const { shouldPersistHeaders } = useEditorContext(); // Do things... }
- #2535
ea732ea8
Thanks @thomasheyenbrock! - Fix error formatting for websocket requests and make error formatting more generic in general
- #2419
84d8985b
Thanks @thomasheyenbrock! - Move thefillLeafs
utility function fromgraphiql
into@graphiql/toolkit
and deprecate the export fromgraphiql
- #2419
84d8985b
Thanks @thomasheyenbrock! - Move themergeAst
utility function fromgraphiql
into@graphiql/toolkit
and deprecate the export fromgraphiql
- #2419
84d8985b
Thanks @thomasheyenbrock! - Move thegetSelectedOperationName
utility function fromgraphiql
into@graphiql/toolkit
and deprecate the export fromgraphiql
- #2413
8be164b1
Thanks @thomasheyenbrock! - Allow creating noop StorageAPI instances by passingnull
to the constructor
- #2412
c2e2f53d
Thanks @thomasheyenbrock! - Move QueryStore fromgraphiql
package to@graphiql/toolkit
- #2412
c2e2f53d
Thanks @thomasheyenbrock! - Move HistoryStore fromgraphiql
package to@graphiql/toolkit
- #2412
c2e2f53d
Thanks @thomasheyenbrock! - Move StorageAPI fromgraphiql
package to@graphiql/toolkit
- #2407
bc3dc64c
Thanks @benjdlambert! - Movegraphql-ws
dependency to a dynamic import, and add a nice error message when it's not installed
- #2401
60a744b1
Thanks @thomasheyenbrock! - move async helper functions and formatting functions over into the @graphiql/toolkit package
- #2401
60a744b1
Thanks @thomasheyenbrock! - deprecate the unusedshouldPersistHeaders
property from fetcher options to be removed in the next major version
- #2373
5b2c1b20
Thanks @benjie! - Fix TypeScript definition of FetcherParams to reflect that operationName is optional
dec207e7
#2017 Thanks @acao! - graphql-ws is now a peerDependency. It supports ~4.5.0 to the latest [email protected] and beyond. we suggest using the latest version!
716cf786
#2010 Thanks @acao! - upgrade to[email protected]
. thanks @saihaj!
86795d5f
Thanks @acao! - Remove bad type definition fromsubscriptions-transport-ws
#1992 closes #1989
6a459f4c
#1968 Thanks @acao! - RemoveoptionalDependencies
entirely, removesubscriptions-transport-ws
which introduces vulnerabilities, upgrade@n1ru4l/push-pull-async-iterable-iterator
to 3.0.0, upgradegraphql-ws
several minor versions - the[email protected]
upgrade will come in a later minor release.
3f002710
#1840 Thanks @enisdenjo! - Use providedwsConnectionParams
94f16957
#1841 Thanks @enisdenjo! - Subscriptions async iterator completes and better error handling
-
dd9397e4
#1819 Thanks @acao! -GraphiQL.createClient()
accepts customlegacyClient
, exports typescript types, fixes #1800.createGraphiQLFetcher
now only attempts angraphql-ws
connection when onlysubscriptionUrl
is provided. In order to usegraphql-transport-ws
, you'll need to provide thelegacyClient
option only, and nosubscriptionUrl
orwsClient
option.
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 in14.4.0
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
-
1c119386:
@defer
,@stream
, andgraphql-ws
support in acreateGraphiQLFetcher
utility (#1770)- support for
@defer
and@stream
inGraphiQL
itself on fetcher execution and when handling stream payloads - introduce
@graphiql/toolkit
for types and utilities used to composeGraphiQL
and other related libraries - introduce
@graphiql/create-fetcher
to accept simplified parameters to generate afetcher
that covers the most commonly usedgraphql-over-http
transport spec proposals. usingmeros
for multipart http, andgraphql-ws
for websockets subscriptions. - use
graphql
andgraphql-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
- support for