-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
crypto: docs-only deprecate crypto.fips, replace #18335
Conversation
doc/api/deprecations.md
Outdated
Type: Documentation-only | ||
|
||
The [`crypto.fips`][] property has been deprecated and replaced with | ||
`crypto.setFips()` and `crypto.getFips()`. |
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.
I prefer more direct wording:
The [`crypto.fips`][] property is deprecated. Please use
`crypto.setFips()` and `crypto.getFips()`.
doc/api/crypto.md
Outdated
Returns `true` if (and only if) a FIPS compliant crypto provider is | ||
currently in use. | ||
|
||
This property is deprecated. Please use `crypto.setFips()` and |
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.
Typo sentence?
doc/api/deprecations.md
Outdated
@@ -831,6 +839,7 @@ is not included in this list will be considered invalid in compliance with | |||
[`console.error()`]: console.html#console_console_error_data_args | |||
[`console.log()`]: console.html#console_console_log_data_args | |||
[`crypto.createCredentials()`]: crypto.html#crypto_crypto_createcredentials_details | |||
[`crypto.fips`]: crypto.html#crypto_crypto.fips |
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.
#crypto_crypto.fips
-> #crypto_crypto_fips
?
doc/api/crypto.md
Outdated
added: REPLACEME | ||
--> | ||
|
||
Returns `true` if (and only if) a FIPS compliant crypto provider is |
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.
No need for the parentheses.
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
Yep. That would be trivial. We are also allowed to reclassify docs only
deprecations as semver-major if TSC agrees
…On Jan 24, 2018 07:27, "Jordan Harband" ***@***.***> wrote:
Even though the deprecation might require semver-major, could the new
additions be added in a semver-minor and backported? That would maximize
the ease of migration.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#18335 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAa2eSaDmLSCYAKOUwzQTU6o8veytQygks5tN0v0gaJpZM4Rqim2>
.
|
Ping @nodejs/tsc ... I'd like to treat this docs-only deprecation as semver-minor. Any objections? |
+1 for semver-minor for doc-only here. Perhaps there should also be a Upd: opened #18417. |
54bd37a
to
877e1c9
Compare
doc/api/deprecations.md
Outdated
@@ -845,7 +852,15 @@ The [`crypto.DEFAULT_ENCODING`][] property is deprecated. | |||
[`console.error()`]: console.html#console_console_error_data_args | |||
[`console.log()`]: console.html#console_console_log_data_args | |||
[`crypto.createCredentials()`]: crypto.html#crypto_crypto_createcredentials_details | |||
<<<<<<< HEAD | |||
<<<<<<< HEAD |
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.
Merge conflict (here and below)
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.
Ugh. Forgot to save
I changed it to semver-minor as there was enough time to speak up against it and there was only a voice pro. |
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
d488810
to
900bf45
Compare
Note: I will land this after I get #18492 landed. |
Docs-only deprecate the getter/setter crypto.fips and replace with crypto.setFips() and crypto.getFips() This is specifically in preparation for ESM module support Refs: nodejs#18131
900bf45
to
1dece49
Compare
Docs-only deprecate the getter/setter crypto.fips and replace with crypto.setFips() and crypto.getFips() This is specifically in preparation for ESM module support PR-URL: #18335 Refs: #18131 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Landed in 6e7992e |
This does not land cleanly on v9.x This is because other deprecations have landed on master that have been given codes. If we are going to land this as semver minor would someone be willing to backport and assign an appropriate code to make sure we don't double dip |
Docs-only deprecate the getter/setter crypto.fips and replace with crypto.setFips() and crypto.getFips() This is specifically in preparation for ESM module support PR-URL: nodejs#18335 Refs: nodejs#18131 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Docs-only deprecate the getter/setter crypto.fips and replace with crypto.setFips() and crypto.getFips() This is specifically in preparation for ESM module support PR-URL: nodejs#18335 Refs: nodejs#18131 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Docs-only deprecate the getter/setter
crypto.fips
and replace withcrypto.setFips()
andcrypto.getFips()
This is specifically in preparation for ESM module support
Refs: #18131
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
crypto