From e359ae60624b3c2507c731e59bf8f53ca572b62c Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sat, 8 Feb 2025 14:52:40 -0500 Subject: [PATCH 1/6] timers: set several methods EOL --- doc/api/deprecations.md | 12 +++++ lib/timers.js | 35 -------------- test/parallel/test-timers-active.js | 34 -------------- .../test-timers-enroll-invalid-msecs.js | 38 --------------- .../test-timers-enroll-second-time.js | 16 ------- .../test-timers-max-duration-warning.js | 12 +---- .../test-timers-unenroll-unref-interval.js | 3 +- test/parallel/test-timers-unref-active.js | 47 ------------------- ...emove-other-unref-timers-only-one-fires.js | 41 ---------------- ...-timers-unref-remove-other-unref-timers.js | 30 ------------ 10 files changed, 14 insertions(+), 254 deletions(-) delete mode 100644 test/parallel/test-timers-active.js delete mode 100644 test/parallel/test-timers-enroll-invalid-msecs.js delete mode 100644 test/parallel/test-timers-enroll-second-time.js delete mode 100644 test/parallel/test-timers-unref-active.js delete mode 100644 test/parallel/test-timers-unref-remove-other-unref-timers-only-one-fires.js delete mode 100644 test/parallel/test-timers-unref-remove-other-unref-timers.js diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index ba0676f1b84da5..554bdf426118ca 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2065,6 +2065,9 @@ method. -Type: Runtime +Type: End-of-Life `timers.enroll()` is deprecated. Please use the publicly documented [`setTimeout()`][] or [`setInterval()`][] instead. @@ -2090,7 +2090,7 @@ changes: description: Runtime deprecation. --> -Type: Runtime +Type: End-of-Life `timers.unenroll()` is deprecated. Please use the publicly documented [`clearTimeout()`][] or [`clearInterval()`][] instead. @@ -2627,7 +2627,7 @@ changes: description: Runtime deprecation. --> -Type: Runtime +Type: End-of-Life The previously undocumented `timers.active()` is deprecated. Please use the publicly documented [`timeout.refresh()`][] instead. @@ -2646,7 +2646,7 @@ changes: description: Runtime deprecation. --> -Type: Runtime +Type: End-of-Life The previously undocumented and "private" `timers._unrefActive()` is deprecated. Please use the publicly documented [`timeout.refresh()`][] instead. From d4be01539d18bc4a188ebbc6dd15a88ee27a488f Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sun, 9 Feb 2025 14:34:20 -0500 Subject: [PATCH 3/6] Update doc/api/deprecations.md Co-authored-by: Marco Ippolito --- doc/api/deprecations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 5d9af0082d2b22..a9b8cc6bd4b2fb 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2092,7 +2092,7 @@ changes: Type: End-of-Life -`timers.unenroll()` is deprecated. Please use the publicly documented +`timers.unenroll()` has been removed. Please use the publicly documented [`clearTimeout()`][] or [`clearInterval()`][] instead. ### DEP0097: `MakeCallback` with `domain` property From 455b2ef5fcd557dc4165a69f2f72848356863ebc Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sun, 9 Feb 2025 14:34:28 -0500 Subject: [PATCH 4/6] Update doc/api/deprecations.md Co-authored-by: Marco Ippolito --- doc/api/deprecations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index a9b8cc6bd4b2fb..2a8c26a5c90a9f 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2075,7 +2075,7 @@ changes: Type: End-of-Life -`timers.enroll()` is deprecated. Please use the publicly documented +`timers.enroll()` has been removed. Please use the publicly documented [`setTimeout()`][] or [`setInterval()`][] instead. ### DEP0096: `timers.unenroll()` From 85590069ba3d0ddcb253d2c269725ce094b26039 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sun, 9 Feb 2025 14:34:36 -0500 Subject: [PATCH 5/6] Update doc/api/deprecations.md Co-authored-by: Marco Ippolito --- doc/api/deprecations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 2a8c26a5c90a9f..45e16ffebd8238 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2648,7 +2648,7 @@ changes: Type: End-of-Life -The previously undocumented and "private" `timers._unrefActive()` is deprecated. +The previously undocumented and "private" `timers._unrefActive()` has been removed. Please use the publicly documented [`timeout.refresh()`][] instead. If unreferencing the timeout is necessary, [`timeout.unref()`][] can be used with no performance impact since Node.js 10. From f94223f1e5a10c5ca46e3c29af66c9f8cfd7ac5f Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Sun, 9 Feb 2025 14:34:43 -0500 Subject: [PATCH 6/6] Update doc/api/deprecations.md Co-authored-by: Marco Ippolito --- doc/api/deprecations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 45e16ffebd8238..1cebecf5884436 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2629,7 +2629,7 @@ changes: Type: End-of-Life -The previously undocumented `timers.active()` is deprecated. +The previously undocumented `timers.active()` has been removed. Please use the publicly documented [`timeout.refresh()`][] instead. If re-referencing the timeout is necessary, [`timeout.ref()`][] can be used with no performance impact since Node.js 10.