Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3687,6 +3687,21 @@ changes:

Type: Runtime

### DEP0183: Passing `NaN` or a negative number as `delay`
Comment thread
jakecastelli marked this conversation as resolved.
Outdated

<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/53005
description: Passing `NaN` or a negative number as `delay` is deprecated.
Comment thread
jakecastelli marked this conversation as resolved.
Outdated
-->

Type: Runtime
Comment thread
jakecastelli marked this conversation as resolved.
Outdated

Calling `setTimeout` or `setInterval` with `NaN` or a negative number will
result the process emitting a warning, the warning will only be emitted once per
process.

Applications that intend to use authentication tags that are shorter than the
default authentication tag length must set the `authTagLength` option of the
[`crypto.createDecipheriv()`][] function to the appropriate length.
Comment thread
jakecastelli marked this conversation as resolved.
Outdated
Expand Down
6 changes: 6 additions & 0 deletions doc/api/timers.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ This method has a custom variant for promises that is available using
<!-- YAML
added: v0.0.1
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/53005
description: Passing `NaN` or a negative number as `delay` is deprecated.
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/41678
description: Passing an invalid callback to the `callback` argument
Expand Down Expand Up @@ -252,6 +255,9 @@ This method has a custom variant for promises that is available using
<!-- YAML
added: v0.0.1
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/53005
description: Passing `NaN` or a negative number as `delay` is deprecated.
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/41678
description: Passing an invalid callback to the `callback` argument
Expand Down