Closed juliusmarminge closed 5 days ago
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 19, 2024 8:51am |
Latest commit: aaf79efef103b1f7089f2942609205d79d64f67a
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 changes introduce improvements to error handling in the utapi.uploadFilesFromUrl
function, allowing it to manage download errors more effectively during file uploads. The UTApi
class in packages/uploadthing/src/sdk/index.ts
has been updated for enhanced clarity and robustness in error reporting. The restructuring of functions in packages/uploadthing/src/sdk/utils.ts
includes the introduction of new methods for downloading files and generating presigned URLs, while the test suite in packages/uploadthing/test/sdk.test.ts
has been enhanced to ensure proper handling of download errors.
File Path | Change Summary |
---|---|
.changeset/modern-numbers-cough.md | Updated utapi.uploadFilesFromUrl to include error handling for download errors. |
packages/uploadthing/src/sdk/index.ts | Modified UTApi class; refactored uploadFiles and uploadFilesFromUrl methods for better error handling and clarity. Updated import statements and method signatures. |
packages/uploadthing/src/sdk/utils.ts | Removed uploadFilesInternal and downloadFiles functions; added downloadFile and generatePresignedUrl functions with improved error handling. |
packages/uploadthing/test/sdk.test.ts | Enhanced test suite for uploadFiles and uploadFilesFromUrl methods; added tests for handling download errors. |
uploadFiles
and uploadFilesFromUrl
methods, directly related to the changes made in the main PR that enhances error handling in uploadFilesFromUrl
.getTypeFromFileName
function, which deals with file uploads and may interact with the error handling improvements made in the main PR.callbackUrl
parameter in uploads, relevant to the overall upload functionality improved in the main PR.examples
🐇 In the meadow, files do play,
With URLs that lead the way.
Errors caught, no need to fret,
Uploads now, a safe duet!
A hop, a skip, all's well in sight,
Thanks to code, our files take flight! ✨
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?
- [@example/minimal-appdir](https://pkg.pr.new/template/b6986951-679c-4737-abcf-560b997457bb) - [@example/minimal-astro-react](https://pkg.pr.new/template/08a9a1c1-322e-4984-9b51-7fda003197b7) - [@example/minimal-nuxt](https://pkg.pr.new/template/f78a38e9-bbbb-4660-8c7a-49328bdf5f46) - [@example/minimal-expo](https://pkg.pr.new/template/596b2c80-d476-4aca-abff-436b5fbcba64) - [@example/minimal-pagedir](https://pkg.pr.new/template/347b411a-5827-4a7a-838d-117368f64f7d) - [@example/minimal-solidstart](https://pkg.pr.new/template/3cc2d867-a059-482b-b679-e83532e03914) - [@example/minimal-sveltekit](https://pkg.pr.new/template/ff914c71-aa0b-4a39-9404-5e71b86ebeac) - [@example/minimal-tanstack-start](https://pkg.pr.new/template/48a64757-1072-4b5e-a116-ae637e3047da)
pnpm add https://pkg.pr.new/pingdotgg/uploadthing@1058
commit: aaf79ef
Bundle | Size (gzip) | Visualization |
---|---|---|
Main | 27.59KB | No treemap on forks |
PR (110f4c68582e63d9e6d465fb66a39a3afa05c959) | 27.59KB | No treemap on forks |
Diff | No change |
ref: https://discord.com/channels/966627436387266600/1307658378968961138
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Tests