FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

More cleanup as a result of dropping Node 12 by henrymercer · Pull Request #1505 · github/codeql-action · GitHub

More cleanup as a result of dropping Node 12 - #1505

Merged
henrymercer merged 2 commits into
mainfrom
henrymercer/more-node-12-cleanup
Jan 23, 2023
Merged

More cleanup as a result of dropping Node 12#1505
henrymercer merged 2 commits into
mainfrom
henrymercer/more-node-12-cleanup

Conversation

henrymercer commented Jan 23, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Clean up a few things now that we no longer need to support Node 12.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

henrymercer requested a review from a team as a code owner January 23, 2023 18:22
henrymercer force-pushed the henrymercer/more-node-12-cleanup branch from 772a173 to 6291e94 Compare January 23, 2023 18:43
npm v9.3.0 is out, but seems to have a bug with `npm ci` on macOS
where it will complain that `node_modules/.bin` is a directory.

We specify an exact version for reproducibility of builds.
We don't need the import for Node 12 compat, but we do need it to make
the file compile.
henrymercer force-pushed the henrymercer/more-node-12-cleanup branch from 6291e94 to d5bb585 Compare January 23, 2023 19:16

Copy link
Copy Markdown
Contributor

Promise.race(x) will wait for either (a) one of the promises in x to resolve, or (b) all the promises in x to reject.

Do you have this reversed? That sounds like the behaviour of Promise.any.

Promise.any:

This returned promise fulfills when any of the input's promises fulfills, with this first fulfillment value. It rejects when all of the input's promises reject (including when an empty iterable is passed)

Promise.race:

This returned promise settles with the eventual state of the first promise that settles.

Copy link
Copy Markdown
Contributor Author

You're completely right 🤦 Thanks for the catch, I'll drop that commit.

henrymercer force-pushed the henrymercer/more-node-12-cleanup branch from d5bb585 to ebdd5a0 Compare January 23, 2023 19:28

Copy link
Copy Markdown
Contributor

It's subtle. I had to read the docs a few times just to make sure.

henrymercer enabled auto-merge January 23, 2023 19:40
henrymercer merged commit fa47d5a into main Jan 23, 2023
henrymercer deleted the henrymercer/more-node-12-cleanup branch January 23, 2023 20:11
github-actions Bot mentioned this pull request Jan 26, 2023
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL