Skip to content

Commit 4cdb032

Browse files
Renegade334targos
authored andcommitted
process: deprecate features.{ipv6,uv} and features.tls_*
PR-URL: #55545 Fixes: #55537 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent 4b3919f commit 4cdb032

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

doc/api/deprecations.md

+27
Original file line numberDiff line numberDiff line change
@@ -3770,6 +3770,33 @@ Type: Documentation-only
37703770
Passing non-supported argument types is deprecated and, instead of returning `false`,
37713771
will throw an error in a future version.
37723772

3773+
### DEP0187: `process.features.ipv6` and `process.features.uv`
3774+
3775+
<!-- YAML
3776+
changes:
3777+
- version: REPLACEME
3778+
pr-url: https://github.com/nodejs/node/pull/55545
3779+
description: Documentation-only deprecation.
3780+
-->
3781+
3782+
Type: Documentation-only
3783+
3784+
These properties are unconditionally `true`. Any checks based on these properties are redundant.
3785+
3786+
### DEP0188: `process.features.tls_*`
3787+
3788+
<!-- YAML
3789+
changes:
3790+
- version: REPLACEME
3791+
pr-url: https://github.com/nodejs/node/pull/55545
3792+
description: Documentation-only deprecation.
3793+
-->
3794+
3795+
Type: Documentation-only
3796+
3797+
`process.features.tls_alpn`, `process.features.tls_ocsp`, and `process.features.tls_sni` are
3798+
deprecated, as their values are guaranteed to be identical to that of `process.features.tls`.
3799+
37733800
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
37743801
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
37753802
[RFC 8247 Section 2.4]: https://www.rfc-editor.org/rfc/rfc8247#section-2.4

doc/api/process.md

+30-1
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
@@ -1961,32 +1967,50 @@ A boolean value that is `true` if the current Node.js build includes support for
19611967
19621968
<!-- YAML
19631969
added: v4.8.0
1970+
deprecated: REPLACEME
19641971
-->
19651972
1973+
> Stability: 0 - Deprecated. Use `process.features.tls` instead.
1974+
19661975
* {boolean}
19671976
19681977
A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS.
19691978
1979+
In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional ALPN support.
1980+
This value is therefore identical to that of `process.features.tls`.
1981+
19701982
## `process.features.tls_ocsp`
19711983
19721984
<!-- YAML
19731985
added: v0.11.13
1986+
deprecated: REPLACEME
19741987
-->
19751988
1989+
> Stability: 0 - Deprecated. Use `process.features.tls` instead.
1990+
19761991
* {boolean}
19771992
19781993
A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS.
19791994
1995+
In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional OCSP support.
1996+
This value is therefore identical to that of `process.features.tls`.
1997+
19801998
## `process.features.tls_sni`
19811999
19822000
<!-- YAML
19832001
added: v0.5.3
2002+
deprecated: REPLACEME
19842003
-->
19852004
2005+
> Stability: 0 - Deprecated. Use `process.features.tls` instead.
2006+
19862007
* {boolean}
19872008
19882009
A boolean value that is `true` if the current Node.js build includes support for SNI in TLS.
19892010
2011+
In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional SNI support.
2012+
This value is therefore identical to that of `process.features.tls`.
2013+
19902014
## `process.features.typescript`
19912015
19922016
<!-- YAML
@@ -2004,12 +2028,17 @@ A value that is `"strip"` if Node.js is run with `--experimental-strip-types`,
20042028
20052029
<!-- YAML
20062030
added: v0.5.3
2031+
deprecated: REPLACEME
20072032
-->
20082033
2034+
> Stability: 0 - Deprecated. This property is always true, and any checks based on it are
2035+
> redundant.
2036+
20092037
* {boolean}
20102038
20112039
A boolean value that is `true` if the current Node.js build includes support for libuv.
2012-
Since it's currently not possible to build Node.js without libuv, this value is always `true`.
2040+
2041+
Since it's not possible to build Node.js without libuv, this value is always `true`.
20132042
20142043
## `process.finalization.register(ref, callback)`
20152044

0 commit comments

Comments
 (0)