| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
this change seems unrelated
Sorry, something went wrong.
|
@nodejs/crypto @nodejs/tsc |
Sorry, something went wrong.
There was a problem hiding this comment.
has been removed -> was removed (ditto on line 155)
Similar to PR #21043
Sorry, something went wrong.
There was a problem hiding this comment.
The rest of the file does not use trailing commas, please remove this. I don't want to start any new discussions about trailing commas, but I'd go for consistency in this case.
Sorry, something went wrong.
There was a problem hiding this comment.
The line right above doesn't have a trailing comma either, but @bnoordhuis suggests we use trailing commas moving forwards?
Idk, sounds reasonable to just add them wherever you go.
Sorry, something went wrong.
There was a problem hiding this comment.
Are you referring to #20703 (comment)? ESLint still doesn't have a file-by-file rule as far as I know, so that doesn't really apply here. Personally, I am not a fan of dangling commas, and we discussed that topic numerous times (e.g. #19131 (comment)). I totally understand Ben's reasoning, but this kind of "churn" isn't that common from my perspective, correct me if I am wrong.
Edit: Striked my own comment because I promised not to start a new debate about trailing commas.
Sorry, something went wrong.
There was a problem hiding this comment.
Yeah, let's not. We should probably skip the comma for consistency, you're right.
Sorry, something went wrong.
|
semver-major so needs two TSC approvals (already has one) + CITGM before landing |
Sorry, something went wrong.
There was a problem hiding this comment.
It seems this link will not be valid after this PR, so we need to delinkify `crypto.createCredentials()` here and remove the bottom reference.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, but only because of the existing runtime deprecation.
If we had had our process back then, this should just have gotten stuck at a documentation deprecation and a one-line alias.
Sorry, something went wrong.
|
@nodejs/crypto is this ready to land? |
Sorry, something went wrong.
Sorry, something went wrong.
|
@aduh95 could you have a look at the test failures please? |
Sorry, something went wrong.
|
You need to remove the Credentials line from test-crypto-classes.js. |
Sorry, something went wrong.
|
@tniessen Thank you for spotting that, I'll take care of that this evening (that is to say in ten hours from my time zone). |
Sorry, something went wrong.
The `crypto.Credentials` legacy API has been Runtime deprecated since v0.11.13 and users had been adviced to use `tls.SecureContext` instead. Fixes: nodejs#20793
Sorry, something went wrong.
|
@nodejs/crypto is this landable? Are there any concerns? |
Sorry, something went wrong.
|
I am fine with this change, I don't know of any potential breakage or downsides. |
Sorry, something went wrong.
|
Let's land this tomorrow if there are no objections then. |
Sorry, something went wrong.
The `crypto.Credentials` legacy API has been Runtime deprecated since v0.11.13 and users had been adviced to use `tls.SecureContext` instead. PR-URL: #21153 Fixes: #20793 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fix #20793
The crypto.Credentials legacy API has been Runtime deprecated since
v0.11.13 and users had been adviced to use tls.SecureContext instead.
This PR removes it from the crypto module.
Checklist