Skip to content

polish: do not repeat isPromise check#3793

Merged
IvanGoncharov merged 1 commit intographql:mainfrom
yaacovCR:less
Dec 14, 2022
Merged

polish: do not repeat isPromise check#3793
IvanGoncharov merged 1 commit intographql:mainfrom
yaacovCR:less

Conversation

@yaacovCR
Copy link
Copy Markdown
Contributor

@yaacovCR yaacovCR commented Dec 6, 2022

If a field resolves asynchronously, then it will always complete asynchronously.

Adds additional test cases to complete code coverage.

If a field resolves asynchronously, then it will always complete asynchronously.

Adds additional test cases to complete code coverage.
@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 6, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit 500b458
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/638f1c9121568a00095d41d7
😎 Deploy Preview https://deploy-preview-3793--compassionate-pike-271cb3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 6, 2022

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@yaacovCR
Copy link
Copy Markdown
Contributor Author

yaacovCR commented Dec 6, 2022

This has been extracted from #3754.

@yaacovCR yaacovCR requested a review from a team December 6, 2022 20:23
@yaacovCR yaacovCR added the PR: polish 💅 PR doesn't change public API or any observed behaviour label Dec 6, 2022
@yaacovCR
Copy link
Copy Markdown
Contributor Author

yaacovCR commented Dec 6, 2022

The purpose of this PR is just to make the diff for #3754 smaller and to test to make sure where the speed improvements for #3754 are coming from. See #3754 (comment)

@IvanGoncharov IvanGoncharov merged commit 7fd1ddb into graphql:main Dec 14, 2022
yaacovCR added a commit that referenced this pull request Dec 14, 2022
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 11, 2025
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 11, 2025
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on graphql#3793
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 11, 2025
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 11, 2025
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on graphql#3793
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 16, 2025
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 16, 2025
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on graphql#3793
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 17, 2025
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 17, 2025
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on graphql#3793
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 17, 2025
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 17, 2025
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on graphql#3793
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 22, 2025
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Dec 22, 2025
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on graphql#3793
yaacovCR added a commit that referenced this pull request Dec 22, 2025
yaacovCR added a commit that referenced this pull request Dec 22, 2025
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
yaacovCR added a commit that referenced this pull request Dec 22, 2025
yaacovCR added a commit that referenced this pull request Dec 22, 2025
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Jan 27, 2026
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Jan 27, 2026
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on graphql#3793
yaacovCR added a commit that referenced this pull request Feb 22, 2026
yaacovCR added a commit that referenced this pull request Feb 22, 2026
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
yaacovCR added a commit that referenced this pull request Feb 23, 2026
yaacovCR added a commit that referenced this pull request Feb 23, 2026
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
yaacovCR added a commit that referenced this pull request Feb 24, 2026
yaacovCR added a commit that referenced this pull request Feb 24, 2026
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
yaacovCR added a commit that referenced this pull request Feb 24, 2026
yaacovCR added a commit that referenced this pull request Feb 24, 2026
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
yaacovCR added a commit that referenced this pull request Feb 24, 2026
yaacovCR added a commit that referenced this pull request Feb 24, 2026
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
yaacovCR added a commit that referenced this pull request Feb 24, 2026
yaacovCR added a commit that referenced this pull request Feb 24, 2026
Promise resolution order changes in some instances, resulting in different orders for some errors within the errors array, as well as in different values of hasNext within incremental delivery payloads.

This PR introduces an async `completePromisedValue` helper function rather than using a promise chain (see below links).

https://github.com/tc39/proposal-faster-promise-adoption
tc39/ecma262#2770
tc39/ecma262#2772
tc39/ecma262#1250
https://v8.dev/blog/fast-async

Depends on #3793
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: polish 💅 PR doesn't change public API or any observed behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants