-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
http, benchmark: remove CRLF variables #59466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Review requested:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #59466 +/- ##
==========================================
- Coverage 89.86% 89.77% -0.09%
==========================================
Files 656 654 -2
Lines 193141 192706 -435
Branches 37893 37746 -147
==========================================
- Hits 173561 172997 -564
- Misses 12103 12317 +214
+ Partials 7477 7392 -85 🚀 New features to boost your workflow:
|
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not remove the export until End-of-Life deprecation.
Thanks for the review! Based on your feedback, I've added a commit to restore the |
eff20f7
to
080e9d3
Compare
This patch is needed for CI failures: 786431f. Please rebase onto the latest main to include it. |
080e9d3
to
871c9fc
Compare
Landed in ebbdea2 |
PR-URL: #59466 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Tim Perry <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Daeyeon Jeong <[email protected]>
This PR replaces remaining usages of the
CRLF
variable with the string literal\r\n
and removes theCRLF
export from_http_common.js
.Background
In #40101, it was discussed that using the string literal
\r\n
is clearer and more explicit than using aCRLF
variable. Based on this consensus, this PR replaces all remaining usages of theCRLF
variable with the\r\n
literal.About removing the export
Previously, there was a TODO comment not to remove the
CRLF
export from_http_common.js
because the module was considered "semi-public" and should not have breaking changes without proper deprecation (discussion).However, as of #59293, the
_http_common.js
module (along with othernode:_http_*
modules) is now officially deprecated and considered internal-only:Given this, I considered it appropriate to remove the
CRLF
export.