Skip to content

Conversation

@avivkeller
Copy link
Member

@avivkeller avivkeller commented Apr 12, 2025

Description

This PR adds an explanation of JavaScript / Node.js Promises to the website.

I took some feedback from #7639, and tried to incorporate specific examples and real-world scenarios.

Related Issues

Fixes: #7200

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run format to ensure the code follows the style guide.
  • I have run npm run test to check if all tests are passing.
  • I have run npx turbo build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

Copilot AI review requested due to automatic review settings April 12, 2025 00:15
@avivkeller avivkeller requested a review from a team as a code owner April 12, 2025 00:15
@vercel
Copy link

vercel bot commented Apr 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Apr 12, 2025 8:55pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • apps/site/navigation.json: Language not supported
  • packages/i18n/locales/en.json: Language not supported

@avivkeller
Copy link
Member Author

avivkeller commented Apr 12, 2025

@avivkeller avivkeller added content Issues/pr concerning content learn Issues/pr concerning the learn section labels Apr 12, 2025
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also cover the relationship between promises, queueMicrotask, process.nextTick and setImmediate.

@avivkeller
Copy link
Member Author

@mcollina I've attempted to resolve your reviews in 8180120

Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice but nothing about await on top level

Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's ask @mcollina to review as well.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 14, 2025

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/about/previous-releases 🟢 99 🟢 100 🟢 100 🟢 92 🔗
/en/download 🟠 89 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 100 🟢 100 🟢 96 🟢 92 🔗

@github-actions
Copy link
Contributor

Unit Test Coverage Report

Title Lines Statements Branches Functions
@node-core/ui-components Coverage: 95%
95.83% (161/168) 77.86% (102/131) 88.57% (31/35)
@nodejs/website Coverage: 87%
84.7% (493/582) 76.03% (165/217) 86.88% (106/122)
Title Tests Skipped Failures Errors Time
@node-core/ui-components 24 0 💤 0 ❌ 0 🔥 4.744s ⏱️
@nodejs/website 156 0 💤 0 ❌ 0 🔥 6.603s ⏱️

@avivkeller avivkeller dismissed mcollina’s stale review April 15, 2025 15:25

All concerns were addressed, @mcollina, If are still blocking, please leave a new review

@avivkeller
Copy link
Member Author

bump @mcollina (Previously requested changes) @nodejs/nodejs-website (Required) for reviews.

Copy link
Member

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT !

@avivkeller
Copy link
Member Author

It's been a while since any objections, so I'm merging this PR. Any changes can be requested in a follow up.

@avivkeller avivkeller added this pull request to the merge queue Apr 18, 2025
Merged via the queue into main with commit 1b0c5cb Apr 18, 2025
15 checks passed
@avivkeller avivkeller deleted the feat/learn/promises branch April 18, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content Issues/pr concerning content learn Issues/pr concerning the learn section

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a Learn section about Promises/queueMicrotask and promises

5 participants