Node.js: 2024-03-08, Version 21.7.1 (Current), @targos
Component: nodejs · Channel: stable. Automated analysis, not a compatibility certification. How this works.
Analysis updated: 2026-11-28.
Node.js v21.7.1 reverts a recent change to the test runner to ensure that `t.after()` hooks execute properly even when a test has no subtests. Additionally, this patch updates nghttp2 to version 1.60.0 and includes various minor bug fixes and documentation updates.
💻 Software Engineers & Devs
Engineers utilizing the built-in test runner can rely on `t.after()` hooks executing correctly on empty tests again.
📊 Product & Engineering Leads
This patch release ensures expected stability and predictable test execution behavior without adding new user-facing product features.
⚙️ DevOps & Security
No special CI/CD or deployment precautions are necessary for this routine patch release.
⚡ Performance & Enhancements (1)
- Updated nghttp2 dependency to version 1.60.0
🔧 Bug Fixes & Patches (4)
- Reverted change to ensure `t.after()` hooks are run even if a test has no subtests
- Fixed net server closure handling and UDP socket closure behavior before lookup
- Fixed `--disable-single-executable-application` build option
- Prevented stream construction from being deferred by one microtick
❓ Frequently Asked Questions
Does Node.js v21.7.1 contain breaking changes?
No, this release does not contain breaking changes; it is a patch release that reverts an unintended regression in the test runner.
What is the primary highlight of v21.7.1?
The primary highlight is the fix for the test runner's `t.after()` hook, ensuring cleanup hooks run as documented even when a test contains no subtests.
How should teams prepare to upgrade to v21.7.1?
Teams can upgrade immediately as part of routine patch management without needing to modify existing application or test code.