@graphql-tools/url-loader
10.0.9 · 10 Nov 2026MIT15.7M / weekRepositoryHomepagenpmAtom feed
7.17.18 is the newest release of 7.x.
In short
2 breaking2 fixed1 internal
- Breaking
BREAKING CHANGE
- Breaking
ExecutionParams type replaced by Request type
Release note
Major Changes
- Breaking
BREAKING CHANGE
Now each loader handles glob patterns internally and returns an array of
Sourceobject instead of singleSourceGraphQL Tag Pluck now respects code locations and returns graphql-js
Sourceobjects for each found code blockThanks to the one above,
CodeFileLoadernow returns differentSourceobjects for each found SDL code block.
- Breaking
BREAKING CHANGE
Remove
handleSDLAsyncandhandleSDLSync; usehandleSDLinsteadRemove
useSSEForSubscriptionanduseWebSocketLegacyProtocol; usesubscriptionProtocolinsteadIf introspection source is different than endpoint, use
endpointfor remote execution sourceDefault HTTP Executor is renamed to
buildHTTPExecutorwith a new signaturebuild*Subscribermethods are renamed tobuildWSLegacyExecutor,buildWSExecutorandbuildSSEExecutorwith new signaturesgetFetchno longer takesasyncflag
- Breaking
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.
- Breaking
BREAKING CHANGE
Remove Subscriber and use only Executor
Now
Executorcan receiveAsyncIterableand subscriptions will also be handled byExecutor. This is a future-proof change for defer, stream and live queries
- Breaking
BREAKING CHANGE
No more accept arrays or functions for
headers
NEW FEATURES
Respect
operationNameandextensionsAbility to get headers from
extensions.headers
Patch Changes
enhance(url-loader): avoid doing extra work on loader level
url-loader: Fix node support for EventSource
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.