diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 7ff8503f695aa0..f4cf0748e64168 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2668,6 +2668,34 @@ Type: Documentation-only Use [`request.destroy()`][] instead of [`request.abort()`][]. + +### DEP0XX: Use `request.destroyed` instead of `request.aborted` + + +Type: Documentation-only + +Use [`request.destroyed`][] instead of [`request.aborted`][]. + + +### DEP0XX: Use `'error'` event instead of `'aborted'` + + +Type: Documentation-only + +Use `'error'` event instead of `'aborted'`. + [`--pending-deprecation`]: cli.html#cli_pending_deprecation [`--throw-deprecation`]: cli.html#cli_throw_deprecation [`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size diff --git a/doc/api/http.md b/doc/api/http.md index e924a2dc312812..2e2fc2e77a9aaa 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -584,8 +584,12 @@ changes: - version: v11.0.0 pr-url: https://github.com/nodejs/node/pull/20230 description: The `aborted` property is no longer a timestamp number. + deprecated: + - REPLACEME --> +> Stability: 0 - Deprecated: Use [`request.destroyed`][] instead. + * {boolean} The `request.aborted` property will be `true` if the request has @@ -1799,8 +1803,13 @@ status, headers and data. ### Event: `'aborted'` +> Stability: 0 - Deprecated: Use the `'error'` event instead. + Emitted when the request has been aborted. ### Event: `'close'`