Skip to content

Commit 1aa10d8

Browse files
mcollinarichardlau
authored andcommitted
process: mark process.finalization as release candidate
Signed-off-by: Matteo Collina <[email protected]> PR-URL: #66436 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 1ebd6d3 commit 1aa10d8

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎doc/api/process.md‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,9 +2061,13 @@ Since it's not possible to build Node.js without libuv, this value is always `tr
20612061
20622062
<!-- YAML
20632063
added: v22.5.0
2064+
changes:
2065+
- version: REPLACEME
2066+
pr-url: https://github.com/nodejs/node/pull/66436
2067+
description: Marked as release candidate.
20642068
-->
20652069
2066-
> Stability: 1.1 - Active Development
2070+
> Stability: 1.2 - Release candidate
20672071
20682072
* `ref` {Object | Function} The reference to the resource that is being tracked.
20692073
* `callback` {Function} The callback function to be called when the resource
@@ -2170,9 +2174,13 @@ as it is not guaranteed that the callback will be called under all circumstances
21702174
21712175
<!-- YAML
21722176
added: v22.5.0
2177+
changes:
2178+
- version: REPLACEME
2179+
pr-url: https://github.com/nodejs/node/pull/66436
2180+
description: Marked as release candidate.
21732181
-->
21742182
2175-
> Stability: 1.1 - Active Development
2183+
> Stability: 1.2 - Release candidate
21762184
21772185
* `ref` {Object | Function} The reference
21782186
to the resource that is being tracked.
@@ -2191,9 +2199,13 @@ this means that there is a possibility that the callback will not be called unde
21912199
21922200
<!-- YAML
21932201
added: v22.5.0
2202+
changes:
2203+
- version: REPLACEME
2204+
pr-url: https://github.com/nodejs/node/pull/66436
2205+
description: Marked as release candidate.
21942206
-->
21952207
2196-
> Stability: 1.1 - Active Development
2208+
> Stability: 1.2 - Release candidate
21972209
21982210
* `ref` {Object | Function} The reference
21992211
to the resource that was registered previously.

‎lib/internal/process/finalization.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const {
77
SafeWeakRef,
88
} = primordials;
99
const { validateObject, kValidateObjectAllowFunction } = require('internal/validators');
10-
const { emitExperimentalWarning } = require('internal/util');
1110

1211
function createFinalization() {
1312
/**
@@ -97,7 +96,6 @@ function createFinalization() {
9796
* @param {Function} fn
9897
*/
9998
function register(obj, fn) {
100-
emitExperimentalWarning('process.finalization.register');
10199
validateObject(obj, 'obj', kValidateObjectAllowFunction);
102100

103101
_register('exit', obj, fn);
@@ -110,7 +108,6 @@ function createFinalization() {
110108
* @param {Function} fn
111109
*/
112110
function registerBeforeExit(obj, fn) {
113-
emitExperimentalWarning('process.finalization.registerBeforeExit');
114111
validateObject(obj, 'obj', kValidateObjectAllowFunction);
115112

116113
_register('beforeExit', obj, fn);
@@ -121,7 +118,6 @@ function createFinalization() {
121118
* @param {object} obj
122119
*/
123120
function unregister(obj) {
124-
emitExperimentalWarning('process.finalization.unregister');
125121
if (!registry) {
126122
return;
127123
}

0 commit comments

Comments
 (0)