From 3fab9f2cd7aa3935dbb2a45624317ff9ddb3f33f Mon Sep 17 00:00:00 2001 From: James M Snell Date: Thu, 15 Jun 2017 08:22:07 -0700 Subject: [PATCH] doc: EOL deprecated API and update notes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/13702 Reviewed-By: Refael Ackermann Reviewed-By: Sam Roberts Reviewed-By: Tobias Nießen Reviewed-By: Matteo Collina Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen --- doc/api/deprecations.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 6a7a4a4c7ef59a..5fb3974bb1a67b 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -95,12 +95,16 @@ methods, the `options.customFds` option is deprecated. The `options.stdio` option should be used instead. -### DEP0007: cluster worker.suicide +### DEP0007: Replace cluster worker.suicide with worker.exitedAfterDisconnect -Type: Runtime +Type: End-of-Life -Within the `cluster` module, the [`worker.suicide`][] property has been -deprecated. Please use [`worker.exitedAfterDisconnect`][] instead. +In an earlier version of the Node.js `cluster`, a boolean property with the name +`suicide` was added to the `Worker` object. The intent of this property was to +provide an indication of how and why the `Worker` instance exited. In Node.js +6.0.0, the old property was deprecated and replaced with a new +[worker.exitedAfterDisconnect][] property. The old property name did not +precisely describe the actual semantics and was unnecessarily emotion-laden. ### DEP0008: require('constants') @@ -689,7 +693,6 @@ Type: Runtime [`util.puts()`]: util.html#util_util_puts_strings [`util`]: util.html [`worker.exitedAfterDisconnect`]: cluster.html#cluster_worker_exitedafterdisconnect -[`worker.suicide`]: cluster.html#cluster_worker_suicide [alloc]: buffer.html#buffer_class_method_buffer_alloc_size_fill_encoding [alloc_unsafe_size]: buffer.html#buffer_class_method_buffer_allocunsafe_size [from_arraybuffer]: buffer.html#buffer_class_method_buffer_from_arraybuffer_byteoffset_length