GeezerVison is showing github.com — lib: drop fetch experimental warning · nodejs/node@8616e9b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/process/pre_execution.js -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,6 @@ const { |
19 | 19 | const { reconnectZeroFillToggle } = require('internal/buffer'); |
20 | 20 | const { |
21 | 21 | defineOperation, |
22 | | - emitExperimentalWarning, |
23 | 22 | exposeInterface, |
24 | 23 | } = require('internal/util'); |
25 | 24 |
|
@@ -235,7 +234,6 @@ function setupFetch() { |
235 | 234 | } |
236 | 235 |
|
237 | 236 | async function fetch(input, init = undefined) { |
238 | | - emitExperimentalWarning('The Fetch API'); |
239 | 237 | return lazyUndici().fetch(input, init); |
240 | 238 | } |
241 | 239 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-fetch.mjs +2-10Lines changed: 2 additions & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,17 +10,9 @@ assert.strictEqual(typeof globalThis.Headers, 'function'); |
10 | 10 | assert.strictEqual(typeof globalThis.Request, 'function'); |
11 | 11 | assert.strictEqual(typeof globalThis.Response, 'function'); |
12 | 12 |
|
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) => { |
22 | 14 | res.end('Hello world'); |
23 | | -}); |
| 15 | +})); |
24 | 16 | server.listen(0); |
25 | 17 | await events.once(server, 'listening'); |
26 | 18 | const port = server.address().port; |
|