From c9fa1236e81c421b3c684deeddaf1002bbaf7fa2 Mon Sep 17 00:00:00 2001 From: Venkataramana Devathoti <114353712+Venkat-Entropik@users.noreply.github.com> Date: Thu, 12 Mar 2026 16:21:06 +0530 Subject: [PATCH 1/2] docs: improve readability by fixing grammar and formatting code blocks (#8710) * docs: improve readability by fixing grammar and formatting code blocks * docs: update sentence punctuation as suggested in review --------- Co-authored-by: Venkat --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index da65bb0d0e836..5660c920a7e28 100644 --- a/README.md +++ b/README.md @@ -36,20 +36,20 @@ ## What is this repo? -[Nodejs.org](https://nodejs.org/) by the [OpenJS Foundation](https://openjsf.org/) is the official website for the Node.js® JavaScript runtime. This repo is the source code for the website. It is built using [Next.js](https://nextjs.org), a React Framework. +[Nodejs.org](https://nodejs.org/), maintained by the [OpenJS Foundation](https://openjsf.org/), is the official website for the Node.js® JavaScript runtime. This repo is the source code for the website. It is built using [Next.js](https://nextjs.org), a React Framework. ```bash pnpm install --frozen-lockfile pnpm dev -# listening at localhost:3000 +# Listening at http://localhost:3000 ``` ## Contributing This project adopts the Node.js [Code of Conduct][]. -Any person who wants to contribute to the Website is welcome! Please read [Contribution Guidelines][] and see the [Figma Design][] to understand better the structure of this repository. +Anyone who wants to contribute to the website is welcome! Please read [Contribution Guidelines][] and see the [Figma Design][] to understand better the structure of this repository. > \[!IMPORTANT]\ > Please read our [Translation Guidelines][] before contributing to Translation and Localization of the Website From 62a66aa8359d819d4fa7dbfd2afd2f731c31360e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Dan?= Date: Thu, 12 Mar 2026 14:53:00 +0400 Subject: [PATCH 2/2] docs: update explanation of setImmediate vs setTimeout (#8623) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: update explanation of setImmediate vs setTimeout Clarifies the execution order of setTimeout and setImmediate when called from the main module and inside an I/O callback. Signed-off-by: Sébastien Dan * fix: use bold and lowercase format for event loop phases Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sébastien Dan --------- Signed-off-by: Sébastien Dan Signed-off-by: Sébastien Dan Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../en/learn/asynchronous-work/understanding-setimmediate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/site/pages/en/learn/asynchronous-work/understanding-setimmediate.md b/apps/site/pages/en/learn/asynchronous-work/understanding-setimmediate.md index 276f1d1b9cf6c..b02e0035ae44f 100644 --- a/apps/site/pages/en/learn/asynchronous-work/understanding-setimmediate.md +++ b/apps/site/pages/en/learn/asynchronous-work/understanding-setimmediate.md @@ -20,7 +20,7 @@ How is `setImmediate()` different from `setTimeout(() => {}, 0)` (passing a 0ms A function passed to `process.nextTick()` is going to be executed on the current iteration of the event loop, after the current operation ends. This means it will always execute before `setTimeout` and `setImmediate`. -A `setTimeout()` callback with a 0ms delay is very similar to `setImmediate()`. The execution order will depend on various factors, but they will be both run in the next iteration of the event loop. +A `setTimeout()` callback with a 0ms delay is very similar to `setImmediate()`. The execution order will depend on various factors, but they will be both run in the next iteration (the first one) of the event loop when called from the main module. When scheduled inside an I/O callback, setImmediate is guaranteed to run in the current iteration's **check** phase, while setTimeout must wait for the **timers** phase of the subsequent iteration. A `process.nextTick` callback is added to `process.nextTick queue`. A `Promise.then()` callback is added to `promises microtask queue`. A `setTimeout`, `setImmediate` callback is added to `macrotask queue`.