-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
tls: remove deprecated tls.createSecurePair and SecurePair #57361
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
c697c14
to
6f0b0b6
Compare
cc @nodejs/tsc since this requires 2 approvals from TSC members. |
6f0b0b6
to
7774fb3
Compare
### Event: `'secure'` | ||
|
||
<!-- YAML | ||
added: v0.3.2 | ||
deprecated: v0.11.3 | ||
--> | ||
|
||
The `'secure'` event is emitted by the `SecurePair` object once a secure | ||
connection has been established. | ||
|
||
As with checking for the server | ||
[`'secureConnection'`][] | ||
event, `pair.cleartext.authorized` should be inspected to confirm whether the | ||
certificate used is properly authorized. | ||
|
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.
Given that SecurePair class can now be removed, is it correct to remove this?
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.
cc @nodejs/net
A github code search reveals a handful of uses in the ecosystem still but nothing that's been updated recently and nothing that's broadly depended on, so yeah, I'd agree it's likely safe. |
7774fb3
to
ddc6df8
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57361 +/- ##
=======================================
Coverage 90.20% 90.21%
=======================================
Files 630 629 -1
Lines 185307 185214 -93
Branches 36269 36253 -16
=======================================
- Hits 167162 167093 -69
- Misses 11084 11088 +4
+ Partials 7061 7033 -28
🚀 New features to boost your workflow:
|
@jasnell It had not occurred to me to do that, but I will make sure to check it myself next time, thank you! |
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
createSecurePair has been deprecated since version 8, it should be safe to remove.
As far as I understand, there is a citgm workflow that would need to be run here to ensure we dont break any popular packages. Would someone be able to run that?
There is also a file left in
benchmark/tls/secure-pair.js
, which should probably be renamed now that securePair had been removed.