Skip to content

Exclude NodeJS.ReadableStream from compat overloads #5743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 18, 2021

Conversation

hsubox76
Copy link
Contributor

Add NodeJS.ReadableStream to excluded builtin types in the compat overloads script. Maybe there's a more robust way to address this, or can look into it later.

Also fix some type errors in storage.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 18, 2021

Binary Size Report

Affected SDKs

No changes between base commit (ce39a1a) and head commit (69b94ce).

Test Logs

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 18, 2021

@@ -236,7 +236,7 @@ export function getStreamInternal(

ref.storage
.makeRequestWithTokens(requestInfo, newStreamConnection)
.then(stream => stream.pipe(result))
.then(stream => (stream as NodeJS.ReadableStream).pipe(result))
Copy link
Member

Choose a reason for hiding this comment

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

Changes in this file seem unrelated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is "also fix some type errors in storage", storage was spitting out some errors on build that I was concerned about.

Copy link
Member

@Feiyang1 Feiyang1 left a comment

Choose a reason for hiding this comment

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

LGTM. Please fix CI errors.

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2021

🦋 Changeset detected

Latest commit: 771a652

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

This PR includes changesets to release 3 packages
Name Type
@firebase/storage Patch
@firebase/storage-compat Patch
firebase 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

@hsubox76 hsubox76 requested a review from egilmorez as a code owner November 18, 2021 19:12
@Feiyang1 Feiyang1 merged commit 0394cc9 into master Nov 18, 2021
@Feiyang1 Feiyang1 deleted the ch-fix-storage-types branch November 18, 2021 20:09
@google-oss-bot google-oss-bot mentioned this pull request Nov 18, 2021
@firebase firebase locked and limited conversation to collaborators Dec 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants