Skip to content

Commit

Permalink
Chrome 105 / Deno 1.7 / Node 18 support fetch() with `ReadableStrea…
Browse files Browse the repository at this point in the history
…m` body (#25636)

* Chrome 105 / Safari 11.1 support `fetch()` with `ReadableStream` body

Fixes #12188.

Chrome bug: https://issues.chromium.org/issues/40505032
Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi\?id\=1387483
Safari bug: https://bugs.webkit.org/show_bug.cgi\?id\=176066

Chrome impl: https://chromiumdash.appspot.com/commit/9bbd1d6504a1d63d1b409e696c522497b111a572
Safari impl: WebKit/WebKit@67cb061

* Apply suggestions from code review

* Rename ReadableStream body subfeature

* Node.js 18.0.0 supports `ReadableStream` as fetch body

* Update api/_globals/fetch.json

* Add Firefox bug to api.Request as well
  • Loading branch information
caugner authored Jan 13, 2025
1 parent 0c1029c commit 86490f2
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/Request.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,16 @@
},
"edge": "mirror",
"firefox": {
"version_added": false
"version_added": false,
"impl_url": "https://bugzil.la/1387483"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "18.0.0"
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
Expand Down
42 changes: 42 additions & 0 deletions api/_globals/fetch.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,48 @@
}
}
},
"body_readablestream": {
"__compat": {
"description": "Send `ReadableStream` in body",
"spec_url": "https://fetch.spec.whatwg.org/#concept-body-stream",
"support": {
"chrome": {
"version_added": "105"
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.7"
},
"edge": "mirror",
"firefox": {
"version_added": false,
"impl_url": "https://bugzil.la/1387483"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "18.0.0"
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"init_attributionReporting_parameter": {
"__compat": {
"description": "`init.attributionReporting` parameter",
Expand Down

0 comments on commit 86490f2

Please sign in to comment.