Major Changes
-
af9a78d: BREAKING CHANGE
-
Now each loader handles glob patterns internally and returns an array of
Source
object instead of singleSource
-
GraphQL Tag Pluck now respects code locations and returns graphql-js
Source
objects for each found code block -
Thanks to the one above,
CodeFileLoader
now returns differentSource
objects for each found SDL code block.
-
-
614c08c: BREAKING CHANGE
- Remove
handleSDLAsync
andhandleSDLSync
; usehandleSDL
instead - Remove
useSSEForSubscription
anduseWebSocketLegacyProtocol
; usesubscriptionProtocol
instead - If introspection source is different than endpoint, use
endpoint
for remote execution source - Default HTTP Executor is renamed to
buildHTTPExecutor
with a new signature build*Subscriber
methods are renamed tobuildWSLegacyExecutor
,buildWSExecutor
andbuildSSEExecutor
with new signaturesgetFetch
no longer takesasync
flag
- Remove
-
dae6dc7: refactor: ExecutionParams type replaced by Request type
rootValue property is now a part of the Request type.
When delegating with delegateToSchema, rootValue can be set multiple ways:
- when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies.
- when using the default executor (execute/subscribe from graphql-js):
-- rootValue can be passed to delegateToSchema via a named option
-- rootValue can be included within a subschemaConfig
-- otherwise, rootValue is inferred from the originating schema
When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above.
-
c0ca319: BREAKING CHANGE
- Remove Subscriber and use only Executor
-
- Now
Executor
can receiveAsyncIterable
and subscriptions will also be handled byExecutor
. This is a future-proof change for defer, stream and live queries
- Now
-
7d3e300: BREAKING CHANGE
- No more accept arrays or functions for
headers
NEW FEATURES
- Respect
operationName
andextensions
- Ability to get headers from
extensions.headers
- No more accept arrays or functions for
Patch Changes
- a31f959: enhance(url-loader): avoid doing extra work on loader level
- fd81e80: fix(url-loader): fix node support for EventSource
- Updated dependencies [af9a78d]
- Updated dependencies [7d3e300]
- Updated dependencies [7d3e300]
- Updated dependencies [9c26b84]
- Updated dependencies [7d3e300]
- Updated dependencies [d53e3be]
- Updated dependencies [7d3e300]
- Updated dependencies [dae6dc7]
- Updated dependencies [6877b91]
- Updated dependencies [c42e811]
- Updated dependencies [7d3e300]
- Updated dependencies [8c8d4fc]
- Updated dependencies [c0ca319]
- Updated dependencies [7d3e300]
- Updated dependencies [aa43054]
- Updated dependencies [7d3e300]
- Updated dependencies [74581cf]
- Updated dependencies [c0ca319]
- Updated dependencies [982c8f5]
- Updated dependencies [7d3e300]
- Updated dependencies [7d3e300]
- @graphql-tools/utils@8.0.0
- @graphql-tools/delegate@8.0.0
- @graphql-tools/wrap@8.0.0