Skip to content

Conversation

@feugy
Copy link
Contributor

@feugy feugy commented Jan 3, 2023

📖 What's in there?

A new method has been added: static Response.json(data, init) to create a response that contains JSON (not to be confused with Response.prototype.json()).

All the details are in #1444

@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

@feugy
Copy link
Contributor Author

feugy commented Jan 3, 2023

@microsoft-github-policy-service agree company="Vercel"

@feugy feugy force-pushed the feat/response-json-static branch from d18f1a8 to f542c4a Compare June 2, 2023 09:49
@feugy
Copy link
Contributor Author

feugy commented Jun 2, 2023

@HolgerJeromin, I've re-based this PR since this static method has been implemented on Firefox, and is planned in release 115.

Despite the fact that is it not implemented in the MDN documentation yet, it is fully specified in the fetch spec.

I hope we can now consider adding it to Typescript types.

@saschanaz
Copy link
Contributor

Thanks, I think we can have this now. The wrong URL is IMO tolerable, LGTM

@github-actions github-actions bot merged commit f85d145 into microsoft:main Jun 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 2, 2023

Merging because @saschanaz is a code-owner of all the changes - thanks!

@feugy
Copy link
Contributor Author

feugy commented Jun 5, 2023

Thanks a mil!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants