Skip to content

Commit dd0f33a

Browse files
committed
chore(core): upgrade hono
1 parent 32648fe commit dd0f33a

File tree

7 files changed

+60
-59
lines changed

7 files changed

+60
-59
lines changed

clients/openapi/openapi.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@
112112
}
113113
},
114114
"put": {
115-
"cors": [
116-
null
117-
],
118115
"requestBody": {
119116
"content": {
120117
"application/json": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"react@^19": "^19.0.0",
3030
"react-dom@^19": "^19.0.0",
3131
"react@^18": "^18.3",
32-
"hono": "4.8.3",
32+
"hono": "4.9.8",
3333
"zod": "3.25.76"
3434
},
3535
"dependencies": {

packages/rivetkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"@rivetkit/engine-runner": "https://pkg.pr.new/rivet-dev/engine/@rivetkit/engine-runner@0cfcf3d",
167167
"@rivetkit/fast-json-patch": "^3.1.2",
168168
"cbor-x": "^1.6.0",
169-
"hono": "^4.7.0",
169+
"hono": "^4.9.8",
170170
"invariant": "^2.2.4",
171171
"nanoevents": "^9.1.0",
172172
"on-change": "^5.0.1",

packages/rivetkit/src/actor/router-endpoints.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,9 @@ export async function handleAction(
501501
responseData,
502502
HTTP_ACTION_RESPONSE_VERSIONED,
503503
);
504-
return c.body(serialized as Uint8Array, 200, {
504+
505+
// TODO: Remvoe any, Hono is being a dumbass
506+
return c.body(serialized as Uint8Array as any, 200, {
505507
"Content-Type": contentTypeForEncoding(encoding),
506508
});
507509
}

packages/rivetkit/src/common/router.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,6 @@ export function handleRouteError(error: unknown, c: HonoContext) {
7676
HTTP_RESPONSE_ERROR_VERSIONED,
7777
);
7878

79-
return c.body(output, { status: statusCode });
79+
// TODO: Remove any
80+
return c.body(output as any, { status: statusCode });
8081
}

packages/rivetkit/src/manager/router.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ export function createManagerRouter(
310310
response = { err };
311311
}
312312

313-
return c.body(cbor.encode(response));
313+
// TODO: Remove any
314+
return c.body(cbor.encode(response) as any);
314315
});
315316

316317
router.get(".test/inline-driver/connect-websocket/*", async (c) => {

pnpm-lock.yaml

Lines changed: 51 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)