Packages

@graphql-tools/url-loader

10.0.9 · 10 Nov 2026MIT15.7M / weekRepositoryHomepagenpmAtom feed

Your version

7.12.4

20 Jul 2022Where it was published

7.17.18 is the newest release of 7.x.

In short

2 breaking1 deprecated24 new35 fixed5 internal

  • Breaking

    BREAKING CHANGE

  • Breaking

    ExecutionParams type replaced by Request type

  • Deprecated

    Replace 'cross-undici-fetch' with '@whatwg-node/fetch' since the previous one is deprecated

Release note

The section about @graphql-tools/url-loader of a note shared by several packages.

@graphql-tools/url-loader

Patch Changes

  • Deprecated

    Replace 'cross-undici-fetch' with '@whatwg-node/fetch' since the previous one is deprecated

Patch Changes

  • Upgrade cross-undici-fetch to the latest that uses undici@5.5.1 as pinned dependency until the issues with 5.6.0 fixed

Minor Changes

  • Some environments like CF Workers don't support credentials in RequestInit object. But by default UrlLoader sends 'same-origin' and it wasn't possible to disable it. Now you can pass 'disable' to remove credentials property from RequestInit object completely.

    new UrlLoader().load(url, { credentials: 'disable' });

Minor Changes

  • Support TypeScript module resolution.

Minor Changes

  • New 'batch' flag! Now you can configure your remote schema to batch parallel queries to the upstream.

Patch Changes

  • Handle legacy protocol properly

Patch Changes

  • Use caret range for the tslib dependency

Patch Changes

  • url-loader: Handle live queries as subscriptions correctly

Patch Changes

  • Bump cross-undici-fetch

Patch Changes

  • Bump cross-undici-fetch

Patch Changes

  • Bump cross-undici-fetch for Node 14 compat

Patch Changes

  • Bump cross-undici-fetch for Node 18 compatibility

Patch Changes

  • Remove GraphQL Yoga dependency from url-loader

Patch Changes

  • Remove graphql-sse dependency completely

Patch Changes

  • Remove subscriptions-transport-ws and graphql-sse dependency

Patch Changes

  • Refine generic typings using extends X when appropriate

    Typescript 4.7 has stricter requirements around generics
    which is explained well in the related PR:
    #48366

    These changes resolve the errors that these packages will
    face when attempting to upgrade to TS 4.7 (still in beta
    at the time of writing this). Landing these changes now
    will allow other TS libraries which depend on these
    packages to experiment with TS 4.7 in the meantime.

Patch Changes

  • Bump data-loader and cross-undici-fetch

Patch Changes

  • Fix - align versions

Patch Changes

  • Fix - align versions

Patch Changes

  • url-loader: Get dynamic endpoint value correctly

Patch Changes

  • enhance(url-loader): improve executor generation

Minor Changes

  • enhance(url-loader): use JSON.parse(response.text()) to respect JSON.parse & stringify polyfills

Minor Changes

  • url-loader: retry/timeout

  • url-loader: Provide custom endpoint url in the extensions

Patch Changes

  • visitResult: Ignore if field not present in visited object

Patch Changes

  • Bump cross-undici-fetch

Minor Changes

  • Added support for .graphqls extension to url-loader

Minor Changes

  • Handle W3C File/Blob Inputs with multipart request

    • Better error message in case of bad response type

Patch Changes

  • Adjust accept headers sent to the server.

    • text/event-stream is only sent if Subscriptions are executed over SSE (GET).

    • multipart/mixed is only send for POST requests

Patch Changes

  • url-loader: Handle SSE ping event correctly

Patch Changes

  • Bump Node <v16.5 compatible version

Minor Changes

  • enhance: Use undici instead of node-fetch if available

Patch Changes

  • enhance: Remove isPromise and cleanup file-upload handling

  • enhance: Use ^ for tslib dependency

Patch Changes

  • Correctly handle response cancelation for SSE (subscriptions and live queries) and HTTP Multipart responses (defer and stream).

    AbortController.signal wasn't passed to Request while calling fetch, so it wasn't possible to stop the HTTP request by the user.

Minor Changes

  • enhance: Make operationType optional

Minor Changes

  • Replace heavy lodash dependency with dset/merge

Patch Changes

  • url-loader: Handle SSE correctly with ReadableStream

Patch Changes

  • url-loader: Incremental delivery for defer/stream and SSE

Minor Changes

  • Integrate and document graphql-sse

Minor Changes

  • GraphQL v16 support

Patch Changes

Patch Changes

  • Use version ranges instead of a fixed version for the graphql-tools package versions

Patch Changes

  • delegate: Fix ESM import

Major Changes

  • Breaking

    BREAKING CHANGE

    • Now each loader handles glob patterns internally and returns an array of Source object instead of single Source

    • 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 different Source objects for each found SDL code block.

  • Breaking

    BREAKING CHANGE

    • Remove handleSDLAsync and handleSDLSync; use handleSDL instead

    • Remove useSSEForSubscription and useWebSocketLegacyProtocol; use subscriptionProtocol 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 to buildWSLegacyExecutor, buildWSExecutor and buildSSEExecutor with new signatures

    • getFetch no longer takes async flag

  • 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 Executor can receive AsyncIterable and subscriptions will also be handled by Executor. 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 operationName and extensions

    • Ability 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

Patch Changes

  • enhance(url-loader): start legacy subscriptions connection lazily

Minor Changes

  • url-loader: Multipart response support

  • url-loader: Ability to provide different subscriptionsEndpoint
    feat(url-loader): ability to provide headers factory that takes executionParams

  • url-loader: Use fetch-event-source instead of sse-z

Minor Changes

  • Added support for legacy ws protocol

    • Ensured that headers are passed into ws connection params

  • url-loader: Ability to provide custom subscriptionsEndpoint

Patch Changes

  • url-loader: Support newer cross-fetch

Patch Changes

  • enhance(url-loader/links): use new form-data that already supports streams

Patch Changes

  • url-loader: Do not fail multipart request when null variable given

Minor Changes

  • url-loader: Handle HTTP result as an SDL with handleAsSDL option

Minor Changes

  • url-loader: Support SSE for subscriptions

Patch Changes

  • url-loader: Fix issues with nonobject variables in multipart requests

Minor Changes

  • url-loader: Support graphql-ws and multipart requests and file upload

Minor Changes

  • url-loader: Support loadSync

Patch Changes

  • url-loader: Fix typing mismatch

Minor Changes

  • url-loader: Handle graphql sdl

Patch Changes

  • Bump all packages to allow adjustments

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.