From 6484646d0b60937be7aa4487cdd2a1d68837f72c Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Sun, 4 Jun 2023 18:56:20 -0700 Subject: [PATCH] =?UTF-8?q?chore(release):=20=F0=9F=93=A6=20=20version=20p?= =?UTF-8?q?ackages=20(#120)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(release): 📦 version packages * chore(release): 📦 sync lockfile --------- Co-authored-by: github-actions[bot] --- .changeset/nervous-cows-admire.md | 5 - .changeset/nine-islands-deliver.md | 6 -- .changeset/rich-deers-cry.md | 5 - .changeset/shaggy-trees-sort.md | 5 - .changeset/wild-keys-help.md | 5 - examples/appdir/package.json | 4 +- examples/pagedir/package.json | 4 +- packages/react/CHANGELOG.md | 146 ++++++++++++++++++++++------- packages/react/package.json | 4 +- packages/uploadthing/CHANGELOG.md | 140 ++++++++++++++++++++++----- packages/uploadthing/package.json | 2 +- pnpm-lock.yaml | 16 ++-- 12 files changed, 242 insertions(+), 100 deletions(-) delete mode 100644 .changeset/nervous-cows-admire.md delete mode 100644 .changeset/nine-islands-deliver.md delete mode 100644 .changeset/rich-deers-cry.md delete mode 100644 .changeset/shaggy-trees-sort.md delete mode 100644 .changeset/wild-keys-help.md diff --git a/.changeset/nervous-cows-admire.md b/.changeset/nervous-cows-admire.md deleted file mode 100644 index 4c4af121f..000000000 --- a/.changeset/nervous-cows-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"uploadthing": minor ---- - -[fix] Make sure clientside onUploadComplete() is called after serverside diff --git a/.changeset/nine-islands-deliver.md b/.changeset/nine-islands-deliver.md deleted file mode 100644 index 5b8c87d25..000000000 --- a/.changeset/nine-islands-deliver.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@uploadthing/react": patch -"uploadthing": patch ---- - -fix: prefetch permissions on server to prevent layout flashes diff --git a/.changeset/rich-deers-cry.md b/.changeset/rich-deers-cry.md deleted file mode 100644 index 5ca21a7a8..000000000 --- a/.changeset/rich-deers-cry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"uploadthing": patch ---- - -[chore] clean up extraneous console logs diff --git a/.changeset/shaggy-trees-sort.md b/.changeset/shaggy-trees-sort.md deleted file mode 100644 index d5c7d6e2d..000000000 --- a/.changeset/shaggy-trees-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"uploadthing": patch ---- - -[feat] Additional file types: PDF and Text diff --git a/.changeset/wild-keys-help.md b/.changeset/wild-keys-help.md deleted file mode 100644 index 19e9f4f5b..000000000 --- a/.changeset/wild-keys-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"uploadthing": minor ---- - -vendor mime-types to make uploadthing edge-compat diff --git a/examples/appdir/package.json b/examples/appdir/package.json index 28fc81e22..02bba5268 100644 --- a/examples/appdir/package.json +++ b/examples/appdir/package.json @@ -12,14 +12,14 @@ }, "dependencies": { "@tanstack/react-query": "^4.28.0", - "@uploadthing/react": "4.0.0", + "@uploadthing/react": "4.1.0", "autoprefixer": "10.4.14", "next": "13.4.4", "postcss": "8.4.22", "react": "18.2.0", "react-dom": "18.2.0", "tailwindcss": "^3.3.2", - "uploadthing": "4.0.0", + "uploadthing": "4.1.0", "zod": "^3.21.4", "zod-validation-error": "^1.1.0" }, diff --git a/examples/pagedir/package.json b/examples/pagedir/package.json index 1363438b5..12150c7a8 100644 --- a/examples/pagedir/package.json +++ b/examples/pagedir/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@tanstack/react-query": "^4.28.0", - "@uploadthing/react": "4.0.0", + "@uploadthing/react": "4.1.0", "autoprefixer": "10.4.14", "next": "13.4.4", "next-auth": "^4.22.1", @@ -20,7 +20,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "tailwindcss": "^3.3.2", - "uploadthing": "4.0.0", + "uploadthing": "4.1.0", "zod": "^3.21.4", "zod-validation-error": "^1.1.0" }, diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 463aaeb15..f80f12e24 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,23 +1,43 @@ # @uploadthing/react +## 4.1.0 + +### Patch Changes + +- [#122](https://github.com/pingdotgg/uploadthing/pull/122) + [`4fde69f`](https://github.com/pingdotgg/uploadthing/commit/4fde69f7c982b42846e7838f73fd5767c1b26d9d) + Thanks [@juliusmarminge](https://github.com/juliusmarminge)! - fix: prefetch + permissions on server to prevent layout flashes + ## 4.0.0 ### Major Changes -- [#94](https://github.com/pingdotgg/uploadthing/pull/94) [`91fb166`](https://github.com/pingdotgg/uploadthing/commit/91fb1660ba9a3dd2eb92df16b5bb1d3373b77662) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Overhauled file router syntax +- [#94](https://github.com/pingdotgg/uploadthing/pull/94) + [`91fb166`](https://github.com/pingdotgg/uploadthing/commit/91fb1660ba9a3dd2eb92df16b5bb1d3373b77662) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Overhauled file router syntax ### Patch Changes -- Updated dependencies [[`16157de`](https://github.com/pingdotgg/uploadthing/commit/16157de54198d0838007efb4f6a37a4cd8720bab), [`91fb166`](https://github.com/pingdotgg/uploadthing/commit/91fb1660ba9a3dd2eb92df16b5bb1d3373b77662), [`b073c96`](https://github.com/pingdotgg/uploadthing/commit/b073c96120edccf9c9dd8f6db78611f43b841d20)]: +- Updated dependencies + [[`16157de`](https://github.com/pingdotgg/uploadthing/commit/16157de54198d0838007efb4f6a37a4cd8720bab), + [`91fb166`](https://github.com/pingdotgg/uploadthing/commit/91fb1660ba9a3dd2eb92df16b5bb1d3373b77662), + [`b073c96`](https://github.com/pingdotgg/uploadthing/commit/b073c96120edccf9c9dd8f6db78611f43b841d20)]: - uploadthing@4.0.0 ## 3.0.5 ### Patch Changes -- [#89](https://github.com/pingdotgg/uploadthing/pull/89) [`18d086f`](https://github.com/pingdotgg/uploadthing/commit/18d086f55eb5bdc1348116957f04a771eb6dfd9b) Thanks [@markflorkowski](https://github.com/markflorkowski)! - [fix] Blob upload support -- all filetypes that are not image/video/audio now supported via "blob" type. Components now actually work with blob endpoints +- [#89](https://github.com/pingdotgg/uploadthing/pull/89) + [`18d086f`](https://github.com/pingdotgg/uploadthing/commit/18d086f55eb5bdc1348116957f04a771eb6dfd9b) + Thanks [@markflorkowski](https://github.com/markflorkowski)! - [fix] Blob + upload support -- all filetypes that are not image/video/audio now supported + via "blob" type. Components now actually work with blob endpoints -- Updated dependencies [[`18d086f`](https://github.com/pingdotgg/uploadthing/commit/18d086f55eb5bdc1348116957f04a771eb6dfd9b), [`693c21e`](https://github.com/pingdotgg/uploadthing/commit/693c21e0c98a2dd5a6361733c77dba2ab1a39122)]: +- Updated dependencies + [[`18d086f`](https://github.com/pingdotgg/uploadthing/commit/18d086f55eb5bdc1348116957f04a771eb6dfd9b), + [`693c21e`](https://github.com/pingdotgg/uploadthing/commit/693c21e0c98a2dd5a6361733c77dba2ab1a39122)]: - uploadthing@3.0.5 ## 3.0.4 @@ -31,141 +51,197 @@ ### Patch Changes -- [#41](https://github.com/pingdotgg/uploadthing/pull/41) [`225b6a4`](https://github.com/pingdotgg/uploadthing/commit/225b6a40d7a84ba6ea8c47faab77246b5b671ba8) Thanks [@OrJDev](https://github.com/OrJDev)! - feat: SolidJS adapter +- [#41](https://github.com/pingdotgg/uploadthing/pull/41) + [`225b6a4`](https://github.com/pingdotgg/uploadthing/commit/225b6a40d7a84ba6ea8c47faab77246b5b671ba8) + Thanks [@OrJDev](https://github.com/OrJDev)! - feat: SolidJS adapter -- [#48](https://github.com/pingdotgg/uploadthing/pull/48) [`c28b698`](https://github.com/pingdotgg/uploadthing/commit/c28b698e2489383b127aa3097c832326e27bb5df) Thanks [@OrJDev](https://github.com/OrJDev)! - fix(uploadButton): accept mimeTypes join & allow multiple files to be passed +- [#48](https://github.com/pingdotgg/uploadthing/pull/48) + [`c28b698`](https://github.com/pingdotgg/uploadthing/commit/c28b698e2489383b127aa3097c832326e27bb5df) + Thanks [@OrJDev](https://github.com/OrJDev)! - fix(uploadButton): accept + mimeTypes join & allow multiple files to be passed -- Updated dependencies [[`225b6a4`](https://github.com/pingdotgg/uploadthing/commit/225b6a40d7a84ba6ea8c47faab77246b5b671ba8), [`7244b84`](https://github.com/pingdotgg/uploadthing/commit/7244b8479b612f00360069c05aacf450b2b65696)]: +- Updated dependencies + [[`225b6a4`](https://github.com/pingdotgg/uploadthing/commit/225b6a40d7a84ba6ea8c47faab77246b5b671ba8), + [`7244b84`](https://github.com/pingdotgg/uploadthing/commit/7244b8479b612f00360069c05aacf450b2b65696)]: - uploadthing@3.0.3 ## 3.0.2 ### Patch Changes -- [#51](https://github.com/pingdotgg/uploadthing/pull/51) [`9e68b5a`](https://github.com/pingdotgg/uploadthing/commit/9e68b5a12f9747113ccd8cc930e04bcf38cbe79c) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed types and returns for onComplete functions and promises +- [#51](https://github.com/pingdotgg/uploadthing/pull/51) + [`9e68b5a`](https://github.com/pingdotgg/uploadthing/commit/9e68b5a12f9747113ccd8cc930e04bcf38cbe79c) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed types and returns for + onComplete functions and promises -- Updated dependencies [[`9e68b5a`](https://github.com/pingdotgg/uploadthing/commit/9e68b5a12f9747113ccd8cc930e04bcf38cbe79c), [`336d361`](https://github.com/pingdotgg/uploadthing/commit/336d361763a870240f9703522e244d1e3dfe8861)]: +- Updated dependencies + [[`9e68b5a`](https://github.com/pingdotgg/uploadthing/commit/9e68b5a12f9747113ccd8cc930e04bcf38cbe79c), + [`336d361`](https://github.com/pingdotgg/uploadthing/commit/336d361763a870240f9703522e244d1e3dfe8861)]: - uploadthing@3.0.2 ## 3.0.1 ### Patch Changes -- [`e08cfdf`](https://github.com/pingdotgg/uploadthing/commit/e08cfdf0e26797025a7e6baa598b0c11957ce587) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed pages/ permissions, await promises we forgot to await, exponential backoff in dev server +- [`e08cfdf`](https://github.com/pingdotgg/uploadthing/commit/e08cfdf0e26797025a7e6baa598b0c11957ce587) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed pages/ permissions, + await promises we forgot to await, exponential backoff in dev server -- Updated dependencies [[`e08cfdf`](https://github.com/pingdotgg/uploadthing/commit/e08cfdf0e26797025a7e6baa598b0c11957ce587)]: +- Updated dependencies + [[`e08cfdf`](https://github.com/pingdotgg/uploadthing/commit/e08cfdf0e26797025a7e6baa598b0c11957ce587)]: - uploadthing@3.0.1 ## 3.0.0 ### Major Changes -- [#1](https://github.com/pingdotgg/uploadthing/pull/1) [`6352f40`](https://github.com/pingdotgg/uploadthing/commit/6352f4057fc5a37a25d3561dcef06e0ba14b4af4) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Overhaul packages, introduce UploadButton component +- [#1](https://github.com/pingdotgg/uploadthing/pull/1) + [`6352f40`](https://github.com/pingdotgg/uploadthing/commit/6352f4057fc5a37a25d3561dcef06e0ba14b4af4) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Overhaul packages, introduce + UploadButton component ### Patch Changes -- Updated dependencies [[`6352f40`](https://github.com/pingdotgg/uploadthing/commit/6352f4057fc5a37a25d3561dcef06e0ba14b4af4), [`2479873`](https://github.com/pingdotgg/uploadthing/commit/247987335a5c0ec4d43568f31897377e3656fce2)]: +- Updated dependencies + [[`6352f40`](https://github.com/pingdotgg/uploadthing/commit/6352f4057fc5a37a25d3561dcef06e0ba14b4af4), + [`2479873`](https://github.com/pingdotgg/uploadthing/commit/247987335a5c0ec4d43568f31897377e3656fce2)]: - uploadthing@3.0.0 ## 2.0.5 ### Patch Changes -- [`bdb7730`](https://github.com/pingdotgg/uploadthing/commit/bdb77302cbe1ea6ae0f2c00296f225a5d29e6275) Thanks [@t3dotgg](https://github.com/t3dotgg)! - fix writeHead +- [`bdb7730`](https://github.com/pingdotgg/uploadthing/commit/bdb77302cbe1ea6ae0f2c00296f225a5d29e6275) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - fix writeHead -- Updated dependencies [[`bdb7730`](https://github.com/pingdotgg/uploadthing/commit/bdb77302cbe1ea6ae0f2c00296f225a5d29e6275)]: +- Updated dependencies + [[`bdb7730`](https://github.com/pingdotgg/uploadthing/commit/bdb77302cbe1ea6ae0f2c00296f225a5d29e6275)]: - uploadthing@2.0.5 ## 2.0.4 ### Patch Changes -- Updated dependencies [[`bd990dd`](https://github.com/pingdotgg/uploadthing/commit/bd990dd3f7d45dd049db921e6de6835efd8fad8f)]: +- Updated dependencies + [[`bd990dd`](https://github.com/pingdotgg/uploadthing/commit/bd990dd3f7d45dd049db921e6de6835efd8fad8f)]: - uploadthing@2.0.4 ## 2.0.3 ### Patch Changes -- [#88](https://github.com/pingdotgg/uploadthing/pull/88) [`53b6d94`](https://github.com/pingdotgg/uploadthing/commit/53b6d94acdfea59b455fc0694b6feb232ca5830c) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fix appdir callbacks +- [#88](https://github.com/pingdotgg/uploadthing/pull/88) + [`53b6d94`](https://github.com/pingdotgg/uploadthing/commit/53b6d94acdfea59b455fc0694b6feb232ca5830c) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fix appdir callbacks -- Updated dependencies [[`53b6d94`](https://github.com/pingdotgg/uploadthing/commit/53b6d94acdfea59b455fc0694b6feb232ca5830c)]: +- Updated dependencies + [[`53b6d94`](https://github.com/pingdotgg/uploadthing/commit/53b6d94acdfea59b455fc0694b6feb232ca5830c)]: - uploadthing@2.0.3 ## 2.0.2 ### Patch Changes -- [#86](https://github.com/pingdotgg/uploadthing/pull/86) [`dcd020f`](https://github.com/pingdotgg/uploadthing/commit/dcd020fec54f12fd89207ed021e0f103e5fa33d2) Thanks [@t3dotgg](https://github.com/t3dotgg)! - fix callback for upload complete +- [#86](https://github.com/pingdotgg/uploadthing/pull/86) + [`dcd020f`](https://github.com/pingdotgg/uploadthing/commit/dcd020fec54f12fd89207ed021e0f103e5fa33d2) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - fix callback for upload + complete -- Updated dependencies [[`dcd020f`](https://github.com/pingdotgg/uploadthing/commit/dcd020fec54f12fd89207ed021e0f103e5fa33d2)]: +- Updated dependencies + [[`dcd020f`](https://github.com/pingdotgg/uploadthing/commit/dcd020fec54f12fd89207ed021e0f103e5fa33d2)]: - uploadthing@2.0.2 ## 2.0.1 ### Patch Changes -- [#72](https://github.com/pingdotgg/uploadthing/pull/72) [`56074d2`](https://github.com/pingdotgg/uploadthing/commit/56074d2800459ce497d5860356ed45ec00e04be4) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Honor file size and file type better +- [#72](https://github.com/pingdotgg/uploadthing/pull/72) + [`56074d2`](https://github.com/pingdotgg/uploadthing/commit/56074d2800459ce497d5860356ed45ec00e04be4) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Honor file size and file type + better -- Updated dependencies [[`56074d2`](https://github.com/pingdotgg/uploadthing/commit/56074d2800459ce497d5860356ed45ec00e04be4)]: +- Updated dependencies + [[`56074d2`](https://github.com/pingdotgg/uploadthing/commit/56074d2800459ce497d5860356ed45ec00e04be4)]: - uploadthing@2.0.1 ## 2.0.0 ### Minor Changes -- [#66](https://github.com/pingdotgg/uploadthing/pull/66) [`7996387`](https://github.com/pingdotgg/uploadthing/commit/7996387e323edd9c7c8f82186a3e440c4bdbf691) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed callback for onUploadComplete in dev, added early page dir support +- [#66](https://github.com/pingdotgg/uploadthing/pull/66) + [`7996387`](https://github.com/pingdotgg/uploadthing/commit/7996387e323edd9c7c8f82186a3e440c4bdbf691) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed callback for + onUploadComplete in dev, added early page dir support ### Patch Changes -- Updated dependencies [[`7996387`](https://github.com/pingdotgg/uploadthing/commit/7996387e323edd9c7c8f82186a3e440c4bdbf691)]: +- Updated dependencies + [[`7996387`](https://github.com/pingdotgg/uploadthing/commit/7996387e323edd9c7c8f82186a3e440c4bdbf691)]: - uploadthing@2.0.0 ## 1.1.3 ### Patch Changes -- [#63](https://github.com/pingdotgg/uploadthing/pull/63) [`7bb1e8e`](https://github.com/pingdotgg/uploadthing/commit/7bb1e8e9c36915e6c1c83fc9ba100eeaf456b04c) Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix - local callbacks +- [#63](https://github.com/pingdotgg/uploadthing/pull/63) + [`7bb1e8e`](https://github.com/pingdotgg/uploadthing/commit/7bb1e8e9c36915e6c1c83fc9ba100eeaf456b04c) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix - local callbacks -- [#60](https://github.com/pingdotgg/uploadthing/pull/60) [`e3b44ff`](https://github.com/pingdotgg/uploadthing/commit/e3b44ffc87efdd63e5ce0c6f8df5e91ad54eb562) Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix url encoding +- [#60](https://github.com/pingdotgg/uploadthing/pull/60) + [`e3b44ff`](https://github.com/pingdotgg/uploadthing/commit/e3b44ffc87efdd63e5ce0c6f8df5e91ad54eb562) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix url encoding -- Updated dependencies [[`7bb1e8e`](https://github.com/pingdotgg/uploadthing/commit/7bb1e8e9c36915e6c1c83fc9ba100eeaf456b04c), [`e3b44ff`](https://github.com/pingdotgg/uploadthing/commit/e3b44ffc87efdd63e5ce0c6f8df5e91ad54eb562)]: +- Updated dependencies + [[`7bb1e8e`](https://github.com/pingdotgg/uploadthing/commit/7bb1e8e9c36915e6c1c83fc9ba100eeaf456b04c), + [`e3b44ff`](https://github.com/pingdotgg/uploadthing/commit/e3b44ffc87efdd63e5ce0c6f8df5e91ad54eb562)]: - uploadthing@1.1.3 ## 1.1.2 ### Patch Changes -- [#58](https://github.com/pingdotgg/uploadthing/pull/58) [`ec388d4`](https://github.com/pingdotgg/uploadthing/commit/ec388d4e72b651254cb5590b40d48c90ee43398d) Thanks [@t3dotgg](https://github.com/t3dotgg)! - better errors and local callback fix +- [#58](https://github.com/pingdotgg/uploadthing/pull/58) + [`ec388d4`](https://github.com/pingdotgg/uploadthing/commit/ec388d4e72b651254cb5590b40d48c90ee43398d) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - better errors and local + callback fix -- Updated dependencies [[`ec388d4`](https://github.com/pingdotgg/uploadthing/commit/ec388d4e72b651254cb5590b40d48c90ee43398d)]: +- Updated dependencies + [[`ec388d4`](https://github.com/pingdotgg/uploadthing/commit/ec388d4e72b651254cb5590b40d48c90ee43398d)]: - uploadthing@1.1.2 ## 1.1.1 ### Patch Changes -- [`32a7b02`](https://github.com/pingdotgg/uploadthing/commit/32a7b0264f214fee6cab4cdd45635c3a7d9ff0ef) Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix +- [`32a7b02`](https://github.com/pingdotgg/uploadthing/commit/32a7b0264f214fee6cab4cdd45635c3a7d9ff0ef) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix -- Updated dependencies [[`32a7b02`](https://github.com/pingdotgg/uploadthing/commit/32a7b0264f214fee6cab4cdd45635c3a7d9ff0ef)]: +- Updated dependencies + [[`32a7b02`](https://github.com/pingdotgg/uploadthing/commit/32a7b0264f214fee6cab4cdd45635c3a7d9ff0ef)]: - uploadthing@1.1.1 ## 1.1.0 ### Minor Changes -- [#54](https://github.com/pingdotgg/uploadthing/pull/54) [`a4640ff`](https://github.com/pingdotgg/uploadthing/commit/a4640ff9a91e0eb833e2cc0daf5cb65cab54cb32) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Beta release +- [#54](https://github.com/pingdotgg/uploadthing/pull/54) + [`a4640ff`](https://github.com/pingdotgg/uploadthing/commit/a4640ff9a91e0eb833e2cc0daf5cb65cab54cb32) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Beta release ### Patch Changes -- Updated dependencies [[`a4640ff`](https://github.com/pingdotgg/uploadthing/commit/a4640ff9a91e0eb833e2cc0daf5cb65cab54cb32)]: +- Updated dependencies + [[`a4640ff`](https://github.com/pingdotgg/uploadthing/commit/a4640ff9a91e0eb833e2cc0daf5cb65cab54cb32)]: - uploadthing@2.0.0 ## 1.0.2 ### Patch Changes -- [#52](https://github.com/pingdotgg/uploadthing/pull/52) [`6458d6b`](https://github.com/pingdotgg/uploadthing/commit/6458d6b2f37beccb63ae7c1896fbf85e283fd815) Thanks [@t3dotgg](https://github.com/t3dotgg)! - chore: semantic release +- [#52](https://github.com/pingdotgg/uploadthing/pull/52) + [`6458d6b`](https://github.com/pingdotgg/uploadthing/commit/6458d6b2f37beccb63ae7c1896fbf85e283fd815) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - chore: semantic release -- Updated dependencies [[`6458d6b`](https://github.com/pingdotgg/uploadthing/commit/6458d6b2f37beccb63ae7c1896fbf85e283fd815)]: +- Updated dependencies + [[`6458d6b`](https://github.com/pingdotgg/uploadthing/commit/6458d6b2f37beccb63ae7c1896fbf85e283fd815)]: - uploadthing@1.0.2 diff --git a/packages/react/package.json b/packages/react/package.json index 1128b4a2d..c9e742be5 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@uploadthing/react", - "version": "4.0.0", + "version": "4.1.0", "license": "MIT", "exports": { "./package.json": "./package.json", @@ -54,7 +54,7 @@ "tailwindcss": "^3.3.2", "tsup": "6.7.0", "typescript": "5.1.0-beta", - "uploadthing": "4.0.0", + "uploadthing": "4.1.0", "vitest": "^0.30.1", "wait-on": "^7.0.1" }, diff --git a/packages/uploadthing/CHANGELOG.md b/packages/uploadthing/CHANGELOG.md index 37fe7a73c..d0e981e3f 100644 --- a/packages/uploadthing/CHANGELOG.md +++ b/packages/uploadthing/CHANGELOG.md @@ -1,26 +1,72 @@ # uploadthing +## 4.1.0 + +### Minor Changes + +- [#119](https://github.com/pingdotgg/uploadthing/pull/119) + [`627d88b`](https://github.com/pingdotgg/uploadthing/commit/627d88b00f1cfd775ac3aa13a98cb0f795bd9187) + Thanks [@markflorkowski](https://github.com/markflorkowski)! - [fix] Make sure + clientside onUploadComplete() is called after serverside + +- [#126](https://github.com/pingdotgg/uploadthing/pull/126) + [`0046018`](https://github.com/pingdotgg/uploadthing/commit/004601867576338b0077835ac9a9fe40cd2e5f2f) + Thanks [@juliusmarminge](https://github.com/juliusmarminge)! - vendor + mime-types to make uploadthing edge-compat + +### Patch Changes + +- [#122](https://github.com/pingdotgg/uploadthing/pull/122) + [`4fde69f`](https://github.com/pingdotgg/uploadthing/commit/4fde69f7c982b42846e7838f73fd5767c1b26d9d) + Thanks [@juliusmarminge](https://github.com/juliusmarminge)! - fix: prefetch + permissions on server to prevent layout flashes + +- [#117](https://github.com/pingdotgg/uploadthing/pull/117) + [`0133e71`](https://github.com/pingdotgg/uploadthing/commit/0133e71cd742b185cb127e413e246e74c244a42b) + Thanks [@markflorkowski](https://github.com/markflorkowski)! - [chore] clean + up extraneous console logs + +- [#118](https://github.com/pingdotgg/uploadthing/pull/118) + [`3dfc1fa`](https://github.com/pingdotgg/uploadthing/commit/3dfc1fa4582c28a35ed007e666c0b73c34ab35a8) + Thanks [@markflorkowski](https://github.com/markflorkowski)! - [feat] + Additional file types: PDF and Text + ## 4.0.0 ### Major Changes -- [#94](https://github.com/pingdotgg/uploadthing/pull/94) [`91fb166`](https://github.com/pingdotgg/uploadthing/commit/91fb1660ba9a3dd2eb92df16b5bb1d3373b77662) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Overhauled file router syntax +- [#94](https://github.com/pingdotgg/uploadthing/pull/94) + [`91fb166`](https://github.com/pingdotgg/uploadthing/commit/91fb1660ba9a3dd2eb92df16b5bb1d3373b77662) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Overhauled file router syntax ### Minor Changes -- [#93](https://github.com/pingdotgg/uploadthing/pull/93) [`16157de`](https://github.com/pingdotgg/uploadthing/commit/16157de54198d0838007efb4f6a37a4cd8720bab) Thanks [@markflorkowski](https://github.com/markflorkowski)! - [feat] API Helpers -- deleteFiles() and getFileUrls() +- [#93](https://github.com/pingdotgg/uploadthing/pull/93) + [`16157de`](https://github.com/pingdotgg/uploadthing/commit/16157de54198d0838007efb4f6a37a4cd8720bab) + Thanks [@markflorkowski](https://github.com/markflorkowski)! - [feat] API + Helpers -- deleteFiles() and getFileUrls() ### Patch Changes -- [#97](https://github.com/pingdotgg/uploadthing/pull/97) [`b073c96`](https://github.com/pingdotgg/uploadthing/commit/b073c96120edccf9c9dd8f6db78611f43b841d20) Thanks [@ayatofrench](https://github.com/ayatofrench)! - [Fix] Update to buildRequestHandler secret +- [#97](https://github.com/pingdotgg/uploadthing/pull/97) + [`b073c96`](https://github.com/pingdotgg/uploadthing/commit/b073c96120edccf9c9dd8f6db78611f43b841d20) + Thanks [@ayatofrench](https://github.com/ayatofrench)! - [Fix] Update to + buildRequestHandler secret ## 3.0.5 ### Patch Changes -- [#89](https://github.com/pingdotgg/uploadthing/pull/89) [`18d086f`](https://github.com/pingdotgg/uploadthing/commit/18d086f55eb5bdc1348116957f04a771eb6dfd9b) Thanks [@markflorkowski](https://github.com/markflorkowski)! - [fix] Blob upload support -- all filetypes that are not image/video/audio now supported via "blob" type. Components now actually work with blob endpoints +- [#89](https://github.com/pingdotgg/uploadthing/pull/89) + [`18d086f`](https://github.com/pingdotgg/uploadthing/commit/18d086f55eb5bdc1348116957f04a771eb6dfd9b) + Thanks [@markflorkowski](https://github.com/markflorkowski)! - [fix] Blob + upload support -- all filetypes that are not image/video/audio now supported + via "blob" type. Components now actually work with blob endpoints -- [#85](https://github.com/pingdotgg/uploadthing/pull/85) [`693c21e`](https://github.com/pingdotgg/uploadthing/commit/693c21e0c98a2dd5a6361733c77dba2ab1a39122) Thanks [@markflorkowski](https://github.com/markflorkowski)! - [types] Update types for onUploadComplete to include size +- [#85](https://github.com/pingdotgg/uploadthing/pull/85) + [`693c21e`](https://github.com/pingdotgg/uploadthing/commit/693c21e0c98a2dd5a6361733c77dba2ab1a39122) + Thanks [@markflorkowski](https://github.com/markflorkowski)! - [types] Update + types for onUploadComplete to include size ## 3.0.4 @@ -28,98 +74,144 @@ ### Patch Changes -- [#41](https://github.com/pingdotgg/uploadthing/pull/41) [`225b6a4`](https://github.com/pingdotgg/uploadthing/commit/225b6a40d7a84ba6ea8c47faab77246b5b671ba8) Thanks [@OrJDev](https://github.com/OrJDev)! - feat: SolidJS adapter +- [#41](https://github.com/pingdotgg/uploadthing/pull/41) + [`225b6a4`](https://github.com/pingdotgg/uploadthing/commit/225b6a40d7a84ba6ea8c47faab77246b5b671ba8) + Thanks [@OrJDev](https://github.com/OrJDev)! - feat: SolidJS adapter -- [#54](https://github.com/pingdotgg/uploadthing/pull/54) [`7244b84`](https://github.com/pingdotgg/uploadthing/commit/7244b8479b612f00360069c05aacf450b2b65696) Thanks [@didar-dev](https://github.com/didar-dev)! - Better parsing for `.fileSize()` in the router. thanks @didar-dev! +- [#54](https://github.com/pingdotgg/uploadthing/pull/54) + [`7244b84`](https://github.com/pingdotgg/uploadthing/commit/7244b8479b612f00360069c05aacf450b2b65696) + Thanks [@didar-dev](https://github.com/didar-dev)! - Better parsing for + `.fileSize()` in the router. thanks @didar-dev! ## 3.0.2 ### Patch Changes -- [#51](https://github.com/pingdotgg/uploadthing/pull/51) [`9e68b5a`](https://github.com/pingdotgg/uploadthing/commit/9e68b5a12f9747113ccd8cc930e04bcf38cbe79c) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed types and returns for onComplete functions and promises +- [#51](https://github.com/pingdotgg/uploadthing/pull/51) + [`9e68b5a`](https://github.com/pingdotgg/uploadthing/commit/9e68b5a12f9747113ccd8cc930e04bcf38cbe79c) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed types and returns for + onComplete functions and promises -- [#57](https://github.com/pingdotgg/uploadthing/pull/57) [`336d361`](https://github.com/pingdotgg/uploadthing/commit/336d361763a870240f9703522e244d1e3dfe8861) Thanks [@markflorkowski](https://github.com/markflorkowski)! - [chore] better client errors +- [#57](https://github.com/pingdotgg/uploadthing/pull/57) + [`336d361`](https://github.com/pingdotgg/uploadthing/commit/336d361763a870240f9703522e244d1e3dfe8861) + Thanks [@markflorkowski](https://github.com/markflorkowski)! - [chore] better + client errors ## 3.0.1 ### Patch Changes -- [`e08cfdf`](https://github.com/pingdotgg/uploadthing/commit/e08cfdf0e26797025a7e6baa598b0c11957ce587) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed pages/ permissions, await promises we forgot to await, exponential backoff in dev server +- [`e08cfdf`](https://github.com/pingdotgg/uploadthing/commit/e08cfdf0e26797025a7e6baa598b0c11957ce587) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed pages/ permissions, + await promises we forgot to await, exponential backoff in dev server ## 3.0.0 ### Major Changes -- [#1](https://github.com/pingdotgg/uploadthing/pull/1) [`6352f40`](https://github.com/pingdotgg/uploadthing/commit/6352f4057fc5a37a25d3561dcef06e0ba14b4af4) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Overhaul packages, introduce UploadButton component +- [#1](https://github.com/pingdotgg/uploadthing/pull/1) + [`6352f40`](https://github.com/pingdotgg/uploadthing/commit/6352f4057fc5a37a25d3561dcef06e0ba14b4af4) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Overhaul packages, introduce + UploadButton component ### Minor Changes -- [#3](https://github.com/pingdotgg/uploadthing/pull/3) [`2479873`](https://github.com/pingdotgg/uploadthing/commit/247987335a5c0ec4d43568f31897377e3656fce2) Thanks [@juliusmarminge](https://github.com/juliusmarminge)! - feat: insert the generic in lib-level +- [#3](https://github.com/pingdotgg/uploadthing/pull/3) + [`2479873`](https://github.com/pingdotgg/uploadthing/commit/247987335a5c0ec4d43568f31897377e3656fce2) + Thanks [@juliusmarminge](https://github.com/juliusmarminge)! - feat: insert + the generic in lib-level ## 2.0.5 ### Patch Changes -- [`bdb7730`](https://github.com/pingdotgg/uploadthing/commit/bdb77302cbe1ea6ae0f2c00296f225a5d29e6275) Thanks [@t3dotgg](https://github.com/t3dotgg)! - fix writeHead +- [`bdb7730`](https://github.com/pingdotgg/uploadthing/commit/bdb77302cbe1ea6ae0f2c00296f225a5d29e6275) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - fix writeHead ## 2.0.4 ### Patch Changes -- [#90](https://github.com/pingdotgg/uploadthing/pull/90) [`bd990dd`](https://github.com/pingdotgg/uploadthing/commit/bd990dd3f7d45dd049db921e6de6835efd8fad8f) Thanks [@juliusmarminge](https://github.com/juliusmarminge)! - fix: prettify type in resolver function +- [#90](https://github.com/pingdotgg/uploadthing/pull/90) + [`bd990dd`](https://github.com/pingdotgg/uploadthing/commit/bd990dd3f7d45dd049db921e6de6835efd8fad8f) + Thanks [@juliusmarminge](https://github.com/juliusmarminge)! - fix: prettify + type in resolver function ## 2.0.3 ### Patch Changes -- [#88](https://github.com/pingdotgg/uploadthing/pull/88) [`53b6d94`](https://github.com/pingdotgg/uploadthing/commit/53b6d94acdfea59b455fc0694b6feb232ca5830c) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fix appdir callbacks +- [#88](https://github.com/pingdotgg/uploadthing/pull/88) + [`53b6d94`](https://github.com/pingdotgg/uploadthing/commit/53b6d94acdfea59b455fc0694b6feb232ca5830c) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fix appdir callbacks ## 2.0.2 ### Patch Changes -- [#86](https://github.com/pingdotgg/uploadthing/pull/86) [`dcd020f`](https://github.com/pingdotgg/uploadthing/commit/dcd020fec54f12fd89207ed021e0f103e5fa33d2) Thanks [@t3dotgg](https://github.com/t3dotgg)! - fix callback for upload complete +- [#86](https://github.com/pingdotgg/uploadthing/pull/86) + [`dcd020f`](https://github.com/pingdotgg/uploadthing/commit/dcd020fec54f12fd89207ed021e0f103e5fa33d2) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - fix callback for upload + complete ## 2.0.1 ### Patch Changes -- [#72](https://github.com/pingdotgg/uploadthing/pull/72) [`56074d2`](https://github.com/pingdotgg/uploadthing/commit/56074d2800459ce497d5860356ed45ec00e04be4) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Honor file size and file type better +- [#72](https://github.com/pingdotgg/uploadthing/pull/72) + [`56074d2`](https://github.com/pingdotgg/uploadthing/commit/56074d2800459ce497d5860356ed45ec00e04be4) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Honor file size and file type + better ## 2.0.0 ### Minor Changes -- [#66](https://github.com/pingdotgg/uploadthing/pull/66) [`7996387`](https://github.com/pingdotgg/uploadthing/commit/7996387e323edd9c7c8f82186a3e440c4bdbf691) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed callback for onUploadComplete in dev, added early page dir support +- [#66](https://github.com/pingdotgg/uploadthing/pull/66) + [`7996387`](https://github.com/pingdotgg/uploadthing/commit/7996387e323edd9c7c8f82186a3e440c4bdbf691) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Fixed callback for + onUploadComplete in dev, added early page dir support ## 1.1.3 ### Patch Changes -- [#63](https://github.com/pingdotgg/uploadthing/pull/63) [`7bb1e8e`](https://github.com/pingdotgg/uploadthing/commit/7bb1e8e9c36915e6c1c83fc9ba100eeaf456b04c) Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix - local callbacks +- [#63](https://github.com/pingdotgg/uploadthing/pull/63) + [`7bb1e8e`](https://github.com/pingdotgg/uploadthing/commit/7bb1e8e9c36915e6c1c83fc9ba100eeaf456b04c) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix - local callbacks -- [#60](https://github.com/pingdotgg/uploadthing/pull/60) [`e3b44ff`](https://github.com/pingdotgg/uploadthing/commit/e3b44ffc87efdd63e5ce0c6f8df5e91ad54eb562) Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix url encoding +- [#60](https://github.com/pingdotgg/uploadthing/pull/60) + [`e3b44ff`](https://github.com/pingdotgg/uploadthing/commit/e3b44ffc87efdd63e5ce0c6f8df5e91ad54eb562) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix url encoding ## 1.1.2 ### Patch Changes -- [#58](https://github.com/pingdotgg/uploadthing/pull/58) [`ec388d4`](https://github.com/pingdotgg/uploadthing/commit/ec388d4e72b651254cb5590b40d48c90ee43398d) Thanks [@t3dotgg](https://github.com/t3dotgg)! - better errors and local callback fix +- [#58](https://github.com/pingdotgg/uploadthing/pull/58) + [`ec388d4`](https://github.com/pingdotgg/uploadthing/commit/ec388d4e72b651254cb5590b40d48c90ee43398d) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - better errors and local + callback fix ## 1.1.1 ### Patch Changes -- [`32a7b02`](https://github.com/pingdotgg/uploadthing/commit/32a7b0264f214fee6cab4cdd45635c3a7d9ff0ef) Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix +- [`32a7b02`](https://github.com/pingdotgg/uploadthing/commit/32a7b0264f214fee6cab4cdd45635c3a7d9ff0ef) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - hotfix ## 1.1.0 ### Minor Changes -- [#54](https://github.com/pingdotgg/uploadthing/pull/54) [`a4640ff`](https://github.com/pingdotgg/uploadthing/commit/a4640ff9a91e0eb833e2cc0daf5cb65cab54cb32) Thanks [@t3dotgg](https://github.com/t3dotgg)! - Beta release +- [#54](https://github.com/pingdotgg/uploadthing/pull/54) + [`a4640ff`](https://github.com/pingdotgg/uploadthing/commit/a4640ff9a91e0eb833e2cc0daf5cb65cab54cb32) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - Beta release ## 1.0.2 ### Patch Changes -- [#52](https://github.com/pingdotgg/uploadthing/pull/52) [`6458d6b`](https://github.com/pingdotgg/uploadthing/commit/6458d6b2f37beccb63ae7c1896fbf85e283fd815) Thanks [@t3dotgg](https://github.com/t3dotgg)! - chore: semantic release +- [#52](https://github.com/pingdotgg/uploadthing/pull/52) + [`6458d6b`](https://github.com/pingdotgg/uploadthing/commit/6458d6b2f37beccb63ae7c1896fbf85e283fd815) + Thanks [@t3dotgg](https://github.com/t3dotgg)! - chore: semantic release diff --git a/packages/uploadthing/package.json b/packages/uploadthing/package.json index 8d0f78a68..6e037ea55 100644 --- a/packages/uploadthing/package.json +++ b/packages/uploadthing/package.json @@ -1,6 +1,6 @@ { "name": "uploadthing", - "version": "4.0.0", + "version": "4.1.0", "license": "MIT", "exports": { "./package.json": "./package.json", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 10300d6a1..7f229256f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,7 +28,7 @@ importers: version: link:packages/config/eslint dotenv: specifier: latest - version: 16.1.3 + version: 16.1.4 prettier: specifier: ^2.8.8 version: 2.8.8 @@ -66,7 +66,7 @@ importers: specifier: ^4.28.0 version: 4.28.0(react-dom@18.2.0)(react@18.2.0) '@uploadthing/react': - specifier: 4.0.0 + specifier: 4.1.0 version: link:../../packages/react autoprefixer: specifier: 10.4.14 @@ -87,7 +87,7 @@ importers: specifier: ^3.3.2 version: 3.3.2 uploadthing: - specifier: 4.0.0 + specifier: 4.1.0 version: link:../../packages/uploadthing zod: specifier: ^3.21.4 @@ -127,7 +127,7 @@ importers: specifier: ^4.28.0 version: 4.28.0(react-dom@18.2.0)(react@18.2.0) '@uploadthing/react': - specifier: 4.0.0 + specifier: 4.1.0 version: link:../../packages/react autoprefixer: specifier: 10.4.14 @@ -151,7 +151,7 @@ importers: specifier: ^3.3.2 version: 3.3.2 uploadthing: - specifier: 4.0.0 + specifier: 4.1.0 version: link:../../packages/uploadthing zod: specifier: ^3.21.4 @@ -351,7 +351,7 @@ importers: specifier: 5.1.0-beta version: 5.1.0-beta uploadthing: - specifier: 4.0.0 + specifier: 4.1.0 version: link:../uploadthing vitest: specifier: ^0.30.1 @@ -4192,8 +4192,8 @@ packages: resolution: {integrity: sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==} engines: {node: '>=12'} - /dotenv@16.1.3: - resolution: {integrity: sha512-FYssxsmCTtKL72fGBSvb1K9dRz0/VZeWqFme/vSb7r7323x4CRaHu4LvQ5JG3+s6yt2YPbBrkpiEODktfyjI9A==} + /dotenv@16.1.4: + resolution: {integrity: sha512-m55RtE8AsPeJBpOIFKihEmqUcoVncQIwo7x9U8ZwLEZw9ZpXboz2c+rvog+jUaJvVrZ5kBOeYQBX5+8Aa/OZQw==} engines: {node: '>=12'} dev: false