Skip to content

domain: runtime-deprecate the module - #65074

Open
mcollina wants to merge 1 commit into
nodejs:mainfrom
mcollina:domain-runtime-deprecation
Open

domain: runtime-deprecate the module#65074
mcollina wants to merge 1 commit into
nodejs:mainfrom
mcollina:domain-runtime-deprecation

Conversation

@mcollina

@mcollina mcollina commented Aug 6, 2026

Copy link
Copy Markdown
Member

Promote DEP0032 (node:domain module) from a documentation-only deprecation to a runtime deprecation.

Fixes #10843

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/userland-migrations

@nodejs-github-bot nodejs-github-bot added domain Issues and PRs related to the domain subsystem. needs-ci PRs that need a full CI run. labels Aug 6, 2026
@mcollina mcollina added the semver-major PRs that contain breaking changes and should be released in the next major version. label Aug 6, 2026
@mcollina
mcollina force-pushed the domain-runtime-deprecation branch from a0a1112 to b375429 Compare August 6, 2026 10:29
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.30%. Comparing base (219dbd6) to head (6ae58dd).
⚠️ Report is 79 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65074      +/-   ##
==========================================
+ Coverage   90.27%   90.30%   +0.03%     
==========================================
  Files         762      759       -3     
  Lines      247524   248264     +740     
  Branches    46693    46850     +157     
==========================================
+ Hits       223451   224200     +749     
+ Misses      15494    15471      -23     
- Partials     8579     8593      +14     
Files with missing lines Coverage Δ
lib/domain.js 95.35% <100.00%> (+0.04%) ⬆️

... and 70 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Promote DEP0032 from a documentation-only deprecation to a runtime
deprecation. Loading the `node:domain` module now emits a
DeprecationWarning with code DEP0032, and the docs are updated to
reflect the Runtime deprecation type.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
@mcollina
mcollina force-pushed the domain-runtime-deprecation branch from b375429 to 6ae58dd Compare August 6, 2026 12:59
Comment thread doc/api/deprecations.md

The [`domain`][] module is deprecated and should not be used.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is there are "equivalent" api that they can use. as my knowledge there aren't any 1:1 api for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain Issues and PRs related to the domain subsystem. needs-ci PRs that need a full CI run. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What will Domain be replaced with?

3 participants