Skip to content

Commit 8616e9b

Browse files
mcollinadanielleadams
authored andcommitted
lib: drop fetch experimental warning
Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: #45287 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent a5c9b3c commit 8616e9b

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

@@ -235,7 +234,6 @@ function setupFetch() {
235234
}
236235

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

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)