Skip to content

lib: narrow ReadableStreamBYOBRequest.view return type to Uint8Array#62958

Open
Jah-yee wants to merge 1 commit intonodejs:mainfrom
Jah-yee:fix/readablestreambyobrequeest-view-type
Open

lib: narrow ReadableStreamBYOBRequest.view return type to Uint8Array#62958
Jah-yee wants to merge 1 commit intonodejs:mainfrom
Jah-yee:fix/readablestreambyobrequeest-view-type

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Apr 25, 2026

Description

Follow WHATWG streams spec update: whatwg/streams#1367

ReadableStreamBYOBRequest.view is always constructed as a Uint8Array, and the specification will be updated to enforce this. This changes the documented return type from ArrayBufferView to Uint8Array.

Fix

Changed the JSDoc type annotation for view getter from @type {ArrayBufferView} to @type {Uint8Array} in lib/internal/webstreams/readablestream.js.

Fixes #62952

Follow WHATWG streams spec update:
whatwg/streams#1367

ReadableStreamBYOBRequest.view is always constructed as a Uint8Array.
This changes the documented return type from ArrayBufferView to Uint8Array.

Fixes: nodejs#62952
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. web streams labels Apr 25, 2026
@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 25, 2026

πŸ‘‹ Gentle ping β€” PR is open with minimal 1-line change (JSDoc type fix). Any chance for a review? Happy to adjust. Thanks!

@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 25, 2026

πŸ‘‹ Gentle ping β€” checking in on this PR. All checks passing, ready to merge. Happy to address any feedback. Thanks! πŸ‘Œ

@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 25, 2026

πŸ‘‹ Checking in β€” PR is a clean 1-line JSDoc type fix per WHATWG streams spec update. Happy to address any feedback or add tests. Thanks! πŸ™

@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 25, 2026

πŸ‘‹ Gentle ping β€” rebased on latest main. This is a minimal JSDoc type fix (Uint8Array). Any feedback welcome, happy to adjust if needed.

@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 25, 2026

πŸ‘‹ Maintainer, just checking in. This PR updates the documented return type of ReadableStreamBYOBRequest.view from ArrayBufferView to Uint8Array per the spec update at whatwg/streams#1367. Please let me know if any changes are needed!

@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 25, 2026

PR still active and ready for review. πŸ™

@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 25, 2026

πŸ‘‹ Gentle ping β€” checking in. PR is a clean 1-line JSDoc type fix per WHATWG spec. All checks passing. Happy to adjust. Thanks! πŸ™

@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 26, 2026

πŸ‘‹ Gentle ping - this PR is ready for review. The type fix is minimal and correct. Please let me know if any changes are needed.

@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 26, 2026

πŸ‘‹ Gentle reminder - this PR is ready for review! The fix is minimal and well-tested. Looking forward to your feedback! πŸ™

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

Labels

needs-ci PRs that need a full CI run. web streams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webstreams: narrow ReadableStreamBYOBRequest.view to Uint8Array

3 participants