@graphql-tools/batch-delegate
10.1.7 · 20 Nov 2026MIT753.6k / weekRepositorynpmAtom feed
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 Arraythrown when the batch resolves to a sparse array.When
valuesFromResultsreturns 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'sisArrayLikecheck (which requireshasOwnProperty(length - 1)), even thoughArray.isArrayreturnstrue. The batch result is now normalised to a dense array ofkeys.length, padding any missing entries withnull.
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.