@hono/zod-openapi 0.19.8 → 1.0.0-beta.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/README.md +1 -1
- package/dist/index.cjs +9 -6
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -4
- package/package.json +6 -6
- package/CHANGELOG.md +0 -472
package/README.md
CHANGED
|
@@ -472,7 +472,7 @@ Be careful when combining `OpenAPIHono` instances with plain `Hono` instances. `
|
|
|
472
472
|
|
|
473
473
|
If you're migrating from plain `Hono` to `OpenAPIHono`, we recommend porting your top-level app, then working your way down the router tree.
|
|
474
474
|
|
|
475
|
-
When using the `.route()` method to mount a child OpenAPIHono app that uses path parameters, you should use the Hono
|
|
475
|
+
When using the `.route()` method to mount a child OpenAPIHono app that uses path parameters, you should use the Hono _:param_ syntax in the parent route path, rather than the OpenAPI _{param}_ syntax:
|
|
476
476
|
|
|
477
477
|
```
|
|
478
478
|
const bookActionsApp = new OpenAPIHono()
|
package/dist/index.cjs
CHANGED
|
@@ -23,14 +23,14 @@ __export(index_exports, {
|
|
|
23
23
|
OpenAPIHono: () => OpenAPIHono,
|
|
24
24
|
createRoute: () => createRoute,
|
|
25
25
|
extendZodWithOpenApi: () => import_zod_to_openapi.extendZodWithOpenApi,
|
|
26
|
-
z: () =>
|
|
26
|
+
z: () => import_v4.z
|
|
27
27
|
});
|
|
28
28
|
module.exports = __toCommonJS(index_exports);
|
|
29
29
|
var import_zod_to_openapi = require("@asteasolutions/zod-to-openapi");
|
|
30
30
|
var import_zod_validator = require("@hono/zod-validator");
|
|
31
31
|
var import_hono = require("hono");
|
|
32
32
|
var import_url = require("hono/utils/url");
|
|
33
|
-
var
|
|
33
|
+
var import_v4 = require("zod/v4");
|
|
34
34
|
var OpenAPIHono = class _OpenAPIHono extends import_hono.Hono {
|
|
35
35
|
openAPIRegistry;
|
|
36
36
|
defaultHook;
|
|
@@ -98,7 +98,7 @@ var OpenAPIHono = class _OpenAPIHono extends import_hono.Hono {
|
|
|
98
98
|
continue;
|
|
99
99
|
}
|
|
100
100
|
const schema = bodyContent[mediaType]["schema"];
|
|
101
|
-
if (!(schema instanceof
|
|
101
|
+
if (!(schema instanceof import_v4.ZodType)) {
|
|
102
102
|
continue;
|
|
103
103
|
}
|
|
104
104
|
if (isJSONContentType(mediaType)) {
|
|
@@ -210,10 +210,13 @@ var OpenAPIHono = class _OpenAPIHono extends import_hono.Hono {
|
|
|
210
210
|
)
|
|
211
211
|
});
|
|
212
212
|
case "schema":
|
|
213
|
-
return this.openAPIRegistry.register(
|
|
213
|
+
return this.openAPIRegistry.register(
|
|
214
|
+
(0, import_zod_to_openapi.getOpenApiMetadata)(def.schema)._internal?.refId,
|
|
215
|
+
def.schema
|
|
216
|
+
);
|
|
214
217
|
case "parameter":
|
|
215
218
|
return this.openAPIRegistry.registerParameter(
|
|
216
|
-
def.schema.
|
|
219
|
+
(0, import_zod_to_openapi.getOpenApiMetadata)(def.schema)._internal?.refId,
|
|
217
220
|
def.schema
|
|
218
221
|
);
|
|
219
222
|
default: {
|
|
@@ -237,7 +240,7 @@ var createRoute = (routeConfig) => {
|
|
|
237
240
|
};
|
|
238
241
|
return Object.defineProperty(route, "getRoutingPath", { enumerable: false });
|
|
239
242
|
};
|
|
240
|
-
(0, import_zod_to_openapi.extendZodWithOpenApi)(
|
|
243
|
+
(0, import_zod_to_openapi.extendZodWithOpenApi)(import_v4.z);
|
|
241
244
|
function addBasePathToDocument(document, basePath) {
|
|
242
245
|
const updatedPaths = {};
|
|
243
246
|
Object.keys(document.paths).forEach((path) => {
|
package/dist/index.d.cts
CHANGED
|
@@ -8,8 +8,8 @@ import { MiddlewareHandler, TypedResponse, Env, ValidationTargets, Context, Inpu
|
|
|
8
8
|
import { MergePath, MergeSchemaPath } from 'hono/types';
|
|
9
9
|
import { InfoStatusCode, SuccessStatusCode, RedirectStatusCode, ClientErrorStatusCode, ServerErrorStatusCode, StatusCode } from 'hono/utils/http-status';
|
|
10
10
|
import { SimplifyDeepArray, JSONValue, JSONParsed, RemoveBlankRecord } from 'hono/utils/types';
|
|
11
|
-
import {
|
|
12
|
-
export { z } from 'zod';
|
|
11
|
+
import { ZodType, z, ZodError } from 'zod/v4';
|
|
12
|
+
export { z } from 'zod/v4';
|
|
13
13
|
|
|
14
14
|
type MaybePromise<T> = Promise<T> | T;
|
|
15
15
|
type RouteConfig = RouteConfig$1 & {
|
|
@@ -40,7 +40,7 @@ type InputTypeBase<R extends RouteConfig, Part extends string, Type extends keyo
|
|
|
40
40
|
[K in Type]: z.output<RequestPart<R, Part>>;
|
|
41
41
|
};
|
|
42
42
|
} : {} : {};
|
|
43
|
-
type InputTypeJson<R extends RouteConfig> = R['request'] extends RequestTypes ? R['request']['body'] extends ZodRequestBody ? R['request']['body']['content'] extends ZodContentObject ? IsJson<keyof R['request']['body']['content']> extends never ? {} : R['request']['body']['content'][keyof R['request']['body']['content']] extends Record<'schema',
|
|
43
|
+
type InputTypeJson<R extends RouteConfig> = R['request'] extends RequestTypes ? R['request']['body'] extends ZodRequestBody ? R['request']['body']['content'] extends ZodContentObject ? IsJson<keyof R['request']['body']['content']> extends never ? {} : R['request']['body']['content'][keyof R['request']['body']['content']] extends Record<'schema', ZodType<any>> ? {
|
|
44
44
|
in: {
|
|
45
45
|
json: z.input<R['request']['body']['content'][keyof R['request']['body']['content']]['schema']>;
|
|
46
46
|
};
|
|
@@ -48,7 +48,7 @@ type InputTypeJson<R extends RouteConfig> = R['request'] extends RequestTypes ?
|
|
|
48
48
|
json: z.output<R['request']['body']['content'][keyof R['request']['body']['content']]['schema']>;
|
|
49
49
|
};
|
|
50
50
|
} : {} : {} : {} : {};
|
|
51
|
-
type InputTypeForm<R extends RouteConfig> = R['request'] extends RequestTypes ? R['request']['body'] extends ZodRequestBody ? R['request']['body']['content'] extends ZodContentObject ? IsForm<keyof R['request']['body']['content']> extends never ? {} : R['request']['body']['content'][keyof R['request']['body']['content']] extends Record<'schema',
|
|
51
|
+
type InputTypeForm<R extends RouteConfig> = R['request'] extends RequestTypes ? R['request']['body'] extends ZodRequestBody ? R['request']['body']['content'] extends ZodContentObject ? IsForm<keyof R['request']['body']['content']> extends never ? {} : R['request']['body']['content'][keyof R['request']['body']['content']] extends Record<'schema', ZodType<any>> ? {
|
|
52
52
|
in: {
|
|
53
53
|
form: z.input<R['request']['body']['content'][keyof R['request']['body']['content']]['schema']>;
|
|
54
54
|
};
|
|
@@ -62,7 +62,7 @@ type InputTypeHeader<R extends RouteConfig> = InputTypeBase<R, 'headers', 'heade
|
|
|
62
62
|
type InputTypeCookie<R extends RouteConfig> = InputTypeBase<R, 'cookies', 'cookie'>;
|
|
63
63
|
type ExtractContent<T> = T extends {
|
|
64
64
|
[K in keyof T]: infer A;
|
|
65
|
-
} ? A extends Record<'schema',
|
|
65
|
+
} ? A extends Record<'schema', ZodType> ? z.infer<A['schema']> : never : never;
|
|
66
66
|
type StatusCodeRangeDefinitions = {
|
|
67
67
|
'1XX': InfoStatusCode;
|
|
68
68
|
'2XX': SuccessStatusCode;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { MiddlewareHandler, TypedResponse, Env, ValidationTargets, Context, Inpu
|
|
|
8
8
|
import { MergePath, MergeSchemaPath } from 'hono/types';
|
|
9
9
|
import { InfoStatusCode, SuccessStatusCode, RedirectStatusCode, ClientErrorStatusCode, ServerErrorStatusCode, StatusCode } from 'hono/utils/http-status';
|
|
10
10
|
import { SimplifyDeepArray, JSONValue, JSONParsed, RemoveBlankRecord } from 'hono/utils/types';
|
|
11
|
-
import {
|
|
12
|
-
export { z } from 'zod';
|
|
11
|
+
import { ZodType, z, ZodError } from 'zod/v4';
|
|
12
|
+
export { z } from 'zod/v4';
|
|
13
13
|
|
|
14
14
|
type MaybePromise<T> = Promise<T> | T;
|
|
15
15
|
type RouteConfig = RouteConfig$1 & {
|
|
@@ -40,7 +40,7 @@ type InputTypeBase<R extends RouteConfig, Part extends string, Type extends keyo
|
|
|
40
40
|
[K in Type]: z.output<RequestPart<R, Part>>;
|
|
41
41
|
};
|
|
42
42
|
} : {} : {};
|
|
43
|
-
type InputTypeJson<R extends RouteConfig> = R['request'] extends RequestTypes ? R['request']['body'] extends ZodRequestBody ? R['request']['body']['content'] extends ZodContentObject ? IsJson<keyof R['request']['body']['content']> extends never ? {} : R['request']['body']['content'][keyof R['request']['body']['content']] extends Record<'schema',
|
|
43
|
+
type InputTypeJson<R extends RouteConfig> = R['request'] extends RequestTypes ? R['request']['body'] extends ZodRequestBody ? R['request']['body']['content'] extends ZodContentObject ? IsJson<keyof R['request']['body']['content']> extends never ? {} : R['request']['body']['content'][keyof R['request']['body']['content']] extends Record<'schema', ZodType<any>> ? {
|
|
44
44
|
in: {
|
|
45
45
|
json: z.input<R['request']['body']['content'][keyof R['request']['body']['content']]['schema']>;
|
|
46
46
|
};
|
|
@@ -48,7 +48,7 @@ type InputTypeJson<R extends RouteConfig> = R['request'] extends RequestTypes ?
|
|
|
48
48
|
json: z.output<R['request']['body']['content'][keyof R['request']['body']['content']]['schema']>;
|
|
49
49
|
};
|
|
50
50
|
} : {} : {} : {} : {};
|
|
51
|
-
type InputTypeForm<R extends RouteConfig> = R['request'] extends RequestTypes ? R['request']['body'] extends ZodRequestBody ? R['request']['body']['content'] extends ZodContentObject ? IsForm<keyof R['request']['body']['content']> extends never ? {} : R['request']['body']['content'][keyof R['request']['body']['content']] extends Record<'schema',
|
|
51
|
+
type InputTypeForm<R extends RouteConfig> = R['request'] extends RequestTypes ? R['request']['body'] extends ZodRequestBody ? R['request']['body']['content'] extends ZodContentObject ? IsForm<keyof R['request']['body']['content']> extends never ? {} : R['request']['body']['content'][keyof R['request']['body']['content']] extends Record<'schema', ZodType<any>> ? {
|
|
52
52
|
in: {
|
|
53
53
|
form: z.input<R['request']['body']['content'][keyof R['request']['body']['content']]['schema']>;
|
|
54
54
|
};
|
|
@@ -62,7 +62,7 @@ type InputTypeHeader<R extends RouteConfig> = InputTypeBase<R, 'headers', 'heade
|
|
|
62
62
|
type InputTypeCookie<R extends RouteConfig> = InputTypeBase<R, 'cookies', 'cookie'>;
|
|
63
63
|
type ExtractContent<T> = T extends {
|
|
64
64
|
[K in keyof T]: infer A;
|
|
65
|
-
} ? A extends Record<'schema',
|
|
65
|
+
} ? A extends Record<'schema', ZodType> ? z.infer<A['schema']> : never : never;
|
|
66
66
|
type StatusCodeRangeDefinitions = {
|
|
67
67
|
'1XX': InfoStatusCode;
|
|
68
68
|
'2XX': SuccessStatusCode;
|
package/dist/index.js
CHANGED
|
@@ -3,12 +3,13 @@ import {
|
|
|
3
3
|
OpenAPIRegistry,
|
|
4
4
|
OpenApiGeneratorV3,
|
|
5
5
|
OpenApiGeneratorV31,
|
|
6
|
-
extendZodWithOpenApi
|
|
6
|
+
extendZodWithOpenApi,
|
|
7
|
+
getOpenApiMetadata
|
|
7
8
|
} from "@asteasolutions/zod-to-openapi";
|
|
8
9
|
import { zValidator } from "@hono/zod-validator";
|
|
9
10
|
import { Hono } from "hono";
|
|
10
11
|
import { mergePath } from "hono/utils/url";
|
|
11
|
-
import { ZodType, z } from "zod";
|
|
12
|
+
import { ZodType, z } from "zod/v4";
|
|
12
13
|
var OpenAPIHono = class _OpenAPIHono extends Hono {
|
|
13
14
|
openAPIRegistry;
|
|
14
15
|
defaultHook;
|
|
@@ -188,10 +189,13 @@ var OpenAPIHono = class _OpenAPIHono extends Hono {
|
|
|
188
189
|
)
|
|
189
190
|
});
|
|
190
191
|
case "schema":
|
|
191
|
-
return this.openAPIRegistry.register(
|
|
192
|
+
return this.openAPIRegistry.register(
|
|
193
|
+
getOpenApiMetadata(def.schema)._internal?.refId,
|
|
194
|
+
def.schema
|
|
195
|
+
);
|
|
192
196
|
case "parameter":
|
|
193
197
|
return this.openAPIRegistry.registerParameter(
|
|
194
|
-
def.schema.
|
|
198
|
+
getOpenApiMetadata(def.schema)._internal?.refId,
|
|
195
199
|
def.schema
|
|
196
200
|
);
|
|
197
201
|
default: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hono/zod-openapi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"description": "A wrapper class of Hono which supports OpenAPI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"homepage": "https://github.com/honojs/middleware",
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"hono": ">=4.3.6",
|
|
43
|
-
"zod": "3
|
|
43
|
+
"zod": "^3.25.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@arethetypeswrong/cli": "^0.17.4",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"typescript": "^5.8.2",
|
|
50
50
|
"vitest": "^3.0.8",
|
|
51
51
|
"yaml": "^2.4.3",
|
|
52
|
-
"zod": "^3.
|
|
52
|
+
"zod": "^3.25.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@asteasolutions/zod-to-openapi": "^
|
|
56
|
-
"@hono/zod-validator": "
|
|
55
|
+
"@asteasolutions/zod-to-openapi": "^8.0.0-beta.3",
|
|
56
|
+
"@hono/zod-validator": "workspace:^"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=16.0.0"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
# @hono/zod-openapi
|
|
2
|
-
|
|
3
|
-
## 0.19.8
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- Updated dependencies [[`5c3f61f889f5d96f2ff4a79c9df89c03e25dd7f3`](https://github.com/honojs/middleware/commit/5c3f61f889f5d96f2ff4a79c9df89c03e25dd7f3)]:
|
|
8
|
-
- @hono/zod-validator@0.7.0
|
|
9
|
-
|
|
10
|
-
## 0.19.7
|
|
11
|
-
|
|
12
|
-
### Patch Changes
|
|
13
|
-
|
|
14
|
-
- [#1173](https://github.com/honojs/middleware/pull/1173) [`a62b59f4505d10f41523a36ad7c02776f9e1cb01`](https://github.com/honojs/middleware/commit/a62b59f4505d10f41523a36ad7c02776f9e1cb01) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: ignore the type error from Zod Validator
|
|
15
|
-
|
|
16
|
-
- Updated dependencies [[`a62b59f4505d10f41523a36ad7c02776f9e1cb01`](https://github.com/honojs/middleware/commit/a62b59f4505d10f41523a36ad7c02776f9e1cb01)]:
|
|
17
|
-
- @hono/zod-validator@0.6.0
|
|
18
|
-
|
|
19
|
-
## 0.19.6
|
|
20
|
-
|
|
21
|
-
### Patch Changes
|
|
22
|
-
|
|
23
|
-
- Updated dependencies [[`8ed99d9d791ed6bd8b897c705289b0464947e632`](https://github.com/honojs/middleware/commit/8ed99d9d791ed6bd8b897c705289b0464947e632)]:
|
|
24
|
-
- @hono/zod-validator@0.5.0
|
|
25
|
-
|
|
26
|
-
## 0.19.5
|
|
27
|
-
|
|
28
|
-
### Patch Changes
|
|
29
|
-
|
|
30
|
-
- [#1127](https://github.com/honojs/middleware/pull/1127) [`63a9dff2b925a09e8597f327f954f332c3b59b14`](https://github.com/honojs/middleware/commit/63a9dff2b925a09e8597f327f954f332c3b59b14) Thanks [@sigmachirality](https://github.com/sigmachirality)! - chore: lock zod-to-openapi to `^7.3.0` to fix `z.custom`
|
|
31
|
-
|
|
32
|
-
## 0.19.4
|
|
33
|
-
|
|
34
|
-
### Patch Changes
|
|
35
|
-
|
|
36
|
-
- [#1111](https://github.com/honojs/middleware/pull/1111) [`ad4622a8536c8ef9c5feec2e447f36c2629ecbca`](https://github.com/honojs/middleware/commit/ad4622a8536c8ef9c5feec2e447f36c2629ecbca) Thanks [@BarryThePenguin](https://github.com/BarryThePenguin)! - Republish v0.19.3 without workspace reference
|
|
37
|
-
|
|
38
|
-
## 0.19.3
|
|
39
|
-
|
|
40
|
-
### Patch Changes
|
|
41
|
-
|
|
42
|
-
- [#1106](https://github.com/honojs/middleware/pull/1106) [`448a8fc687cca2bcab2353ea4237f1293706d5e2`](https://github.com/honojs/middleware/commit/448a8fc687cca2bcab2353ea4237f1293706d5e2) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: infer Env correctly if the middleware is `[]`
|
|
43
|
-
|
|
44
|
-
## 0.19.2
|
|
45
|
-
|
|
46
|
-
### Patch Changes
|
|
47
|
-
|
|
48
|
-
- [#995](https://github.com/honojs/middleware/pull/995) [`c279ba2bc5204b1b9effc92c45f129904ea67795`](https://github.com/honojs/middleware/commit/c279ba2bc5204b1b9effc92c45f129904ea67795) Thanks [@luxass](https://github.com/luxass)! - fix(zod-openapi): correctly handle path parameters in basePath
|
|
49
|
-
|
|
50
|
-
## 0.19.1
|
|
51
|
-
|
|
52
|
-
### Patch Changes
|
|
53
|
-
|
|
54
|
-
- [#992](https://github.com/honojs/middleware/pull/992) [`3c738f5ea44f5f5e5cdc14dfeaba5c04188d6373`](https://github.com/honojs/middleware/commit/3c738f5ea44f5f5e5cdc14dfeaba5c04188d6373) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: replace path param strings correctly in basePath
|
|
55
|
-
|
|
56
|
-
## 0.19.0
|
|
57
|
-
|
|
58
|
-
### Minor Changes
|
|
59
|
-
|
|
60
|
-
- [#984](https://github.com/honojs/middleware/pull/984) [`59c6356aac42d360a06cbc9357921283e455ade4`](https://github.com/honojs/middleware/commit/59c6356aac42d360a06cbc9357921283e455ade4) Thanks [@rmichalak](https://github.com/rmichalak)! - Add ability to exclude specific routes from OpenAPI docs
|
|
61
|
-
|
|
62
|
-
## 0.18.4
|
|
63
|
-
|
|
64
|
-
### Patch Changes
|
|
65
|
-
|
|
66
|
-
- [#955](https://github.com/honojs/middleware/pull/955) [`70a564e268cd6350cfb994e5b5c5626b31a3fcc9`](https://github.com/honojs/middleware/commit/70a564e268cd6350cfb994e5b5c5626b31a3fcc9) Thanks [@luxass](https://github.com/luxass)! - fix: use nested app base paths in openapi schema
|
|
67
|
-
|
|
68
|
-
## 0.18.3
|
|
69
|
-
|
|
70
|
-
### Patch Changes
|
|
71
|
-
|
|
72
|
-
- [#855](https://github.com/honojs/middleware/pull/855) [`3f63c46fa66bfb7f1d80174bfb160cccfa69f0bc`](https://github.com/honojs/middleware/commit/3f63c46fa66bfb7f1d80174bfb160cccfa69f0bc) Thanks [@jstri](https://github.com/jstri)! - fix: support default response
|
|
73
|
-
|
|
74
|
-
## 0.18.2
|
|
75
|
-
|
|
76
|
-
### Patch Changes
|
|
77
|
-
|
|
78
|
-
- [#853](https://github.com/honojs/middleware/pull/853) [`a9804afe71fe5876963b3a6f5972a3e5d50dbdca`](https://github.com/honojs/middleware/commit/a9804afe71fe5876963b3a6f5972a3e5d50dbdca) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: return `Response` if response is not text or JSON
|
|
79
|
-
|
|
80
|
-
## 0.18.1
|
|
81
|
-
|
|
82
|
-
### Patch Changes
|
|
83
|
-
|
|
84
|
-
- [#849](https://github.com/honojs/middleware/pull/849) [`4ebecc61420b6bd94b3a44b8ea58a85654f7ec5d`](https://github.com/honojs/middleware/commit/4ebecc61420b6bd94b3a44b8ea58a85654f7ec5d) Thanks [@askorupskyy](https://github.com/askorupskyy)! - Fix multi-middleware complex object type inference
|
|
85
|
-
|
|
86
|
-
## 0.18.0
|
|
87
|
-
|
|
88
|
-
### Minor Changes
|
|
89
|
-
|
|
90
|
-
- [#837](https://github.com/honojs/middleware/pull/837) [`ebd70a0e03c5bb78ba2d39613e10bdc28fe7822b`](https://github.com/honojs/middleware/commit/ebd70a0e03c5bb78ba2d39613e10bdc28fe7822b) Thanks [@yusukebe](https://github.com/yusukebe)! - feat: support `enum`
|
|
91
|
-
|
|
92
|
-
## 0.17.1
|
|
93
|
-
|
|
94
|
-
### Patch Changes
|
|
95
|
-
|
|
96
|
-
- [#828](https://github.com/honojs/middleware/pull/828) [`bbb48ef368d8277b89cb938207093462addf4be3`](https://github.com/honojs/middleware/commit/bbb48ef368d8277b89cb938207093462addf4be3) Thanks [@daniel-pedersen](https://github.com/daniel-pedersen)! - infer env type parameter from middleware
|
|
97
|
-
|
|
98
|
-
## 0.17.0
|
|
99
|
-
|
|
100
|
-
### Minor Changes
|
|
101
|
-
|
|
102
|
-
- [#807](https://github.com/honojs/middleware/pull/807) [`2eec6f6fd90b00e130db5f0b3cfeff806132d98a`](https://github.com/honojs/middleware/commit/2eec6f6fd90b00e130db5f0b3cfeff806132d98a) Thanks [@oberbeck](https://github.com/oberbeck)! - introduce routeMiddleware Env inference
|
|
103
|
-
|
|
104
|
-
## 0.16.3
|
|
105
|
-
|
|
106
|
-
### Patch Changes
|
|
107
|
-
|
|
108
|
-
- [#756](https://github.com/honojs/middleware/pull/756) [`f6d642afddb31ffb379e71398f6fef534a6621f3`](https://github.com/honojs/middleware/commit/f6d642afddb31ffb379e71398f6fef534a6621f3) Thanks [@lucaschultz](https://github.com/lucaschultz)! - fix: add target property to parameter of validation hook
|
|
109
|
-
|
|
110
|
-
## 0.16.2
|
|
111
|
-
|
|
112
|
-
### Patch Changes
|
|
113
|
-
|
|
114
|
-
- [#750](https://github.com/honojs/middleware/pull/750) [`98d4ceab9c3eef30d14a457844ce94c3da95b9e9`](https://github.com/honojs/middleware/commit/98d4ceab9c3eef30d14a457844ce94c3da95b9e9) Thanks [@yusukebe](https://github.com/yusukebe)! - chore: bump `@hono/zod-validator`
|
|
115
|
-
|
|
116
|
-
## 0.16.1
|
|
117
|
-
|
|
118
|
-
### Patch Changes
|
|
119
|
-
|
|
120
|
-
- Updated dependencies [[`eda35847916cf7f7e84289eba29a8e5517615c6b`](https://github.com/honojs/middleware/commit/eda35847916cf7f7e84289eba29a8e5517615c6b)]:
|
|
121
|
-
- @hono/zod-validator@0.3.0
|
|
122
|
-
|
|
123
|
-
## 0.16.0
|
|
124
|
-
|
|
125
|
-
### Minor Changes
|
|
126
|
-
|
|
127
|
-
- [#710](https://github.com/honojs/middleware/pull/710) [`dadf5ce3c2c134b83420702ca8fe13d6fb8d9390`](https://github.com/honojs/middleware/commit/dadf5ce3c2c134b83420702ca8fe13d6fb8d9390) Thanks [@ameinhardt](https://github.com/ameinhardt)! - Allow multiple mime type response
|
|
128
|
-
|
|
129
|
-
## 0.15.3
|
|
130
|
-
|
|
131
|
-
### Patch Changes
|
|
132
|
-
|
|
133
|
-
- [#689](https://github.com/honojs/middleware/pull/689) [`c3d48868003ebd215074777a4846af208ddab123`](https://github.com/honojs/middleware/commit/c3d48868003ebd215074777a4846af208ddab123) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: supports `required` for JSON and Form body
|
|
134
|
-
|
|
135
|
-
## 0.15.2
|
|
136
|
-
|
|
137
|
-
### Patch Changes
|
|
138
|
-
|
|
139
|
-
- [#686](https://github.com/honojs/middleware/pull/686) [`a6ec008fbd8235368b796d2c0edb6adfe8c03cc5`](https://github.com/honojs/middleware/commit/a6ec008fbd8235368b796d2c0edb6adfe8c03cc5) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: don't validate the body if content-type is mismatched
|
|
140
|
-
|
|
141
|
-
## 0.15.1
|
|
142
|
-
|
|
143
|
-
### Patch Changes
|
|
144
|
-
|
|
145
|
-
- [#656](https://github.com/honojs/middleware/pull/656) [`a04ab70c2c4254eed24efd81d6e5a31553553ec9`](https://github.com/honojs/middleware/commit/a04ab70c2c4254eed24efd81d6e5a31553553ec9) Thanks [@adjsky](https://github.com/adjsky)! - fix(zod-openapi): infer OpenAPIObjectConfig
|
|
146
|
-
|
|
147
|
-
## 0.15.0
|
|
148
|
-
|
|
149
|
-
### Minor Changes
|
|
150
|
-
|
|
151
|
-
- [#645](https://github.com/honojs/middleware/pull/645) [`f38a6166f6ced37ebea3f7cfcefe91d001b0c3b3`](https://github.com/honojs/middleware/commit/f38a6166f6ced37ebea3f7cfcefe91d001b0c3b3) Thanks [@DavidHavl](https://github.com/DavidHavl)! - Support other json content-types such as application/vnd.api+json, application/problem+json, etc.
|
|
152
|
-
|
|
153
|
-
## 0.14.9
|
|
154
|
-
|
|
155
|
-
### Patch Changes
|
|
156
|
-
|
|
157
|
-
- [#632](https://github.com/honojs/middleware/pull/632) [`a405d0870998f131dbc05a44fae0e6df7ff82521`](https://github.com/honojs/middleware/commit/a405d0870998f131dbc05a44fae0e6df7ff82521) Thanks [@paolostyle](https://github.com/paolostyle)! - expose `extendZodWithOpenApi` from `zod-to-openapi`
|
|
158
|
-
|
|
159
|
-
## 0.14.8
|
|
160
|
-
|
|
161
|
-
### Patch Changes
|
|
162
|
-
|
|
163
|
-
- [#623](https://github.com/honojs/middleware/pull/623) [`834a97a7b069fe5301f305f18bf271f3842af647`](https://github.com/honojs/middleware/commit/834a97a7b069fe5301f305f18bf271f3842af647) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: support `coerce`
|
|
164
|
-
|
|
165
|
-
## 0.14.7
|
|
166
|
-
|
|
167
|
-
### Patch Changes
|
|
168
|
-
|
|
169
|
-
- [#609](https://github.com/honojs/middleware/pull/609) [`b06bde6ef59368e00c7c75f5866687df2ce47bd9`](https://github.com/honojs/middleware/commit/b06bde6ef59368e00c7c75f5866687df2ce47bd9) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: support a base path
|
|
170
|
-
|
|
171
|
-
## 0.14.6
|
|
172
|
-
|
|
173
|
-
### Patch Changes
|
|
174
|
-
|
|
175
|
-
- [#607](https://github.com/honojs/middleware/pull/607) [`375c98b145560c855f9000c523734bb2d31990c9`](https://github.com/honojs/middleware/commit/375c98b145560c855f9000c523734bb2d31990c9) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: remove the type error for the hook
|
|
176
|
-
|
|
177
|
-
## 0.14.5
|
|
178
|
-
|
|
179
|
-
### Patch Changes
|
|
180
|
-
|
|
181
|
-
- [#582](https://github.com/honojs/middleware/pull/582) [`053a85c722833b1f670fe667fb80b3cbe88f9a4d`](https://github.com/honojs/middleware/commit/053a85c722833b1f670fe667fb80b3cbe88f9a4d) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: bump `@asteasolutions/zod-to-openapi`
|
|
182
|
-
|
|
183
|
-
## 0.14.4
|
|
184
|
-
|
|
185
|
-
### Patch Changes
|
|
186
|
-
|
|
187
|
-
- [#576](https://github.com/honojs/middleware/pull/576) [`9a9de504942358be5a77236231e20f5016b6d1a9`](https://github.com/honojs/middleware/commit/9a9de504942358be5a77236231e20f5016b6d1a9) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: use `JSONParsed` for creating a response type
|
|
188
|
-
|
|
189
|
-
## 0.14.3
|
|
190
|
-
|
|
191
|
-
### Patch Changes
|
|
192
|
-
|
|
193
|
-
- [#574](https://github.com/honojs/middleware/pull/574) [`ef9f45ab692c81e1474cfb054f55a2c9fc39bdf8`](https://github.com/honojs/middleware/commit/ef9f45ab692c81e1474cfb054f55a2c9fc39bdf8) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: relax types to support `.refine()` for an object
|
|
194
|
-
|
|
195
|
-
## 0.14.2
|
|
196
|
-
|
|
197
|
-
### Patch Changes
|
|
198
|
-
|
|
199
|
-
- [#557](https://github.com/honojs/middleware/pull/557) [`69e53644647c156e5f6df0d981eabcd490c4e60b`](https://github.com/honojs/middleware/commit/69e53644647c156e5f6df0d981eabcd490c4e60b) Thanks [@arjunyel](https://github.com/arjunyel)! - Fix OpenAPI yaml with route middleware
|
|
200
|
-
|
|
201
|
-
## 0.14.1
|
|
202
|
-
|
|
203
|
-
### Patch Changes
|
|
204
|
-
|
|
205
|
-
- Updated dependencies [[`aa055494974eb911ec784e6462691aafefd98125`](https://github.com/honojs/middleware/commit/aa055494974eb911ec784e6462691aafefd98125)]:
|
|
206
|
-
- @hono/zod-validator@0.2.2
|
|
207
|
-
|
|
208
|
-
## 0.14.0
|
|
209
|
-
|
|
210
|
-
### Minor Changes
|
|
211
|
-
|
|
212
|
-
- [#535](https://github.com/honojs/middleware/pull/535) [`a595e4e260040decd871e271c60c5a07c6db4086`](https://github.com/honojs/middleware/commit/a595e4e260040decd871e271c60c5a07c6db4086) Thanks [@taku-hatano](https://github.com/taku-hatano)! - extract range definitions to StatusCode
|
|
213
|
-
|
|
214
|
-
## 0.13.0
|
|
215
|
-
|
|
216
|
-
### Minor Changes
|
|
217
|
-
|
|
218
|
-
- [#532](https://github.com/honojs/middleware/pull/532) [`eeccd4fc2fd63c9d79d7a4911f80fa94d1680983`](https://github.com/honojs/middleware/commit/eeccd4fc2fd63c9d79d7a4911f80fa94d1680983) Thanks [@akineko](https://github.com/akineko)! - feat(zod-openapi): export RouteConfig type
|
|
219
|
-
|
|
220
|
-
## 0.12.2
|
|
221
|
-
|
|
222
|
-
### Patch Changes
|
|
223
|
-
|
|
224
|
-
- [#529](https://github.com/honojs/middleware/pull/529) [`0a43d2c562f5adb12009f6bdd0e7fb7c06a625e6`](https://github.com/honojs/middleware/commit/0a43d2c562f5adb12009f6bdd0e7fb7c06a625e6) Thanks [@akineko](https://github.com/akineko)! - fix(zod-openapi): update RouteHandler type to support MaybePromise
|
|
225
|
-
|
|
226
|
-
## 0.12.1
|
|
227
|
-
|
|
228
|
-
### Patch Changes
|
|
229
|
-
|
|
230
|
-
- [#522](https://github.com/honojs/middleware/pull/522) [`2d5ef8255861482cd62deee3d6616a2e21016d53`](https://github.com/honojs/middleware/commit/2d5ef8255861482cd62deee3d6616a2e21016d53) Thanks [@alexzhang1030](https://github.com/alexzhang1030)! - fix(zod-openapi): return type of handler should be MaybePromise
|
|
231
|
-
|
|
232
|
-
## 0.12.0
|
|
233
|
-
|
|
234
|
-
### Minor Changes
|
|
235
|
-
|
|
236
|
-
- [#519](https://github.com/honojs/middleware/pull/519) [`b03484ba056215f0506894f9156cb1e2963cb450`](https://github.com/honojs/middleware/commit/b03484ba056215f0506894f9156cb1e2963cb450) Thanks [@yusukebe](https://github.com/yusukebe)! - feat(zod-openapi): support "status code"
|
|
237
|
-
|
|
238
|
-
## 0.11.1
|
|
239
|
-
|
|
240
|
-
### Patch Changes
|
|
241
|
-
|
|
242
|
-
- [#510](https://github.com/honojs/middleware/pull/510) [`88113fae8b5bd5d0a7662a1cca426f522da109b7`](https://github.com/honojs/middleware/commit/88113fae8b5bd5d0a7662a1cca426f522da109b7) Thanks [@taku-hatano](https://github.com/taku-hatano)! - Add Promise<void> to Hook
|
|
243
|
-
|
|
244
|
-
## 0.11.0
|
|
245
|
-
|
|
246
|
-
### Minor Changes
|
|
247
|
-
|
|
248
|
-
- [#435](https://github.com/honojs/middleware/pull/435) [`4660092b9ae446e3a6da32628e1bead361769e8a`](https://github.com/honojs/middleware/commit/4660092b9ae446e3a6da32628e1bead361769e8a) Thanks [@RomanNabukhotnyi](https://github.com/RomanNabukhotnyi)! - Add 'middleware' property for route
|
|
249
|
-
|
|
250
|
-
## 0.10.1
|
|
251
|
-
|
|
252
|
-
### Patch Changes
|
|
253
|
-
|
|
254
|
-
- [#445](https://github.com/honojs/middleware/pull/445) [`110e27246015cac60c8a07cd078c3245b7ddbeeb`](https://github.com/honojs/middleware/commit/110e27246015cac60c8a07cd078c3245b7ddbeeb) Thanks [@fumieval](https://github.com/fumieval)! - Make getRoutingPath property of a RouteConfig non-enumerable
|
|
255
|
-
|
|
256
|
-
## 0.10.0
|
|
257
|
-
|
|
258
|
-
### Minor Changes
|
|
259
|
-
|
|
260
|
-
- [#443](https://github.com/honojs/middleware/pull/443) [`1e0d857ef9f756d1217eaccf37a028be7a107d78`](https://github.com/honojs/middleware/commit/1e0d857ef9f756d1217eaccf37a028be7a107d78) Thanks [@yusukebe](https://github.com/yusukebe)! - feat: bump `zod-to-openapi` supports ESM
|
|
261
|
-
|
|
262
|
-
## 0.9.10
|
|
263
|
-
|
|
264
|
-
### Patch Changes
|
|
265
|
-
|
|
266
|
-
- [#437](https://github.com/honojs/middleware/pull/437) [`9fc8591960ca547cb26a8d32d8f1e2c2f3568b95`](https://github.com/honojs/middleware/commit/9fc8591960ca547cb26a8d32d8f1e2c2f3568b95) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: bump `@hono/zod-validator`
|
|
267
|
-
|
|
268
|
-
## 0.9.9
|
|
269
|
-
|
|
270
|
-
### Patch Changes
|
|
271
|
-
|
|
272
|
-
- [#429](https://github.com/honojs/middleware/pull/429) [`b1f8a5325c3ad5eaa029ca5a82e7ef7adc7e6660`](https://github.com/honojs/middleware/commit/b1f8a5325c3ad5eaa029ca5a82e7ef7adc7e6660) Thanks [@hmnd](https://github.com/hmnd)! - fix: base path not included in client types
|
|
273
|
-
|
|
274
|
-
## 0.9.8
|
|
275
|
-
|
|
276
|
-
### Patch Changes
|
|
277
|
-
|
|
278
|
-
- Updated dependencies [[`4875e1c53146d2c67846b8159d3630d465c2a310`](https://github.com/honojs/middleware/commit/4875e1c53146d2c67846b8159d3630d465c2a310)]:
|
|
279
|
-
- @hono/zod-validator@0.2.0
|
|
280
|
-
|
|
281
|
-
## 0.9.7
|
|
282
|
-
|
|
283
|
-
### Patch Changes
|
|
284
|
-
|
|
285
|
-
- [#408](https://github.com/honojs/middleware/pull/408) [`d4ca1ce98f33ae67100986613144e9d12fb933b3`](https://github.com/honojs/middleware/commit/d4ca1ce98f33ae67100986613144e9d12fb933b3) Thanks [@DavidHavl](https://github.com/DavidHavl)! - fix: Fix basePath method disregarding defaultHook
|
|
286
|
-
|
|
287
|
-
## 0.9.6
|
|
288
|
-
|
|
289
|
-
### Patch Changes
|
|
290
|
-
|
|
291
|
-
- [#356](https://github.com/honojs/middleware/pull/356) [`168a0a6d684a0750ab95802d6316e562061f786c`](https://github.com/honojs/middleware/commit/168a0a6d684a0750ab95802d6316e562061f786c) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: handle `Conflicting names for parameter`
|
|
292
|
-
|
|
293
|
-
## 0.9.5
|
|
294
|
-
|
|
295
|
-
### Patch Changes
|
|
296
|
-
|
|
297
|
-
- [#316](https://github.com/honojs/middleware/pull/316) [`5eeb555`](https://github.com/honojs/middleware/commit/5eeb555c8958fb890e80262e3dbf532f3c8c1e55) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: supports named params in nested routes
|
|
298
|
-
|
|
299
|
-
## 0.9.4
|
|
300
|
-
|
|
301
|
-
### Patch Changes
|
|
302
|
-
|
|
303
|
-
- [#313](https://github.com/honojs/middleware/pull/313) [`b8219d9`](https://github.com/honojs/middleware/commit/b8219d9b68e6aba7466705d0787dbdd15b808b06) Thanks [@WildEgo](https://github.com/WildEgo)! - change: Export Hook in @hono/zod-openapi
|
|
304
|
-
|
|
305
|
-
## 0.9.3
|
|
306
|
-
|
|
307
|
-
### Patch Changes
|
|
308
|
-
|
|
309
|
-
- [#292](https://github.com/honojs/middleware/pull/292) [`7ded22a`](https://github.com/honojs/middleware/commit/7ded22a57edba4d30144fd7641d9502eecefc1ac) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: bump Hono for peerDependencies and add tests
|
|
310
|
-
|
|
311
|
-
## 0.9.2
|
|
312
|
-
|
|
313
|
-
### Patch Changes
|
|
314
|
-
|
|
315
|
-
- [#286](https://github.com/honojs/middleware/pull/286) [`8178ba0`](https://github.com/honojs/middleware/commit/8178ba094f9bcc289b57f017a79fb075b08566cb) Thanks [@fahchen](https://github.com/fahchen)! - use z.input to infer input types of the request
|
|
316
|
-
|
|
317
|
-
## 0.9.1
|
|
318
|
-
|
|
319
|
-
### Patch Changes
|
|
320
|
-
|
|
321
|
-
- [#287](https://github.com/honojs/middleware/pull/287) [`1568b92`](https://github.com/honojs/middleware/commit/1568b920de1e45b963d1812c32932fad01dbe2fe) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: Strict type checking of return values
|
|
322
|
-
|
|
323
|
-
## 0.9.0
|
|
324
|
-
|
|
325
|
-
### Minor Changes
|
|
326
|
-
|
|
327
|
-
- [#272](https://github.com/honojs/middleware/pull/272) [`d4aa8ec`](https://github.com/honojs/middleware/commit/d4aa8ec5ad38942c1606642dc4676a92a7c006a8) Thanks [@Karibash](https://github.com/Karibash)! - Make context accessible in the doc route
|
|
328
|
-
|
|
329
|
-
## 0.8.6
|
|
330
|
-
|
|
331
|
-
### Patch Changes
|
|
332
|
-
|
|
333
|
-
- [#260](https://github.com/honojs/middleware/pull/260) [`ba83a26`](https://github.com/honojs/middleware/commit/ba83a268e010a7b18172e7de01e3901b58a7ec62) Thanks [@Karibash](https://github.com/Karibash)! - Make it possible to do method chaining even for doc methods
|
|
334
|
-
|
|
335
|
-
## 0.8.5
|
|
336
|
-
|
|
337
|
-
### Patch Changes
|
|
338
|
-
|
|
339
|
-
- [#258](https://github.com/honojs/middleware/pull/258) [`368c352`](https://github.com/honojs/middleware/commit/368c3520fa8a15657e8e42313bbfde3d87b0183b) Thanks [@Karibash](https://github.com/Karibash)! - Fix a bug that slashes were duplicated when mounting a path using the route method
|
|
340
|
-
|
|
341
|
-
## 0.8.4
|
|
342
|
-
|
|
343
|
-
### Patch Changes
|
|
344
|
-
|
|
345
|
-
- [#255](https://github.com/honojs/middleware/pull/255) [`129f468`](https://github.com/honojs/middleware/commit/129f4680a2c050ec49a0422d735e0d173d7b5faf) Thanks [@Karibash](https://github.com/Karibash)! - Fix incorrect specification of the exports field in package.json
|
|
346
|
-
|
|
347
|
-
## 0.8.3
|
|
348
|
-
|
|
349
|
-
### Patch Changes
|
|
350
|
-
|
|
351
|
-
- [#222](https://github.com/honojs/middleware/pull/222) [`73ab82a`](https://github.com/honojs/middleware/commit/73ab82a90253a0dbc536251787ff5713981a4075) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: import types correctly
|
|
352
|
-
|
|
353
|
-
## 0.8.2
|
|
354
|
-
|
|
355
|
-
### Patch Changes
|
|
356
|
-
|
|
357
|
-
- [#217](https://github.com/honojs/middleware/pull/217) [`a80c84b`](https://github.com/honojs/middleware/commit/a80c84ba07153f8521c1fc0286abef0623c99b5c) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: bump Hono for `peerDependencies`
|
|
358
|
-
|
|
359
|
-
## 0.8.1
|
|
360
|
-
|
|
361
|
-
### Patch Changes
|
|
362
|
-
|
|
363
|
-
- [#211](https://github.com/honojs/middleware/pull/211) [`6ca8e8d`](https://github.com/honojs/middleware/commit/6ca8e8d8de85dde7b9c25bfd5665aa32e233402e) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: relax input types
|
|
364
|
-
|
|
365
|
-
## 0.8.0
|
|
366
|
-
|
|
367
|
-
### Minor Changes
|
|
368
|
-
|
|
369
|
-
- [#206](https://github.com/honojs/middleware/pull/206) [`2d2fdd0`](https://github.com/honojs/middleware/commit/2d2fdd0379a31320b06f6d1a9e4634bfe1b7c657) Thanks [@yusukebe](https://github.com/yusukebe)! - feat: allows the response to be `Response` not just `TypedResponse`.
|
|
370
|
-
|
|
371
|
-
## 0.7.2
|
|
372
|
-
|
|
373
|
-
### Patch Changes
|
|
374
|
-
|
|
375
|
-
- [#189](https://github.com/honojs/middleware/pull/189) [`58167f3`](https://github.com/honojs/middleware/commit/58167f3b7f3c564334f5182529f0ddb29ace0af1) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: publish as cjs by default
|
|
376
|
-
|
|
377
|
-
## 0.7.1
|
|
378
|
-
|
|
379
|
-
### Patch Changes
|
|
380
|
-
|
|
381
|
-
- [#182](https://github.com/honojs/middleware/pull/182) [`9aefddc`](https://github.com/honojs/middleware/commit/9aefddc45d048e5e51eb36d81cb878c62a72ba9f) Thanks [@ZerNico](https://github.com/ZerNico)! - properly convert openapi path type to hono
|
|
382
|
-
|
|
383
|
-
## 0.7.0
|
|
384
|
-
|
|
385
|
-
### Minor Changes
|
|
386
|
-
|
|
387
|
-
- [#170](https://github.com/honojs/middleware/pull/170) [`9c45dbc`](https://github.com/honojs/middleware/commit/9c45dbc41d46ae4d04d9351757020d7ad528b400) Thanks [@msutkowski](https://github.com/msutkowski)! - Add defaultHook as an option for OpenAPIHono
|
|
388
|
-
|
|
389
|
-
### Patch Changes
|
|
390
|
-
|
|
391
|
-
- [#179](https://github.com/honojs/middleware/pull/179) [`047eca5`](https://github.com/honojs/middleware/commit/047eca5ca99085ee8c4f1581b17c8ebeae6afc82) Thanks [@yusukebe](https://github.com/yusukebe)! - fix(zod-openapi): enable `basePath()`
|
|
392
|
-
|
|
393
|
-
- [#176](https://github.com/honojs/middleware/pull/176) [`fb63ef4`](https://github.com/honojs/middleware/commit/fb63ef413cb7b843aebe756a5322bdd10ba74500) Thanks [@yusukebe](https://github.com/yusukebe)! - fix(zod-openapi): make multiple routes types correct for `hc`
|
|
394
|
-
|
|
395
|
-
- Updated dependencies [[`a9123dd`](https://github.com/honojs/middleware/commit/a9123dd9e3e90d4d73f495d6b407ebacf9ea0ad8)]:
|
|
396
|
-
- @hono/zod-validator@0.1.9
|
|
397
|
-
|
|
398
|
-
## 0.6.0
|
|
399
|
-
|
|
400
|
-
### Minor Changes
|
|
401
|
-
|
|
402
|
-
- [#167](https://github.com/honojs/middleware/pull/167) [`dbebf74`](https://github.com/honojs/middleware/commit/dbebf747c9c7ca94bf22259772d8b1e0623ce68d) Thanks [@exsjabe](https://github.com/exsjabe)! - Export types that allow for separate declaratins of route handlers and hooks
|
|
403
|
-
|
|
404
|
-
## 0.5.1
|
|
405
|
-
|
|
406
|
-
### Patch Changes
|
|
407
|
-
|
|
408
|
-
- [#164](https://github.com/honojs/middleware/pull/164) [`62a97fd`](https://github.com/honojs/middleware/commit/62a97fda6a784f11549fff442978677642d2b218) Thanks [@yusukebe](https://github.com/yusukebe)! - fix(zod-openapi): use `z.output` for types after validation
|
|
409
|
-
|
|
410
|
-
## 0.5.0
|
|
411
|
-
|
|
412
|
-
### Minor Changes
|
|
413
|
-
|
|
414
|
-
- [#161](https://github.com/honojs/middleware/pull/161) [`05b8e9a`](https://github.com/honojs/middleware/commit/05b8e9a7511874f7e9dcb84b9dcfa97ca458ae4e) Thanks [@naporin0624](https://github.com/naporin0624)! - Add getRoutingPath to the return value of createRoute.
|
|
415
|
-
|
|
416
|
-
## 0.4.0
|
|
417
|
-
|
|
418
|
-
### Minor Changes
|
|
419
|
-
|
|
420
|
-
- [#153](https://github.com/honojs/middleware/pull/153) [`430088e`](https://github.com/honojs/middleware/commit/430088e17569a12e354c80c1d6da67a9ecbfdffe) Thanks [@mikestopcontinues](https://github.com/mikestopcontinues)! - Merge subapps' spec definitions into main app
|
|
421
|
-
|
|
422
|
-
- [#153](https://github.com/honojs/middleware/pull/153) [`430088e`](https://github.com/honojs/middleware/commit/430088e17569a12e354c80c1d6da67a9ecbfdffe) Thanks [@mikestopcontinues](https://github.com/mikestopcontinues)! - Support v3.1 spec output
|
|
423
|
-
|
|
424
|
-
- [#153](https://github.com/honojs/middleware/pull/153) [`430088e`](https://github.com/honojs/middleware/commit/430088e17569a12e354c80c1d6da67a9ecbfdffe) Thanks [@mikestopcontinues](https://github.com/mikestopcontinues)! - OpenAPIHono constructor supports init object
|
|
425
|
-
|
|
426
|
-
## 0.3.1
|
|
427
|
-
|
|
428
|
-
### Patch Changes
|
|
429
|
-
|
|
430
|
-
- [#155](https://github.com/honojs/middleware/pull/155) [`804caac`](https://github.com/honojs/middleware/commit/804caac19123e0b6d9a3f33b686051f1f111ee1f) Thanks [@yusukebe](https://github.com/yusukebe)! - fix(zod-openapi): support multiple params
|
|
431
|
-
|
|
432
|
-
## 0.3.0
|
|
433
|
-
|
|
434
|
-
### Minor Changes
|
|
435
|
-
|
|
436
|
-
- [#150](https://github.com/honojs/middleware/pull/150) [`1006cbc`](https://github.com/honojs/middleware/commit/1006cbca6b6636340afe10f7680511bab2046b47) Thanks [@yusukebe](https://github.com/yusukebe)! - feat(zod-openapi): make `app.openAPIRegistry` public
|
|
437
|
-
|
|
438
|
-
### Patch Changes
|
|
439
|
-
|
|
440
|
-
- [#148](https://github.com/honojs/middleware/pull/148) [`1bfd648`](https://github.com/honojs/middleware/commit/1bfd648df8dfcd659c14514b977de945d3806b7d) Thanks [@yusukebe](https://github.com/yusukebe)! - fix(zod-openapi): fix a type error
|
|
441
|
-
|
|
442
|
-
## 0.2.0
|
|
443
|
-
|
|
444
|
-
### Minor Changes
|
|
445
|
-
|
|
446
|
-
- [#141](https://github.com/honojs/middleware/pull/141) [`f334e99`](https://github.com/honojs/middleware/commit/f334e99251cdabc8be9334eec7eb7d9a450d8e35) Thanks [@yusukebe](https://github.com/yusukebe)! - feat: support `headers` and `cookies`
|
|
447
|
-
|
|
448
|
-
## 0.1.2
|
|
449
|
-
|
|
450
|
-
### Patch Changes
|
|
451
|
-
|
|
452
|
-
- [#139](https://github.com/honojs/middleware/pull/139) [`991b859`](https://github.com/honojs/middleware/commit/991b85915a63d1fd15cda52078f6401c17d3879f) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: bump up Hono version
|
|
453
|
-
|
|
454
|
-
## 0.1.1
|
|
455
|
-
|
|
456
|
-
### Patch Changes
|
|
457
|
-
|
|
458
|
-
- [#132](https://github.com/honojs/middleware/pull/132) [`2dbc823`](https://github.com/honojs/middleware/commit/2dbc823b29a95e6c81bedc5416c08f15ac97288d) Thanks [@yusukebe](https://github.com/yusukebe)! - fix path param format `:id` to `{id}`
|
|
459
|
-
|
|
460
|
-
## 0.1.0
|
|
461
|
-
|
|
462
|
-
### Minor Changes
|
|
463
|
-
|
|
464
|
-
- [#124](https://github.com/honojs/middleware/pull/124) [`e6b20c6`](https://github.com/honojs/middleware/commit/e6b20c64b61654dc742b233ad09d764c71db7186) Thanks [@yusukebe](https://github.com/yusukebe)! - feat(zod-openapi): support RPC-mode
|
|
465
|
-
|
|
466
|
-
## 0.0.1
|
|
467
|
-
|
|
468
|
-
### Patch Changes
|
|
469
|
-
|
|
470
|
-
- [#121](https://github.com/honojs/middleware/pull/121) [`1233c00`](https://github.com/honojs/middleware/commit/1233c00875827749599880ade5830f8a1e7d73e8) Thanks [@yusukebe](https://github.com/yusukebe)! - docs: fixed readme
|
|
471
|
-
|
|
472
|
-
- [#118](https://github.com/honojs/middleware/pull/118) [`7b89803`](https://github.com/honojs/middleware/commit/7b898034a50c9bfa08872e28dcaa066ea55d9e3d) Thanks [@yusukebe](https://github.com/yusukebe)! - introduce Zod OpenAPI
|