Skip to content

Update graphql-tools monorepo (major) - #641

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-graphql-tools-monorepo
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-graphql-tools-monorepo

Conversation

@renovate

@renovate renovate Bot commented Sep 25, 2022 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@graphql-tools/code-file-loader (source) ^7.0.0 → ^9.0.0 age confidence
@graphql-tools/graphql-file-loader (source) ^7.0.0 → ^9.0.0 age confidence
@graphql-tools/load (source) ^7.0.0 → ^9.0.0 age confidence
@graphql-tools/schema (source) ^8.0.0 → ^11.0.0 age confidence

Release Notes

ardatan/graphql-tools (@​graphql-tools/code-file-loader)

v9.1.1

Compare Source

Patch Changes

v9.1.0

Compare Source

Minor Changes
  • #​8606 6da2904 Thanks @​ardatan! - loadDocuments / loadTypedefs now accept errorHandling so a single invalid file does not have to hide the rest of the load.

    A glob that mixes a valid operation with broken SDL used to throw the first Syntax Error and drop every other file:

    # valid.query.graphql
    query ValidQuery {
      a
    }
    # broken-a.query.graphql
    query {
      a
    await loadDocuments('**/*.query.graphql', {
      loaders: [new GraphQLFileLoader()],
    });
    // throws Syntax Error

    errorHandling chooses what happens next. The default is unchanged (throw the first error).

    aggregate waits until every source is attempted, then throws AggregateError with each parse/load failure:

    await loadDocuments('**/*.query.graphql', {
      loaders: [new GraphQLFileLoader()],
      errorHandling: 'aggregate',
    });

    return does not throw. Failed sources stay in the result as { location, error } without a document, next to the sources that parsed:

    const sources = await loadDocuments('**/*.query.graphql', {
      loaders: [new GraphQLFileLoader(), new CodeFileLoader()],
      errorHandling: 'return',
    });
    
    sources[0].document; // ValidQuery
    sources[1].document; // undefined
    sources[1].error; // GraphQLError: Syntax Error

    Source now has an optional error field. @graphql-tools/graphql-file-loader and @graphql-tools/code-file-loader honor the same option. CodeFileLoader's existing noSilentErrors default is unchanged unless errorHandling is set.

    Custom loader failures and incomplete inline documents (query Foo {) follow the same option. errorHandling: 'throw' raises the first failure, not AggregateError.

Patch Changes

v9.0.7

Compare Source

Patch Changes

v9.0.6

Compare Source

Patch Changes

v9.0.5

Compare Source

Patch Changes

v9.0.4

Compare Source

Patch Changes

v9.0.3

Compare Source

Patch Changes

v9.0.2

Compare Source

Patch Changes

v9.0.1

Compare Source

Patch Changes

v9.0.0

Compare Source

Major Changes
  • #​8515 1d70c62 Thanks @​ardatan! - Drop GraphQL v14/v15 support and require Node.js >= 22.18.

    • graphql peer range is now ^16.0.0 || ^17.0.0.
    • engines.node is now >=22.18.0 (Node fs.glob + Babel 8).
    • Dev tooling and @graphql-tools/graphql-tag-pluck move to Babel 8 (@babel/core / parser / traverse / types).
    • The standalone cross-inspect package is discontinued. Use inspect from @graphql-tools/utils instead (Node util.inspect via process.getBuiltinModule, with a small JSON.stringify / String fallback).
Removed @graphql-tools/utils exports
Removed Use instead
getArgumentValues import { getArgumentValues } from 'graphql'
coerceInputs / graphqlJSCompat graphql@​16+ APIs (getArgumentValues, etc.)
createDeferred / createDeferredPromise const { promise, resolve, reject } = Promise.withResolvers()
createGraphQLError new GraphQLError(message, options) from graphql
mapMaybePromise handleMaybePromise from @whatwg-node/promise-helpers
isPromise / fakePromise / mapAsyncIterator / MaybePromise @whatwg-node/promise-helpers
registerAbortSignalListener / getAbortPromise AbortSignal APIs (throwIfAborted, addEventListener('abort', …, { once: true }), AbortSignal.any, …)
withCancel / getAsyncIterableWithCancel / getAsyncIteratorWithCancel Handle cancellation on the async iterator’s return() (or your transport abort path)
debugTimerStart / debugTimerEnd Your own timing / console.time if needed
PromiseWithResolvers (type) Built-in PromiseWithResolvers<T> / return type of Promise.withResolvers()

inspect and the WeakMap memoize1…memoize2of5 helpers remain on @graphql-tools/utils (inspect is no longer re-exported from cross-inspect).

File matching (globby → fs.glob)

Loaders and @graphql-tools/load-files now use Node’s fs.glob through:

import { matchFiles, matchFilesSync } from '@graphql-tools/load-files';

Directory symlinks are followed for recursive (**) patterns:

  • On Node.js ≥26.1 (and ≥24.16 where backported), fs.glob followSymlinks is used.
  • On older engines, symlink directories are discovered only under each pattern’s literal prefix (not the whole cwd) and patterns are re-rooted.
  • Non-recursive / literal patterns skip the symlink walk entirely.

@graphql-tools/executor hot-path caches (collectSubfields, argument coercion, @stream detection) use memoize2 / memoize3 from utils. collectSubFields in utils stays unmemoized so the executor can own a single memoize3 layer.

Errors and other cleanup
  • Prefer new GraphQLError(message, options) from graphql. Experimental schema coordinate support remains on locatedError / relocatedError / getSchemaCoordinate.
  • Removed GraphQL versions older than 16 compatibility branches (error construction, validation rule name suffixes, URL.canParse fallback).
  • Promise helpers should be imported from @whatwg-node/promise-helpers (handleMaybePromise, isPromise, fakePromise, mapAsyncIterator, MaybePromise) rather than re-exported from utils.
Patch Changes

v8.1.43

Compare Source

Patch Changes

v8.1.42

Compare Source

Patch Changes

v8.1.41

Compare Source

Patch Changes

v8.1.40

Compare Source

Patch Changes

v8.1.39

Compare Source

Patch Changes
  • #​8421 89e78a5 Thanks @​ardatan! - Convert absolute filesystem paths to file:// URLs before dynamic import() in the ESM build so schema/document loading works on native Windows, while leaving raw paths for the CJS build where import() is downleveled to require(). Closes #​8420.

v8.1.38

Compare Source

Patch Changes

v8.1.37

Compare Source

Patch Changes

v8.1.36

Compare Source

Patch Changes

v8.1.35

Compare Source

Patch Changes

v8.1.34

Compare Source

Patch Changes

v8.1.33

Compare Source

Patch Changes

v8.1.32

Compare Source

Patch Changes

v8.1.31

Compare Source

Patch Changes

v8.1.30

Compare Source

Patch Changes

v8.1.29

Compare Source

Patch Changes

v8.1.28

Compare Source

Patch Changes

v8.1.27

Compare Source

Patch Changes

v8.1.26

Compare Source

Patch Changes

v8.1.25

Compare Source

Patch Changes

v8.1.24

Compare Source

Patch Changes

v8.1.23

Compare Source

Patch Changes

v8.1.22

Compare Source

Patch Changes

v8.1.21

Compare Source

Patch Changes

v8.1.20

Compare Source

Patch Changes

v8.1.19

Compare Source

Patch Changes

v8.1.18

Compare Source

Patch Changes

v8.1.17

Compare Source

Patch Changes

v8.1.16

Compare Source

Patch Changes

v8.1.15

Compare Source

Patch Changes

v8.1.14

Compare Source

Patch Changes

v8.1.13

Compare Source

Patch Changes

v8.1.12

Compare Source

Patch Changes

v8.1.11

Compare Source

Patch Changes

v8.1.10

Compare Source

Patch Changes

v8.1.9

Compare Source

Patch Changes

v8.1.8

Compare Source

Patch Changes

v8.1.7

Compare Source

Patch Changes

v8.1.6

Compare Source

Patch Changes

v8.1.5

Compare Source

Patch Changes

v8.1.4

Compare Source

Patch Changes

v8.1.3

Compare Source

Patch Changes
  • #​8421 89e78a5 Thanks @​ardatan! - Convert absolute filesystem paths to file:// URLs before dynamic import() in the ESM build so schema/document loading works on native Windows, while leaving raw paths for the CJS build where import() is downleveled to require(). Closes #​8420.

[v8.1.2](https://redir

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Only on Sunday and Saturday (* * * * 0,6)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/major-graphql-tools-monorepo branch from 4a2fd72 to bb7e544 Compare November 20, 2022 14:33
@renovate
renovate Bot force-pushed the renovate/major-graphql-tools-monorepo branch from bb7e544 to 3503a07 Compare June 1, 2023 03:46
@renovate renovate Bot changed the title fix(deps): update dependency @graphql-tools/schema to v9 fix(deps): update graphql-tools monorepo (major) Jun 1, 2023
@renovate
renovate Bot force-pushed the renovate/major-graphql-tools-monorepo branch from 3503a07 to b3e5684 Compare November 8, 2026 11:30
@renovate renovate Bot changed the title fix(deps): update graphql-tools monorepo (major) Update graphql-tools monorepo (major) Nov 8, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants