Skip to content

net: runtime-deprecate Server.prototype._listen2 - #64794

Open
araujogui wants to merge 1 commit into
nodejs:mainfrom
araujogui:net-deprecate-listen2
Open

net: runtime-deprecate Server.prototype._listen2#64794
araujogui wants to merge 1 commit into
nodejs:mainfrom
araujogui:net-deprecate-listen2

Conversation

@araujogui

Copy link
Copy Markdown
Member

Fixes #64666

Copilot AI review requested due to automatic review settings July 28, 2026 00:53
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/net
  • @nodejs/userland-migrations

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. net Issues and PRs related to the net subsystem. labels Jul 28, 2026
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>
@araujogui
araujogui force-pushed the net-deprecate-listen2 branch from ef74dda to 162e6e6 Compare July 28, 2026 00:54
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.14%. Comparing base (6a3d80f) to head (162e6e6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64794      +/-   ##
==========================================
- Coverage   90.16%   90.14%   -0.02%     
==========================================
  Files         744      744              
  Lines      242518   242537      +19     
  Branches    45705    45690      -15     
==========================================
- Hits       218670   218640      -30     
- Misses      15357    15381      +24     
- Partials     8491     8516      +25     
Files with missing lines Coverage Δ
lib/net.js 94.65% <100.00%> (+0.03%) ⬆️

... and 26 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.

@avivkeller avivkeller added the deprecations Issues and PRs related to deprecations. label Jul 28, 2026
@pimterry pimterry added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 28, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 28, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment thread doc/api/deprecations.md
function that sets up the listening handle. It is kept only so that code
replacing it keeps being called by [`server.listen()`][], and it will be
removed in a future version of Node.js. Use [`server.listen()`][] instead of
calling or overriding `_listen2`.

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.

can we have before/after example ?

@AugustinMauroy AugustinMauroy left a comment

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.

LGMT !

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

Labels

deprecations Issues and PRs related to deprecations. needs-ci PRs that need a full CI run. net Issues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

net: deprecate and remove Server.prototype._listen2 legacy alias

8 participants