Closed juliusmarminge closed 2 weeks ago
Latest commit: 80eaae5c32e4ef2616f24669d94378b9298afe9f
The changes in this PR will be included in the next version bump.
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
docs-uploadthing | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 5, 2024 7:32pm |
- [@example/minimal-appdir](https://pkg.pr.new/template/ea28487c-f404-408b-8354-5b6d625117f3) - [@example/minimal-expo](https://pkg.pr.new/template/c2068ba4-1b8c-48e6-a368-7467c8cb316f) - [@example/minimal-astro-react](https://pkg.pr.new/template/94962f75-afa7-4d7f-be43-21bbf57a8e9a) - [@example/minimal-nuxt](https://pkg.pr.new/template/5c1e4d81-7633-42f5-8971-156f1b68a11d) - [@example/minimal-pagedir](https://pkg.pr.new/template/c6be30b5-8285-4b76-bfff-ed2d7303b05a) - [@example/minimal-solidstart](https://pkg.pr.new/template/482c242c-87b0-4e7d-8f3e-ad2298e81eb9) - [@example/minimal-sveltekit](https://pkg.pr.new/template/28307ea9-f3a6-46dc-ac75-8cc9d1975712) - [@example/minimal-tanstack-start](https://pkg.pr.new/template/eeec98f0-59f5-402d-8f48-6590d7da02b0)
pnpm add https://pkg.pr.new/pingdotgg/uploadthing/@uploadthing/mime-types@1013
pnpm add https://pkg.pr.new/pingdotgg/uploadthing@1013
commit: 80eaae5
Bundle | Size (gzip) | Visualization |
---|---|---|
Main | 27.50KB | See Treemap 📊 |
PR (a15c7533e22366a8a51dd059931d17f5e0552295) | 27.51KB | See Treemap 📊 |
Diff | ↑8.00B |
[!CAUTION]
Review failed
The pull request is closed.
This pull request introduces several changes to enhance the functionality and compatibility of the @uploadthing/mime-types
package and the upload functionality. Key modifications include a patch to support legacy module resolution in Expo, an update to the file slicing mechanism for uploads, and improvements to the documentation regarding resumable uploads in React Native. Additionally, the package.json
and turbo.json
files for the MIME types package have been restructured to improve modularity and output specifications.
File Path | Change Summary |
---|---|
.changeset/grumpy-spies-hunt.md | Added patch for @uploadthing/mime-types for legacy module resolution support in Expo. |
.changeset/sixty-monkeys-smell.md | Introduced patch for file slicing in upload functionality to optimize upload efficiency. |
docs/src/app/(docs)/api-reference/client/page.mdx | Updated documentation for createUpload to include a warning about resumable uploads in React Native. |
packages/mime-types/package.json | Updated exports field and files array to reflect new paths for MIME types, enhancing modularity. |
packages/mime-types/turbo.json | Modified outputs property in build task to include multiple directories for build outputs. |
packages/uploadthing/src/internal/upload.browser.ts | Updated uploadWithProgress to conditionally slice files based on rangeStart parameter. |
examples/backend-adapters/client-vanilla/src/uploadthing.ts | Changed BASE_URL from "http://localhost:3003" to "http://localhost:3000" for API requests. |
Objective | Addressed | Explanation |
---|---|---|
Support legacy module resolution for Expo (#999) | ✅ | |
Fix file upload issues related to MIME types (#999) | ✅ |
@uploadthing/mime-types
, focusing on enhancing compatibility with Expo, which aligns with the main PR's objective of improving legacy module resolution support for Expo.@uploadthing/expo
package, which is related to the main PR's focus on ensuring compatibility with Expo environments.withUt
function, which may indirectly relate to the main PR's focus on ensuring proper functionality across different environments, including Expo.🐇 In the meadow where uploads play,
A patch was made to save the day.
Files now slice with care and grace,
In Expo's arms, they'll find their place.
With docs that guide through every twist,
Our uploads dance, they can't be missed! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
A new canary is available for testing. You can install this latest build in your project with:
pnpm add @uploadthing/expo@7.0.4-canary.8bc74c6
pnpm add @uploadthing/mime-types@0.3.1-canary.8bc74c6
pnpm add @uploadthing/nuxt@7.0.4-canary.8bc74c6
pnpm add @uploadthing/react@7.0.4-canary.8bc74c6
pnpm add @uploadthing/shared@7.0.4-canary.8bc74c6
pnpm add @uploadthing/solid@7.0.4-canary.8bc74c6
pnpm add @uploadthing/svelte@7.0.4-canary.8bc74c6
pnpm add uploadthing@7.1.1-canary.8bc74c6
pnpm add @uploadthing/vue@7.0.4-canary.8bc74c6
Working great and fix the issue that make Expo crash thank you
Would love to get this merged :)
A new canary is available for testing. You can install this latest build in your project with:
pnpm add @uploadthing/expo@7.1.1-canary.1d74d85
pnpm add @uploadthing/mime-types@0.3.2-canary.1d74d85
pnpm add @uploadthing/nuxt@7.1.1-canary.1d74d85
pnpm add @uploadthing/react@7.1.1-canary.1d74d85
pnpm add @uploadthing/shared@7.1.1-canary.1d74d85
pnpm add @uploadthing/solid@7.1.1-canary.1d74d85
pnpm add @uploadthing/svelte@7.1.1-canary.1d74d85
pnpm add uploadthing@7.2.1-canary.1d74d85
pnpm add @uploadthing/vue@7.1.1-canary.1d74d85
Closes https://github.com/pingdotgg/uploadthing/issues/999
uploadthing
package which has multiple entrypoints as wellfile.slice()
logic cause RN blobs suckSummary by CodeRabbit
New Features
@uploadthing/mime-types
package with legacy module resolutions in Expo.Documentation
createUpload
function to include a warning about the limitations of resumable uploads in React Native.Chores
@uploadthing/mime-types
package to improve modularity and organization of MIME type exports.BASE_URL
in the upload client to ensure correct API endpoint usage.