Closed juliusmarminge closed 4 days ago
Latest commit: 00c1d8167c12dba8e5566c1311838d534961adbd
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The changes involve extensive updates to the documentation for the UTApi
TypeScript SDK and various backend adapters. Key modifications include enhancements to the UTApi
constructor, clarifications on configuration options, and the introduction of a maxFileCount
property across multiple documentation files. These updates aim to improve the clarity and usability of the documentation for developers integrating UploadThing into their applications.
File Path | Change Summary |
---|---|
docs/src/app/(docs)/api-reference/ut-api/page.mdx |
Updated UTApi constructor to accept options; clarified configuration process; expanded properties section with detailed descriptions; documented methods and deprecations. |
docs/src/app/(docs)/backend-adapters/express/page.mdx |
Updated maxFileCount from 4 to 1; added comments for FileRoutes configuration; clarified input validation options. |
docs/src/app/(docs)/backend-adapters/fastify/page.mdx |
Updated maxFileCount from 4 to 1; added comments for FileRoutes configuration; highlighted input validation and middleware options. |
docs/src/app/(docs)/backend-adapters/fetch/page.mdx |
Updated maxFileCount from 4 to 1; added comments for FileRoutes configuration; expanded section on Cloudflare Workers compatibility. |
docs/src/app/(docs)/backend-adapters/h3/page.mdx |
Updated maxFileCount from 4 to 1; added comments for FileRoutes configuration; emphasized unique route slugs and options reference. |
docs/src/app/(docs)/getting-started/appdir/page.mdx |
Added maxFileCount to imageUploader ; emphasized onUploadComplete callback; expanded setup instructions and SSR guidance. |
docs/src/app/(docs)/getting-started/astro/page.mdx |
Added maxFileCount to imageUploader ; emphasized client-side validation; refined documentation structure. |
docs/src/app/(docs)/getting-started/expo/page.mdx |
Added maxFileCount to imageUploader ; updated route slug; clarified FileRoute options. |
docs/src/app/(docs)/getting-started/nuxt/page.mdx |
Introduced maxFileCount for imageUploader ; emphasized exporting the router; clarified input validation and middleware sections. |
docs/src/app/(docs)/getting-started/pagedir/page.mdx |
Added maxFileCount and input validation to imageUploader ; emphasized middleware function and upload completion callback. |
docs/src/app/(docs)/getting-started/remix/page.mdx |
Added maxFileCount to imageUploader ; emphasized optional input validation; updated code snippets for clarity. |
docs/src/app/(docs)/getting-started/solid/page.mdx |
Added maxFileCount to imageUploader ; emphasized input validation and middleware; refined documentation structure. |
docs/src/app/(docs)/getting-started/svelte/page.mdx |
Added maxFileCount to imageUploader ; emphasized onUploadComplete callback and middleware; enhanced clarity in setup instructions. |
docs/src/app/(docs)/getting-started/tanstack-start/page.mdx |
Added maxFileCount to imageUploader ; included optional input validation; improved formatting and organization of content. |
UTApi
TypeScript SDK documentation regarding the constructor and configuration options.onUploadComplete
callback, enhancing SDK functionality.onUploadComplete
and onUploadError
callbacks to include request context, relevant to SDK documentation updates.FileRoute
type, complementing SDK documentation improvements.examples
🐰 In the meadow, where the code does play,
New options sprout, brightening the way.
WithmaxFileCount
now set to one,
Documentation shines, oh what fun!
Hop along, dear devs, to explore and delight,
With clearer paths, your projects 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?
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 20, 2024 3:32pm |
Bundle | Size (gzip) | Visualization |
---|---|---|
Main | 27.59KB | See Treemap 📊 |
PR (828493c4105ad0385edb73c4b93349928dc523d5) | 27.59KB | See Treemap 📊 |
Diff | No change |
- [@example/minimal-appdir](https://pkg.pr.new/template/4bdc1867-b117-4dc9-b74b-e6c37af05305) - [@example/minimal-astro-react](https://pkg.pr.new/template/ea5c1792-fe04-4801-8e09-8864d3d39051) - [@example/minimal-expo](https://pkg.pr.new/template/a3345495-3277-4b68-a506-98eb3f088fe7) - [@example/minimal-nuxt](https://pkg.pr.new/template/1ea33680-16e3-495f-9166-0506c5ff3aa9) - [@example/minimal-pagedir](https://pkg.pr.new/template/a134041a-d360-4017-9dd7-f9bb0f7efefd) - [@example/minimal-solidstart](https://pkg.pr.new/template/edf081ee-73cf-4fc1-89b5-937f0c8417ae) - [@example/minimal-tanstack-start](https://pkg.pr.new/template/59236a44-8fd4-400a-8eb3-f95a7ab26205) - [@example/minimal-sveltekit](https://pkg.pr.new/template/a8591634-c46b-4dc3-bd03-2f10e648ec4c)
pnpm add https://pkg.pr.new/pingdotgg/uploadthing@1060
commit: 00c1d81
Since we've concluded people don't read the docs and just copy-paste the snippets (the link to the API referncce is literally the last word before the code block), including it in the actual code seems like a good shout to perhaps increase the chance they'll click it when they wanna make some changes - who knows...
Summary by CodeRabbit
Release Notes
UTApi
TypeScript SDK, including constructor options and detailed property descriptions.maxFileCount
limit of 1 for file uploads and optional input validation.onUploadComplete
callback and middleware options.