Skip to content

Commit c25cf34

Browse files
committed
doc: move DEP0018 to End-of-Life
3b10f7f resolves DEP0018. Move it to End-of-Life. Co-authored-by: Anna Henningsen <[email protected]> PR-URL: #35316 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 895832c commit c25cf34

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

doc/api/deprecations.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,16 +426,20 @@ See [`Intl.Segmenter`](https://github.com/tc39/proposal-intl-segmenter).
426426
### DEP0018: Unhandled promise rejections
427427
<!-- YAML
428428
changes:
429+
- version: REPLACEME
430+
pr-url: https://github.com/nodejs/node/pull/35316
431+
description: End-of-Life.
429432
- version: v7.0.0
430433
pr-url: https://github.com/nodejs/node/pull/8217
431434
description: Runtime deprecation.
432435
-->
433436

434-
Type: Runtime
437+
Type: End-of-Life
435438

436-
Unhandled promise rejections are deprecated. In the future, promise rejections
437-
that are not handled will terminate the Node.js process with a non-zero exit
438-
code.
439+
Unhandled promise rejections are deprecated. By default, promise rejections
440+
that are not handled terminate the Node.js process with a non-zero exit
441+
code. To change the way Node.js treats unhandled rejections, use the
442+
[`--unhandled-rejections`][] command-line option.
439443

440444
### DEP0019: `require('.')` resolved outside directory
441445
<!-- YAML
@@ -2648,6 +2652,7 @@ The [`crypto.Certificate()` constructor][] is deprecated. Use
26482652

26492653
[`--pending-deprecation`]: cli.html#cli_pending_deprecation
26502654
[`--throw-deprecation`]: cli.html#cli_throw_deprecation
2655+
[`--unhandled-rejections`]: cli.html#cli_unhandled_rejections_mode
26512656
[`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_static_method_buffer_allocunsafeslow_size
26522657
[`Buffer.from(array)`]: buffer.html#buffer_static_method_buffer_from_array
26532658
[`Buffer.from(buffer)`]: buffer.html#buffer_static_method_buffer_from_buffer

0 commit comments

Comments
 (0)