Skip to content

Comments

fix(blob): allow client uploads in web workers#817

Merged
vvo merged 12 commits intomainfrom
fix/web-workers-usage
Jan 17, 2025
Merged

fix(blob): allow client uploads in web workers#817
vvo merged 12 commits intomainfrom
fix/web-workers-usage

Conversation

@vvo
Copy link
Member

@vvo vvo commented Jan 13, 2025

Before this commit, we had guards so client uploads could only be used in
browser environments, this prevented customers to use Vercel Blob in Web
Workers, sometimes React Native or in general anywhere window is not really what
we think it is.

@vercel
Copy link
Contributor

vercel bot commented Jan 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
vercel-storage-next-integration-test-suite ✅ Ready (Inspect) Visit Preview Jan 17, 2025 3:04pm

@changeset-bot
Copy link

changeset-bot bot commented Jan 13, 2025

🦋 Changeset detected

Latest commit: a9bca22

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

This PR includes changesets to release 2 packages
Name Type
@vercel/blob Patch
vercel-storage-integration-test-suite 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

Before this commit, we had guards so client uploads could only be used in
browser environments, this prevented customers to use Vercel Blob in Web
Workers, sometimes React Native or in general anywhere window is not really what
we think it is.
@vvo vvo force-pushed the fix/web-workers-usage branch from 0372ed9 to b6ad473 Compare January 17, 2025 12:55
@vvo vvo marked this pull request as ready for review January 17, 2025 12:56
@vvo vvo changed the title fix(blob): allow web workers usage fix(blob): allow client uploads in web workers Jan 17, 2025
@vvo vvo requested a review from luismeyer January 17, 2025 12:57
@vvo vvo merged commit 0c98feb into main Jan 17, 2025
12 checks passed
@vvo vvo deleted the fix/web-workers-usage branch January 17, 2025 15:14
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.

2 participants