Skip to content

Commit 9b70a5c

Browse files
committed
child_process: doc deprecate ChildProcess._channel
This was eligible to begin deprecation in Node 8. PR-URL: #26982 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
1 parent d379e45 commit 9b70a5c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/api/deprecations.md

+15
Original file line numberDiff line numberDiff line change
@@ -2416,6 +2416,21 @@ also have an `index.js` file in the top level directory will resolve the
24162416
`index.js` file. That is deprecated and is going to throw an error in future
24172417
Node.js versions.
24182418
2419+
<a id="DEP0XXX"></a>
2420+
### DEP0XXX: ChildProcess._channel
2421+
<!-- YAML
2422+
changes:
2423+
- version: REPLACEME
2424+
pr-url: https://github.com/nodejs/node/pull/26982
2425+
description: Documentation-only.
2426+
-->
2427+
2428+
Type: Documentation-only
2429+
2430+
The `_channel` property of child process objects returned by `spawn()` and
2431+
similar functions is not intended for public use. Use `ChildProcess.channel`
2432+
instead.
2433+
24192434
[`--pending-deprecation`]: cli.html#cli_pending_deprecation
24202435
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
24212436
[`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array

0 commit comments

Comments
 (0)