Skip to content

Commit f8c7cd2

Browse files
initial impl of new API
1 parent d7ceef0 commit f8c7cd2

21 files changed

Lines changed: 2543 additions & 221 deletions

File tree

.changeset/happy-houses-hang.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"uploadthing": minor
3+
---
4+
5+
feat: introduce new experimental client API
6+
7+
This API is not covered under semver. Check out some example usage here:
8+
9+
https://github.com/pingdotgg/uploadthing/blob/main/playground/app/originui/page.tsx

examples/profile-picture/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@auth/drizzle-adapter": "^1.2.0",
1717
"@libsql/client": "^0.14.0",
1818
"@uploadthing/react": "7.3.0",
19-
"class-variance-authority": "^0.7.0",
19+
"class-variance-authority": "^0.7.1",
2020
"client-only": "^0.0.1",
2121
"drizzle-orm": "^0.38.3",
2222
"lucide-react": "^0.469.0",

examples/with-novel/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@tailwindcss/typography": "^0.5.15",
1313
"@uploadthing/react": "7.3.0",
14-
"class-variance-authority": "^0.7.0",
14+
"class-variance-authority": "^0.7.1",
1515
"cmdk": "^1.1.1",
1616
"lucide-react": "^0.469.0",
1717
"next": "15.3.1",

packages/uploadthing/package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
"default": "./client/index.cjs"
2020
}
2121
},
22+
"./client-future": {
23+
"import": {
24+
"types": "./client-future/index.d.ts",
25+
"default": "./client-future/index.js"
26+
},
27+
"require": {
28+
"types": "./client-future/index.d.cts",
29+
"default": "./client-future/index.cjs"
30+
}
31+
},
2232
"./server": {
2333
"import": {
2434
"types": "./server/index.d.ts",
@@ -118,6 +128,7 @@
118128
},
119129
"files": [
120130
"client",
131+
"client-future",
121132
"dist",
122133
"effect-platform",
123134
"express",
@@ -135,9 +146,9 @@
135146
},
136147
"scripts": {
137148
"lint": "eslint src test --max-warnings 0",
138-
"build": "NODE_OPTIONS='--max_old_space_size=8192' bunchee --tsconfig tsconfig.build.json && cp src/tw/v4.css tw/v4.css",
149+
"build": "NODE_OPTIONS='--max_old_space_size=16384' bunchee --tsconfig tsconfig.build.json && cp src/tw/v4.css tw/v4.css",
139150
"clean": "git clean -xdf client express fastify h3 internal next next-legacy server tw node_modules",
140-
"dev": "NODE_OPTIONS='--max_old_space_size=8192' bunchee --tsconfig tsconfig.build.json --no-clean && cp src/tw/v4.css tw/v4.css",
151+
"dev": "NODE_OPTIONS='--max_old_space_size=16384' bunchee --tsconfig tsconfig.build.json --no-clean && cp src/tw/v4.css tw/v4.css",
141152
"prepack": "bun ../../.github/replace-workspace-protocol.ts",
142153
"test": "vitest run",
143154
"typecheck": "tsc --noEmit"

0 commit comments

Comments
 (0)