@dimah-s3/cli 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  # dimah-s3 — Hono template
2
2
 
3
- Minimal [Hono](https://hono.dev) starter with a Vite + React UI and [dimah-s3](https://dimah-s3.vercel.app): `toHonoHandler` presign routes, `S3Provider`, and an upload button.
3
+ Minimal [Hono](https://hono.dev) starter with a Vite + React UI and [dimah-s3](https://dimah-s3.vercel.app): `toHonoHandler` presign routes, `s3Client.Provider`, and an upload button.
4
4
 
5
5
  ## Create
6
6
 
@@ -14,20 +14,15 @@ npx @dimah-s3/cli@latest create my-app --template hono
14
14
 
15
15
  ## What’s included
16
16
 
17
- | Path | Role |
18
- | -------------------------------- | ----------------------------------- |
19
- | `src/lib/s3-client.ts` | AWS SDK `S3Client` + default bucket |
20
- | `src/lib/s3.ts` | `dimahS3()` server config |
21
- | `src/server.ts` | Hono app (`toHonoHandler` + static) |
22
- | `src/components/s3-provider.tsx` | Client `createS3Client` + provider |
23
- | `src/App.tsx` | Sample `UploadButton` |
17
+ | Path | Role |
18
+ | ---------------------- | ----------------------------------------------------- |
19
+ | `src/lib/s3.ts` | `awsS3` + `dimahS3()` (`upload.prefix`) |
20
+ | `src/lib/s3-client.ts` | `createS3Client()` (same origin via the `/api` proxy) |
21
+ | `src/server.ts` | Hono app (`toHonoHandler` + static after build) |
22
+ | `src/main.tsx` | `s3Client.Provider` + `Toaster` |
23
+ | `src/App.tsx` | Sample `UploadButton` |
24
24
 
25
- ## Docs
26
-
27
- - [Quickstart](https://dimah-s3.vercel.app/docs/quickstart)
28
- - [Server setup](https://dimah-s3.vercel.app/docs/server/setup)
29
- - [Client setup](https://dimah-s3.vercel.app/docs/react/setup)
30
- - [UI setup](https://dimah-s3.vercel.app/docs/react/ui)
25
+ Same wiring as [Quickstart](https://dimah-s3.vercel.app/docs/quickstart) (Hono tab), [Server setup](https://dimah-s3.vercel.app/docs/server/setup), [Client setup](https://dimah-s3.vercel.app/docs/react/setup), and [UI setup](https://dimah-s3.vercel.app/docs/react/ui).
31
26
 
32
27
  ## License
33
28
 
@@ -12,16 +12,16 @@
12
12
  "check-types": "tsc --noEmit"
13
13
  },
14
14
  "dependencies": {
15
- "@aws-sdk/client-s3": "^3.1109.0",
15
+ "@aws-sdk/client-s3": "^3.1111.0",
16
16
  "@base-ui/react": "^1.7.0",
17
- "@dimah-s3/react": "^0.8.0",
18
- "@dimah-s3/server": "^0.8.0",
19
- "@dimah-s3/ui": "^0.8.0",
17
+ "@dimah-s3/react": "^0.8.2",
18
+ "@dimah-s3/server": "^0.8.2",
19
+ "@dimah-s3/ui": "^0.8.2",
20
20
  "@fuma-translate/react": "^1.0.2",
21
- "@hono/node-server": "^2.1.0",
21
+ "@hono/node-server": "^2.1.1",
22
22
  "class-variance-authority": "^0.7.1",
23
23
  "cnfast": "^0.1.0",
24
- "hono": "^4.13.1",
24
+ "hono": "^4.13.2",
25
25
  "lucide-react": "^1.31.0",
26
26
  "next-themes": "^0.4.6",
27
27
  "react": "^19.2.8",
@@ -34,8 +34,8 @@
34
34
  "@types/react": "^19.2.18",
35
35
  "@types/react-dom": "^19.2.4",
36
36
  "@vitejs/plugin-react": "^6.0.5",
37
- "concurrently": "^10.0.4",
38
- "shadcn": "^4.17.0",
37
+ "concurrently": "^10.0.5",
38
+ "shadcn": "^4.18.0",
39
39
  "tailwindcss": "^4.3.3",
40
40
  "tsx": "^4.23.12",
41
41
  "typescript": "^7.0.2",
@@ -12,20 +12,15 @@ npx @dimah-s3/cli@latest create my-app
12
12
 
13
13
  ## What’s included
14
14
 
15
- | Path | Role |
16
- | --------------------------------- | ----------------------------------- |
17
- | `src/lib/s3-client.ts` | AWS SDK `S3Client` + default bucket |
18
- | `src/lib/s3.ts` | `dimahS3()` server config |
19
- | `src/app/api/s3/[...s3]/route.ts` | Next.js route adapter |
20
- | `src/components/s3-provider.tsx` | Client `createS3Client` + provider |
21
- | `src/app/page.tsx` | Sample `UploadButton` |
22
-
23
- ## Docs
24
-
25
- - [Quickstart](https://dimah-s3.vercel.app/docs/quickstart) — wire into an existing app
26
- - [Server setup](https://dimah-s3.vercel.app/docs/server/setup)
27
- - [Client setup](https://dimah-s3.vercel.app/docs/react/setup)
28
- - [UI setup](https://dimah-s3.vercel.app/docs/react/ui)
15
+ | Path | Role |
16
+ | --------------------------------- | ----------------------------------------------------- |
17
+ | `src/lib/s3.ts` | `awsS3` + `dimahS3()` (`upload.prefix`) |
18
+ | `src/lib/s3-client.ts` | `createS3Client()` + `S3Provider` |
19
+ | `src/app/api/s3/[...s3]/route.ts` | Next.js adapter (`GET`/`POST`/`PUT`/`PATCH`/`DELETE`) |
20
+ | `src/app/layout.tsx` | `S3Provider` + `Toaster` |
21
+ | `src/app/page.tsx` | Sample `UploadButton` |
22
+
23
+ Same layout as [Quickstart](https://dimah-s3.vercel.app/docs/quickstart), [Server setup](https://dimah-s3.vercel.app/docs/server/setup), [Client setup](https://dimah-s3.vercel.app/docs/react/setup), and [UI setup](https://dimah-s3.vercel.app/docs/react/ui). Flatten `src/` with `create --no-src`.
29
24
 
30
25
  ## License
31
26
 
@@ -11,16 +11,16 @@
11
11
  "check-types": "next typegen && tsc --noEmit"
12
12
  },
13
13
  "dependencies": {
14
- "@aws-sdk/client-s3": "^3.1109.0",
14
+ "@aws-sdk/client-s3": "^3.1111.0",
15
15
  "@base-ui/react": "^1.7.0",
16
- "@dimah-s3/react": "^0.8.0",
17
- "@dimah-s3/server": "^0.8.0",
18
- "@dimah-s3/ui": "^0.8.0",
16
+ "@dimah-s3/react": "^0.8.2",
17
+ "@dimah-s3/server": "^0.8.2",
18
+ "@dimah-s3/ui": "^0.8.2",
19
19
  "@fuma-translate/react": "^1.0.2",
20
20
  "class-variance-authority": "^0.7.1",
21
21
  "cnfast": "^0.1.0",
22
22
  "lucide-react": "^1.31.0",
23
- "next": "^16.3.0",
23
+ "next": "^16.3.1",
24
24
  "next-themes": "^0.4.6",
25
25
  "react": "^19.2.8",
26
26
  "react-dom": "^19.2.8",
@@ -32,8 +32,8 @@
32
32
  "@types/react": "^19.2.18",
33
33
  "@types/react-dom": "^19.2.4",
34
34
  "eslint": "^10.8.1",
35
- "eslint-config-next": "^16.3.0",
36
- "shadcn": "^4.17.0",
35
+ "eslint-config-next": "^16.3.1",
36
+ "shadcn": "^4.18.0",
37
37
  "tailwindcss": "^4.3.3",
38
38
  "typescript": "^7.0.2"
39
39
  }
@@ -1,6 +1,6 @@
1
1
  # dimah-s3 — Vite template
2
2
 
3
- Minimal [Vite](https://vitejs.dev) + React starter with [dimah-s3](https://dimah-s3.vercel.app): Hono presign API, `S3Provider`, and an upload button.
3
+ Minimal [Vite](https://vitejs.dev) + React starter with [dimah-s3](https://dimah-s3.vercel.app): Hono presign API, `s3Client.Provider`, and an upload button.
4
4
 
5
5
  ## Create
6
6
 
@@ -14,20 +14,15 @@ npx @dimah-s3/cli@latest create my-app --template vite
14
14
 
15
15
  ## What’s included
16
16
 
17
- | Path | Role |
18
- | -------------------------------- | ----------------------------------- |
19
- | `server/s3-client.ts` | AWS SDK `S3Client` + default bucket |
20
- | `server/s3.ts` | `dimahS3()` server config |
21
- | `server/index.ts` | Hono API (`toHonoHandler`) |
22
- | `src/components/s3-provider.tsx` | Client `createS3Client` + provider |
23
- | `src/App.tsx` | Sample `UploadButton` |
17
+ | Path | Role |
18
+ | ---------------------- | ----------------------------------------------------- |
19
+ | `server/s3.ts` | `awsS3` + `dimahS3()` (`upload.prefix`) |
20
+ | `server/index.ts` | Hono API (`toHonoHandler` on `/api/s3/*`) |
21
+ | `src/lib/s3-client.ts` | `createS3Client()` (same origin via the `/api` proxy) |
22
+ | `src/main.tsx` | `s3Client.Provider` + `Toaster` |
23
+ | `src/App.tsx` | Sample `UploadButton` |
24
24
 
25
- ## Docs
26
-
27
- - [Quickstart](https://dimah-s3.vercel.app/docs/quickstart)
28
- - [Server setup](https://dimah-s3.vercel.app/docs/server/setup)
29
- - [Client setup](https://dimah-s3.vercel.app/docs/react/setup)
30
- - [UI setup](https://dimah-s3.vercel.app/docs/react/ui)
25
+ Same wiring as [Quickstart](https://dimah-s3.vercel.app/docs/quickstart) (Vite tab), [Server setup](https://dimah-s3.vercel.app/docs/server/setup), [Client setup](https://dimah-s3.vercel.app/docs/react/setup), and [UI setup](https://dimah-s3.vercel.app/docs/react/ui). Cross-origin apps pass `baseURL` instead of relying on the proxy.
31
26
 
32
27
  ## License
33
28
 
@@ -13,16 +13,16 @@
13
13
  "check-types": "tsc --noEmit && tsc -p tsconfig.server.json --noEmit"
14
14
  },
15
15
  "dependencies": {
16
- "@aws-sdk/client-s3": "^3.1109.0",
16
+ "@aws-sdk/client-s3": "^3.1111.0",
17
17
  "@base-ui/react": "^1.7.0",
18
- "@dimah-s3/react": "^0.8.0",
19
- "@dimah-s3/server": "^0.8.0",
20
- "@dimah-s3/ui": "^0.8.0",
18
+ "@dimah-s3/react": "^0.8.2",
19
+ "@dimah-s3/server": "^0.8.2",
20
+ "@dimah-s3/ui": "^0.8.2",
21
21
  "@fuma-translate/react": "^1.0.2",
22
- "@hono/node-server": "^2.1.0",
22
+ "@hono/node-server": "^2.1.1",
23
23
  "class-variance-authority": "^0.7.1",
24
24
  "cnfast": "^0.1.0",
25
- "hono": "^4.13.1",
25
+ "hono": "^4.13.2",
26
26
  "lucide-react": "^1.31.0",
27
27
  "next-themes": "^0.4.6",
28
28
  "react": "^19.2.8",
@@ -35,8 +35,8 @@
35
35
  "@types/react": "^19.2.18",
36
36
  "@types/react-dom": "^19.2.4",
37
37
  "@vitejs/plugin-react": "^6.0.5",
38
- "concurrently": "^10.0.4",
39
- "shadcn": "^4.17.0",
38
+ "concurrently": "^10.0.5",
39
+ "shadcn": "^4.18.0",
40
40
  "tailwindcss": "^4.3.3",
41
41
  "tsx": "^4.23.12",
42
42
  "typescript": "^7.0.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimah-s3/cli",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Scaffold dimah-s3 apps from official templates",
5
5
  "keywords": [
6
6
  "s3",