Minor Changes
-
#1008
3acc199
Thanks @juliusmarminge! - feat: add support to specify route endpoint that supports "Go to Definition"All places that accept the
endpoint
argument now additionally accept a function that gets a route registry as input and returns the endpoint to use. This allows for "Go to Definition" to go to the backend route definition directly from the component.Examples
// uploadthing/client#uploadFiles uploadFiles( (routeRegistry) => routeRegistry.videoAndImage, { ... } ) // uploadthing/react#useUploadThing useUploadThing( (routeRegistry) => routeRegistry.videoAndImage, { ... } ) // uploadthing/react#UploadButton <UploadButton endpoint={(routeRegistry) => routeRegistry.videoAndImage} { ... } />
Patch Changes
-
01b1363
Thanks @juliusmarminge! - chore: bump internal effect dependencies (#1005, #1009) -
#1029
176b2e9
Thanks @juliusmarminge! - chore: update svelte peer dep range -
f73f393
Thanks @juliusmarminge! - chore: allow svelte v5 peer dep (#1006) -
Updated dependencies [
01b1363
,72ac250
,3acc199
]:- @uploadthing/shared@7.1.0