Skip to content

Commit

Permalink
Chrome/Deno/Node/Safari started rejecting `ReadableStream*Reader.rele…
Browse files Browse the repository at this point in the history
…aseLock()` with pending read requests (#25516)

Updates the compatibility data for `reject_pending_read_request` in both 
`ReadableStreamDefaultReader` and `ReadableStreamBYOBReader`. 
See whatwg/streams#1168 for context. 
All major browsers now implement the new behavior.

Co-authored-by: Claas Augner <[email protected]>
  • Loading branch information
MattiasBuelens and caugner authored Jan 8, 2025
1 parent e6044d5 commit 4e8742a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
11 changes: 6 additions & 5 deletions api/ReadableStreamBYOBReader.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,14 +303,15 @@
},
"reject_pending_read_request": {
"__compat": {
"description": "`releaseLock()` rejects pending read requests",
"support": {
"chrome": {
"version_added": false,
"notes": "`releaseLock()` throws if there are pending read requests (rather than pending read requests being rejected)."
"version_added": "105",
"notes": "Before version 105, `releaseLock()` throws instead of rejecting."
},
"chrome_android": "mirror",
"deno": {
"version_added": false
"version_added": "1.18"
},
"edge": "mirror",
"firefox": {
Expand All @@ -321,7 +322,7 @@
"version_added": false
},
"nodejs": {
"version_added": false
"version_added": "18.9.0"
},
"oculus": "mirror",
"opera": "mirror",
Expand All @@ -335,7 +336,7 @@
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
Expand Down
13 changes: 7 additions & 6 deletions api/ReadableStreamDefaultReader.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,15 @@
},
"reject_pending_read_request": {
"__compat": {
"description": "`releaseLock()` rejects pending read requests",
"support": {
"chrome": {
"version_added": false,
"notes": "`releaseLock()` throws if there are pending read requests (rather than pending read requests being rejected)."
"version_added": "105",
"notes": "Before version 105, `releaseLock()` throws instead of rejecting."
},
"chrome_android": "mirror",
"deno": {
"version_added": false
"version_added": "1.18"
},
"edge": "mirror",
"firefox": {
Expand All @@ -280,21 +281,21 @@
"version_added": false
},
"nodejs": {
"version_added": false
"version_added": "18.9.0"
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
"version_added": "17"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
Expand Down
7 changes: 7 additions & 0 deletions browsers/nodejs.json
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,13 @@
"engine": "V8",
"engine_version": "10.1"
},
"18.9.0": {
"release_date": "2022-09-08",
"release_notes": "https://nodejs.org/en/blog/release/v18.9.0/",
"status": "retired",
"engine": "V8",
"engine_version": "10.1"
},
"18.13.0": {
"release_date": "2023-01-06",
"release_notes": "https://nodejs.org/en/blog/release/v18.13.0/",
Expand Down

0 comments on commit 4e8742a

Please sign in to comment.