Skip to content

Commit

Permalink
Add Response.json() static method to Fetch (#1091)
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Jägenstedt <[email protected]>
  • Loading branch information
ddbeck and foolip authored Jul 8, 2024
1 parent 42a241b commit 0b13fa3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
5 changes: 4 additions & 1 deletion features/fetch.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Fetch (initial support)
name: Fetch
description: The `fetch()` method makes asynchronous HTTP requests.
spec: https://fetch.spec.whatwg.org/
caniuse: fetch
status:
compute_from: api.fetch
compat_features:
- api.Headers
- api.Headers.Headers
Expand Down Expand Up @@ -31,6 +33,7 @@ compat_features:
- api.Response.clone
- api.Response.headers
- api.Response.json
- api.Response.json_static
- api.Response.ok
- api.Response.status
- api.Response.statusText
Expand Down
24 changes: 24 additions & 0 deletions features/fetch.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ status:
safari: "10.1"
safari_ios: "10.3"
compat_features:
# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2017-03-27
# baseline_high_date: 2019-09-27
# support:
# chrome: "42"
# chrome_android: "42"
# edge: "14"
# firefox: "39"
# firefox_android: "39"
# safari: "10.1"
# safari_ios: "10.3"
- api.Headers
- api.Headers.Headers
- api.Headers.append
Expand Down Expand Up @@ -49,3 +61,15 @@ compat_features:
- api.Response.type
- api.Response.url
- api.fetch

# baseline: low
# baseline_low_date: 2023-09-18
# support:
# chrome: "105"
# chrome_android: "105"
# edge: "105"
# firefox: "115"
# firefox_android: "115"
# safari: "17"
# safari_ios: "17"
- api.Response.json_static

0 comments on commit 0b13fa3

Please sign in to comment.