Skip to content

Commit c19fe9e

Browse files
committed
process: mark process.finalization as release candidate
Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent ebef774 commit c19fe9e

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
@@ -2062,9 +2062,13 @@ Since it's not possible to build Node.js without libuv, this value is always `tr
20622062
20632063
<!-- YAML
20642064
added: v22.5.0
2065+
changes:
2066+
- version: REPLACEME
2067+
pr-url: https://github.com/nodejs/node/pull/XXXXX
2068+
description: Marked as release candidate.
20652069
-->
20662070
2067-
> Stability: 1.1 - Active Development
2071+
> Stability: 1.2 - Release candidate
20682072
20692073
* `ref` {Object | Function} The reference to the resource that is being tracked.
20702074
* `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
21712175
21722176
<!-- YAML
21732177
added: v22.5.0
2178+
changes:
2179+
- version: REPLACEME
2180+
pr-url: https://github.com/nodejs/node/pull/XXXXX
2181+
description: Marked as release candidate.
21742182
-->
21752183
2176-
> Stability: 1.1 - Active Development
2184+
> Stability: 1.2 - Release candidate
21772185
21782186
* `ref` {Object | Function} The reference
21792187
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
21922200
21932201
<!-- YAML
21942202
added: v22.5.0
2203+
changes:
2204+
- version: REPLACEME
2205+
pr-url: https://github.com/nodejs/node/pull/XXXXX
2206+
description: Marked as release candidate.
21952207
-->
21962208
2197-
> Stability: 1.1 - Active Development
2209+
> Stability: 1.2 - Release candidate
21982210
21992211
* `ref` {Object | Function} The reference
22002212
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)