chore: update version to 0.19.0-rc.1 and improve error handling in App class

- Bumped version in package.json to 0.19.0-rc.1.
- Changed error throw to console.error in fetch method of App class for better debugging.
- Updated permissions in DataController for the "/types" endpoint to include context for schemaRead.
This commit is contained in:
dswbx
2025-10-24 18:22:13 +02:00
parent 511f639d7a
commit 88cc406002
3 changed files with 5 additions and 4 deletions

View File

@@ -245,9 +245,8 @@ export class App<
get fetch(): Hono["fetch"] {
if (!this.isBuilt()) {
throw new Error("App is not built yet, run build() first");
console.error("App is not built yet, run build() first");
}
return this.server.fetch as any;
}

View File

@@ -161,7 +161,9 @@ export class DataController extends Controller {
hono.get(
"/types",
permission(DataPermissions.entityRead),
permission(SystemPermissions.schemaRead, {
context: (c) => ({ module: "data" }),
}),
describeRoute({
summary: "Retrieve data typescript definitions",
tags: ["data"],