Packages

@graphql-tools/batch-delegate

10.1.7 · 20 Nov 2026MIT753.6k / weekRepositorynpmAtom feed

Your version

10.0.24

5 Jun 2026Where it was published

10.1.7 is the newest release of 10.x.

In short

1 fixed

Release note

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

@graphql-tools/batch-delegate@10.0.24

Patch Changes

  • Fix DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array thrown when the batch resolves to a sparse array.

    When valuesFromResults returns an array with a hole at the trailing slot — for example when it maps results back to keys by index and the last key in a batch has no matching row — the resulting array fails DataLoader's isArrayLike check (which requires hasOwnProperty(length - 1)), even though Array.isArray returns true. The batch result is now normalised to a dense array of keys.length, padding any missing entries with null.

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.