Skip to content

fix(execution): convert all promise-like results to promises#4672

Merged
yaacovCR merged 1 commit intographql:17.x.xfrom
yaacovCR:is-promise-like-17
Apr 19, 2026
Merged

fix(execution): convert all promise-like results to promises#4672
yaacovCR merged 1 commit intographql:17.x.xfrom
yaacovCR:is-promise-like-17

Conversation

@yaacovCR
Copy link
Copy Markdown
Contributor

previously, most pathways converted, but not all

in particular, pathways branching off of isTypeOf(...) and resolveType(...) as well as createSourceEventStream could return non-native promises even though we advertised PromiseOrValue.

There is also a micro-benchmark perf improvement even in sync paths, presumably because V8 can make a few more assumptions.

image

previously, most pathways converted, but not all

this actually brings a small perf improvement!
@yaacovCR yaacovCR added the PR: bug fix 🐞 requires increase of "patch" version number label Apr 19, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 19, 2026

@yaacovCR is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@yaacovCR yaacovCR merged commit 37a6299 into graphql:17.x.x Apr 19, 2026
22 of 23 checks passed
@yaacovCR yaacovCR deleted the is-promise-like-17 branch April 19, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: bug fix 🐞 requires increase of "patch" version number

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant