Skip to content

Commit 0b13fa3

Browse files
ddbeckfoolip
andauthored
Add Response.json() static method to Fetch (#1091)
Co-authored-by: Philip Jägenstedt <[email protected]>
1 parent 42a241b commit 0b13fa3

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

features/fetch.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
name: Fetch (initial support)
1+
name: Fetch
22
description: The `fetch()` method makes asynchronous HTTP requests.
33
spec: https://fetch.spec.whatwg.org/
44
caniuse: fetch
5+
status:
6+
compute_from: api.fetch
57
compat_features:
68
- api.Headers
79
- api.Headers.Headers
@@ -31,6 +33,7 @@ compat_features:
3133
- api.Response.clone
3234
- api.Response.headers
3335
- api.Response.json
36+
- api.Response.json_static
3437
- api.Response.ok
3538
- api.Response.status
3639
- api.Response.statusText

features/fetch.yml.dist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ status:
1414
safari: "10.1"
1515
safari_ios: "10.3"
1616
compat_features:
17+
# ⬇️ Same status as overall feature ⬇️
18+
# baseline: high
19+
# baseline_low_date: 2017-03-27
20+
# baseline_high_date: 2019-09-27
21+
# support:
22+
# chrome: "42"
23+
# chrome_android: "42"
24+
# edge: "14"
25+
# firefox: "39"
26+
# firefox_android: "39"
27+
# safari: "10.1"
28+
# safari_ios: "10.3"
1729
- api.Headers
1830
- api.Headers.Headers
1931
- api.Headers.append
@@ -49,3 +61,15 @@ compat_features:
4961
- api.Response.type
5062
- api.Response.url
5163
- api.fetch
64+
65+
# baseline: low
66+
# baseline_low_date: 2023-09-18
67+
# support:
68+
# chrome: "105"
69+
# chrome_android: "105"
70+
# edge: "105"
71+
# firefox: "115"
72+
# firefox_android: "115"
73+
# safari: "17"
74+
# safari_ios: "17"
75+
- api.Response.json_static

0 commit comments

Comments
 (0)