Skip to content

Commit 9f3d2f6

Browse files
mcollinaRafaelGSS
authored andcommitted
lib: drop fetch experimental warning
Signed-off-by: Matteo Collina <[email protected]> PR-URL: #45287 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 4e45585 commit 9f3d2f6

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

lib/internal/process/pre_execution.js

-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const {
1919
const { reconnectZeroFillToggle } = require('internal/buffer');
2020
const {
2121
defineOperation,
22-
emitExperimentalWarning,
2322
exposeInterface,
2423
} = require('internal/util');
2524

@@ -236,7 +235,6 @@ function setupFetch() {
236235
}
237236

238237
async function fetch(input, init = undefined) {
239-
emitExperimentalWarning('The Fetch API');
240238
return lazyUndici().fetch(input, init);
241239
}
242240

test/parallel/test-fetch.mjs

+2-10
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,9 @@ assert.strictEqual(typeof globalThis.Headers, 'function');
1010
assert.strictEqual(typeof globalThis.Request, 'function');
1111
assert.strictEqual(typeof globalThis.Response, 'function');
1212

13-
common.expectWarning(
14-
'ExperimentalWarning',
15-
'The Fetch API is an experimental feature. This feature could change at any time'
16-
);
17-
18-
const server = http.createServer((req, res) => {
19-
// TODO: Remove this once keep-alive behavior can be disabled from the client
20-
// side.
21-
res.setHeader('Keep-Alive', 'timeout=0, max=0');
13+
const server = http.createServer(common.mustCall((req, res) => {
2214
res.end('Hello world');
23-
});
15+
}));
2416
server.listen(0);
2517
await events.once(server, 'listening');
2618
const port = server.address().port;

0 commit comments

Comments
 (0)