@hono/zod-openapi 0.9.6 → 0.9.7

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 CHANGED
@@ -53,7 +53,7 @@ const UserSchema = z
53
53
 
54
54
  > [!TIP]
55
55
  > `UserSchema` schema will be registered as `"#/components/schemas/User"` refs in the OpenAPI document.
56
- > If you want to register the schema as referenced components, use `.opanapi()` method.
56
+ > If you want to register the schema as referenced components, use `.openapi()` method.
57
57
 
58
58
  Next, create a route:
59
59
 
package/dist/index.js CHANGED
@@ -148,7 +148,7 @@ var OpenAPIHono = class _OpenAPIHono extends import_hono.Hono {
148
148
  return this;
149
149
  }
150
150
  basePath(path) {
151
- return new _OpenAPIHono(super.basePath(path));
151
+ return new _OpenAPIHono({ ...super.basePath(path), defaultHook: this.defaultHook });
152
152
  }
153
153
  };
154
154
  var createRoute = (routeConfig) => {
package/dist/index.mjs CHANGED
@@ -126,7 +126,7 @@ var OpenAPIHono = class _OpenAPIHono extends Hono {
126
126
  return this;
127
127
  }
128
128
  basePath(path) {
129
- return new _OpenAPIHono(super.basePath(path));
129
+ return new _OpenAPIHono({ ...super.basePath(path), defaultHook: this.defaultHook });
130
130
  }
131
131
  };
132
132
  var createRoute = (routeConfig) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hono/zod-openapi",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "A wrapper class of Hono which supports OpenAPI.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -41,16 +41,18 @@
41
41
  "zod": "3.*"
42
42
  },
43
43
  "devDependencies": {
44
+ "@cloudflare/workers-types": "^4.20240117.0",
44
45
  "hono": "^3.11.7",
45
46
  "jest": "^29.7.0",
46
47
  "openapi3-ts": "^4.1.2",
47
48
  "tsup": "^8.0.1",
49
+ "typescript": "^5.3.3",
48
50
  "vitest": "^1.0.1",
49
51
  "zod": "^3.22.1"
50
52
  },
51
53
  "dependencies": {
52
54
  "@asteasolutions/zod-to-openapi": "^5.5.0",
53
- "@hono/zod-validator": "^0.1.11"
55
+ "@hono/zod-validator": "0.1.11"
54
56
  },
55
57
  "engines": {
56
58
  "node": ">=16.0.0"