docs: update all docs to reflect beta API changes#183
docs: update all docs to reflect beta API changes#183abhay-ramesh wants to merge 1 commit intobetafrom
Conversation
Applied across all 45 MDX files (integrations, guides, api reference,
providers, quick-start, etc.):
- s3.* → upload.* (provider-neutral: s3.file, s3.image, s3.createRouter)
- .maxFileSize() → .maxSize()
- .types([]) / .extensions([]) / .formats([]) → .accept()
- onUploadComplete / onUploadStart / onUploadError → onComplete / onStart / onError
- { key, url } in hook callbacks → { storagePath, publicUrl, presignedUrl }
- const { s3 } = build() → const { upload } = build()
- createUploadClient<AppRouter>() → const { upload, useUpload } = createUploadClient<AppRouter>()
- useUploadRoute → useUpload (shown as preferred)
- AppS3Router → AppRouter
- Added upload.video(), upload.audio(), upload.document() presets where relevant
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Updated all 45 MDX documentation files to match the new API landing in the beta branch. No old examples remain.
Changes applied everywhere
const { s3 } = build()const { upload } = build()s3.file(),s3.image(),s3.createRouter()upload.file(),upload.image(),upload.createRouter().maxFileSize('10MB').maxSize('10MB').types(['image/jpeg']).accept(['image/jpeg']).extensions(['.pdf']).accept(['.pdf']).formats(['jpeg', 'png']).accept(['image/jpeg', 'image/png']).onUploadComplete(hook).onComplete(hook).onUploadStart(hook).onStart(hook).onUploadError(hook).onError(hook){ file, key, url }in hooks{ file, storagePath, publicUrl, presignedUrl }const upload = createUploadClient(...)const { upload, useUpload } = createUploadClient(...)useUploadRouteuseUpload(preferred),useUploadRoutenoted for compatAppS3RouterAppRouterAlso added mentions of new presets (
upload.video(),upload.audio(),upload.document()) where relevant.Files updated
All 45 docs files: quick-start, manual-setup, all API reference pages, all guides, all 17 integration pages, all 6 provider pages.
🤖 Generated with Claude Code