From 5ead480405e14504689e904f80bb38dedd5a5329 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 1 Oct 2026 17:05:08 +0200 Subject: [PATCH] process: mark process.finalization as release candidate Signed-off-by: Matteo Collina --- doc/api/process.md | 18 +++++++++++++++--- lib/internal/process/finalization.js | 4 ---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/doc/api/process.md b/doc/api/process.md index c237943b69f0..ad38a481dcf2 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2062,9 +2062,13 @@ Since it's not possible to build Node.js without libuv, this value is always `tr -> Stability: 1.1 - Active Development +> Stability: 1.2 - Release candidate * `ref` {Object | Function} The reference to the resource that is being tracked. * `callback` {Function} The callback function to be called when the resource @@ -2171,9 +2175,13 @@ as it is not guaranteed that the callback will be called under all circumstances -> Stability: 1.1 - Active Development +> Stability: 1.2 - Release candidate * `ref` {Object | Function} The reference to the resource that is being tracked. @@ -2192,9 +2200,13 @@ this means that there is a possibility that the callback will not be called unde -> Stability: 1.1 - Active Development +> Stability: 1.2 - Release candidate * `ref` {Object | Function} The reference to the resource that was registered previously. diff --git a/lib/internal/process/finalization.js b/lib/internal/process/finalization.js index 5efc2c8d78f9..62b8cb563ba3 100644 --- a/lib/internal/process/finalization.js +++ b/lib/internal/process/finalization.js @@ -7,7 +7,6 @@ const { SafeWeakRef, } = primordials; const { validateObject, kValidateObjectAllowFunction } = require('internal/validators'); -const { emitExperimentalWarning } = require('internal/util'); function createFinalization() { /** @@ -97,7 +96,6 @@ function createFinalization() { * @param {Function} fn */ function register(obj, fn) { - emitExperimentalWarning('process.finalization.register'); validateObject(obj, 'obj', kValidateObjectAllowFunction); _register('exit', obj, fn); @@ -110,7 +108,6 @@ function createFinalization() { * @param {Function} fn */ function registerBeforeExit(obj, fn) { - emitExperimentalWarning('process.finalization.registerBeforeExit'); validateObject(obj, 'obj', kValidateObjectAllowFunction); _register('beforeExit', obj, fn); @@ -121,7 +118,6 @@ function createFinalization() { * @param {object} obj */ function unregister(obj) { - emitExperimentalWarning('process.finalization.unregister'); if (!registry) { return; }