Skip to content

Commit ae8280c

Browse files
authored
process: deprecate features.{ipv6,uv} and features.tls_*
PR-URL: #55545 Fixes: #55537 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]>
1 parent 7450332 commit ae8280c

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

doc/api/deprecations.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,6 +3786,33 @@ Type: Documentation-only
37863786
Passing non-supported argument types is deprecated and, instead of returning `false`,
37873787
will throw an error in a future version.
37883788

3789+
### DEP0187: `process.features.ipv6` and `process.features.uv`
3790+
3791+
<!-- YAML
3792+
changes:
3793+
- version: REPLACEME
3794+
pr-url: https://github.com/nodejs/node/pull/55545
3795+
description: Documentation-only deprecation.
3796+
-->
3797+
3798+
Type: Documentation-only
3799+
3800+
These properties are unconditionally `true`. Any checks based on these properties are redundant.
3801+
3802+
### DEP0188: `process.features.tls_*`
3803+
3804+
<!-- YAML
3805+
changes:
3806+
- version: REPLACEME
3807+
pr-url: https://github.com/nodejs/node/pull/55545
3808+
description: Documentation-only deprecation.
3809+
-->
3810+
3811+
Type: Documentation-only
3812+
3813+
`process.features.tls_alpn`, `process.features.tls_ocsp`, and `process.features.tls_sni` are
3814+
deprecated, as their values are guaranteed to be identical to that of `process.features.tls`.
3815+
37893816
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
37903817
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
37913818
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4

doc/api/process.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1930,12 +1930,18 @@ A boolean value that is `true` if the current Node.js build includes the inspect
19301930
19311931
<!-- YAML
19321932
added: v0.5.3
1933+
deprecated: REPLACEME
19331934
-->
19341935
1936+
> Stability: 0 - Deprecated. This property is always true, and any checks based on it are
1937+
> redundant.
1938+
19351939
* {boolean}
19361940
19371941
A boolean value that is `true` if the current Node.js build includes support for IPv6.
19381942
1943+
Since all Node.js builds have IPv6 support, this value is always `true`.
1944+
19391945
## `process.features.require_module`
19401946
19411947
<!-- YAML
@@ -1963,32 +1969,50 @@ A boolean value that is `true` if the current Node.js build includes support for
19631969
19641970
<!-- YAML
19651971
added: v4.8.0
1972+
deprecated: REPLACEME
19661973
-->
19671974
1975+
> Stability: 0 - Deprecated. Use `process.features.tls` instead.
1976+
19681977
* {boolean}
19691978
19701979
A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS.
19711980
1981+
In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional ALPN support.
1982+
This value is therefore identical to that of `process.features.tls`.
1983+
19721984
## `process.features.tls_ocsp`
19731985
19741986
<!-- YAML
19751987
added: v0.11.13
1988+
deprecated: REPLACEME
19761989
-->
19771990
1991+
> Stability: 0 - Deprecated. Use `process.features.tls` instead.
1992+
19781993
* {boolean}
19791994
19801995
A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS.
19811996
1997+
In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional OCSP support.
1998+
This value is therefore identical to that of `process.features.tls`.
1999+
19822000
## `process.features.tls_sni`
19832001
19842002
<!-- YAML
19852003
added: v0.5.3
2004+
deprecated: REPLACEME
19862005
-->
19872006
2007+
> Stability: 0 - Deprecated. Use `process.features.tls` instead.
2008+
19882009
* {boolean}
19892010
19902011
A boolean value that is `true` if the current Node.js build includes support for SNI in TLS.
19912012
2013+
In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional SNI support.
2014+
This value is therefore identical to that of `process.features.tls`.
2015+
19922016
## `process.features.typescript`
19932017
19942018
<!-- YAML
@@ -2008,12 +2032,17 @@ A value that is `"strip"` if Node.js is run with `--experimental-strip-types`,
20082032
20092033
<!-- YAML
20102034
added: v0.5.3
2035+
deprecated: REPLACEME
20112036
-->
20122037
2038+
> Stability: 0 - Deprecated. This property is always true, and any checks based on it are
2039+
> redundant.
2040+
20132041
* {boolean}
20142042
20152043
A boolean value that is `true` if the current Node.js build includes support for libuv.
2016-
Since it's currently not possible to build Node.js without libuv, this value is always `true`.
2044+
2045+
Since it's not possible to build Node.js without libuv, this value is always `true`.
20172046
20182047
## `process.finalization.register(ref, callback)`
20192048

0 commit comments

Comments
 (0)