Skip to content

Commit 3fab9f2

Browse files
committed
doc: EOL deprecated API and update notes
PR-URL: #13702 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 279fcc4 commit 3fab9f2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

doc/api/deprecations.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,16 @@ methods, the `options.customFds` option is deprecated. The `options.stdio`
9595
option should be used instead.
9696

9797
<a id="DEP0007"></a>
98-
### DEP0007: cluster worker.suicide
98+
### DEP0007: Replace cluster worker.suicide with worker.exitedAfterDisconnect
9999

100-
Type: Runtime
100+
Type: End-of-Life
101101

102-
Within the `cluster` module, the [`worker.suicide`][] property has been
103-
deprecated. Please use [`worker.exitedAfterDisconnect`][] instead.
102+
In an earlier version of the Node.js `cluster`, a boolean property with the name
103+
`suicide` was added to the `Worker` object. The intent of this property was to
104+
provide an indication of how and why the `Worker` instance exited. In Node.js
105+
6.0.0, the old property was deprecated and replaced with a new
106+
[worker.exitedAfterDisconnect][] property. The old property name did not
107+
precisely describe the actual semantics and was unnecessarily emotion-laden.
104108

105109
<a id="DEP0008"></a>
106110
### DEP0008: require('constants')
@@ -689,7 +693,6 @@ Type: Runtime
689693
[`util.puts()`]: util.html#util_util_puts_strings
690694
[`util`]: util.html
691695
[`worker.exitedAfterDisconnect`]: cluster.html#cluster_worker_exitedafterdisconnect
692-
[`worker.suicide`]: cluster.html#cluster_worker_suicide
693696
[alloc]: buffer.html#buffer_class_method_buffer_alloc_size_fill_encoding
694697
[alloc_unsafe_size]: buffer.html#buffer_class_method_buffer_allocunsafe_size
695698
[from_arraybuffer]: buffer.html#buffer_class_method_buffer_from_arraybuffer_byteoffset_length

0 commit comments

Comments
 (0)