Skip to content

Always create a ReadableStream for pushing data into decoder#380

Open
mrxz wants to merge 1 commit into
sparkjsdev:mainfrom
mrxz:readable-stream-decoding
Open

Always create a ReadableStream for pushing data into decoder#380
mrxz wants to merge 1 commit into
sparkjsdev:mainfrom
mrxz:readable-stream-decoding

Conversation

@mrxz

@mrxz mrxz commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

In the worker the decodeBytesUrl might be tasked with loading from fileBytes, url or chunked. This PR changes the three different options to all create a ReadableStream allowing them to be treated the same afterwards.

The benefit is that this ensures all three behave comparably, as they now all output progress status events, which the fileBytes path didn't before. Additionally it becomes possible to add a TransformStream in between regardless of where the data is coming from.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant