From 12e71ecabae7faf5f26129481a88854b9550c86b Mon Sep 17 00:00:00 2001 From: dalechyn Date: Sun, 8 Dec 2024 17:47:05 +0200 Subject: [PATCH 1/2] chore: bump hono --- package.json | 4 +-- playground/package.json | 2 +- pnpm-lock.yaml | 70 +++++++++++++++++++------------------- src/dev/api.ts | 8 ++--- src/dev/types.ts | 4 +-- src/package.json | 2 +- ui/src/components/Tabs.tsx | 38 ++++++++++----------- ui/src/utils/actions.ts | 2 ++ 8 files changed, 66 insertions(+), 64 deletions(-) diff --git a/package.json b/package.json index 055b22b0..a127d840 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "bun": "^1.0.28", "fast-glob": "^3.3.2", "fs-extra": "^11.2.0", - "hono": "^4.4.4", + "hono": "^4.6.13", "picocolors": "^1.0.0", "rimraf": "^5.0.5", "tsx": "^4.7.1", @@ -52,7 +52,7 @@ "packageManager": "pnpm@8.15.3", "pnpm": { "overrides": { - "hono": "4.4.4", + "hono": "4.6.13", "typescript": "5.3.3" } } diff --git a/playground/package.json b/playground/package.json index 89aa475b..39c964b0 100644 --- a/playground/package.json +++ b/playground/package.json @@ -9,7 +9,7 @@ "dependencies": { "@hono/node-server": "^1.8.2", "frog": "workspace:*", - "hono": "^4" + "hono": "^4.6.13" }, "devDependencies": { "tsx": "^4.7.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 91b8a0fa..a6cbf320 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,7 +5,7 @@ settings: excludeLinksFromLockfile: false overrides: - hono: 4.4.4 + hono: 4.6.13 typescript: 5.3.3 importers: @@ -58,8 +58,8 @@ importers: specifier: ^11.2.0 version: 11.2.0 hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 picocolors: specifier: ^1.0.0 version: 1.0.0 @@ -106,8 +106,8 @@ importers: specifier: workspace:* version: link:../src hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 devDependencies: tsx: specifier: ^4.7.1 @@ -131,8 +131,8 @@ importers: services/auth: dependencies: hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 viem: specifier: ^2.7.10 version: 2.7.11(typescript@5.3.3) @@ -147,8 +147,8 @@ importers: specifier: latest version: link:../../src hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 devDependencies: '@hono/node-server': specifier: ^1 @@ -188,7 +188,7 @@ importers: version: 1.11.2 '@hono/valibot-validator': specifier: ^0.3.0 - version: 0.3.0(hono@4.4.4)(valibot@0.31.1) + version: 0.3.0(hono@4.6.13)(valibot@0.31.1) '@noble/curves': specifier: ^1.3.0 version: 1.3.0 @@ -215,7 +215,7 @@ importers: version: 11.2.0 hono-og: specifier: 0.0.29 - version: 0.0.29(hono@4.4.4) + version: 0.0.29(hono@4.6.13) jose: specifier: ^5.2.2 version: 5.2.2 @@ -241,8 +241,8 @@ importers: specifier: latest version: link:../../src hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 devDependencies: '@types/bun': specifier: latest @@ -257,8 +257,8 @@ importers: specifier: latest version: link:../../src hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 devDependencies: '@cloudflare/workers-types': specifier: latest @@ -276,8 +276,8 @@ importers: specifier: latest version: link:../../src hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 devDependencies: typescript: specifier: 5.3.3 @@ -289,8 +289,8 @@ importers: specifier: latest version: link:../../src hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 next: specifier: 14.1.0 version: 14.1.0(react-dom@18.2.0)(react@18.2.0) @@ -326,8 +326,8 @@ importers: specifier: latest version: link:../../src hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 devDependencies: '@types/node': specifier: ^20.11.17 @@ -342,8 +342,8 @@ importers: specifier: latest version: link:../../src hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 devDependencies: tsx: specifier: ^4.7.1 @@ -391,8 +391,8 @@ importers: specifier: ^7.5.4 version: 7.5.4 hono: - specifier: 4.4.4 - version: 4.4.4 + specifier: 4.6.13 + version: 4.6.13 lz-string: specifier: ^1.5.0 version: 1.5.0 @@ -2210,13 +2210,13 @@ packages: engines: {node: '>=18.14.1'} dev: false - /@hono/valibot-validator@0.3.0(hono@4.4.4)(valibot@0.31.1): + /@hono/valibot-validator@0.3.0(hono@4.6.13)(valibot@0.31.1): resolution: {integrity: sha512-EcGJKzLt11SK4K11yKHrhI93ECtKeSHAnnENHw5tCL0ZhyDIx96avc3Ua8/ri4fwVvRPuOzFQ2OBRsVvwZuqeQ==} peerDependencies: - hono: 4.4.4 + hono: 4.6.13 valibot: '>=0.31.0 <1' dependencies: - hono: 4.4.4 + hono: 4.6.13 valibot: 0.31.1 dev: false @@ -8110,19 +8110,19 @@ packages: minimalistic-crypto-utils: 1.0.1 dev: true - /hono-og@0.0.29(hono@4.4.4): + /hono-og@0.0.29(hono@4.6.13): resolution: {integrity: sha512-j/rWd4c9o8bSysOWnc4CiLaTX79DF8uTxHG9g/J+FeVYDND17uXL7sgmMcRZZXP6QjsrqTFf/Vpmyk1OfJwhTg==} peerDependencies: - hono: 4.4.4 + hono: 4.6.13 dependencies: '@vercel/og': 0.6.3 - hono: 4.4.4 + hono: 4.6.13 workers-og: 0.0.23 dev: false - /hono@4.4.4: - resolution: {integrity: sha512-zO5+4K8yf1iuKhBZhwmpZ/0LzPMr8Zt1RugEGM1xvOqgh9DyLb7tslOtoBks4bmm5bIcLtzLCXUpYpXOkwpABA==} - engines: {node: '>=16.0.0'} + /hono@4.6.13: + resolution: {integrity: sha512-haV0gaMdSjy9URCRN9hxBPlqHa7fMm/T72kAImIxvw4eQLbNz1rgjN4hHElLJSieDiNuiIAXC//cC6YGz2KCbg==} + engines: {node: '>=16.9.0'} /hosted-git-info@2.8.9: resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} @@ -12863,7 +12863,7 @@ packages: fs-extra: 11.2.0 globby: 13.2.2 hastscript: 8.0.0 - hono: 4.4.4 + hono: 4.6.13 mark.js: 8.11.1 mdast-util-directive: 3.0.0 mdast-util-from-markdown: 2.0.0 diff --git a/src/dev/api.ts b/src/dev/api.ts index 0eb78cb0..472a5c88 100644 --- a/src/dev/api.ts +++ b/src/dev/api.ts @@ -186,21 +186,21 @@ export function apiRoutes( speed, }, response: response?.redirected - ? { + ? ({ success: true, location: response.url, error: undefined, status: 302, statusText: 'Found', - } - : { + } as const) + : ({ success: false, error: error?.cause ? `${error.cause}`.replace('Error: ', '') : error?.message, status: response?.status ?? 500, statusText: response?.statusText ?? 'Internal Server Error', - }, + } as const), sourceFrameId: json.sourceFrameId, url, } as const) diff --git a/src/dev/types.ts b/src/dev/types.ts index 991465e0..ec27f737 100644 --- a/src/dev/types.ts +++ b/src/dev/types.ts @@ -32,12 +32,12 @@ export type FrameButton = { } & ( | { type: 'link' - postUrl: undefined + postUrl?: undefined target: `http://${string}` | `https://${string}` } | { type: 'mint' - postUrl: undefined + postUrl?: undefined target: `eip155:${string}` } | { diff --git a/src/package.json b/src/package.json index 28a5d75d..dd05bed1 100644 --- a/src/package.json +++ b/src/package.json @@ -90,7 +90,7 @@ } }, "peerDependencies": { - "hono": "^4.4.4", + "hono": "^4.6.13", "typescript": ">=5.0.4" }, "peerDependenciesMeta": { diff --git a/ui/src/components/Tabs.tsx b/ui/src/components/Tabs.tsx index f4ff9c14..99ec87a0 100644 --- a/ui/src/components/Tabs.tsx +++ b/ui/src/components/Tabs.tsx @@ -88,7 +88,7 @@ export function Tabs(props: TabsProps) {