Skip to content

Commit 5d4b6ac

Browse files
committed
process: deprecate features.{ipv6,uv} and features.tls_*
1 parent e312d60 commit 5d4b6ac

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

doc/api/deprecations.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3761,6 +3761,34 @@ Instantiating classes without the `new` qualifier exported by the `node:repl` mo
37613761
It is recommended to use the `new` qualifier instead. This applies to all REPL classes, including
37623762
`REPLServer` and `Recoverable`.
37633763

3764+
### DEP00XX: `process.features.ipv6` and `process.features.uv`
3765+
3766+
<!-- YAML
3767+
changes:
3768+
- version: REPLACEME
3769+
pr-url: https://github.com/nodejs/node/pull/55545
3770+
description: Documentation-only deprecation.
3771+
-->
3772+
3773+
Type: Documentation-only
3774+
3775+
These properties have been unconditionally `true` since their introduction into the API. Any checks
3776+
based on these properties are redundant.
3777+
3778+
### DEP00XX: `process.features.tls_*`
3779+
3780+
<!-- YAML
3781+
changes:
3782+
- version: REPLACEME
3783+
pr-url: https://github.com/nodejs/node/pull/55545
3784+
description: Documentation-only deprecation.
3785+
-->
3786+
3787+
Type: Documentation-only
3788+
3789+
`process.features.tls_alpn`, `process.features.tls_ocsp` and `process.features.tls_sni` are
3790+
deprecated, as their values are guaranteed to be identical to that of `process.features.tls`.
3791+
37643792
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
37653793
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
37663794
[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+
Since OpenSSL now unconditionally supports ALPN, this value is identical to that of
1982+
`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+
Since OpenSSL now unconditionally supports OCSP, this value is identical to that of
1998+
`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+
Since OpenSSL now unconditionally supports SNI, this value is identical to that of
2014+
`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)