GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib: drop fetch experimental warning · nodejs/node@8616e9b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/process
    • pre_execution.js
  • test/parallel
    • test-fetch.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/process/pre_execution.js‎

Copy file name to clipboardExpand all lines: lib/internal/process/pre_execution.js
-2Lines changed: 0 additions & 2 deletions
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

Collapse file

‎test/parallel/test-fetch.mjs‎

Copy file name to clipboardExpand all lines: test/parallel/test-fetch.mjs
+2-10Lines changed: 2 additions & 10 deletions
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 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.