pingdotgg / uploadthing

File uploads for modern web devs
https://uploadthing.com
MIT License
3.87k stars 282 forks source link

refactor: make @uploadthing/shared tree-shakeable #758

Closed ertucode closed 4 months ago

ertucode commented 4 months ago

POC stackblitz: https://stackblitz.com/edit/vitejs-vite-ogve7t?file=build.js

This is a breaking change in the internal package "mime-types", and from what I know it has to be a breaking change. I could not figure out a way to do it without it. In my pr getExtensions() and getTypes() are exported instead of extensions and types.

fixes #726

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: fd8a2083f8856612c56492d37630a8cd440f52a2

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

This PR includes changesets to release 2 packages | Name | Type | | ----------------------- | ----- | | @uploadthing/mime-types | Patch | | 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

vercel[bot] commented 4 months 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 Apr 12, 2024 9:44am