You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAICT, fetch() has always supported a request body, but only recently acquired ReadableStream bodies. This PR reorganizes the data to make this more obvious.
Test results and supporting details
This PR doesn't actually create any new data; it copies or moves it.
api.fetch.init_body_parameter copies the support data from api.fetch
api.Request.Request.init_body_parameter copies the support data from api.Request.Request
api.fetch.body_readablestream moved to api.fetch.init_body_parameter.readablestream
api.Request.request_body_readablestream moved to api.Request.Request.init_body_parameter.readablestream
Where required, I changed descriptions and added spec URLs.
github-actionsBot
added
data:api
Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
linter
Issues or pull requests regarding the tests / linter of the JSON files.
size:l
[PR only] 101-1000 LoC changed
labels
Apr 10, 2026
The reason will be displayed to describe this comment to others. Learn more.
While we're here, shouldn't we wrap all init_*_parameter features under a init_parameter feature? IIRC this is the preferred approach we had aligned on recently.
@caugner I've pushed the big reorganization. It required creating a new root options_parameter entries to nest the properties under; I copied the data from the fetch and Request() objects respectively. It also renames init to options to follow the MDN naming convention. Good luck reviewing the diff, which is now huge. 🫠
@caugner I've pushed the big reorganization. It required creating a new root options_parameter entries to nest the properties under; I copied the data from the fetch and Request() objects respectively. It also renames init to options to follow the MDN naming convention. Good luck reviewing the diff, which is now huge. 🫠
Let me see if I can implement move detection into the PR Review Companion diff. This would be a super example to test it on.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIlinterIssues or pull requests regarding the tests / linter of the JSON files.size:xl[PR only] >1000 LoC changed
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AFAICT,
fetch()has always supported a requestbody, but only recently acquiredReadableStreambodies. This PR reorganizes the data to make this more obvious.Test results and supporting details
This PR doesn't actually create any new data; it copies or moves it.
api.fetch.init_body_parametercopies the support data fromapi.fetchapi.Request.Request.init_body_parametercopies the support data fromapi.Request.Requestapi.fetch.body_readablestreammoved toapi.fetch.init_body_parameter.readablestreamapi.Request.request_body_readablestreammoved toapi.Request.Request.init_body_parameter.readablestreamWhere required, I changed descriptions and added spec URLs.
Related issues