Skip to content

Commit 3faaea0

Browse files
refactor: remove implicit event handler conversion warning (#1340)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Closes #1276
1 parent 829daf1 commit 3faaea0

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/event/utils.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ export function toEventHandler(
119119
_?: any,
120120
_route?: string,
121121
): EventHandler {
122-
if (!isEventHandler(input)) {
123-
console.warn(
124-
"[h3] Implicit event handler conversion is deprecated. Use `eventHandler()` or `fromNodeMiddleware()` to define event handlers.",
125-
_route && _route !== "/" ? "\n" + ` Route: ${_route}` : "",
126-
"\n" + ` Handler: ${input}`,
127-
);
128-
}
129122
return input;
130123
}
131124

0 commit comments

Comments
 (0)