Skip to content

Commit

Permalink
lib: drop fetch experimental warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcollina authored and danielleadams committed Jan 3, 2023
1 parent a5c9b3c commit 8616e9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions lib/internal/process/pre_execution.js
Expand Up @@ -19,7 +19,6 @@ const {
const { reconnectZeroFillToggle } = require('internal/buffer');
const {
defineOperation,
emitExperimentalWarning,
exposeInterface,
} = require('internal/util');

Expand Down Expand Up @@ -235,7 +234,6 @@ function setupFetch() {
}

async function fetch(input, init = undefined) {
emitExperimentalWarning('The Fetch API');
return lazyUndici().fetch(input, init);
}

Expand Down
12 changes: 2 additions & 10 deletions test/parallel/test-fetch.mjs
Expand Up @@ -10,17 +10,9 @@ assert.strictEqual(typeof globalThis.Headers, 'function');
assert.strictEqual(typeof globalThis.Request, 'function');
assert.strictEqual(typeof globalThis.Response, 'function');

common.expectWarning(
'ExperimentalWarning',
'The Fetch API is an experimental feature. This feature could change at any time'
);

const server = http.createServer((req, res) => {
// TODO: Remove this once keep-alive behavior can be disabled from the client
// side.
res.setHeader('Keep-Alive', 'timeout=0, max=0');
const server = http.createServer(common.mustCall((req, res) => {
res.end('Hello world');
});
}));
server.listen(0);
await events.once(server, 'listening');
const port = server.address().port;
Expand Down

0 comments on commit 8616e9b

Please sign in to comment.