Closed juliusmarminge closed 5 days ago
Latest commit: e7484abe8f99ca0b11751c733bdac4b817eda001
The changes in this PR will be included in the next version bump.
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
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 18, 2024 1:29pm |
This pull request introduces several updates primarily focused on version management across multiple packages, including uploadthing
, @uploadthing/shared
, and @uploadthing/nuxt
. Key changes include dependency version increments and enhancements to module options, particularly for the Nuxt module. Additionally, a new utility function is added to improve configuration handling, and several methods in the UTApi
class are modified for better input validation and error handling.
File Path | Change Summary |
---|---|
.changeset/healthy-experts-exist.md | Patched uploadthing and @uploadthing/shared packages; updated internal effect version. |
.changeset/six-dodos-brush.md | Patched @uploadthing/nuxt to respect module options correctly. |
examples/backend-adapters/server/package.json | Updated dependencies: @effect/platform , @effect/platform-node , effect ; added @sinclair/typebox . |
package.json | Updated dependency @effect/vitest version. |
packages/nuxt/src/module.ts | Enhanced ModuleOptions type; added new properties for configuration. |
packages/nuxt/src/runtime/server/api/uploadthing.ts | Introduced emptyStringToUndefined utility function; improved type safety and configuration handling. |
packages/shared/package.json | Updated dependency effect version; corrected type definition path. |
packages/uploadthing/package.json | Updated dependencies: @effect/platform , effect . |
packages/uploadthing/src/sdk/index.ts | Modified methods in UTApi class for improved input handling and error management. |
playground-v6/package.json | Updated dependency effect version. |
playground/package.json | Updated dependency effect version. |
Objective | Addressed | Explanation |
---|---|---|
Ensure correct handling of environment variables (1047) | ❌ | The changes do not address the documentation discrepancy regarding environment variable prefixes. |
uploadthing
package, directly related to this PR.@uploadthing/react
, relevant to this PR.UTApi
class in the uploadthing
SDK, related to changes in this PR.uploadthing
package for API changes, aligns with this PR's focus.uploadthing
package and dependencies, directly related to this PR.@uploadthing/mime-types
, relevant to this PR.callbackUrl
in UploadThing configuration, relevant to this PR.uploadthing
, directly related to this PR.📚 documentation
🐇 In the garden where code does bloom,
New versions sprout, dispelling gloom.
With options added, the Nuxt shines bright,
Uploads now dance in the soft moonlight.
A hop, a skip, through changes we prance,
In the world of code, we take our chance! 🌼
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?
- [@example/minimal-appdir](https://pkg.pr.new/template/9f3479d9-3d19-475e-abac-1fffd89e3e36) - [@example/minimal-astro-react](https://pkg.pr.new/template/b746f050-55b8-4995-9584-93cadac177d2) - [@example/minimal-expo](https://pkg.pr.new/template/d6016159-68e5-489c-ad73-c685141ef53c) - [@example/minimal-nuxt](https://pkg.pr.new/template/c37cdb13-14b7-4f38-bd06-1881ba05a9e7) - [@example/minimal-pagedir](https://pkg.pr.new/template/d8bbce4d-ec06-4609-8f48-75e564aa6e0c) - [@example/minimal-solidstart](https://pkg.pr.new/template/f6d331f0-6671-4e1e-a324-41d1faf99a57) - [@example/minimal-sveltekit](https://pkg.pr.new/template/ff30fa37-22e8-4bb9-922e-cb5727cd3768) - [@example/minimal-tanstack-start](https://pkg.pr.new/template/751b3444-88f0-4cbd-818b-837365a79fa8)
pnpm add https://pkg.pr.new/pingdotgg/uploadthing/@uploadthing/nuxt@1056
pnpm add https://pkg.pr.new/pingdotgg/uploadthing/@uploadthing/shared@1056
pnpm add https://pkg.pr.new/pingdotgg/uploadthing@1056
commit: e7484ab
Bundle | Size (gzip) | Visualization |
---|---|---|
Main | 27.51KB | See Treemap 📊 |
PR (cd82c7a854c2e0141e7f7ab0a579e15110ab1dcc) | 27.59KB | See Treemap 📊 |
Diff | ↑87.00B |
Closes #1047
Incorporates https://github.com/Effect-TS/effect/pull/3833 + manual destruction of module options to work with static analysis
Summary by CodeRabbit
New Features
undefined
.Bug Fixes
@uploadthing/nuxt
module where specified options were not being honored.Dependency Updates
effect
and@effect/platform
.Documentation