Skip to content

Remove all ReadableStream Imports#487

Merged
toubatbrian merged 3 commits intomainfrom
brian/rm-readable-stream-import
Jun 4, 2025
Merged

Remove all ReadableStream Imports#487
toubatbrian merged 3 commits intomainfrom
brian/rm-readable-stream-import

Conversation

@toubatbrian
Copy link
Copy Markdown
Contributor

Upgrade @type/node and remove ReadableStream in favor of global ReadableStream

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 4, 2025

🦋 Changeset detected

Latest commit: 204e603

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@livekit/rtc-node Patch
@livekit/rtc-node-darwin-arm64 Patch
@livekit/rtc-node-darwin-x64 Patch
@livekit/rtc-node-linux-arm64-gnu Patch
@livekit/rtc-node-linux-x64-gnu Patch
@livekit/rtc-node-win32-x64-msvc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

const fileStats = await stat(path);
const file = await open(path);
try {
const stream: ReadableStream<Uint8Array> = file.readableWebStream({ type: 'bytes' });
Copy link
Copy Markdown
Contributor Author

@toubatbrian toubatbrian Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the payload since file.readableWebStream drops the argument since node.js v22
Screenshot 2025-06-04 at 12 14 01 AM

Screenshot 2025-06-04 at 12 15 25 AM

Copy link
Copy Markdown
Contributor

@Shubhrakanti Shubhrakanti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to test the data streams manually if you can. See if there is an example that does this for you.

@toubatbrian toubatbrian merged commit 8d7bce7 into main Jun 4, 2025
17 checks passed
@toubatbrian toubatbrian deleted the brian/rm-readable-stream-import branch June 4, 2025 21:40
@github-actions github-actions Bot mentioned this pull request Jun 4, 2025
@lukasIO
Copy link
Copy Markdown
Contributor

lukasIO commented Jun 4, 2025

@toubatbrian does this change still work in v20?

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.

3 participants