@hono/zod-openapi 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hono/zod-openapi
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1320](https://github.com/honojs/middleware/pull/1320) [`e835cf6183fb4717cfdbe156d9b3d423625a0e15`](https://github.com/honojs/middleware/commit/e835cf6183fb4717cfdbe156d9b3d423625a0e15) Thanks [@yusukebe](https://github.com/yusukebe)! - fix: correct importing `zod`
8
+
3
9
  ## 1.0.1
4
10
 
5
11
  ### Patch Changes
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: () => import_v4.z
26
+ z: () => import_zod.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 import_v4 = require("zod/v4");
33
+ var import_zod = require("zod");
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 import_v4.ZodType)) {
101
+ if (!(schema instanceof import_zod.ZodType)) {
102
102
  continue;
103
103
  }
104
104
  if (isJSONContentType(mediaType)) {
@@ -244,7 +244,7 @@ var createRoute = (routeConfig) => {
244
244
  };
245
245
  return Object.defineProperty(route, "getRoutingPath", { enumerable: false });
246
246
  };
247
- (0, import_zod_to_openapi.extendZodWithOpenApi)(import_v4.z);
247
+ (0, import_zod_to_openapi.extendZodWithOpenApi)(import_zod.z);
248
248
  function addBasePathToDocument(document, basePath) {
249
249
  const updatedPaths = {};
250
250
  Object.keys(document.paths).forEach((path) => {
package/dist/index.d.cts CHANGED
@@ -6,8 +6,8 @@ import { InfoStatusCode, SuccessStatusCode, RedirectStatusCode, ClientErrorStatu
6
6
  import { SimplifyDeepArray, JSONValue, JSONParsed, RemoveBlankRecord } from 'hono/utils/types';
7
7
  import { OpenAPIObject } from 'openapi3-ts/oas30';
8
8
  import { OpenAPIObject as OpenAPIObject$1 } from 'openapi3-ts/oas31';
9
- import { ZodType, z, ZodError } from 'zod/v4';
10
- export { z } from 'zod/v4';
9
+ import { ZodType, z, ZodError } from 'zod';
10
+ export { z } from 'zod';
11
11
 
12
12
  type MaybePromise<T> = Promise<T> | T;
13
13
  type RouteConfig = RouteConfig$1 & {
package/dist/index.d.ts CHANGED
@@ -6,8 +6,8 @@ import { InfoStatusCode, SuccessStatusCode, RedirectStatusCode, ClientErrorStatu
6
6
  import { SimplifyDeepArray, JSONValue, JSONParsed, RemoveBlankRecord } from 'hono/utils/types';
7
7
  import { OpenAPIObject } from 'openapi3-ts/oas30';
8
8
  import { OpenAPIObject as OpenAPIObject$1 } from 'openapi3-ts/oas31';
9
- import { ZodType, z, ZodError } from 'zod/v4';
10
- export { z } from 'zod/v4';
9
+ import { ZodType, z, ZodError } from 'zod';
10
+ export { z } from 'zod';
11
11
 
12
12
  type MaybePromise<T> = Promise<T> | T;
13
13
  type RouteConfig = RouteConfig$1 & {
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  import { zValidator } from "@hono/zod-validator";
10
10
  import { Hono } from "hono";
11
11
  import { mergePath } from "hono/utils/url";
12
- import { ZodType, z } from "zod/v4";
12
+ import { ZodType, z } from "zod";
13
13
  var OpenAPIHono = class _OpenAPIHono extends Hono {
14
14
  openAPIRegistry;
15
15
  defaultHook;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hono/zod-openapi",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A wrapper class of Hono which supports OpenAPI.",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",