Commit 4e09bf3fb23 for nodejs
commit 4e09bf3fb2326dc3649e0066ee42ee9b186181a4
Author: Matteo Collina <hello@matteocollina.com>
Date: Thu Oct 1 17:05:08 2026 +0200
process: mark process.finalization as release candidate
Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/66436
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: James M Snell <jasnell@gmail.com>
diff --git a/doc/api/process.md b/doc/api/process.md
index e644591d38f..ba3832ccb85 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
<!-- YAML
added: v22.5.0
+changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/66436
+ description: Marked as release candidate.
-->
-> 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
<!-- YAML
added: v22.5.0
+changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/66436
+ description: Marked as release candidate.
-->
-> 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
<!-- YAML
added: v22.5.0
+changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/66436
+ description: Marked as release candidate.
-->
-> 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 5efc2c8d78f..62b8cb563ba 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;
}