Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server-handler): forward original request #592

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

juliusmarminge
Copy link
Collaborator

Regression from #514

Copy link

changeset-bot bot commented Jan 31, 2024

🦋 Changeset detected

Latest commit: 7c06ec6

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

This PR includes changesets to release 1 package
Name Type
uploadthing 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

Copy link

vercel bot commented Jan 31, 2024

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 Jan 31, 2024 6:32pm

Copy link
Contributor

A new canary is available for testing. You can install this latest build in your project with:

pnpm add @uploadthing/[email protected]
pnpm add @uploadthing/[email protected]
pnpm add @uploadthing/[email protected]
pnpm add @uploadthing/[email protected]
pnpm add @uploadthing/[email protected]
pnpm add [email protected]

@github-actions github-actions bot removed the release canary Trigger a canary release to npm label Jan 31, 2024
export const buildRequestHandler = <TRouter extends FileRouter>(
export const buildRequestHandler = <
TRouter extends FileRouter,
Args extends MiddlewareFnArgs<any, any, any>,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the generic here for extra typesafety and prevent future regressions when adding new adapters etc. now it must match what the adapter has put in their createUploadthing() generic

@markflorkowski markflorkowski merged commit 9a1c507 into main Jan 31, 2024
10 checks passed
@juliusmarminge juliusmarminge deleted the server-handler-no-request branch February 29, 2024 12:28
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