Skip to content
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

Update upload methods to allow duplex option to be passed in #147

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

rexmondo
Copy link
Contributor

@rexmondo rexmondo commented Feb 1, 2023

Undici >v5.12.0 requires this.

What kind of change does this PR introduce?

bug fix

What is the current behavior?

#146

What is the new behavior?

Allows the following to go through to the request

await supabase.storage.from('some-bucket').upload('filename', someReadableStream, { duplex: 'half' })

@fenos
Copy link
Contributor

fenos commented Feb 7, 2023

Thanks a lot for this PR!
Would you be able to write a small test please

@rexmondo
Copy link
Contributor Author

Happy to add tests. I've cloned and tried to run the current tests and most of them are timing out currently, however. Is there any trick to getting them to pass? Possibly something weird in my environment?

@fenos
Copy link
Contributor

fenos commented Mar 31, 2023

@rexmondo Sorry for the late reply - I will take over the PR and add the tests it 🙏
Thanks a lot for your contribution

@fenos fenos merged commit d937be4 into supabase:main Mar 31, 2023
@junedkhatri31
Copy link
Contributor

junedkhatri31 commented Apr 3, 2023

@fenos Stepped into same issue. Any idea when will this PR changes will be available in npm release? Or is there any other way to take these changes into my repository?

@kiwicopple
Copy link
Member

🎉 This PR is included in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants