@hono/zod-openapi 0.7.2 → 0.8.0

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.
package/dist/index.d.mts CHANGED
@@ -53,9 +53,9 @@ type Hook<T, E extends Env, P extends string, O> = (result: {
53
53
  } | {
54
54
  success: false;
55
55
  error: ZodError;
56
- }, c: Context<E, P>) => TypedResponse<O> | Promise<TypedResponse<T>> | void;
56
+ }, c: Context<E, P>) => TypedResponse<O> | Promise<TypedResponse<T>> | Response | Promise<Response> | void;
57
57
  type ConvertPathType<T extends string> = T extends `${infer Start}/{${infer Param}}${infer Rest}` ? `${Start}/:${Param}${ConvertPathType<Rest>}` : T;
58
- type HandlerResponse<O> = TypedResponse<O> | Promise<TypedResponse<O>>;
58
+ type HandlerResponse<O> = TypedResponse<O> | Promise<TypedResponse<O>> | Response | Promise<Response>;
59
59
  type OpenAPIHonoOptions<E extends Env> = {
60
60
  defaultHook?: Hook<any, E, any, any>;
61
61
  };
package/dist/index.d.ts CHANGED
@@ -53,9 +53,9 @@ type Hook<T, E extends Env, P extends string, O> = (result: {
53
53
  } | {
54
54
  success: false;
55
55
  error: ZodError;
56
- }, c: Context<E, P>) => TypedResponse<O> | Promise<TypedResponse<T>> | void;
56
+ }, c: Context<E, P>) => TypedResponse<O> | Promise<TypedResponse<T>> | Response | Promise<Response> | void;
57
57
  type ConvertPathType<T extends string> = T extends `${infer Start}/{${infer Param}}${infer Rest}` ? `${Start}/:${Param}${ConvertPathType<Rest>}` : T;
58
- type HandlerResponse<O> = TypedResponse<O> | Promise<TypedResponse<O>>;
58
+ type HandlerResponse<O> = TypedResponse<O> | Promise<TypedResponse<O>> | Response | Promise<Response>;
59
59
  type OpenAPIHonoOptions<E extends Env> = {
60
60
  defaultHook?: Hook<any, E, any, any>;
61
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hono/zod-openapi",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "description": "A wrapper class of Hono which supports OpenAPI.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -37,7 +37,6 @@
37
37
  "zod": "3.*"
38
38
  },
39
39
  "devDependencies": {
40
- "@hono/zod-validator": "^0.1.9",
41
40
  "hono": "^3.7.2",
42
41
  "zod": "^3.22.1"
43
42
  },