Skip to content

Conversation

@IvanGoncharov
Copy link
Member

Motivation: API calls to GH are async and require top-level await.
Also add 'node:' prefix to all node modules.

Motivation: API calls to GH are async and require top-level await. Also add 'node:' prefix to all node modules.
@netlify
Copy link

netlify bot commented May 28, 2022

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
🔨 Latest commit fee0ea7
🔍 Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/6292173664b1830008e63881
😎 Deploy Preview https://deploy-preview-3612--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

Hi @IvanGoncharov, 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
@IvanGoncharov IvanGoncharov merged commit dbf142f into graphql:main May 28, 2022
@IvanGoncharov IvanGoncharov deleted the pr_branch2 branch May 28, 2022 13:58
IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this pull request Jun 3, 2022
I did 'require => import' change together with top-level await change in graphql#3612 I assumed if top-level `async` is working it means `import` should also work. In reality, `actions/github-script` was passing code to async function constructor. That means top-level await is not really top-level since it gets injected into a function and we still execute in CJS context and `import` will fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant