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
I think Mozilla and Apple are in no rush to implement this method. We may have this lack for a while.
I propose to add Node and Deno in the list of vendors.
Why is my fancy API still not available here?
A feature needs to be supported by two or more major browser engines or JavaScript runtime to be included here, to make sure there is a good consensus among vendors: Gecko (Firefox), Blink (Chrome/Edge), WebKit (Safari), Node and Deno.
I don't think this is the way to go since it's useless for browser purpose when only Blink/Node/Deno implements things and other browser engines do not.
Instead, I suggested #1402 for non-browser implementations so that we can have a set of lib for browsers and another lib for general JavaScript environments.
The addition of the
static Response.json(data, init)
method was refused because it isn't implemented by two major vendors. It's implemented in Blink, but not in Gecko and WebKit.It's already implemented in Node and Deno because it's mostly useful on the backend:
Create easily a server response with JSON (cf. Deno v1.22):
Mock easily the response of a request:
I think Mozilla and Apple are in no rush to implement this method. We may have this lack for a while.
I propose to add Node and Deno in the list of vendors.
The text was updated successfully, but these errors were encountered: